:root {
  --ink: #161514;          /* soft black */
  --char: #212020;         /* deep charcoal */
  --warm: #241d18;         /* warmer, deeper charcoal (CHUGUMI+) */
  --ivory: #f3eee5;
  --offwhite: #faf8f4;
  --taupe: #b5aa9a;        /* accent on dark */
  --taupe-dark: #756c5f;   /* accent on light */
  --line-l: rgba(22, 21, 20, 0.14);
  --line-d: rgba(243, 238, 229, 0.16);
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-btn: 3px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
.wrap { width: min(var(--max), 100% - 48px); margin-inline: auto; }

/* Themes: every section is either .dark or .light */
.dark  { --fg: var(--ivory); --muted: #b9b2a6; --accent: var(--taupe); --line: var(--line-d); --surface: rgba(243, 238, 229, 0.045); background: var(--ink); color: var(--fg); }
.light { --fg: var(--ink);   --muted: #5f584d; --accent: var(--taupe-dark); --line: var(--line-l); --surface: #ebe7df; background: var(--ivory); color: var(--fg); }
.bg-char { background: var(--char); }
.bg-warm { background: var(--warm); }
.bg-off  { background: var(--offwhite); }

/* Type */
h1, h2, h3 { font-weight: 300; margin: 0; line-height: 1.04; letter-spacing: -0.035em; }
h1 { font-size: clamp(3rem, 6.4vw, 5.7rem); }
h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h3 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); letter-spacing: -0.03em; line-height: 1.1; }
.accent { color: var(--accent); }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: currentColor; opacity: 0.7; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 31em; line-height: 1.7; }
.small-note { font-size: 0.82rem; letter-spacing: 0.04em; color: var(--muted); margin-top: 12px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 30px;
  border-radius: var(--radius-btn);
  background: var(--ink);
  color: var(--ivory);
  text-decoration: none;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.btn-sm { padding: 9px 16px; font-size: 0.66rem; letter-spacing: 0.18em; }
/* Primary on dark: ivory fill, charcoal text */
.dark .btn { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.dark .btn:hover { background: transparent; color: var(--ivory); }
/* Primary on light: charcoal fill, ivory text */
.light .btn:hover { background: transparent; color: var(--ink); }
/* Not-yet-clickable (app not released) */
.btn-static { cursor: default; }
.dark .btn-static:hover { background: var(--ivory); color: var(--ink); }
.light .btn-static:hover { background: var(--ink); color: var(--ivory); }
.btn-ghost { background: transparent !important; color: var(--ivory) !important; border-color: rgba(243, 238, 229, 0.4) !important; }
.btn-ghost.btn-static:hover, .btn-ghost:hover { border-color: var(--ivory) !important; }
.dark a.btn-ghost:hover { background: var(--ivory) !important; color: var(--ink) !important; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--taupe);
  outline-offset: 3px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 21, 20, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-d);
  color: var(--ivory);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 20px; }
