/* ============================================================
   Wird — marketing site styles
   Grounded in the Wird Design System tokens (cream + navy,
   SF Pro system stack, soft shadows, hairlines). Italian-
   minimalist: big confident type, lots of breathing room,
   thin rules, numbered editorial rhythm, restrained color.
   ============================================================ */

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

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

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: var(--tracking-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--color-primary-ring); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* — Shared layout — */
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 32px; }

.label {
  font-size: 12px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.display {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.03em;
  line-height: 1.04;
  text-wrap: balance;
  margin: 0;
}

.lead {
  font-size: clamp(18px, 2.1vw, 21px);
  line-height: 1.55;
  color: var(--color-text-secondary);
  text-wrap: pretty;
  margin: 0;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: color-mix(in srgb, var(--color-background) 80%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-standard);
}
.nav.scrolled { border-bottom-color: var(--color-separator); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand__icon { width: 32px; height: 32px; border-radius: 9px; box-shadow: var(--shadow-card); overflow: hidden; }
.brand__icon img { width: 100%; height: 100%; }
.brand__name {
  font-family: var(--font-display); font-weight: var(--weight-semibold);
  font-size: 21px; letter-spacing: -0.02em; color: var(--color-primary);
}
.brand__name .ar { font-family: var(--font-arabic); color: var(--color-accent); margin-left: 6px; font-weight: var(--weight-regular); }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  font-size: 15px; font-weight: var(--weight-medium); color: var(--color-text-secondary);
  transition: color var(--dur-fast) var(--ease-standard);
}
.nav__links a:hover { color: var(--color-text); }
.nav__cta { margin-left: 6px; }
@media (max-width: 720px) { .nav__links .nav__hide { display: none; } }

/* — Buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-text); font-size: 16px; font-weight: var(--weight-semibold);
  letter-spacing: -0.01em; line-height: 1; cursor: pointer; border: none;
  padding: 13px 22px; border-radius: var(--radius-pill);
  transition: transform var(--dur-fast) var(--ease-standard), background var(--dur-fast), box-shadow var(--dur-fast);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--color-primary); color: var(--color-on-primary); box-shadow: var(--shadow-card); }
.btn--primary:hover { background: color-mix(in srgb, var(--color-primary) 88%, #000); }
.btn--ghost { background: transparent; color: var(--color-primary); }
.btn--ghost:hover { background: var(--color-primary-tint); }
.btn--light { background: var(--color-surface); color: var(--color-primary); }
.btn--light:hover { background: color-mix(in srgb, var(--color-surface) 92%, var(--color-primary)); }

/* — App Store / store badges (in-house drawn) — */
.stores { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 20px 11px 18px; border-radius: 15px;
  background: var(--color-text); color: var(--color-surface);
  transition: transform var(--dur-fast) var(--ease-standard), opacity var(--dur-fast);
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge__txt { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-badge__txt small { font-size: 11px; font-weight: var(--weight-regular); opacity: 0.78; letter-spacing: 0.01em; }
.store-badge__txt span { font-size: 19px; font-weight: var(--weight-semibold); letter-spacing: -0.02em; }
.store-badge--soon { background: transparent; color: var(--color-text-secondary); border: 1px solid var(--color-separator); cursor: default; }
.store-badge--soon:hover { transform: none; }
.store-badge--soon .store-badge__txt span { color: var(--color-text); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; }
.hero__motif {
  position: absolute; top: -180px; right: -160px; width: 720px; height: 720px;
  opacity: 0.06; pointer-events: none; z-index: 0;
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
  padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 96px);
}
.hero__copy { max-width: 560px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 26px; }
.hero__eyebrow .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--color-accent); }
.hero h1 { font-size: clamp(42px, 6.4vw, 74px); margin: 0 0 24px; }
.hero h1 .accent { color: var(--color-primary); }
.hero__lead { max-width: 460px; margin-bottom: 36px; }
.hero__actions { display: flex; flex-direction: column; gap: 16px; }
.hero__note { font-size: 14px; color: var(--color-text-secondary); display: flex; align-items: center; gap: 8px; }
.hero__note svg { width: 16px; height: 16px; }

.hero__device { display: flex; justify-content: center; position: relative; }
.device {
  position: relative; width: 100%; max-width: 310px;
  filter: drop-shadow(0 30px 60px rgba(16,18,40,0.18)) drop-shadow(0 8px 18px rgba(16,18,40,0.08));
}
.device img { width: 100%; }
.device--float { animation: floaty 7s var(--ease-standard) infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .device--float { animation: none; } }

