/* Hibisem landing. Tokens follow /DESIGN.md. */

@font-face { font-family: Manrope; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/fonts/manrope-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/fonts/manrope-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/fonts/manrope-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --teal: #14B8A6;
  --teal-deep: #0E9384;
  --action: #0F766E;
  --action-pressed: #0B5F58;
  --action-on-dark: #2DD4BF;
  --canvas: #FBF9F6;
  --parchment: #F2EDE5;
  --graphite: #232426;
  --graphite-2: #2B2C2F;
  --ink: #1F2023;
  --ink-muted: #5C5D61;
  --ink-faint: #8A8B8F;
  --on-dark: #F6F3EE;
  --on-dark-muted: #B9B6B0;
  --hairline: rgba(31, 32, 35, .10);
  --error: #B42318;
  --surface-input: #FFFFFF;

  --font: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-pill: 9999px;
  --s-xs: 8px; --s-sm: 12px; --s-md: 16px; --s-lg: 24px; --s-xl: 32px; --s-xxl: 48px;
  --section: 96px;
  --gutter: 24px;
  --max: 1200px;
  --narrow: 720px;
  --shadow-product: 0 18px 40px -18px rgba(31, 32, 35, .35);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --action: #2DD4BF; --action-pressed: #5EEAD4;
    --canvas: #1B1C1E; --parchment: #232426; --graphite: #141516; --graphite-2: #1E1F21;
    --ink: #F1EEE9; --ink-muted: #B9B6B0; --ink-faint: #8E8C88;
    --hairline: rgba(241, 238, 233, .12); --error: #F97066; --surface-input: #2B2C2F;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --action: #2DD4BF; --action-pressed: #5EEAD4;
  --canvas: #1B1C1E; --parchment: #232426; --graphite: #141516; --graphite-2: #1E1F21;
  --ink: #F1EEE9; --ink-muted: #B9B6B0; --ink-faint: #8E8C88;
  --hairline: rgba(241, 238, 233, .12); --error: #F97066; --surface-input: #2B2C2F;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.5; letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--action); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--canvas);
  padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }
