/* Umma site. Persimmon brand (brief 013, docs/brand/README.md).
   Layout: a warm Flesh page; one persimmon moment per screen (the hero disc, the CTA pill),
   Leaf for anything that reads as text-in-colour, Seed for words.
   Contrast rules: Persimmon is a fill only, never text. Labels on Persimmon are Seed.
   Deep persimmon (#B04A12) carries icons and small accents on light backgrounds. */

@font-face {
  font-family: "Bagel Fat One";
  src: url("assets/fonts/bagel-fat-one-subset.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colour: values mirror ios/Umma/DesignSystem/Colors.swift */
  --bg: #FFF1E6;          /* Flesh */
  --surface: #FFFFFF;
  --raised: #FFE4D0;
  --ink: #2A1C14;         /* Seed */
  --ink-2: #6B5244;
  --leaf: #2F6B3A;        /* accent text, links */
  --leaf-soft: #E3EFDF;
  --fruit: #F2782A;       /* Persimmon: fills only */
  --fruit-soft: #FFDCC2;
  --on-fruit: #2A1C14;
  --deep: #B04A12;        /* icons + small accents on light */
  --line: #F0CDB4;
  --warn-bg: #FFF2B8;
  --warn-ink: #6B5500;
  --focus: #2F6B3A;
  /* Logo fills (exempt from text contrast, follow the brand masters) */
  --mark-fruit: #F2782A;
  --mark-hi: #FF9A55;
  --mark-leaf: #2F6B3A;
  --mark-ko: #D85F17;

  --display: "Bagel Fat One", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --text: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 72rem;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --radius: 1.25rem;
  --shadow: 0 1px 2px rgb(42 28 20 / .06), 0 12px 32px -12px rgb(42 28 20 / .18);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1B130E; --surface: #261B14; --raised: #33251C;
    --ink: #FBEDE2; --ink-2: #C9AE9C;
    --leaf: #8ED39A; --leaf-soft: #203626;
    --fruit: #FF8A3D; --fruit-soft: #4A2814; --on-fruit: #2A1C14;
    --deep: #FF9A5C; --line: #45342A;
    --warn-bg: #3A2F0A; --warn-ink: #F0D04E; --focus: #8ED39A;
    --mark-fruit: #FF8A3D; --mark-hi: #FFAE73; --mark-leaf: #8ED39A; --mark-ko: #FF8A3D;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 16px 40px -16px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1B130E; --surface: #261B14; --raised: #33251C;
  --ink: #FBEDE2; --ink-2: #C9AE9C;
  --leaf: #8ED39A; --leaf-soft: #203626;
  --fruit: #FF8A3D; --fruit-soft: #4A2814; --on-fruit: #2A1C14;
  --deep: #FF9A5C; --line: #45342A;
  --warn-bg: #3A2F0A; --warn-ink: #F0D04E; --focus: #8ED39A;
  --mark-fruit: #FF8A3D; --mark-hi: #FFAE73; --mark-leaf: #8ED39A; --mark-ko: #FF8A3D;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 16px 40px -16px rgb(0 0 0 / .6);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.12; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: .005em; }
h3 { font-size: 1.25rem; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--leaf); text-decoration-thickness: .08em; text-underline-offset: .18em; font-weight: 700; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 32px);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

.skip {
  position: absolute; left: var(--gutter-l); top: -4rem; z-index: 20;
  background: var(--ink); color: var(--bg); padding: .6rem 1rem; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: .75rem; }

/* Logo fills */
.logo path { fill-rule: evenodd; }
.f-fruit { fill: var(--mark-fruit); }
.f-hi { fill: var(--mark-hi); }
.f-leaf { fill: var(--mark-leaf); }
.f-ko { fill: var(--mark-ko); }

/* ---------- Masthead ---------- */
.masthead {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; flex-wrap: wrap; }
.brand { display: inline-flex; border-radius: 10px; }
.brand svg { height: 2.25rem; width: auto; }
.masthead nav ul { display: flex; flex-wrap: wrap; gap: .25rem .4rem; list-style: none; }
.masthead nav a {
  display: inline-block; padding: .35rem .7rem; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem;
}
.masthead nav a:hover { background: var(--raised); }
.masthead nav a[aria-current="page"] { background: var(--leaf-soft); color: var(--leaf); }
@media (max-width: 40rem) {
  .masthead .wrap { justify-content: center; }
  .masthead nav ul { justify-content: center; }
  .masthead nav li.nav-optional { display: none; }
  .masthead nav a { padding: .3rem .55rem; font-size: .9rem; }
}

/* ---------- Buttons ---------- */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3.25rem; padding: .8rem 1.6rem; border-radius: 999px;
  font-family: var(--text); font-weight: 800; font-size: 1.1rem; line-height: 1.2;
  text-decoration: none; text-align: center;
}
a.cta { background: var(--fruit); color: var(--on-fruit); box-shadow: 0 6px 18px -8px rgb(176 74 18 / .7); transition: transform .15s ease, box-shadow .15s ease; }
a.cta:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgb(176 74 18 / .75); }
a.cta::after { content: "→"; }
span.cta { background: var(--fruit-soft); color: var(--ink); border: 2px dashed color-mix(in srgb, var(--deep) 55%, transparent); }
.cta-note { font-size: .95rem; color: var(--ink-2); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2rem, 6vw, 4.5rem) clamp(2.5rem, 6vw, 5rem); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy { display: grid; gap: 1.4rem; min-width: 0; }
.eyebrow { display: inline-flex; align-items: baseline; gap: .55rem; font-weight: 800; color: var(--ink-2); font-size: 1rem; }
.eyebrow .ko { font-family: var(--display); color: var(--deep); font-size: 1.35rem; line-height: 1; }
.hero h1 { isolation: isolate; font-size: clamp(2.4rem, 1.4rem + 4.6vw, 4.6rem); line-height: 1.02; }
.hero h1 .l2 { color: var(--leaf); }
.hero h1 .l3 { position: relative; white-space: nowrap; }
.hero h1 .l3::after {
  content: ""; position: absolute; left: -.05em; right: -.05em; bottom: .02em; height: .3em; z-index: -1;
  background: var(--fruit); opacity: .55; border-radius: .2em;
}
.origin {
  display: grid; gap: .6rem; max-width: 36rem;
  padding: 1.1rem 1.25rem 1.2rem; border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow);
  border-left: 0;
}
.origin p { font-size: 1.1rem; }
.origin .sig { font-size: .95rem; color: var(--ink-2); font-weight: 700; }
.origin .tag { font-family: var(--display); color: var(--leaf); font-size: 1.35rem; line-height: 1.2; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.actions .cta-note { flex: 1 1 14rem; min-width: 0; }

.facts { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; }
.facts li {
  display: inline-flex; gap: .35rem; align-items: baseline;
  padding: .35rem .8rem; border-radius: 999px; background: var(--raised); font-size: .92rem;
}
.facts b { font-weight: 800; }

.hero-art { position: relative; justify-self: center; width: min(100%, 22rem); padding: 1.5rem 1rem 0; }
.hero-art::before {
  content: ""; position: absolute; inset: 8% -18% auto; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--fruit) 90%, white) 0, var(--fruit) 55%, color-mix(in srgb, var(--fruit) 75%, var(--deep)) 100%);
  opacity: .9; z-index: 0;
}
.hero-art .phone { position: relative; z-index: 1; }

