/* Samaan Pantry — light-mode tokens from the iOS asset catalog.
   Display P3 components resolved to sRGB in Chrome (color-profile srgb).
   Sources: Saman/Assets.xcassets/Pantry/*.colorset
            Saman/Core/Design/SamaanTheme.swift
            Saman/Core/Design/PantryFont.swift
   Pital is not a color in the app. Low stock uses AccentMasala.
   Borders use BorderAkhrot / BorderAkhrotSoft. Attention uses AccentAnaar. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/CormorantGaramond-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0, U+00A9, U+00B7, U+2013, U+2014, U+2018, U+2019, U+201C, U+201D, U+2022, U+2026;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/CormorantGaramond-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0, U+00A9, U+00B7, U+2013, U+2014, U+2018, U+2019, U+201C, U+201D, U+2022, U+2026;
}

@font-face {
  font-family: "Noto Nastaliq Urdu";
  src: url("/fonts/NotoNastaliqUrdu-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --doodh: #FDF8ED;          /* SurfaceDoodh */
  --malai: #F4E9D0;          /* SurfaceMalai */
  --atta: #E8D4AB;           /* SurfaceAtta */
  --saag: #2E6D43;           /* BrandSaag */
  --saag-deep: #205332;      /* BrandSaagDeep */
  --saag-soft: #6DA77F;      /* BrandSaagSoft */
  --anaar: #AA2028;          /* AccentAnaar */
  --masala: #935736;         /* AccentMasala — low stock; app calls this brass */
  --akhrot: #7B3E1B;         /* BorderAkhrot */
  --akhrot-soft: #AE8966;    /* BorderAkhrotSoft */
  --ink: #201A13;            /* InkKohl */
  --ink-soft: #5E5446;       /* InkKohlSoft */
  --hairline: rgba(174, 137, 102, 0.5);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-urdu: "Noto Nastaliq Urdu", "Noto Nastaliq Urdu Draft", serif;
  --font-mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --page: 1040px;
}

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

html { background: var(--doodh); scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--doodh);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

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

a { color: var(--saag); }

a:hover { color: var(--saag-deep); }

:focus-visible {
  outline: 2px solid var(--saag);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--saag);
  color: var(--doodh);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
  color: var(--doodh);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 12px var(--space-md);
  background: var(--doodh);
  border-bottom: 1px solid var(--hairline);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand:hover { color: inherit; }

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex: none;
  display: block;
}

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.brand-urdu {
  display: block;
  margin-top: 2px;
  font-family: var(--font-urdu);
  font-size: 15px;
  line-height: 1.8;
  color: var(--saag);
}

.nav-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  background: var(--saag);
  color: var(--doodh);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.nav-cta:hover { background: var(--saag-deep); color: var(--doodh); }

.wrap {
  width: min(var(--page), calc(100% - 32px));
  margin-inline: auto;
}

.hero {
  display: grid;
  gap: var(--space-xl);
  padding: var(--space-xl) 0 var(--space-lg);
}

.kicker {
  margin: 0 0 var(--space-sm);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--saag);
}

.kicker.center { text-align: center; }

.hero h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 10vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.lede {
  margin: 0 0 var(--space-md);
  max-width: 38rem;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
}

.lede-quiet {
  margin: 0 0 var(--space-lg);
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

.store-cta { margin: 0; }

.store-badge {
  display: inline-block;
  line-height: 0;
}

.store-badge img {
  display: block;
  height: 44px;
  width: 132px;
}

.fine {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.panel {
  background: var(--doodh);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}

.panel-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
}

.panel-word {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}

.panel-sub {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.plus {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--saag);
  color: var(--doodh);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

.capture {
  display: flex;
  gap: 14px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: var(--malai);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 12px;
  color: inherit;
}

.nuskha {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--saag);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-urdu);
  font-size: 22px;
  line-height: 1;
}

.capture strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.capture span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--ink-soft);
}

.section-rule {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-rule span { flex: none; }

.section-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.2;
}

.rule-anaar { color: var(--anaar); }
.rule-saag { color: var(--saag); }

.stock {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
}

.stock:last-child { border-bottom: 0; padding-bottom: 0; }

.chip {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--atta);
  display: grid;
  place-items: center;
  font-size: 22px;
  flex: none;
}

.stock-name {
  font-size: 15px;
  font-weight: 500;
}

.stock-meta {
  margin-left: auto;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
}

.stock-meta small {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-soft);
}

.tone-saag { color: var(--saag); }
.tone-masala { color: var(--masala); }
.tone-out { color: var(--ink-soft); }

.features { padding: 8px 0 48px; }

.features h2,
.pro h2 {
  margin: 0 0 var(--space-lg);
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  line-height: 1.05;
}

.feature-grid {
  display: grid;
  gap: var(--space-md);
}

.feature-card {
  background: var(--malai);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 16px;
}

.feature-card h3 {
  margin: 10px 0 6px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
}

.feature-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.feature-card p + p {
  margin-top: 8px;
}

.icon {
  width: 28px;
  height: 28px;
  color: var(--saag);
  display: block;
}

.guest-note {
  margin: var(--space-lg) auto 0;
  max-width: 40rem;
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
}

.pro {
  padding: 8px 0 56px;
}

.pro-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--malai);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}

.pro-card .kicker { text-align: center; }

.pro-card h2 { margin-bottom: 6px; }

.pro-sub {
  margin: 0 0 var(--space-lg);
  color: var(--ink-soft);
  font-size: 15px;
}

.benefits {
  list-style: none;
  margin: 0 auto var(--space-lg);
  padding: 0;
  max-width: 28rem;
  text-align: left;
}

.benefits li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.benefits strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.benefits span {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
}

.check {
  color: var(--saag);
  font-weight: 700;
  line-height: 1.4;
}

.pro-note {
  margin: 0 auto var(--space-lg);
  max-width: 34rem;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: var(--space-lg) 0 28px;
}

.footer-cta {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.footer-cta p {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 15px;
}

.footer-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

.footer-brand .brand-name { font-size: 20px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 8px;
}

.footer-links a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 14px;
  padding: 10px 8px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover { color: var(--saag); }

.legal-line {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.prose {
  width: min(42rem, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 72px;
}

.prose h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 8vw, 52px);
  line-height: 1.02;
  color: var(--ink);
}

.updated {
  display: block;
  margin-bottom: var(--space-lg);
  font-size: 13px;
  color: var(--ink-soft);
}

.rule {
  width: 40px;
  height: 1px;
  background: var(--hairline);
  border: 0;
  margin: 0 0 var(--space-lg);
}

.prose h2 {
  margin: 40px 0 12px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

.prose p,
.prose li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}

.prose p { margin: 0 0 16px; }

.prose .intro {
  padding-left: 16px;
  border-left: 2px solid var(--saag);
  margin-bottom: 28px;
}

.prose ul {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.prose li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
}

.prose li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--saag);
}

.prose a {
  text-underline-offset: 3px;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--malai);
  padding: 0 4px;
  border-radius: 4px;
}

@media (min-width: 800px) {
  .site-header { padding: 14px 28px; }
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    padding: 56px 0 40px;
  }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .pro-card { padding: 36px 40px; }
  .footer-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    text-align: left;
  }
  .footer-links { justify-content: flex-end; }
  .legal-line { text-align: right; max-width: 28rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