.center { text-align: center; }
.muted { color: var(--ink-muted); }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--action); margin-bottom: var(--s-sm); }
h1 { font-size: 56px; line-height: 1.07; letter-spacing: -0.02em; }
h2 { font-size: 40px; line-height: 1.1; letter-spacing: -0.015em; }
h3 { font-size: 20px; line-height: 1.25; }
.lead { font-size: 21px; line-height: 1.45; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner { display: flex; align-items: center; gap: var(--s-lg); height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo-mark .m-fg { fill: var(--ink); }
.logo-mark .m-in { stroke: var(--canvas); }
.logo-mark .m-dot { stroke: var(--teal); }
.logo-h { color: var(--action); }
.nav-links { display: flex; gap: var(--s-lg); margin-left: var(--s-lg); }
.nav-links a { color: var(--ink-muted); text-decoration: none; font-size: 14px; }
.nav-links a:hover { color: var(--ink); }
.header-end { margin-left: auto; display: flex; align-items: center; gap: var(--s-md); }
.lang ul { display: flex; gap: 2px; font-size: 13px; font-weight: 600; }
.lang a, .lang span { display: inline-block; padding: 6px 8px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink-muted); }
.lang span { color: var(--ink); background: var(--parchment); }
.lang a:hover { color: var(--ink); }

/* ---- buttons & form ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border: 0; border-radius: var(--r-pill);
  background: var(--action); color: #fff; font: 600 16px/1 var(--font); letter-spacing: 0;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, transform .1s ease;
}
:root[data-theme="dark"] .btn { color: #0B2724; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn { color: #0B2724; } }
.btn:hover { background: var(--action-pressed); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn-small { min-height: 38px; padding: 8px 16px; font-size: 14px; }

.subscribe { margin-top: var(--s-xl); max-width: 520px; }
.center .subscribe { margin-left: auto; margin-right: auto; }
.field-row { display: flex; gap: 6px; padding: 6px; background: var(--surface-input); border: 1px solid var(--hairline); border-radius: var(--r-pill); box-shadow: 0 1px 2px rgba(31, 32, 35, .04); }
.field-row:focus-within { border-color: var(--action); box-shadow: 0 0 0 3px color-mix(in srgb, var(--action) 18%, transparent); }
.input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 400 17px/1.2 var(--font); padding: 0 14px; }
.input::placeholder { color: var(--ink-faint); }
.input:focus { outline: none; }
.subscribe.is-invalid .field-row { border-color: var(--error); }
.form-status { min-height: 0; font-size: 15px; margin-top: var(--s-sm); }
.form-status:empty { display: none; }
.form-status.ok { color: var(--action); font-weight: 600; }
.form-status.err { color: var(--error); }
.form-note { margin-top: var(--s-sm); font-size: 13px; color: var(--ink-muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.subscribe.is-done .field-row, .subscribe.is-done .chips { display: none; }

.chips { border: 0; margin: var(--s-md) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chips legend { width: 100%; font-size: 14px; color: var(--ink-muted); margin-bottom: 10px; padding: 0; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: var(--r-pill); border: 1px solid var(--hairline); background: var(--canvas); font-size: 14px; color: var(--ink); cursor: pointer; transition: border-color .15s, background-color .15s; }
.chip input:checked + span { border-color: var(--action); background: color-mix(in srgb, var(--action) 10%, var(--canvas)); color: var(--ink); }
.chip input:checked + span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--action); margin-right: 8px; }
.chip input:focus-visible + span { outline: 2px solid var(--action); outline-offset: 2px; }

/* ---- hero: render full-bleed, copy over the empty wall on the left ---- */
.hero { position: relative; min-height: min(86vh, 860px); display: flex; align-items: center; overflow: hidden; background: #E9E2D6; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero-inner { position: relative; padding-top: 64px; padding-bottom: 64px; }
.hero-copy { max-width: 560px; color: #1F2023; }
.hero .eyebrow { color: #0F766E; }
.hero .lead { margin-top: var(--s-lg); color: #45464A; }
.hero .subscribe .field-row { background: #fff; border-color: rgba(31, 32, 35, .10); }
.hero .input { color: #1F2023; }
.hero .input::placeholder { color: #8A8B8F; }
.hero .btn { background: #0F766E; color: #fff; }
.hero .btn:hover { background: #0B5F58; }
.hero .form-note { color: #55565A; }
.hero .form-note a, .hero .form-status.ok { color: #0F766E; }
.hero .form-status.err { color: #B42318; }

/* ---- tiles ---- */
.tile { padding: var(--section) 0; }
.tile-canvas { background: var(--canvas); }
.tile-parchment { background: var(--parchment); }
.tile-dark { background: var(--graphite); color: var(--on-dark); }
.tile-dark .eyebrow { color: var(--action-on-dark); }
.tile-dark .lead { color: var(--on-dark-muted); }
.section-head { margin-bottom: var(--s-xxl); }
.section-head .lead { margin-top: var(--s-md); max-width: 640px; }
.center .lead, .section-head.center .lead { margin-left: auto; margin-right: auto; }
.problem h2 { font-size: 40px; }
.problem .lead { margin-top: var(--s-lg); }

/* how it works */
.steps { display: grid; gap: var(--section); }
.step { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; }
.step-flip .step-media { order: 2; }
.shot { width: 100%; aspect-ratio: 10 / 7; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-product); }
.step-num { display: block; font-size: 14px; font-weight: 600; color: var(--action); letter-spacing: .08em; margin-bottom: var(--s-md); }
.step-copy h3 { font-size: 32px; line-height: 1.15; letter-spacing: -0.01em; }
.step-copy p { margin-top: var(--s-md); color: var(--ink-muted); font-size: 18px; }

/* shelf */
.shelf { position: relative; background: #E9E2D6; }
.shelf-img { width: 100%; height: auto; max-height: 92vh; object-fit: cover; }
.shelf-copy { position: absolute; left: 0; right: 0; top: 7%; text-align: center; color: #1F2023; }
.shelf-copy .lead { color: #4D4E52; margin: var(--s-md) auto 0; max-width: 600px; }

/* features */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-lg); }
.card { background: var(--parchment); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: var(--s-xl) var(--s-lg); }
.card .icon { width: 28px; height: 28px; color: var(--action); margin-bottom: var(--s-lg); }
.card p { margin-top: var(--s-xs); color: var(--ink-muted); font-size: 16px; }

/* product line */
.line { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-lg); counter-reset: line; }
.line-item { padding: var(--s-lg); border-radius: var(--r-lg); background: var(--graphite-2); border: 1px solid rgba(246, 243, 238, .08); }
.line-item h3 { margin-top: var(--s-md); }
.line-item p { margin-top: var(--s-xs); color: var(--on-dark-muted); font-size: 15px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-muted); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .6; }
.is-now { border-color: color-mix(in srgb, var(--teal) 45%, transparent); }
.is-now .status { color: var(--action-on-dark); }
.is-now .status::before { background: var(--teal); opacity: 1; box-shadow: 0 0 10px var(--teal); }

/* faq */
.faq { border-top: 1px solid var(--hairline); }
.qa { border-bottom: 1px solid var(--hairline); }
.qa summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 19px; font-weight: 600; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink-muted); border-bottom: 2px solid var(--ink-muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.qa[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.qa p { padding: 0 40px 24px 0; color: var(--ink-muted); }

/* join */
.join .lead { margin-top: var(--s-md); }

/* footer */
.site-footer { background: var(--parchment); border-top: 1px solid var(--hairline); padding: 56px 0 32px; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: var(--s-xl); flex-wrap: wrap; }
.footer-tag { margin-top: var(--s-xs); color: var(--ink-muted); }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: var(--ink-muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.fine { margin-top: var(--s-xl); color: var(--ink-faint); font-size: 12px; }

/* privacy page */
.legal h1 { font-size: 44px; margin: var(--s-lg) 0 var(--s-xs); }
.legal h2 { font-size: 24px; margin: var(--s-xxl) 0 var(--s-sm); }
.legal p + p { margin-top: var(--s-sm); }
.legal p { color: var(--ink); }

/* ---- responsive ---- */
@media (max-width: 1068px) {
  :root { --section: 72px; }
  h1 { font-size: 44px; }
  .nav-links { display: none; }
  .line { grid-template-columns: repeat(2, 1fr); }
  .step { gap: 40px; }
}
@media (max-width: 834px) {
  .hero { display: block; min-height: 0; background: var(--canvas); }
  .hero-img { position: static; height: auto; aspect-ratio: 4 / 3; object-position: 72% 50%; }
  .hero-inner { padding-top: 40px; padding-bottom: 56px; }
  .hero-copy, .hero .lead { color: var(--ink); }
  .hero .lead { color: var(--ink-muted); }
  .hero .eyebrow { color: var(--action); }
  .hero .subscribe .field-row { background: var(--surface-input); border-color: var(--hairline); }
  .hero .input { color: var(--ink); }
  .hero .btn { background: var(--action); }
  .hero .form-note { color: var(--ink-muted); }
  .hero .form-note a, .hero .form-status.ok { color: var(--action); }
  .hero .form-status.err { color: var(--error); }
  :root[data-theme="dark"] .hero .btn { color: #0B2724; }
  .step, .step-flip { grid-template-columns: 1fr; gap: var(--s-lg); }
  .step-flip .step-media { order: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .shelf-copy { position: static; padding: 40px var(--gutter) 0; background: var(--canvas); color: var(--ink); }
  .shelf-copy .lead { color: var(--ink-muted); }
  .shelf { display: flex; flex-direction: column-reverse; background: var(--canvas); }
  .shelf-img { aspect-ratio: 4 / 3; object-position: 40% 50%; }
}
@media (prefers-color-scheme: dark) and (max-width: 834px) {
  :root:not([data-theme="light"]) .hero .btn { color: #0B2724; }
}
@media (max-width: 640px) {
  :root { --section: 56px; --gutter: 16px; }
  h1 { font-size: 36px; }
  h2, .problem h2 { font-size: 30px; }
  .lead { font-size: 19px; }
  .step-copy h3 { font-size: 26px; }
  .cards, .line { grid-template-columns: 1fr; }
  .header-end .btn-small { display: none; }
  .legal h1 { font-size: 34px; }
}
@media (max-width: 420px) {
  h1 { font-size: 32px; }
  .field-row { flex-direction: column; border-radius: var(--r-lg); padding: 8px; }
  .input { min-height: 44px; }
  .btn { width: 100%; }
}
