/* ==========================================================================
   hemhal.app — marketing site stylesheet
   Brand source of truth: packages/hemhal_ui (app_palette / app_typography).
   Dark-ink premium theme: #0D0B0A ground + warm sunset accents.
   ========================================================================== */

/* ---- Fonts (self-hosted, variable 200–800) ------------------------------ */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-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;
}

/* ---- Design tokens ------------------------------------------------------- */
:root {
  /* palette — mirrors app_palette.dart */
  --ink-950: #0d0b0a;
  --ink-900: #1a1613;
  --ink-850: #211c18;
  --ink-800: #2a2521;
  --neutral-100: #f4f0ec;
  --neutral-200: #e9e3dc;
  --neutral-300: #d8d0c6;
  --neutral-400: #b3a89c;
  --neutral-500: #8a7e72;
  --brand-300: #feb477;
  --brand-400: #fea45a;
  --brand-500: #fe8d43;
  --brand-600: #f2761f;
  --pink-500: #ff5e7e;
  --pink-300: #ff8da3;
  --violet-500: #7c6fe8;
  --violet-300: #b3a8ff;
  --amber-400: #ffa94d;
  --success: #34c77b;
  --info: #6aa0ff;

  --grad-sunset: linear-gradient(100deg, var(--amber-400) 0%, var(--brand-500) 45%, var(--pink-500) 100%);

  /* surfaces */
  --bg: var(--ink-950);
  --surface: #161311;
  --surface-2: #1e1915;
  --line: rgba(244, 240, 236, 0.09);
  --line-strong: rgba(244, 240, 236, 0.16);

  /* text */
  --text: var(--neutral-100);
  --text-2: var(--neutral-400);
  --text-3: var(--neutral-500);

  /* radii — mirrors app_radii.dart */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --container: 1120px;
  --pad-x: 20px;

  --shadow-card: 0 24px 60px -24px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 12px 48px -12px rgba(254, 141, 67, 0.38);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset / base -------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--brand-400);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
::selection {
  background: rgba(254, 141, 67, 0.35);
  color: var(--neutral-100);
}
:focus-visible {
  outline: 2px solid var(--brand-400);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--brand-500);
  color: var(--ink-950);
  font-weight: 700;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 12px;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 28px;
  border: 0;
  border-radius: var(--r-pill);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
.btn-primary {
  background: var(--grad-sunset);
  color: #241002;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  box-shadow: 0 18px 56px -12px rgba(254, 141, 67, 0.55);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--brand-400);
  color: var(--brand-300);
}
.btn-sm {
  min-height: 42px;
  padding: 8px 20px;
  font-size: 14px;
}

