@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..600;1,9..144,400..500&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ==========================================================================
   Darzi Pro — Design System & Stylesheet
   Luxury Ivory + Deep Ink + Real Gold (Tailoring Craft Aesthetic)
   ========================================================================== */

:root {
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --raise: #FFFFFF;
  --ink: #171A24;
  --muted: #5C6072;
  --faint: #8A8E9C;
  --line: #E8E6DE;
  --line-soft: #F0EEE7;
  --gold: #A8792A;
  --gold-bright: #B8872E;
  --gold-soft: #F4EAD2;
  --navy: #141826;
  --good: #2F7D54;
  --shadow: 0 1px 2px rgba(20, 24, 38, .04), 0 10px 30px rgba(20, 24, 38, .06);
  --maxw: 1120px;
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
  box-sizing: border-box;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D0F15;
    --surface: #141822;
    --raise: #171C28;
    --ink: #ECEDF1;
    --muted: #9BA1B1;
    --faint: #737A8A;
    --line: #262B38;
    --line-soft: #1C212C;
    --gold: #D8A84A;
    --gold-bright: #E3B65C;
    --gold-soft: #262013;
    --navy: #0A0D14;
    --good: #58C68B;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 34px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0D0F15;
  --surface: #141822;
  --raise: #171C28;
  --ink: #ECEDF1;
  --muted: #9BA1B1;
  --faint: #737A8A;
  --line: #262B38;
  --line-soft: #1C212C;
  --gold: #D8A84A;
  --gold-bright: #E3B65C;
  --gold-soft: #262013;
  --navy: #0A0D14;
  --good: #58C68B;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 34px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: env(safe-area-inset-top, 0px);
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 14.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
}

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

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 500;
  text-wrap: balance;
  line-height: 1.12;
  margin: 0;
  font-optical-sizing: auto;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(16px, 5vw, 40px);
}

/* ---------- Header & Navigation ---------- */
header.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand .mark {
  width: 36px;
  height: 36px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  overflow: hidden;
}

.brand .mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand b {
  font-weight: 700;
  color: var(--gold);
}

.nav .spacer {
  flex: 1;
}

.nav .links {
  display: flex;
  gap: 26px;
  align-items: center;
}

.nav .links a {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s;
}

.nav .links a:hover {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 14.5px;
  border-radius: 999px;
  padding: 10px 22px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.15s, background 0.15s;
  white-space: nowrap;
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-gold {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, var(--shadow);
}

:root[data-theme="dark"] .btn-gold,
:root:not([data-theme="light"]) .btn-gold {
  background: var(--gold);
  color: #17130a;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-gold {
    background: var(--gold);
    color: #17130a;
  }
}

.btn-gold:hover {
  box-shadow: 0 8px 22px rgba(20, 24, 38, 0.18);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--gold);
}

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: var(--ink);
  align-items: center;
  justify-content: center;
}

@media (max-width: 780px) {
  .nav .links {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
  .nav .cta-desktop {
    display: none;
  }
}

.mobile-menu {
  display: none;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu .wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-block: 14px;
}

.mobile-menu a {
  padding: 11px 6px;
  color: var(--ink);
  font-weight: 500;
  border-radius: 8px;
}

.mobile-menu a:hover {
  background: var(--line-soft);
}

/* ---------- Typography & Utility ---------- */
.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Hero Section ---------- */
.hero {
  padding-block: clamp(56px, 9vw, 104px) clamp(40px, 6vw, 64px);
  position: relative;
  overflow: hidden;
}

.hero .wrap {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.hero h1 {
  font-size: clamp(38px, 6.2vw, 64px);
  letter-spacing: -0.02em;
  margin-top: 18px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero .sub {
  font-size: clamp(16px, 2.1vw, 19px);
  color: var(--muted);
  margin-top: 22px;
  max-width: 30em;
}

.hero .cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
  align-items: center;
}

.hero .cta-note {
  font-size: 13px;
  color: var(--faint);
  margin-top: 16px;
}

.hero .cta-note b {
  color: var(--muted);
  font-weight: 600;
}

.tape {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.5;
  pointer-events: none;
}

/* Phone Mockup */
.device {
  justify-self: center;
  width: min(300px, 78vw);
  aspect-ratio: 300 / 610;
  background: var(--navy);
  border-radius: 36px;
  padding: 11px;
  box-shadow: var(--shadow), 0 30px 60px rgba(20, 24, 38, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.screen {
  width: 100%;
  height: 100%;
  background: var(--surface);
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.scr-top {
  background: linear-gradient(135deg, var(--navy), #242a3d);
  color: #fff;
  padding: 20px 16px 18px;
}

.scr-top .s-shop {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 14px;
}

.scr-top .s-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--gold);
  color: #17130a;
  padding: 3px 8px;
  border-radius: 999px;
}

.scr-top .s-logo {
  width: 26px;
  height: 26px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scr-kpi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.scr-kpi div {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 11px;
}

.scr-kpi span {
  display: block;
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.scr-kpi b {
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 600;
}

.scr-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
  background: var(--surface);
}

.scr-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 11px;
}

.scr-row .av {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--gold-soft);
  color: var(--gold);
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-family: var(--f-body);
}

.scr-row .nm {
  font-size: 12px;
  font-weight: 600;
}

.scr-row .mt {
  font-size: 10px;
  color: var(--faint);
}

.scr-row .pill {
  margin-left: auto;
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

.pill.ready {
  background: color-mix(in srgb, var(--good) 16%, transparent);
  color: var(--good);
}

.pill.due {
  background: var(--gold-soft);
  color: var(--gold);
}

/* ---------- Trust Bar ---------- */
.trust {
  border-block: 1px solid var(--line-soft);
  background: var(--surface);
}

.trust .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  align-items: center;
  justify-content: center;
  padding-block: 20px;
  color: var(--faint);
  font-size: 13.5px;
  font-weight: 600;
}

.trust .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.6;
}

/* ---------- General Section Layout ---------- */
.sec {
  padding-block: clamp(56px, 8vw, 92px);
}

.sec-head {
  max-width: 40rem;
}

.sec-head h2 {
  font-size: clamp(28px, 4.2vw, 42px);
  letter-spacing: -0.02em;
  margin-top: 14px;
}

.sec-head p {
  color: var(--muted);
  margin-top: 16px;
  font-size: 16.5px;
}

/* ---------- Features Grid ---------- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 44px;
}

@media (max-width: 980px) {
  .feat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .feat-grid {
    grid-template-columns: 1fr;
  }
}

.feat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  min-width: 0;
  transition: border-color 0.15s, transform 0.15s;
}

.feat:hover {
  border-color: color-mix(in srgb, var(--gold) 55%, var(--line));
  transform: translateY(-2px);
}

.feat .ic {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feat h3 {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.feat p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
}

/* ---------- Steps (How it Works) ---------- */
.steps {
  background: var(--surface);
  border-block: 1px solid var(--line-soft);
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 44px;
}

@media (max-width: 820px) {
  .step-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 460px) {
  .step-grid {
    grid-template-columns: 1fr;
  }
}

.step {
  min-width: 0;
}

.step .n {
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--gold);
  width: 38px;
  height: 38px;
  border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 16px;
  margin-top: 16px;
}

.step p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 7px;
}