/* Phone frame around real screenshots */
.phone {
  border-radius: 2.6rem; padding: .55rem; background: #120C08;
  box-shadow: var(--shadow), inset 0 0 0 2px rgb(255 255 255 / .08);
  max-width: 17.5rem; margin-inline: auto;
}
.phone img, .phone picture { display: block; width: 100%; border-radius: 2.1rem; aspect-ratio: 1206 / 2622; object-fit: cover; background: var(--bg); }
figure { margin: 0; }
figcaption { margin-top: .9rem; text-align: center; font-size: .92rem; color: var(--ink-2); font-weight: 700; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section.tint { background: var(--raised); }
.section-head { display: grid; gap: .8rem; max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.2rem); }
.section-head p { font-size: 1.15rem; color: var(--ink-2); }
.kicker { font-weight: 800; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--leaf); }
.step-text { display: grid; gap: .9rem; max-width: 34rem; min-width: 0; }
.aside {
  display: flex; gap: .6rem; align-items: flex-start;
  padding: .75rem 1rem; border-radius: .9rem; background: var(--leaf-soft); color: var(--ink); font-size: .98rem;
}
.aside svg { flex: none; width: 1.25rem; height: 1.25rem; margin-top: .15rem; color: var(--leaf); }

/* How it works: a real sequence, so it's an ordered list with big step numbers */
.method { list-style: none; display: grid; gap: clamp(3rem, 7vw, 5rem); counter-reset: step; }
.method > li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; counter-increment: step; }
.method > li:nth-child(even) .step-text { order: 2; }
.method > li > .step-text:first-child::before {
  content: counter(step);
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--fruit); color: var(--on-fruit); font-family: var(--display); font-size: 1.5rem; line-height: 1;
}
.method h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
.pair { display: flex; gap: 1rem; justify-content: center; align-items: flex-end; min-width: 0; }
.pair figure { flex: 1 1 0; min-width: 0; max-width: 15rem; }
.pair .phone { border-radius: 2.1rem; padding: .45rem; }
.pair .phone img, .pair .phone picture { border-radius: 1.7rem; }
.pair figure:nth-child(2) { transform: translateY(1.5rem); }