/* Waitlist form (pre-launch) */
.waitlist {
  max-width: 480px;
}
.waitlist-form {
  display: flex;
  gap: 10px;
  padding: 6px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.waitlist-form:focus-within {
  border-color: var(--brand-400);
  box-shadow: 0 0 0 4px rgba(254, 141, 67, 0.14);
}
.waitlist-form input[type='email'] {
  flex: 1;
  min-width: 0;
  padding: 12px 12px 12px 18px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.waitlist-form input[type='email']::placeholder {
  color: var(--text-3);
}
.waitlist-form input[type='email']:focus {
  outline: none;
}
.waitlist-form .btn {
  min-height: 48px;
  padding: 10px 24px;
  flex: none;
}
/* Honeypot — hidden from humans, present for bots. */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.waitlist-note {
  margin-top: 12px;
  color: var(--text-3);
  font-size: 12.5px;
  line-height: 1.5;
}
.waitlist-note a {
  color: var(--text-2);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.waitlist-msg {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  display: none;
}
.waitlist-msg.ok {
  display: block;
  color: var(--success);
}
.waitlist-msg.err {
  display: block;
  color: #ff6166;
}
/* mini "coming soon" store chips under the form */
.store-soon {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}
.store-soon li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(244, 240, 236, 0.04);
  color: var(--text-3);
  font-size: 13px;
  font-weight: 700;
}
.store-soon svg {
  width: 15px;
  height: 15px;
  opacity: 0.75;
}
/* CTA band variants */
.cta-band .waitlist {
  margin: 32px auto 0;
}
.cta-band .waitlist-form {
  background: rgba(13, 11, 10, 0.92);
  border-color: rgba(13, 11, 10, 0.5);
}
.cta-band .waitlist-note {
  color: rgba(36, 16, 2, 0.7);
}
.cta-band .waitlist-note a {
  color: rgba(36, 16, 2, 0.9);
}
.cta-band .waitlist-msg.ok {
  color: #0c5a34;
}
.cta-band .waitlist-msg.err {
  color: #7a1013;
}
.cta-band .store-soon {
  justify-content: center;
}
.cta-band .store-soon li {
  border-color: rgba(13, 11, 10, 0.35);
  background: rgba(13, 11, 10, 0.14);
  color: rgba(36, 16, 2, 0.85);
}

/* Store buttons */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 22px;
  border-radius: var(--r-md);
  background: var(--neutral-100);
  color: var(--ink-950);
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn-store:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -16px rgba(244, 240, 236, 0.35);
}
.btn-store svg {
  width: 26px;
  height: 26px;
  flex: none;
}
.btn-store .store-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}
.btn-store .store-label small {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.7;
}
.btn-store .store-label strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.btn-store[aria-disabled='true'] {
  background: var(--surface-2);
  color: var(--text-2);
  border-color: var(--line);
  cursor: default;
  pointer-events: none;
}

/* ---- Header -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 11, 10, 0.78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.brand:hover {
  text-decoration: none;
}
.brand svg {
  width: 30px;
  height: 30px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.site-nav a {
  padding: 9px 14px;
  border-radius: var(--r-pill);
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 600;
  transition: color 0.2s, background 0.2s;
}
.site-nav a:hover {
  text-decoration: none;
  color: var(--text);
  background: rgba(244, 240, 236, 0.06);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-switch {
  padding: 9px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 700;
}
.lang-switch:hover {
  text-decoration: none;
  color: var(--brand-300);
  border-color: var(--brand-400);
}
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg {
  width: 22px;
  height: 22px;
}
.nav-toggle .icon-close {
  display: none;
}
.nav-open .nav-toggle .icon-open {
  display: none;
}
.nav-open .nav-toggle .icon-close {
  display: block;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }
  /* While the menu is open, drop the header's backdrop blur: a fixed child +
     backdrop-filter ancestor composites the blurred page over the menu. */
  .nav-open .site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--ink-950);
  }
  .site-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 16px var(--pad-x) 24px;
    background: var(--ink-950);
    border-bottom: 1px solid var(--line);
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    transition: 0.28s var(--ease);
  }
  .nav-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .site-nav a {
    padding: 14px 16px;
    font-size: 16px;
  }
  .header-actions .btn {
    display: none;
  }
}

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(64px, 10vw, 120px) 0 clamp(48px, 7vw, 96px);
  overflow: clip;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.32;
}
.blob-a {
  width: 560px;
  height: 560px;
  left: -180px;
  top: -120px;
  background: radial-gradient(circle at 40% 40%, var(--brand-600), transparent 65%);
}
.blob-b {
  width: 520px;
  height: 520px;
  right: -160px;
  top: 12%;
  background: radial-gradient(circle at 60% 40%, rgba(255, 94, 126, 0.75), transparent 65%);
}
.blob-c {
  width: 460px;
  height: 460px;
  right: 24%;
  bottom: -260px;
  background: radial-gradient(circle at 50% 50%, rgba(124, 111, 232, 0.55), transparent 65%);
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: rgba(254, 141, 67, 0.08);
  color: var(--brand-300);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.hero-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(40px, 6vw, 68px);
  letter-spacing: -0.032em;
}
.hero-copy h1 .grad {
  background: var(--grad-sunset);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy .lead {
  max-width: 34em;
  color: var(--text-2);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
}
.hero-copy .store-buttons {
  margin-top: 32px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(244, 240, 236, 0.04);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
}
.hero-trust .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  flex: none;
}