/* ---------- Pricing Grid & Cards ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 44px;
  align-items: stretch;
}

@media (max-width: 860px) {
  .price-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-inline: auto;
  }
}

.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  transition: transform 0.15s, border-color 0.15s;
}

.plan:hover {
  border-color: color-mix(in srgb, var(--gold) 50%, var(--line));
}

.plan.feature {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), var(--shadow);
  position: relative;
}

.plan .tag {
  position: absolute;
  top: -11px;
  left: 24px;
  background: var(--gold);
  color: #17130a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
}

.plan h3 {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.plan .amt {
  font-family: var(--f-display);
  font-size: 34px;
  font-weight: 600;
  margin-top: 12px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.plan .amt small {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--faint);
  letter-spacing: 0;
}

.plan .desc {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 6px;
  min-height: 2.4em;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.plan li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
}

.plan li svg {
  flex: none;
  margin-top: 3px;
  color: var(--gold);
}

.plan .btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

.price-note {
  text-align: center;
  color: var(--faint);
  font-size: 13px;
  margin-top: 22px;
}

/* ---------- Founding Member Banner ---------- */
.founding {
  margin-top: 30px;
  background: linear-gradient(135deg, var(--navy), #20263a);
  color: #fff;
  border-radius: 22px;
  padding: clamp(26px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

@media (max-width: 760px) {
  .founding {
    grid-template-columns: 1fr;
  }
}

.founding .eyebrow {
  color: var(--gold-bright);
}

.founding h3 {
  font-family: var(--f-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  margin-top: 12px;
}

.founding p {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 14px;
  font-size: 15px;
}

.founding .perks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.founding .perk {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 14.5px;
}

.founding .perk b {
  color: var(--gold-bright);
}

.founding .perk svg {
  color: var(--gold-bright);
  flex: none;
  margin-top: 2px;
}

/* ---------- Call to Action Band ---------- */
.cta-band {
  text-align: center;
  padding-block: clamp(56px, 8vw, 88px);
}

.cta-band h2 {
  font-size: clamp(30px, 4.6vw, 46px);
  letter-spacing: -0.02em;
}

.cta-band p {
  color: var(--muted);
  margin-top: 16px;
  font-size: 17px;
}

.cta-band .cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding-block: 48px 34px;
  margin-top: 0;
}

.foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}

.foot-brand {
  max-width: 22rem;
}

.foot-brand p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 14px;
}

.foot-cols {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.foot-col h4 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  font-family: var(--f-body);
  font-weight: 700;
}

.foot-col a, .foot-col span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-top: 11px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s;
}

.foot-col a:hover {
  color: var(--gold);
}

.foot-bot {
  border-top: 1px solid var(--line-soft);
  margin-top: 36px;
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: var(--faint);
  font-size: 13px;
}

/* ---------- Legal Pages (Privacy & Terms) ---------- */
.legal {
  padding-block: clamp(40px, 6vw, 72px);
}

.legal .wrap {
  max-width: 760px;
}

.legal .back {
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
  transition: opacity 0.15s;
}

.legal .back:hover {
  opacity: 0.85;
}

.legal h1 {
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: -0.02em;
  margin-top: 14px;
}

.legal .updated {
  color: var(--faint);
  font-size: 13.5px;
  margin-top: 10px;
}

.legal .lead {
  color: var(--muted);
  font-size: 16.5px;
  margin-top: 20px;
  line-height: 1.65;
}

.legal h2 {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  margin-top: 40px;
  letter-spacing: -0.01em;
}

.legal h3 {
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 700;
  margin-top: 24px;
}

.legal p {
  color: var(--ink);
  font-size: 15.5px;
  margin-top: 14px;
  line-height: 1.65;
}

.legal ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--ink);
  font-size: 15.5px;
}

.legal li {
  margin-top: 9px;
  line-height: 1.6;
}

.legal .box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 20px;
}

.legal .box p {
  margin-top: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.legal a.inline {
  color: var(--gold);
  font-weight: 600;
}

.legal a.inline:hover {
  text-decoration: underline;
}

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

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