/* ============================================================
   VALUES STRIP
   ============================================================ */
.values {
  border-top: 1px solid var(--color-separator);
  border-bottom: 1px solid var(--color-separator);
}
.values__inner {
  display: flex; flex-wrap: wrap; gap: 14px 48px; align-items: center; justify-content: space-between;
  padding: 26px 0;
}
.values__item { display: flex; align-items: center; gap: 11px; font-size: 15px; font-weight: var(--weight-medium); color: var(--color-text); }
.values__item svg { width: 19px; height: 19px; color: var(--color-primary); flex: none; }

/* ============================================================
   FEATURES (alternating rows)
   ============================================================ */
.features { padding: clamp(64px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); }
.features__head { max-width: 640px; margin: 0 auto clamp(56px, 7vw, 96px); text-align: center; }
.features__head h2 { font-size: clamp(30px, 4.4vw, 50px); margin: 18px 0 0; }

.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px);
  align-items: center;
  padding: clamp(48px, 6vw, 80px) 0;
}
.feature + .feature { border-top: 1px solid var(--color-separator); }
.feature__media { display: flex; justify-content: center; }
.feature:nth-child(even) .feature__media { order: -1; }
.feature__num {
  font-family: var(--font-display); font-size: 14px; font-weight: var(--weight-semibold);
  letter-spacing: 0.1em; color: var(--color-accent); margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.feature__num::after { content: ""; height: 1px; flex: 1; max-width: 64px; background: var(--color-separator); }
.feature__body { max-width: 460px; }
.feature__body h3 { font-family: var(--font-display); font-weight: var(--weight-semibold); letter-spacing: -0.025em; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.1; margin: 0 0 18px; }
.feature__body p { margin: 0 0 22px; font-size: clamp(16px, 1.9vw, 19px); line-height: 1.6; color: var(--color-text-secondary); text-wrap: pretty; }
.feature__points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.feature__points li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; color: var(--color-text); }
.feature__points svg { width: 20px; height: 20px; color: var(--color-primary); flex: none; margin-top: 1px; }
.feature .device { max-width: 286px; }

/* ============================================================
   GRID of smaller features
   ============================================================ */
