/* =========================================================
   Talove — brand tokens
   ========================================================= */
:root {
  --coral: #D9694E;
  --coral-deep: #C0543B;
  --gold: #E0A85A;
  --ink: #20160F;
  --milk: #FBF6EC;
  --cream: #F7F1E7;

  --ink-70: rgba(32, 22, 15, 0.7);
  --ink-55: rgba(32, 22, 15, 0.55);
  --ink-35: rgba(32, 22, 15, 0.35);
  --milk-80: rgba(251, 246, 236, 0.8);
  --milk-60: rgba(251, 246, 236, 0.6);
  --milk-40: rgba(251, 246, 236, 0.4);

  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1120px;
  --pad: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--milk);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 4px;
}
code {
  font-family: ui-monospace, Menlo, monospace;
  background: rgba(217, 105, 78, 0.12);
  color: var(--coral-deep);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.9em;
}

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 150px) var(--pad);
}

.section-inner--split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.kicker, .eyebrow {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin: 0 0 18px;
}
.kicker--dark { color: var(--gold); }

.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  max-width: 16ch;
}
.h2 em { color: var(--coral); font-style: italic; font-weight: 400; }
.h2--dark { color: var(--milk); max-width: 20ch; }
.h2--dark em { color: var(--gold); }

.lead {
  font-size: clamp(16px, 1.6vw, 18.5px);
  line-height: 1.7;
  color: var(--ink-70);
  max-width: 46ch;
}
.lead-center {
  font-size: clamp(16px, 1.6vw, 18.5px);
  line-height: 1.7;
  color: var(--ink-70);
  max-width: 56ch;
  margin: 0 auto 56px;
  text-align: center;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.btn {
  --btn-h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--btn-h);
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.btn--primary {
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-deep) 100%);
  color: var(--milk);
  box-shadow: 0 12px 30px -10px rgba(192, 84, 59, 0.55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(192, 84, 59, 0.65); }
.btn--lg { --btn-h: 60px; padding: 0 32px; font-size: 16.5px; }
.btn--ghost {
  background: transparent;
  border: 1.5px solid rgba(32, 22, 15, 0.16);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--coral); color: var(--coral-deep); }
.btn__arrow { transition: transform 0.4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--pad);
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(251, 246, 236, 0.65);
  border-bottom: 1px solid rgba(32, 22, 15, 0.06);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.nav--scrolled {
  background: rgba(251, 246, 236, 0.86);
  border-color: rgba(32, 22, 15, 0.08);
  box-shadow: 0 18px 44px -28px rgba(32, 22, 15, 0.45);
}
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__mark { width: 30px; height: 30px; }
.nav__word { font-family: var(--serif); font-weight: 500; font-size: 21px; }
.btn--nav { --btn-h: 42px; font-size: 13.5px; padding: 0 20px; }

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(132px, 18vh, 180px) var(--pad) clamp(88px, 10vh, 120px);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 900px;
  background:
    radial-gradient(circle at 30% 20%, rgba(224, 168, 90, 0.32), transparent 55%),
    radial-gradient(circle at 72% 32%, rgba(217, 105, 78, 0.28), transparent 55%);
  filter: blur(10px);
  z-index: 0;
  animation: drift 18s ease-in-out infinite alternate;
}
.hero__glow--dark {
  background:
    radial-gradient(circle at 25% 25%, rgba(224, 168, 90, 0.22), transparent 55%),
    radial-gradient(circle at 75% 40%, rgba(217, 105, 78, 0.24), transparent 55%);
}
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(2%, 3%) scale(1.06); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 860px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__mark-wrap { display: flex; justify-content: center; margin-bottom: clamp(28px, 4vh, 40px); }
.hero__mark { width: 84px; height: 84px; }
.draw { stroke-dashoffset: 0; }
html.js-motion .draw { stroke-dasharray: 104; stroke-dashoffset: 104; }

.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 auto 22px;
  max-width: none;
}
.hero__title .line { display: block; white-space: nowrap; }
html.js-motion .hero__title .line { overflow: hidden; }
.hero__title em { color: var(--coral); font-style: italic; font-weight: 400; }

.hero__lead {
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.7;
  color: var(--ink-70);
  max-width: 34ch;
  margin: 0 auto 28px;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: min(100%, 440px);
}
.hero__cta .btn { min-width: min(100%, 320px); }
.hero__hint {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-35);
  max-width: 32ch;
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(32,22,15,0.22);
  border-radius: 12px;
  z-index: 1;
}
.scroll-cue span {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 3px;
  background: var(--coral);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { opacity: 1; transform: translateY(0); } 70% { opacity: 0; transform: translateY(10px); } 100% { opacity: 0; } }