@media (max-width: 960px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    margin-top: 24px;
  }
}

/* ---- Phone mockup -------------------------------------------------------- */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 540px;
}
.phone {
  position: relative;
  width: min(320px, 82vw);
  aspect-ratio: 9 / 19;
  border-radius: 46px;
  background: linear-gradient(160deg, #241f1a, #12100e);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card), 0 0 0 10px rgba(244, 240, 236, 0.03);
  padding: 12px;
}
.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 36px;
  background: linear-gradient(180deg, #14110f 0%, #0d0b0a 70%);
  border: 1px solid rgba(244, 240, 236, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 18px 16px 16px;
}
.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 22px;
  border-radius: var(--r-pill);
  background: #060505;
}
.phone-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 34px 2px 14px;
  color: var(--text);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.phone-appbar svg {
  width: 20px;
  height: 20px;
  color: var(--brand-400);
}
.mood-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  padding: 20px 18px 16px;
  background: linear-gradient(170deg, rgba(254, 141, 67, 0.16) 0%, rgba(255, 94, 126, 0.1) 45%, rgba(22, 19, 17, 0.9) 100%);
  border: 1px solid rgba(254, 164, 90, 0.28);
}
.mood-card .match-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(52, 199, 123, 0.16);
  border: 1px solid rgba(52, 199, 123, 0.35);
  color: var(--success);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.mood-card .mood-emoji {
  font-size: 64px;
  line-height: 1;
  margin: auto 0 14px;
}
.mood-card .mood-text {
  color: var(--neutral-200);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}
.mood-card .mood-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.mood-card .mood-tags span {
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: rgba(244, 240, 236, 0.07);
  border: 1px solid rgba(244, 240, 236, 0.12);
  color: var(--neutral-300);
  font-size: 11.5px;
  font-weight: 700;
}
.mood-card .mood-person {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(244, 240, 236, 0.1);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
}
.mood-card .mood-person .presence {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}
.phone-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding-top: 16px;
}
.phone-actions .action {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
}
.phone-actions .action.like {
  background: var(--grad-sunset);
  border: 0;
  box-shadow: var(--shadow-glow);
}

/* floating mood chips */
.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: rgba(30, 25, 21, 0.9);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--neutral-200);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: floaty 7s ease-in-out infinite;
}
.float-chip .em {
  font-size: 18px;
}
.chip-1 {
  top: 14%;
  left: -3%;
  animation-delay: 0s;
}
.chip-2 {
  top: 30%;
  right: -4%;
  animation-delay: -2.4s;
}
.chip-3 {
  bottom: 22%;
  left: -5%;
  animation-delay: -4.2s;
}
.chip-4 {
  bottom: 7%;
  right: -4%;
  animation-delay: -5.6s;
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}
@media (max-width: 480px) {
  .chip-1,
  .chip-3 {
    left: -6px;
  }
  .chip-2,
  .chip-4 {
    right: -6px;
  }
}