.grid-section { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--color-separator); }
.grid-section__head { max-width: 600px; margin-bottom: clamp(40px, 5vw, 64px); }
.grid-section__head h2 { font-size: clamp(28px, 4vw, 44px); margin: 16px 0 0; font-family: var(--font-display); font-weight: var(--weight-semibold); letter-spacing: -0.025em; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--color-surface); border-radius: var(--radius-lg);
  padding: 30px 28px 32px; box-shadow: var(--shadow-card);
  border: 1px solid var(--color-hairline);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.card__icon {
  width: 46px; height: 46px; border-radius: 13px; background: var(--color-primary-tint);
  display: flex; align-items: center; justify-content: center; color: var(--color-primary);
  margin-bottom: 22px;
}
.card__icon svg { width: 23px; height: 23px; }
.card h3 { font-family: var(--font-display); font-weight: var(--weight-semibold); letter-spacing: -0.02em; font-size: 20px; margin: 0 0 8px; }
.card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--color-text-secondary); }
@media (max-width: 860px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* ============================================================
   DOWNLOAD CTA (ink section)
   ============================================================ */
.ink { background: var(--color-primary); color: var(--color-on-primary); position: relative; overflow: hidden; }
.ink__motif { position: absolute; bottom: -240px; left: -160px; width: 680px; height: 680px; opacity: 0.10; pointer-events: none; }
.ink__motif svg path, .ink__motif svg circle { stroke: #fff; }
.cta { position: relative; z-index: 1; text-align: center; padding: clamp(72px, 10vw, 132px) 0; }
.cta__icon { width: 76px; height: 76px; border-radius: 21px; overflow: hidden; margin: 0 auto 30px; box-shadow: var(--shadow-pop); }
.cta h2 { font-family: var(--font-display); font-weight: var(--weight-semibold); letter-spacing: -0.03em; font-size: clamp(32px, 5vw, 56px); line-height: 1.05; margin: 0 0 20px; }
.cta p { font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: color-mix(in srgb, var(--color-on-primary) 78%, transparent); max-width: 440px; margin: 0 auto 38px; }
.cta .stores { justify-content: center; }
.cta .store-badge { background: var(--color-surface); color: var(--color-text); }
.cta .store-badge--soon { background: transparent; color: color-mix(in srgb, var(--color-on-primary) 70%, transparent); border-color: color-mix(in srgb, var(--color-on-primary) 30%, transparent); }
.cta .store-badge--soon .store-badge__txt span { color: var(--color-on-primary); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: clamp(48px, 6vw, 72px) 0 48px; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer__brand { max-width: 320px; }
.footer__brand .brand { margin-bottom: 16px; }
.footer__brand p { font-size: 15px; color: var(--color-text-secondary); line-height: 1.55; margin: 0; }
.footer__cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer__col h4 { font-size: 12px; font-weight: var(--weight-semibold); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-secondary); margin: 0 0 16px; }
.footer__col a { display: block; font-size: 15px; color: var(--color-text); margin-bottom: 11px; transition: color var(--dur-fast); }
.footer__col a:hover { color: var(--color-primary); }
.footer__base {
  margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--color-separator);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--color-text-secondary);
}
.footer__base .ar { font-family: var(--font-arabic); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 12px; text-align: left; }
  /* headline + value prop lead; the device follows as a supporting element */
  .hero__copy { order: -1; }
  .hero__device { order: 0; margin-top: 28px; margin-bottom: 0; }
  .hero .device { max-width: 200px; }
  .feature { grid-template-columns: 1fr; gap: 36px; }
  .feature__media, .feature:nth-child(even) .feature__media { order: -1; }
  .feature__body { max-width: 540px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .values__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ============================================================
   PRIVACY / DOC PAGE
   ============================================================ */
.doc-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--color-separator); }
.doc-hero h1 { font-family: var(--font-display); font-weight: var(--weight-semibold); letter-spacing: -0.03em; font-size: clamp(36px, 6vw, 60px); line-height: 1.04; margin: 18px 0 0; }
.doc-hero__meta { margin-top: 22px; font-size: 14px; color: var(--color-text-secondary); }
.doc { max-width: 720px; margin: 0 auto; padding: clamp(48px, 6vw, 72px) 0 clamp(64px, 8vw, 96px); }
.doc__intro { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.6; color: var(--color-text); text-wrap: pretty; margin: 0 0 8px; }
.callout {
  background: var(--color-surface); border: 1px solid var(--color-hairline); box-shadow: var(--shadow-card);
  border-radius: var(--radius-lg); padding: 28px 30px; margin: 36px 0 8px;
}
.callout h2 { font-family: var(--font-display); font-weight: var(--weight-semibold); letter-spacing: -0.01em; font-size: 18px; margin: 0 0 16px; }
.callout ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 13px; }
.callout li { display: flex; align-items: flex-start; gap: 13px; font-size: 16px; line-height: 1.5; color: var(--color-text); }
.callout svg { width: 20px; height: 20px; color: var(--color-primary); flex: none; margin-top: 1px; }
.doc section { margin-top: clamp(36px, 5vw, 52px); }
.doc section h2 {
  font-family: var(--font-display); font-weight: var(--weight-semibold); letter-spacing: -0.02em;
  font-size: clamp(22px, 3vw, 28px); line-height: 1.2; margin: 0 0 16px;
  display: flex; align-items: baseline; gap: 14px;
}
.doc section h2 .n { font-size: 14px; color: var(--color-accent); font-weight: var(--weight-semibold); letter-spacing: 0.08em; }
.doc section p { font-size: 17px; line-height: 1.65; color: var(--color-text-secondary); margin: 0 0 16px; text-wrap: pretty; }
.doc section p strong { color: var(--color-text); font-weight: var(--weight-semibold); }
.doc section p a { color: var(--color-primary); font-weight: var(--weight-medium); border-bottom: 1px solid var(--color-primary-ring); }
.doc section ul { margin: 0 0 16px; padding-left: 22px; color: var(--color-text-secondary); }
.doc section li { font-size: 17px; line-height: 1.6; margin-bottom: 8px; }
.doc__back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: var(--weight-medium); color: var(--color-text-secondary); transition: color var(--dur-fast); }
.doc__back:hover { color: var(--color-primary); }
.doc__back svg { width: 16px; height: 16px; }

