/* dalo-app.com — the "Studio" system (src/design/README.md) on the web.
   Dark-first monochrome, one accent that follows the theme: Volt in light, Brass in dark.
   Hairlines instead of shadows, radius 10/8/6, Archivo (condensed numerals) + Inter + IBM Plex Sans Arabic. */

:root {
  --bg: #0a0a0b;
  --surface: #141416;
  --surface-2: #1c1c1f;
  --text: #f3f2ee;
  --text-2: #9a9a9f;
  --text-3: #5e5e64;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.16);
  --accent: #e3b55b; /* fill */
  --accent-text: #e3b55b;
  --accent-stroke: #e3b55b;
  --on-accent: #0a0a0b;
  --mark: #e3b55b;
  --word: #ffffff;

  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Archivo", "Inter", system-ui, sans-serif;
  --gutter: 16px;
  --r-s: 8px;
  --r-m: 10px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f2f1ec;
    --surface: #ffffff;
    --surface-2: #e9e8e2;
    --text: #0f0f10;
    --text-2: #5f5f66;
    --text-3: #8a8a90;
    --hairline: rgba(0, 0, 0, 0.08);
    --hairline-strong: rgba(0, 0, 0, 0.16);
    --accent: #d4ff3a; /* Volt — a fill only on bone, never text */
    --accent-text: #4f6b00;
    --accent-stroke: #6e9400;
    --mark: #0a0a0b;
    --word: #0a0a0b;
    color-scheme: light;
  }
}

:lang(ar) {
  --font-ui: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
  --font-display: "IBM Plex Sans Arabic", "Archivo", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

:lang(ar) body,
body:lang(ar) {
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration-color: var(--hairline-strong);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--accent-stroke);
}

:focus-visible {
  outline: 2px solid var(--accent-stroke);
  outline-offset: 3px;
  border-radius: 4px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
}

.skip {
  position: absolute;
  inset-inline-start: -9999px;
}

.skip:focus {
  inset-inline-start: var(--gutter);
  top: 8px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: var(--r-s);
}

/* ---------- Brand ---------- */

.lockup {
  display: block;
  height: 22px;
  width: auto;
  direction: ltr; /* the lockup never mirrors */
}

.lockup-mark {
  fill: var(--mark);
}

.lockup-word {
  fill: var(--word);
}

@media (prefers-color-scheme: dark) {
  .lockup-mark {
    fill: var(--accent);
  }
}

.lockup-hero {
  height: 40px;
  margin-bottom: 40px;
}

.lockup-foot {
  height: 20px;
}

.micro {
  margin: 0 0 12px;
  font: 600 12px/1.3 var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}

:lang(ar) .micro {
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

.accent {
  color: var(--accent-text);
}

/* ---------- Header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 16px;
}

.home {
  display: inline-flex;
  padding-block: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font: 500 15px/1 var(--font-ui);
}

.nav a {
  text-decoration: none;
  color: var(--text-2);
}

.nav a:hover,
.nav a[aria-current] {
  color: var(--text);
}

.nav .cta-small {
  color: var(--on-accent);
  background: var(--accent);
  padding: 10px 14px;
  border-radius: var(--r-s);
  font-weight: 600;
}

.nav .cta-small:hover {
  color: var(--on-accent);
}

.langbar {
  border-bottom: 1px solid var(--hairline);
}

.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  padding-block: 10px;
  font: 500 13px/1.4 var(--font-ui);
}

.langs a {
  color: var(--text-2);
  text-decoration: none;
}

.langs a[aria-current] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent-stroke);
  text-decoration-thickness: 2px;
}

/* ---------- Type ---------- */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(44px, 9vw, 88px);
  line-height: 0.98;
  font-stretch: 75%;
  text-transform: uppercase;
}

:lang(ar) h1 {
  text-transform: none;
  line-height: 1.2;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(26px, 4.4vw, 40px);
  line-height: 1.08;
}

:lang(ar) h2 {
  line-height: 1.35;
  letter-spacing: 0;
}

.lede {
  font-size: 18px;
  color: var(--text-2);
  max-width: 34em;
  margin: 0 0 28px;
}