.pain { background: var(--cream); }
.pain .section-inner { text-align: center; padding-top: clamp(90px, 13vw, 160px); padding-bottom: clamp(90px, 13vw, 160px); }
.pain__line {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 3.4vw, 34px);
  color: var(--ink-55);
  margin: 0 0 20px;
}
.pain__resolve {
  margin-top: 48px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(19px, 2.4vw, 25px);
  line-height: 1.5;
  color: var(--ink);
  max-width: 46ch;
  margin-inline: auto;
}
.pain__resolve em { color: var(--coral); }

.demo { background: var(--milk); }
.demo .h2 { max-width: 20ch; margin-inline: auto; text-align: center; }
.demo .kicker { text-align: center; }

.chatcard {
  max-width: 560px;
  margin: 56px auto 0;
  background: #FFFFFF;
  border: 1px solid rgba(32, 22, 15, 0.08);
  border-radius: 24px;
  box-shadow: 0 30px 70px -30px rgba(32, 22, 15, 0.25);
  overflow: hidden;
}
.chatcard__head {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(32, 22, 15, 0.06);
}
.chatcard__mark { width: 30px; height: 30px; }
.chatcard__name { font-weight: 700; font-size: 14.5px; }
.chatcard__status { font-size: 12px; color: var(--ink-35); font-family: ui-monospace, monospace; }

.chatcard__body { padding: 26px 22px 32px; min-height: 210px; }
.bubble {
  max-width: 88%;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 14.5px;
  line-height: 1.55;
  margin-bottom: 14px;
  opacity: 1;
}
html.js-motion .bubble { opacity: 0; }
.bubble--user {
  margin-left: auto;
  background: rgba(192, 84, 59, 0.1);
  color: var(--coral-deep);
  border-bottom-right-radius: 6px;
}
.bubble--bot {
  background: var(--cream);
  color: var(--ink);
  border-bottom-left-radius: 6px;
}
.typing {
  display: none;
  gap: 5px;
  padding: 12px 16px;
  background: var(--cream);
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  width: fit-content;
}
html.js-motion .typing {
  display: inline-flex;
  opacity: 0;
}
.typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink-35);
  animation: bounce 1.2s ease-in-out infinite;
}
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

.feature-grid {
  margin-top: 64px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.feature-card {
  background: var(--cream);
  border: 1px solid rgba(32, 22, 15, 0.06);
  border-radius: 18px;
  padding: 26px 24px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(32,22,15,0.22); }
.feature-card__tag {
  display: inline-block; font-family: ui-monospace, monospace; font-size: 12.5px; font-weight: 700;
  color: var(--coral-deep); background: rgba(217, 105, 78, 0.12);
  padding: 4px 10px; border-radius: 8px; margin-bottom: 12px;
}
.feature-card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-70); }

.modes { background: var(--cream); }
.modes .h2, .modes .kicker { text-align: center; margin-inline: auto; }

.modes__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.mode-card {
  display: flex; align-items: center; gap: 10px;
  background: var(--milk);
  border: 1px solid rgba(32, 22, 15, 0.08);
  border-radius: 16px;
  padding: 18px 18px;
  font-weight: 600; font-size: 14.5px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.mode-card:hover { transform: translateY(-3px); border-color: var(--coral); }
.mode-card__dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--coral)); flex-shrink: 0; }

.trust { position: relative; background: var(--ink); overflow: hidden; }
.trust .section-inner { position: relative; z-index: 1; }
.trust .kicker, .trust .h2 { text-align: center; margin-inline: auto; }

.trust__grid {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.trust-card {
  background: rgba(251, 246, 236, 0.045);
  border: 1px solid rgba(251, 246, 236, 0.1);
  border-radius: 20px;
  padding: 32px 28px;
  color: var(--milk-80);
}
.trust-card__icon { width: 36px; height: 36px; margin-bottom: 18px; }
.trust-card__icon svg { width: 100%; height: 100%; }
.trust-card h3 {
  font-family: var(--serif); font-weight: 500; font-size: 19px; color: var(--milk);
  margin: 0 0 10px;
}
.trust-card p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--milk-60); }