/* Intro list (outside .doc section) */
.doc > ul { margin: 0 0 16px; padding-left: 22px; color: var(--color-text-secondary); }
.doc > ul > li { font-size: 17px; line-height: 1.6; margin-bottom: 8px; }
.doc > p { font-size: 17px; line-height: 1.65; color: var(--color-text-secondary); margin: 0 0 16px; }
.doc > p strong { color: var(--color-text); font-weight: var(--weight-semibold); }
.doc a { color: var(--color-primary); font-weight: var(--weight-medium); border-bottom: 1px solid var(--color-primary-ring); }

/* Subheadings within sections */
.doc h3, .doc section h3 {
  font-family: var(--font-display); font-weight: var(--weight-semibold); letter-spacing: -0.01em;
  font-size: 18px; line-height: 1.3; margin: 24px 0 12px; color: var(--color-text);
}
.doc section li strong, .doc > ul li strong { color: var(--color-text); font-weight: var(--weight-semibold); }

/* Callout paragraph + list copy */
.callout p { font-size: 16px; line-height: 1.55; color: var(--color-text-secondary); margin: 0 0 14px; }
.callout li { display: list-item; }
.callout ul { list-style: square; padding-left: 22px; gap: 11px; }

/* Table of contents */
.doc__toc { margin: 0; padding-left: 22px; color: var(--color-text-secondary); }
.doc__toc li { font-size: 17px; line-height: 1.5; margin-bottom: 9px; }

/* US data categories table */
.doc__table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 14px; }
.doc__table th, .doc__table td {
  border: 1px solid var(--color-hairline); padding: 10px 12px; text-align: left; vertical-align: top;
  color: var(--color-text-secondary); line-height: 1.5;
}
.doc__table th { color: var(--color-text); font-weight: var(--weight-semibold); background: var(--color-surface); }
.doc__table td:last-child { text-align: center; white-space: nowrap; font-weight: var(--weight-medium); }
@media (max-width: 640px) { .doc__table { font-size: 13px; } .doc__table th, .doc__table td { padding: 8px; } }

/* ============================================================
   PRIVACY — plain-English trust band + sticky TOC layout
   ============================================================ */
/* Reassurance band under the doc hero — the human version of the policy */
.pp-trust { border-top: 1px solid var(--color-separator); border-bottom: 1px solid var(--color-separator); background: var(--color-primary-tint); }
.pp-trust__inner { max-width: 1040px; margin: 0 auto; padding: 36px 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 40px; }
.pp-trust__eyebrow { display: block; font-size: 11px; font-weight: var(--weight-semibold); letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-primary); margin: 0 0 6px; }
.pp-trust__item h2 { font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: 19px; letter-spacing: -0.01em; line-height: 1.2; margin: 0 0 6px; color: var(--color-text); }
.pp-trust__item p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--color-text-secondary); }

/* Two-column reading layout: sticky table of contents + content */
.doc-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 72px; max-width: 1040px; margin: 0 auto; align-items: start; padding: clamp(40px, 5vw, 64px) 32px; }
.doc-layout .doc { max-width: 680px; margin: 0; padding: 0; }
.doc-rail { position: sticky; top: 96px; }
.doc-rail__label { font-size: 11px; font-weight: var(--weight-semibold); letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-text-secondary); margin: 0 0 16px; }
.doc-rail ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--color-separator); }
.doc-rail li { margin: 0; }
.doc-rail a { display: block; font-size: 13px; line-height: 1.4; color: var(--color-text-secondary); padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; border-bottom: none; transition: color var(--dur-fast), border-color var(--dur-fast); }
.doc-rail a:hover { color: var(--color-text); }
.doc-rail a.active { color: var(--color-primary); border-left-color: var(--color-primary); font-weight: var(--weight-semibold); }

/* Section anchoring under the sticky nav */
.doc-layout .doc section { scroll-margin-top: 96px; }

/* "In Short:" summaries become skimmable highlight cards */
.in-short { background: var(--color-surface); border: 1px solid var(--color-hairline); border-left: 3px solid var(--color-accent); border-radius: 10px; padding: 16px 18px; font-size: 15px; line-height: 1.55; color: var(--color-text); box-shadow: var(--shadow-card); }
.in-short em { font-style: normal; }
.in-short strong em { font-style: normal; color: var(--color-accent); font-weight: var(--weight-semibold); }

@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; gap: 0; padding-left: 0; padding-right: 0; }
  .doc-rail { display: none; }
  .pp-trust__inner { grid-template-columns: 1fr; gap: 22px; }
}

/* ============================================================
   ENTRANCE ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