/* ---------- Hero ---------- */

.hero {
  padding-block: 48px 24px;
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    padding-block: 88px 48px;
  }
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

/* ---------- Phone screenshots ---------- */

.phone {
  margin: 0;
  justify-self: center;
  width: min(330px, 78vw);
  border-radius: 44px;
  overflow: hidden;
  border: 1px solid var(--hairline-strong);
  background: #0a0a0b;
}

.phone img {
  width: 100%;
}

/* ---------- Badge (placeholder until Apple's artwork is dropped in) ---------- */

.badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 168px;
  height: 56px;
  padding: 0 18px;
  border-radius: var(--r-s);
  background: #000;
  color: #fff;
  border: 1px solid #a6a6a6;
  text-decoration: none;
  line-height: 1.1;
}

.badge-small {
  font: 500 11px/1.2 var(--font-ui);
}

.badge-big {
  font: 600 22px/1.1 var(--font-ui);
  letter-spacing: -0.01em;
}

/* ---------- Modules ---------- */

.modules {
  display: grid;
  gap: 0;
}

.module {
  display: grid;
  gap: 32px;
  align-items: center;
  padding-block: 56px;
  border-top: 1px solid var(--hairline);
}

@media (min-width: 900px) {
  .module {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    padding-block: 88px;
  }
  .module.flip .module-copy {
    order: 2;
  }
}

/* ---------- Pricing ---------- */

.pricing {
  padding-block: 72px;
  border-top: 1px solid var(--hairline);
}

.plans {
  display: grid;
  gap: 16px;
  margin: 32px 0 20px;
  max-width: 720px;
}

@media (min-width: 640px) {
  .plans {
    grid-template-columns: 1fr 1fr;
  }
}

.plan {
  padding: 24px;
  border-radius: var(--r-m);
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
}

.plan-best {
  border: 1.5px solid var(--accent-stroke);
}

.price {
  margin: 0;
  font: 700 56px/1 var(--font-display);
  font-stretch: 75%;
  font-variant-numeric: tabular-nums;
}

:lang(ar) .price {
  font-size: 48px;
  line-height: 1.2;
}

.per {
  margin: 6px 0 0;
  color: var(--text-2);
}

.note {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--text-2);
}

.fine {
  font-size: 13px;
  color: var(--text-2);
  max-width: 56em;
  margin: 0 0 24px;
}

/* ---------- Documents (privacy, terms, support) ---------- */

.doc {
  max-width: 760px;
  padding-block: 48px 72px;
}

.doc h1 {
  font-size: clamp(40px, 8vw, 64px);
}

.doc h2 {
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 12px;
}

.doc section {
  padding-block: 28px;
  border-top: 1px solid var(--hairline);
}

.doc p,
.doc li {
  color: var(--text);
  max-width: 68ch;
}

.doc li + li {
  margin-top: 10px;
}

.doc ul,
.doc ol {
  padding-inline-start: 22px;
}

.doc strong {
  font-weight: 600;
}

.toc {
  margin: 8px 0 32px;
  padding: 16px 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-m);
  font-size: 15px;
}

.toc ol {
  margin: 0;
  columns: 2 220px;
  column-gap: 32px;
}

.toc li {
  margin: 0 0 6px;
  break-inside: avoid;
}

.toc a {
  color: var(--text-2);
}

.contact {
  border-top: 0 !important;
}

.faq details {
  border-bottom: 1px solid var(--hairline);
  padding-block: 4px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 0;
  padding-inline-end: 28px;
  position: relative;
  font-weight: 600;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  inset-inline-end: 0;
  top: 12px;
  font-size: 20px;
  color: var(--text-2);
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0 0 16px;
  color: var(--text-2);
}

/* ---------- Footer ---------- */

.foot {
  border-top: 1px solid var(--hairline);
  padding-block: 40px 56px;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 20px;
}

.foot-line {
  margin: 0;
  color: var(--text-2);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 20px;
  font-size: 15px;
}

.foot .fine {
  margin-bottom: 8px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