.asks { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; }
.asks li {
  padding: .5rem .9rem; border-radius: 1.1rem 1.1rem 1.1rem .3rem;
  background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: .98rem;
}

/* Safety */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.labels { list-style: none; display: grid; gap: .9rem; }
.labels li { display: grid; gap: .3rem; padding: 1rem 1.1rem; background: var(--surface); border-radius: 1rem; border: 1px solid var(--line); }
.label { justify-self: start; padding: .2rem .7rem; border-radius: 999px; font-size: .85rem; font-weight: 800; background: var(--raised); color: var(--ink); }
.label.creator { background: var(--leaf-soft); color: var(--leaf); }
.label.ai { background: var(--fruit-soft); color: var(--ink); }
.labels p { color: var(--ink-2); font-size: .98rem; }
.notice {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .4rem 1rem;
  padding: 1.25rem; border-radius: var(--radius); background: var(--warn-bg); color: var(--ink);
}
.notice svg { width: 1.6rem; height: 1.6rem; color: var(--warn-ink); grid-row: span 2; }
.notice blockquote { margin: 0; font-weight: 800; font-size: 1.15rem; line-height: 1.4; }
.rules { list-style: none; display: grid; gap: .75rem; margin-top: 1.5rem; }
.rules li { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: .75rem; }
.rules li::before { content: ""; width: .7rem; height: .7rem; margin-top: .55rem; border-radius: 50%; background: var(--deep); }