.logo { font-size: 1.02rem; letter-spacing: 0.36em; text-decoration: none; font-weight: 500; }
.nav-links { display: none; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: 0.88rem; color: #b9b2a6; transition: color 0.2s; }
.nav-links a:hover { color: var(--ivory); }
.nav-right { display: flex; align-items: center; gap: 14px; }

.menu { position: relative; }
.menu summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 0 10px 4px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu ul {
  position: fixed;
  left: 0;
  right: 0;
  top: 60px;
  margin: 0;
  padding: 12px 24px 24px;
  list-style: none;
  background: var(--ink);
  border-bottom: 1px solid var(--line-d);
}
.menu li a { display: block; padding: 14px 0; text-decoration: none; border-bottom: 1px solid var(--line-d); font-size: 1.05rem; }

/* Sections */
section { padding: clamp(44px, 7vw, 104px) 0; position: relative; overflow-x: clip; }

/* Reveal (separate "translate" property so it never fights positioned transforms) */
.js .reveal {
  opacity: 0;
  translate: 0 26px;
  transition: opacity 1s ease var(--d, 0s), translate 1.1s ease var(--d, 0s), scale 1.3s ease var(--d, 0s);
}
.js .screen.reveal, .js .fig.reveal { scale: 0.97; }
.js .reveal.in { opacity: 1; translate: 0 0; scale: 1; }

/* Screens (app screenshot spots) */
.screen {
  position: relative;
  aspect-ratio: 494 / 1024;
  border-radius: clamp(20px, 2.4vw, 30px);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.dark .screen {
  background: linear-gradient(180deg, #34322f, #262523);
  box-shadow: 0 0 0 1px rgba(243, 238, 229, 0.12), 0 50px 80px -36px rgba(0, 0, 0, 0.85), 0 14px 26px -14px rgba(0, 0, 0, 0.6);
}
.light .screen {
  background: linear-gradient(180deg, #ffffff, #e9e5dc);
  box-shadow: 0 0 0 1px rgba(22, 21, 20, 0.08), 0 50px 80px -44px rgba(22, 21, 20, 0.5), 0 14px 26px -18px rgba(22, 21, 20, 0.3);
}
.screen.crop { aspect-ratio: var(--ar, 9 / 13); border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }
.screen .notch {
  position: absolute;
  top: 3.2%;
  left: 50%;
  translate: -50% 0;
  width: 26%;
  height: 5px;
  border-radius: 5px;
  background: currentColor;
  opacity: 0.14;
}
.hint {
  padding: 12px;
  text-align: center;
  font-size: clamp(0.62rem, 0.95vw, 0.76rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}
.hint small { display: block; margin-top: 6px; font-size: 0.92em; letter-spacing: 0.02em; text-transform: none; font-weight: 400; opacity: 0.8; }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--op, top); z-index: 2; }

/* Positioned compositions */
.stage, .compo { position: relative; }
.stage .screen, .compo .screen {
  position: absolute;
  width: var(--w);
  left: var(--l);
  top: var(--t);
  z-index: var(--z, 2);
}

/* Hero */
.hero { padding: clamp(24px, 3.5vw, 52px) 0 0; overflow: hidden; background: var(--ink); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; padding-bottom: clamp(32px, 4.5vw, 64px); }
.hero h1 { margin-bottom: 20px; }
.hero h1 .accent { display: inline-block; }
.hero .lede { margin-bottom: 26px; }
.philosophy-line {
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--ivory);
  max-width: 24em;
  padding-left: 20px;
  border-left: 1px solid var(--taupe);
  margin-bottom: 18px;
}
.hero-cta { display: flex; flex-direction: column; align-items: flex-start; }

.hero-stage { aspect-ratio: 1 / 1.08; width: 100%; max-width: 620px; margin-inline: auto; }
.hero-stage::before {
  content: "";
  position: absolute;
  inset: -10% -14% -6%;
  background: radial-gradient(closest-side, rgba(243, 238, 229, 0.09), rgba(243, 238, 229, 0.03) 60%, rgba(243, 238, 229, 0) 100%);
  z-index: 0;
}
.hero-stage .h1 { --w: 38%; --l: 0%; --t: 15%; --z: 1; }
.hero-stage .h2 { --w: 46%; --l: 27%; --t: 0%; --z: 3; }
.hero-stage .h3 { --w: 37%; --l: 63%; --t: 20%; --z: 2; }

/* About the name */
.about { background: var(--ivory); padding: clamp(36px, 5vw, 68px) 0; }
.about .eyebrow { margin-bottom: 12px; }
.name-row {
  display: flex;
  align-items: center;
  gap: 0.3em;
  font-size: clamp(2.4rem, 11vw, 9.5rem);
  margin: 0 0 clamp(16px, 2vw, 26px);
}
.about .name {
  font-size: 1em;
  font-weight: 200;
  letter-spacing: 0.04em;
  line-height: 0.95;
  margin: 0;
}
.name-row .app-icon {
  flex: none;
  width: 0.78em;
  height: 0.78em;
  border-radius: 22.4%;
  box-shadow: 0 0 0 1px rgba(22, 21, 20, 0.08), 0 14px 26px -14px rgba(22, 21, 20, 0.4);
}
.about-copy {
  border-top: 1px solid var(--line);
  padding-top: clamp(16px, 2vw, 26px);
  display: grid;
  gap: 16px;
  color: var(--muted);
}
.about-side { display: grid; gap: 14px; align-content: start; max-width: 26em; }
.about-copy .big { font-size: clamp(1.3rem, 2.3vw, 1.7rem); line-height: 1.5; font-weight: 300; color: var(--fg); letter-spacing: -0.01em; max-width: 24em; }

/* Philosophy */
.philosophy { background: var(--char); }
.statement {
  margin: 0 0 clamp(26px, 3.5vw, 48px);
  font-size: clamp(2.5rem, 9.2vw, 8.2rem);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.statement span { display: block; }
.statement .x {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.34em;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin: 0.55em 0;
}
.statement .x::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.statement .b { color: var(--accent); }
.phil-copy { display: grid; grid-template-columns: 1fr; gap: 18px; border-top: 1px solid var(--line); padding-top: clamp(20px, 2.6vw, 34px); }
.phil-copy .big { font-size: clamp(1.5rem, 2.8vw, 2.3rem); font-weight: 300; line-height: 1.25; letter-spacing: -0.02em; }
.phil-copy p { color: var(--muted); }
.phil-copy .close { color: var(--fg); }

/* Intro + Features */
.features .section-head { max-width: 900px; margin-bottom: clamp(24px, 4vw, 52px); }
.features .section-head .lede { margin-top: 18px; }
.intro-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; margin-bottom: clamp(28px, 4vw, 52px); }
.intro-grid .section-head { margin-bottom: 0; }
.intro-visual {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1.2;
  margin-inline: auto;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.intro-visual .screen { position: absolute; width: 62%; left: 19%; top: 7%; }
.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
  padding: clamp(32px, 4.5vw, 60px) 0 0;
  border-top: 1px solid var(--line);
}
.row.solo { padding-top: 0; border-top: 0; }
.row .idx { display: block; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.28em; color: var(--accent); margin-bottom: 12px; }
.row h3 { margin-bottom: 14px; }
.row p { color: var(--muted); max-width: 25em; font-size: 1.06rem; }
.compo { width: 100%; aspect-ratio: 1 / 1.02; }
.compo::before {
  content: "";
  position: absolute;
  inset: 8% 4% 4% 4%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.compo.alt::before { inset: 4% 8% 8% 0; }
.compo.solo { aspect-ratio: 1 / 1.15; }
.compo.c-hair { aspect-ratio: 1 / 1.1; }
.c-color .a { --w: 46%; --l: 8%; --t: 4%; }
.c-color .b { --w: 42%; --l: 52%; --t: 38%; --z: 3; --ar: 1 / 0.95; --op: bottom; }
.c-beauty .a { --w: 52%; --l: 26%; --t: 5%; }
.c-hair .a { --w: 46%; --l: 42%; --t: 4%; }
.c-hair .b { --w: 36%; --l: 8%; --t: 30%; --z: 3; }
.c-suit .a { --w: 52%; --l: 20%; --t: 5%; }

.feature-solo { padding: clamp(40px, 5.5vw, 76px) 0; }
.feature-solo .row { padding-top: 0; border-top: 0; }

/* How it works */
.steps { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
/* Mobile: number on the left, text on the right, tight rows */
.step { display: grid; grid-template-columns: 58px 1fr; column-gap: 12px; padding: 16px 0 18px; border-bottom: 1px solid var(--line); align-items: start; }
.step .num { grid-row: 1 / span 3; font-size: 2.3rem; font-weight: 200; letter-spacing: -0.04em; line-height: 1; color: #cfc8ba; }
.step .step-label { display: block; font-size: 0.66rem; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.step h3 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); margin-bottom: 4px; letter-spacing: -0.02em; }
.step p { color: var(--muted); max-width: 22em; font-size: 0.98rem; line-height: 1.55; }
.how .section-head { margin-bottom: clamp(18px, 3vw, 36px); max-width: 700px; }
.how .section-head h2 { font-size: clamp(2rem, 5vw, 3.6rem); }

/* Not another beauty quiz */
.quiz { background: var(--ink); }
/* Mobile: heading first, then a swipeable row of large screens */
.quiz-center { text-align: center; padding-bottom: 22px; }
.quiz-center h2 { font-size: clamp(2.6rem, 11vw, 5.2rem); line-height: 0.98; margin-bottom: 14px; }
.quiz-center .lede { margin-inline: auto; }
.quiz-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 20px;
  margin-inline: -20px;
  padding: 4px 20px 18px;
  scrollbar-width: none;
}
.quiz-rail::-webkit-scrollbar { display: none; }
.fig { margin: 0; flex: 0 0 74%; min-width: 0; scroll-snap-align: start; }
.fig figcaption { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.js .quiz-rail .fig.reveal { opacity: 1; translate: none; scale: 1; }

/* CHUGUMI+ */
.plus { overflow: hidden; }
.plus .wrap { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.plus h2 { margin-bottom: 18px; }
.plus .lede { margin-bottom: 24px; }
.plus-visual { position: relative; aspect-ratio: 1 / 1.22; max-width: 520px; width: 100%; margin-inline: auto; }
.plus-visual::before {
  content: "";
  position: absolute;
  inset: 0 8% 0 8%;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.plus-visual .screen { position: absolute; left: 23%; width: 54%; top: 6%; }

/* Final CTA */
.final { text-align: center; background: var(--offwhite); }
.final .wrap { position: relative; }
.final h2 { font-size: clamp(2.5rem, 7vw, 5.6rem); margin-bottom: 14px; }
.final .lede { margin: 0 auto 12px; }
.final .lede-2 { margin: 0 auto 26px; color: var(--accent); font-size: 1rem; line-height: 1.6; }
.final .hero-cta { align-items: center; }

/* Footer (includes Support) */
.site-footer { background: var(--ink); color: var(--ivory); padding: clamp(40px, 5.5vw, 76px) 0 28px; }
.support-grid { display: grid; grid-template-columns: 1fr; gap: 22px; padding-bottom: clamp(28px, 4vw, 52px); border-bottom: 1px solid var(--line-d); }
.support-grid h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 10px; }
.support-grid .small-note { margin-top: 10px; }
form { display: grid; gap: 12px; }
label { display: block; font-size: 0.66rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ivory);
  background: rgba(243, 238, 229, 0.05);
  border: 1px solid var(--line-d);
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 0.95rem;
}
select option { color: #161514; }
input:focus, select:focus, textarea:focus { border-color: var(--taupe); }
textarea { min-height: 88px; resize: vertical; }
form .btn { justify-self: start; padding: 13px 26px; }
.footer-top { display: flex; flex-direction: column; gap: 16px; padding: 28px 0 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 30px; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; font-size: 0.88rem; color: #b9b2a6; }
.footer-links a:hover { color: var(--ivory); }
.mail { color: var(--ivory); text-underline-offset: 3px; }
.copyright { font-size: 0.8rem; color: #8f887c; padding-top: 18px; border-top: 1px solid var(--line-d); }

/* Mobile refinements */
@media (max-width: 459px) {
  .nav-right .btn-static { display: none; }
}
@media (max-width: 759px) {
  .wrap { width: min(var(--max), 100% - 40px); }
  .hero-stage { aspect-ratio: 1 / 1.26; }
  .hero-stage .h1 { display: none; }
  .hero-stage .h2 { --w: 60%; --l: 0%; --t: 0%; }
  .hero-stage .h3 { --w: 46%; --l: 54%; --t: 20%; }
  .intro-visual { aspect-ratio: 1 / 1.02; max-width: 400px; }
  .compo { margin-inline: -10px; width: calc(100% + 20px); aspect-ratio: 1 / 1.3; }
  .compo.solo { aspect-ratio: 1 / 1.3; }
  .compo.c-hair { aspect-ratio: 1 / 1.3; }
  .c-color .a { --w: 62%; --l: 2%; --t: 0%; }
  .c-color .b { --w: 44%; --l: 52%; --t: 44%; }
  .c-hair .a { --w: 60%; --l: 38%; --t: 0%; }
  .c-hair .b { --w: 42%; --l: 0%; --t: 30%; }
  .c-beauty .a, .c-suit .a { --w: 60%; --l: 20%; --t: 0%; }
  .quiz-rail .screen.crop { aspect-ratio: 494 / 1024; border-radius: clamp(20px, 2.4vw, 30px); }
  .plus-visual { aspect-ratio: 1 / 1.3; max-width: 340px; }
  .plus-visual .screen { left: 21%; width: 58%; top: 3%; }
}

/* Larger screens */
@media (min-width: 760px) {
  .nav-links { display: flex; }
  .menu { display: none; }
  .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 32px; }
  .about-copy { grid-template-columns: 1.2fr 0.8fr; gap: 56px; }
  .about-side { padding-left: 32px; border-left: 1px solid var(--line); padding-top: 4px; }
  .intro-grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
  .intro-visual { margin-inline: 0 0; justify-self: end; }
  .phil-copy { grid-template-columns: 1fr 1fr; gap: 56px; }
  .row { grid-template-columns: 0.8fr 1.2fr; gap: 56px; }
  .row.flip { grid-template-columns: 1.2fr 0.8fr; }
  .row.flip .row-text { order: 2; }
  .row.bleed-r .compo { margin-right: -8vw; width: calc(100% + 8vw); }
  .row.bleed-l .compo { margin-left: -8vw; width: calc(100% + 8vw); }
  .steps { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
  .step { display: block; padding: 30px 28px 34px 0; border-bottom: 0; }
  .step .num { font-size: clamp(3rem, 5vw, 4.2rem); margin-bottom: 16px; }
  .step .step-label { margin-bottom: 8px; }
  .step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
  .quiz-wrap { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 36px 40px; align-items: start; }
  .quiz-rail { display: contents; }
  .quiz-center { grid-column: 2; grid-row: 1 / span 2; align-self: center; padding-bottom: 0; }
  .quiz-center h2 { font-size: clamp(2.8rem, 5.4vw, 5rem); }
  .fig { flex: none; }
  .fig.f1 { grid-column: 1; grid-row: 1; width: 88%; }
  .fig.f2 { grid-column: 1; grid-row: 2; width: 70%; justify-self: end; }
  .fig.f3 { grid-column: 3; grid-row: 1; width: 70%; align-self: end; }
  .fig.f4 { grid-column: 3; grid-row: 2; width: 88%; justify-self: end; }
  .js .quiz-rail .fig.reveal { opacity: 0; translate: 0 26px; scale: 0.97; }
  .js .quiz-rail .fig.reveal.in { opacity: 1; translate: 0 0; scale: 1; }
  .plus .wrap { grid-template-columns: 1.05fr 0.95fr; gap: 64px; }
  .support-grid { grid-template-columns: 0.8fr 1.2fr; gap: 80px; }
  .footer-top { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (min-width: 1100px) {
  .hero-grid { gap: 64px; }
  .row.flip.bleed-l .compo { margin-left: -10vw; width: calc(100% + 10vw); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .quiz-rail .fig.reveal { opacity: 1; translate: none; scale: 1; transition: none; }
}