/* ---- Mood marquee -------------------------------------------------------- */
.mood-marquee {
  border-block: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.mood-marquee .track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 44s linear infinite;
}
.mood-marquee .chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---- Sections ------------------------------------------------------------ */
.section {
  padding: clamp(64px, 9vw, 120px) 0;
  position: relative;
}
.section-head {
  max-width: 640px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--brand-400);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.grad-text {
  background: var(--grad-sunset);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-head h2,
.split-title {
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.028em;
}
.section-head .sub {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 17px;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.step:hover {
  border-color: rgba(254, 164, 90, 0.4);
  transform: translateY(-4px);
}
.step .num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(254, 141, 67, 0.12);
  border: 1px solid rgba(254, 141, 67, 0.3);
  color: var(--brand-400);
  font-size: 17px;
  font-weight: 800;
}
.step h3 {
  margin: 18px 0 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.step p {
  color: var(--text-2);
  font-size: 15px;
}
@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.feature {
  padding: 28px 26px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(254, 164, 90, 0.4);
  background: var(--surface-2);
}
.feature .icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  font-size: 24px;
  background: rgba(254, 141, 67, 0.1);
  border: 1px solid rgba(254, 141, 67, 0.22);
}
.feature h3 {
  margin: 18px 0 8px;
  font-size: 18.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.feature p {
  color: var(--text-2);
  font-size: 14.5px;
}
@media (max-width: 960px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* mood deep-dive */
.mood-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.mood-split .checklist {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}
.mood-split .checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--text-2);
  font-size: 15.5px;
}
.mood-split .checklist .check {
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(52, 199, 123, 0.14);
  border: 1px solid rgba(52, 199, 123, 0.35);
  color: var(--success);
  font-size: 13px;
  font-weight: 800;
}
.mood-split .checklist strong {
  color: var(--text);
  font-weight: 700;
}
.composer {
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.composer .composer-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.composer .emoji-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.composer .emoji-opt {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 26px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.composer .emoji-opt.sel {
  background: rgba(254, 141, 67, 0.14);
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(254, 141, 67, 0.15);
}
.composer .mood-input {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--neutral-200);
  font-size: 14.5px;
  line-height: 1.5;
}
.composer .mood-input .caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  vertical-align: -0.15em;
  background: var(--brand-400);
  animation: blink 1.1s steps(2) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.composer .composer-cta {
  margin-top: 18px;
  width: 100%;
}
.composer .composer-note {
  margin-top: 12px;
  text-align: center;
  color: var(--text-3);
  font-size: 12.5px;
}
@media (max-width: 960px) {
  .mood-split {
    grid-template-columns: 1fr;
  }
}

/* safety */
.safety-card {
  border-radius: 32px;
  border: 1px solid var(--line);
  background: radial-gradient(120% 160% at 0% 0%, rgba(254, 141, 67, 0.1) 0%, rgba(22, 19, 17, 0.6) 45%), var(--surface);
  padding: clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
}
.safety-title {
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.028em;
}
.safety-intro {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 16px;
}
.safety-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}
.safety-list li {
  display: flex;
  gap: 16px;
}
.safety-list .s-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: rgba(244, 240, 236, 0.05);
  border: 1px solid var(--line);
}
.safety-list h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.safety-list p {
  color: var(--text-2);
  font-size: 14px;
}
.safety-links {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 960px) {
  .safety-card {
    grid-template-columns: 1fr;
  }
}

/* FAQ */
.faq {
  max-width: 760px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}
.faq details {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.25s;
}
.faq details[open] {
  border-color: rgba(254, 164, 90, 0.35);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--brand-400);
  font-size: 18px;
  font-weight: 600;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq .faq-body {
  padding: 0 24px 22px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.65;
}
.faq .faq-body a {
  font-weight: 600;
}

/* CTA band */
.cta-band {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  padding: clamp(48px, 7vw, 88px) clamp(24px, 5vw, 72px);
  text-align: center;
  background: var(--grad-sunset);
  color: #241002;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 140% at 50% -20%, rgba(255, 255, 255, 0.35), transparent 55%);
  pointer-events: none;
}
.cta-band h2 {
  position: relative;
  font-size: clamp(30px, 4.4vw, 48px);
  letter-spacing: -0.03em;
}
.cta-band p {
  position: relative;
  margin: 16px auto 0;
  max-width: 34em;
  font-size: 17px;
  font-weight: 600;
  color: rgba(36, 16, 2, 0.82);
}
.cta-band .store-buttons {
  position: relative;
  justify-content: center;
  margin-top: 32px;
}
.cta-band .btn-store {
  background: var(--ink-950);
  color: var(--neutral-100);
}
.cta-band .btn-store:hover {
  box-shadow: 0 18px 44px -14px rgba(13, 11, 10, 0.55);
}
.cta-band .btn-store[aria-disabled='true'] {
  background: rgba(13, 11, 10, 0.35);
  color: rgba(13, 11, 10, 0.75);
  border: 0;
}