/* Privacy: two tiers side by side */
.tiers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.tier { display: grid; align-content: start; gap: 1rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.tier-head { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.tier-head h3 { font-family: var(--display); font-weight: 400; font-size: 1.8rem; }
.tier-pill { padding: .2rem .7rem; border-radius: 999px; font-size: .85rem; font-weight: 800; background: var(--leaf-soft); color: var(--leaf); }
.tier.paid .tier-pill { background: var(--fruit-soft); color: var(--ink); }
.tier dl { margin: 0; display: grid; gap: .8rem; }
.tier dt { font-weight: 800; }
.tier dd { margin: 0; color: var(--ink-2); }
.tier .soon { font-size: .92rem; padding: .7rem .9rem; border-radius: .8rem; background: var(--raised); }
.always { margin-top: 1.25rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.always section { display: grid; gap: .5rem; align-content: start; }
.always h3 { font-size: 1.05rem; }
.always ul { list-style: none; display: grid; gap: .4rem; color: var(--ink-2); font-size: .98rem; }
.foot-note { margin-top: 2rem; color: var(--ink-2); }

/* Creators */
.creators .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }

/* Glasses */
.glasses-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem 2rem; align-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius); border: 2px dashed var(--line);
}
.glasses-card svg { width: clamp(4rem, 12vw, 7rem); color: var(--ink-2); }
.status { display: inline-block; justify-self: start; padding: .25rem .8rem; border-radius: 999px; background: var(--warn-bg); color: var(--warn-ink); font-weight: 800; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.glasses-card .step-text { max-width: 44rem; }
.glasses-card h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); }

/* FAQ */
.faq { display: grid; gap: .6rem; max-width: 48rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: 1rem 1.2rem; font-weight: 800; font-size: 1.05rem; border-radius: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--display); font-size: 1.4rem; line-height: 1; color: var(--deep); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 1.2rem 1.1rem; color: var(--ink-2); display: grid; gap: .6rem; }

/* Closing band */
.closing { background: var(--fruit); color: var(--on-fruit); }
.closing .wrap { display: grid; justify-items: center; text-align: center; gap: 1.5rem; }
.closing h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); max-width: 24ch; }
.closing p { font-weight: 700; max-width: 36rem; }
.closing a.cta { background: var(--on-fruit); color: #FFF1E6; box-shadow: none; }
.closing span.cta { background: #FFF1E6; color: #2A1C14; border-color: #2A1C14; }

/* Footer */
.footer { padding-block: 2.5rem; border-top: 1px solid var(--line); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.footer .sign { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer .sign svg { height: 2.75rem; width: auto; }
.footer p { color: var(--ink-2); font-size: .95rem; }
.footer ul { display: flex; gap: 1.25rem; list-style: none; flex-wrap: wrap; }

/* ---------- Document pages (privacy, support) ---------- */
.doc { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 8vw, 6rem); }
.doc .wrap { max-width: calc(46rem + 32px); }
.doc-head { display: grid; gap: .8rem; margin-bottom: 2.5rem; }
.doc-head h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); }
.doc-head p { font-size: 1.15rem; color: var(--ink-2); }
.doc-head .meta { font-size: .95rem; }
.doc-body { display: grid; gap: 1rem; }
.doc-body h2 { font-size: 1.7rem; margin-top: 1.5rem; }
.doc-body h3 { margin-top: .5rem; }
.doc-body ul { padding-left: 1.25rem; display: grid; gap: .5rem; }
.doc-body li::marker { color: var(--deep); }
.doc-body .tiers { margin-block: .5rem; }
.doc-body .tier ul { padding-left: 1.1rem; }
.contact { display: grid; gap: .3rem; padding: 1.25rem 1.4rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.contact .addr { font-size: 1.3rem; user-select: all; }
.contact .meta { color: var(--ink-2); font-size: .95rem; }

/* ---------- Responsive ---------- */
@media (max-width: 56rem) {
  .hero .wrap, .method > li, .two-col, .creators .wrap { grid-template-columns: minmax(0, 1fr); }
  .method > li:nth-child(even) .step-text { order: 0; }
  .always { grid-template-columns: minmax(0, 1fr); }
  .hero-art { width: min(100%, 19rem); }
}
@media (max-width: 44rem) {
  .tiers { grid-template-columns: minmax(0, 1fr); }
  .glasses-card { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 26rem) {
  body { font-size: 1rem; }
  .hero h1 .l3 { white-space: normal; }
  .pair { gap: .6rem; }
  .actions .cta { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  a.cta:hover { transform: none; }
}