.privacy { background: var(--milk); }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.checklist li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15.5px; font-weight: 600; color: var(--ink);
  background: var(--cream);
  border-radius: 14px;
  padding: 16px 18px;
}
.checklist__mark {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--coral));
  color: #fff; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

.final {
  position: relative;
  background: var(--cream);
  text-align: center;
  overflow: hidden;
}
.final .section-inner { padding-top: clamp(100px, 14vw, 170px); padding-bottom: clamp(100px, 14vw, 170px); }
.final__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.final__mark { width: 56px; height: 56px; margin-bottom: 26px; }
.final__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(28px, 4.6vw, 48px); line-height: 1.2;
  margin: 0 0 22px; max-width: 18ch;
}
.final__title em { color: var(--coral); font-style: italic; font-weight: 400; }
.final .hero__lead { margin-bottom: 36px; }

.footer {
  background: var(--ink);
  color: var(--milk-60);
  text-align: center;
  padding: 64px var(--pad) 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.footer__mark { width: 34px; height: 34px; margin-bottom: 10px; }
.footer__word { font-family: var(--serif); font-size: 22px; color: var(--milk); }
.footer__slogan { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 14px; margin-bottom: 18px; }
.footer__legal { font-size: 12.5px; color: var(--milk-40); max-width: 40ch; }
.footer__links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 4px;
}
.footer__link {
  font-size: 13px;
  color: var(--milk-60);
  border-bottom: 1px solid rgba(251, 246, 236, 0.22);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.footer__link:hover {
  color: var(--milk);
  border-color: rgba(251, 246, 236, 0.55);
}

[data-reveal] { opacity: 1; transform: none; }
html.js-motion [data-reveal] { opacity: 0; transform: translateY(28px); }
html.js-motion [data-reveal].is-visible { opacity: 1; transform: translateY(0); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }

.privacy-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at 20% 0%, rgba(224, 168, 90, 0.18), transparent 35%),
    radial-gradient(circle at 85% 10%, rgba(217, 105, 78, 0.16), transparent 30%),
    var(--milk);
}
.privacy-page__main {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(132px, 18vh, 180px) var(--pad) 96px;
}
.privacy-card {
  background: rgba(251, 246, 236, 0.88);
  border: 1px solid rgba(32, 22, 15, 0.08);
  border-radius: 32px;
  box-shadow: 0 30px 80px -40px rgba(32, 22, 15, 0.35);
  padding: clamp(32px, 5vw, 56px);
  backdrop-filter: blur(12px);
}
.privacy-card__eyebrow {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin: 0 0 18px;
}
.privacy-card__title {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  max-width: 12ch;
}
.privacy-card__title em { color: var(--coral); font-style: italic; font-weight: 400; }
.privacy-card__lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-70);
  max-width: 56ch;
  margin: 0 0 28px;
}
.privacy-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 14px;
  color: var(--ink-70);
  line-height: 1.7;
}
.privacy-note {
  margin: 28px 0 0;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(217, 105, 78, 0.08);
  color: var(--ink-70);
  line-height: 1.65;
}
.privacy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.privacy-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--coral-deep);
}
.privacy-link-inline {
  color: var(--coral-deep);
  border-bottom: 1px solid rgba(192, 84, 59, 0.28);
}

@media (max-width: 860px) {
  .section-inner--split { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .modes__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__grid { grid-template-columns: 1fr; }
  .nav__word { display: none; }
  .hero__lead { max-width: 31ch; }
}

@media (max-width: 640px) {
  .nav { padding-top: 16px; padding-bottom: 16px; }
  .hero {
    justify-content: flex-start;
    min-height: auto;
    padding-top: 116px;
    padding-bottom: 76px;
  }
  .hero__mark { width: 72px; height: 72px; }
  .hero__title {
    font-size: clamp(32px, 10.5vw, 44px);
    line-height: 1.1;
    max-width: 12ch;
    margin-bottom: 16px;
  }
  .hero__title .line { white-space: normal; }
  .hero__lead {
    max-width: 24ch;
    margin-bottom: 18px;
  }
  .hero__hint {
    max-width: 24ch;
    font-size: 12.5px;
  }
  .scroll-cue { display: none; }
  .privacy-page__main { padding-top: 120px; }
}

@media (max-width: 480px) {
  .modes__grid { grid-template-columns: 1fr; }
  .hero__cta { width: 100%; max-width: 350px; }
  .btn--lg { width: 100%; }
  .btn--nav { padding: 0 18px; font-size: 13px; }
  .footer__links { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