/* ---- Footer --------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 6vw, 72px) 0 40px;
  background: #0a0908;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.footer-brand p {
  margin-top: 16px;
  max-width: 30em;
  color: var(--text-2);
  font-size: 14px;
}
.footer-col h3 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 18px;
}
.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.footer-col a {
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 600;
}
.footer-col a:hover {
  color: var(--brand-300);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 13px;
}
.footer-bottom .legal-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-bottom a {
  color: var(--text-3);
  font-weight: 600;
}
.footer-bottom a:hover {
  color: var(--brand-300);
}
@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Reveal animations ----------------------------------------------------
   Elements start visible; .js-reveal-init (set by JS) arms the animation, so
   no-JS users and crawlers always see full content. */
.js-reveal-init .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js-reveal-init .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---- Interstitial (app deep-link fallback) -------------------------------- */
.interstitial {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 40px var(--pad-x);
  text-align: center;
}
.interstitial .card {
  max-width: 460px;
  padding: 48px 36px;
  border-radius: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.interstitial .mark {
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
}
.interstitial h1 {
  font-size: 26px;
  letter-spacing: -0.02em;
}
.interstitial p {
  margin: 14px 0 28px;
  color: var(--text-2);
  font-size: 15px;
}
.interstitial .store-buttons {
  justify-content: center;
}
.interstitial .store-buttons,
.interstitial .store-soon {
  justify-content: center;
}
.interstitial .home-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--text-3);
  font-size: 13.5px;
  font-weight: 600;
}

/* ---- Simple legal document page --------------------------------------------- */
.legal-doc {
  padding: clamp(48px, 7vw, 88px) 0;
}
.legal-doc .container {
  max-width: 720px;
}
.legal-doc .brand {
  margin-bottom: 40px;
}
.legal-doc h1 {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 10px;
}
.legal-doc .doc-meta {
  color: var(--text-3);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 28px;
}
.legal-doc h2 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 30px 0 10px;
}
.legal-doc p {
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.7;
  margin-bottom: 14px;
}
.legal-doc strong {
  color: var(--text);
}
.legal-doc hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 36px 0;
}

/* ---- Error page ------------------------------------------------------------ */
.error-hero {
  min-height: 70dvh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px var(--pad-x);
}
.error-hero .code {
  font-size: clamp(80px, 16vw, 140px);
  font-weight: 800;
  letter-spacing: -0.05em;
  background: var(--grad-sunset);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.error-hero h1 {
  margin-top: 10px;
  font-size: clamp(22px, 3vw, 30px);
}
.error-hero p {
  margin: 14px auto 30px;
  max-width: 30em;
  color: var(--text-2);
}

/* ---- Motion safety ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .mood-marquee .track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
  }
  .js-reveal-init .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Coming-soon splash (the site root while pre-launch). Single focal screen:
   atmospheric glow + brand + waitlist. Rich landing lives at /nasil-calisir.
   ========================================================================== */
.splash {
  position: relative;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: clip;
  isolation: isolate;
}
.splash-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.splash-bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.36;
  animation: splashdrift 18s ease-in-out infinite;
}
.splash-bg .s-a {
  width: 640px;
  height: 640px;
  top: -160px;
  left: -140px;
  background: radial-gradient(circle at 40% 40%, var(--brand-600), transparent 62%);
}
.splash-bg .s-b {
  width: 560px;
  height: 560px;
  top: 8%;
  right: -160px;
  background: radial-gradient(circle at 60% 40%, rgba(255, 94, 126, 0.8), transparent 62%);
  animation-delay: -6s;
}
.splash-bg .s-c {
  width: 720px;
  height: 720px;
  left: 50%;
  bottom: -420px;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 40%, rgba(124, 111, 232, 0.55), transparent 60%);
  animation-delay: -11s;
}
@keyframes splashdrift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(24px, -20px); }
}
.splash-bg .s-c {
  /* keep the bottom glow centred while drifting vertically */
  animation-name: splashdrift-c;
}
@keyframes splashdrift-c {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-26px); }
}

/* faint floating mood emojis — the product's soul, dialled right down */
.splash-emoji {
  position: absolute;
  z-index: -1;
  font-size: 40px;
  opacity: 0.14;
  filter: saturate(1.1);
  animation: floaty 9s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
}
.splash-emoji.e1 { top: 18%; left: 12%; animation-delay: 0s; }
.splash-emoji.e2 { top: 26%; right: 14%; font-size: 34px; animation-delay: -2.5s; }
.splash-emoji.e3 { bottom: 24%; left: 16%; font-size: 30px; animation-delay: -4.5s; }
.splash-emoji.e4 { bottom: 20%; right: 12%; animation-delay: -6.5s; }
@media (max-width: 640px) {
  .splash-emoji.e1, .splash-emoji.e3 { left: 4%; }
  .splash-emoji.e2, .splash-emoji.e4 { right: 4%; }
}

/* top bar */
.splash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad-x);
  max-width: 1120px;
  width: 100%;
  margin-inline: auto;
}
.splash-top .brand svg { width: 28px; height: 28px; }
.splash-top .brand { font-size: 20px; }

/* centre stack */
.splash-main {
  display: grid;
  place-items: center;
  padding: 24px var(--pad-x) 32px;
}
.splash-inner {
  width: 100%;
  max-width: 560px;
  text-align: center;
}
.splash-inner .eyebrow {
  margin-bottom: 26px;
}
.splash-inner h1 {
  font-size: clamp(40px, 8vw, 72px);
  letter-spacing: -0.035em;
  line-height: 1.04;
}
.splash-inner h1 .grad {
  background: var(--grad-sunset);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.splash-inner .lead {
  margin: 20px auto 0;
  max-width: 30em;
  color: var(--text-2);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.6;
}
.splash-inner .btn {
  margin-top: 32px;
}
.splash-inner .waitlist {
  margin: 34px auto 0;
}
.splash-inner .store-soon {
  justify-content: center;
  margin-top: 22px;
}
/* prominent centred logo lockup */
.splash-brand-big {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.splash-mark {
  width: clamp(76px, 13vw, 112px);
  height: auto;
  filter: drop-shadow(0 10px 44px rgba(254, 141, 67, 0.5));
}
.splash-word {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}

/* social row */
.splash-social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}
.splash-social a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-2);
  border: 1px solid var(--line-strong);
  background: rgba(244, 240, 236, 0.04);
  transition: transform 0.25s var(--ease), color 0.2s, border-color 0.2s, background 0.2s;
}
.splash-social a:hover {
  text-decoration: none;
  transform: translateY(-3px);
  color: var(--brand-300);
  border-color: var(--brand-400);
  background: rgba(254, 141, 67, 0.1);
}
.splash-social svg {
  width: 20px;
  height: 20px;
}

/* footer */
.splash-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  padding: 22px var(--pad-x);
  color: var(--text-3);
  font-size: 12.5px;
}
.splash-foot a {
  color: var(--text-3);
  font-weight: 600;
}
.splash-foot a:hover { color: var(--brand-300); }
.splash-foot .sep { opacity: 0.4; }

@media (prefers-reduced-motion: reduce) {
  .splash-bg .blob, .splash-emoji { animation: none; }
}
