@font-face { font-family: "Elms Sans"; src: url("fonts/ElmsSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Elms Sans"; src: url("fonts/ElmsSans-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Elms Sans"; src: url("fonts/ElmsSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Elms Sans"; src: url("fonts/ElmsSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0B080B;
  --card: #1F1A1F;
  --raised: #2C252C;
  --ink: #FFFFFF;
  --muted: #B3ABB1;
  --faint: #7E747C;
  --line: rgba(255, 255, 255, .08);
  --rim: rgba(255, 255, 255, .07);
  --wine: #6B3442;
  --rose: #D7ADB5;
  --warning: #FFB340;
  --green: #4CD964;
  --radius: 22px;
  --bar-h: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 "Elms Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.08; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.rose { color: var(--rose); }

/* Header */
.topbar { position: sticky; top: 0; z-index: 50; height: var(--bar-h); background: rgba(11, 8, 11, .78); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--line); }
.top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 100%; }
.menu { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 500; }
.menu a { color: var(--muted); text-decoration: none; transition: color .15s; }
.menu a:hover { color: var(--ink); }
.top-right { display: flex; align-items: center; gap: 12px; }
.top-cta { background: var(--wine); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 999px; transition: filter .15s; }
.top-cta:hover { filter: brightness(1.15); }
section[id], header[id] { scroll-margin-top: var(--bar-h); }
@media (max-width: 820px) { .menu { display: none; } }
@media (max-width: 380px) { .top-cta { display: none; } }
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 22px; letter-spacing: -.01em; }
.wordmark img { width: 34px; height: 34px; border-radius: 9px; }
.lang { display: flex; padding: 3px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rim); font-size: 13px; font-weight: 600; }
.lang a, .lang span { padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.lang span { background: var(--raised); color: var(--ink); }

/* Hero */
.hero { position: relative; overflow: hidden; padding-bottom: 72px; }
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -30% auto;
  height: 120%;
  background:
    radial-gradient(45% 40% at 70% 62%, rgba(107, 52, 66, .55), transparent 70%),
    radial-gradient(35% 30% at 20% 10%, rgba(107, 52, 66, .25), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; padding-top: 48px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(215, 173, 181, .1); color: var(--rose); font-size: 14px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(215, 173, 181, .18); }
.hero h1 { margin: 20px 0 18px; font-size: clamp(42px, 9vw, 68px); }
.lead { max-width: 30em; color: var(--muted); font-size: 19px; }
.cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin-top: 30px; }
.badge img { height: 54px; width: auto; }
.cta small { color: var(--faint); font-size: 14px; }

/* Phone */
.phone-stage { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 300px;
  padding: 10px;
  border-radius: 52px;
  background: linear-gradient(160deg, #3a3238, #141014 40%, #0d0a0d);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 90px rgba(0, 0, 0, .6), 0 0 120px rgba(107, 52, 66, .45);
}
.screen { position: relative; height: 610px; border-radius: 42px; background: var(--bg); padding: 0 16px; }
.island { position: absolute; top: 11px; left: 50%; width: 88px; height: 26px; margin-left: -44px; border-radius: 20px; background: #000; }
.status { display: flex; justify-content: space-between; align-items: center; height: 48px; padding: 6px 14px 0; font-size: 14px; font-weight: 600; }
.status i { display: inline-block; width: 24px; height: 11px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); position: relative; }
.status i::after { content: ""; position: absolute; inset: 2px 8px 2px 2px; border-radius: 1px; background: #fff; }
.app-head { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.app-head b { font-size: 28px; letter-spacing: -.02em; }
.round { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-left: 8px; border-radius: 50%; background: var(--raised); box-shadow: inset 0 1px 0 var(--rim); }
.round svg { width: 17px; height: 17px; }
.month { margin: 14px 0 12px; text-align: center; font-size: 14px; font-weight: 600; }
.month em { font-style: normal; color: var(--muted); font-weight: 400; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 11px; color: var(--muted); }
.week div { padding: 6px 0 8px; border-radius: 16px; }
.week b { display: block; margin-top: 3px; color: var(--ink); font-size: 15px; font-weight: 600; }
.week .sel { background: var(--wine); color: rgba(255, 255, 255, .7); }
.week .today b { color: var(--rose); }
.rows { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; }
.row { display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 10px 14px; border-radius: 16px; background: var(--card); box-shadow: inset 0 1px 0 var(--rim), 0 0 0 1px rgba(255, 255, 255, .03); }
.row time { flex: none; width: 44px; font-size: 14px; font-weight: 600; }
.row > span { min-width: 0; }
.row b { display: block; font-size: 14px; font-weight: 600; }
.row small { display: block; overflow: hidden; color: var(--muted); font-size: 11.5px; white-space: nowrap; text-overflow: ellipsis; }
.row.free { justify-content: flex-start; background: transparent; box-shadow: none; border: 1.5px dashed #4a4049; }
.row.free span { flex: 1; text-align: center; padding-right: 42px; color: var(--faint); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.lifted {
  position: relative;
  z-index: 1;
  margin: 2px -40px;
  transform: rotate(-3deg);
  min-height: 72px;
  padding: 14px 22px;
  border-radius: 20px;
  background: #241e24;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 24px 50px rgba(0, 0, 0, .55);
}
.lifted time { width: 68px; font-size: 22px; font-weight: 700; }
.lifted b { font-size: 21px; }
.lifted small { font-size: 15px; }

/* Sections */
section { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(32px, 6vw, 48px); }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }
.card { position: relative; padding: 26px; border-radius: var(--radius); background: var(--card); box-shadow: inset 0 1px 0 var(--rim), 0 0 0 1px rgba(255, 255, 255, .03); }
.card h3 { font-size: 21px; margin-bottom: 8px; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: 16px; }
.grid { display: grid; gap: 14px; }

/* Pain */
.pain .card { padding-top: 22px; }
.quote { display: inline-block; margin-bottom: 18px; padding: 8px 14px; border-radius: 16px 16px 16px 4px; background: var(--raised); font-size: 15px; font-weight: 500; }

/* Steps */
.step { display: grid; gap: 22px; align-content: start; }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px; border-radius: 50%; background: var(--wine); font-size: 15px; font-weight: 700; }
.demo { padding: 16px; border-radius: 18px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; }
.demo-label { margin-bottom: 10px; color: var(--muted); font-size: 12px; font-weight: 600; }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.chip { padding: 8px 0; border-radius: 999px; background: var(--raised); text-align: center; font-weight: 600; box-shadow: inset 0 1px 0 var(--rim); }
.chip.on { background: var(--wine); }
.days { grid-template-columns: repeat(7, 1fr); margin-bottom: 14px; }
.days .chip { padding: 7px 0; font-size: 12px; }
.message { padding: 12px 14px; border-radius: 14px; background: var(--card); font-size: 14px; font-weight: 600; line-height: 1.7; font-variant-numeric: tabular-nums; }
.buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.btn { padding: 10px 0; border-radius: 999px; background: var(--raised); text-align: center; font-weight: 700; }
.btn.primary { background: var(--wine); box-shadow: 0 6px 20px rgba(107, 52, 66, .5); }
.demo .row { min-height: 52px; }
.demo .row + .row { margin-top: 8px; }
.arrow { display: block; margin: 8px auto; color: var(--faint); text-align: center; font-size: 16px; line-height: 1; }

/* How it works: scroll timeline */
.tl { position: relative; --tl-x: 7px; }
.tl-list { list-style: none; margin: 0; padding: 0; }
.tl-line { position: absolute; left: var(--tl-x); top: 10px; bottom: 40px; width: 2px; border-radius: 2px; background: var(--line); }
.tl-fill { display: block; width: 100%; height: var(--tl-p, 0px); border-radius: 2px; background: linear-gradient(var(--wine), var(--rose)); }
.tl-step { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 0 0 72px 44px; }
.tl-text { position: relative; max-width: 30em; }
.tl-dot { position: absolute; left: -44px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #3a3139; box-shadow: 0 0 0 5px var(--bg); transition: background .3s, box-shadow .3s; }
.tl-step.on .tl-dot { background: var(--rose); box-shadow: 0 0 0 5px var(--bg), 0 0 18px rgba(215, 173, 181, .55); }
.tl-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.tl-num { font-size: 18px; font-weight: 700; }
.tl-tag { padding: 5px 12px; border-radius: 999px; background: rgba(215, 173, 181, .12); color: var(--rose); font-size: 13px; font-weight: 600; }
.tl-text h3 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 14px; }
.tl-text p { color: var(--muted); font-size: 17px; }
.tl-visual { position: relative; display: grid; place-items: center; min-height: 360px; padding: 40px 28px; border-radius: 28px; overflow: hidden;
  background: radial-gradient(120% 90% at 80% 0%, #4a2230 0%, #24151c 45%, #140e12 100%); box-shadow: inset 0 1px 0 var(--rim), 0 0 0 1px rgba(255, 255, 255, .04); }
.tl-panel { width: 100%; max-width: 330px; padding: 18px; border-radius: 22px; background: rgba(11, 8, 11, .82); box-shadow: inset 0 1px 0 var(--rim), 0 30px 60px rgba(0, 0, 0, .45); font-size: 13px; }
.tl-ptitle { display: block; font-size: 19px; margin-bottom: 6px; }
.tl-pmuted { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.tl-cur { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.tl-li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; margin-top: 8px; border-radius: 14px; background: var(--card); font-size: 14px; }
.tl-li b { color: var(--rose); }
.tl-add { margin-top: 10px; padding: 11px; border-radius: 14px; border: 1.5px dashed #4a4049; color: var(--muted); text-align: center; font-weight: 600; }
.tl-field { padding: 9px 14px; margin-top: 8px; border-radius: 14px; background: var(--raised); }
.tl-field small { display: block; color: var(--faint); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.tl-field span { font-size: 15px; font-weight: 600; }
.tl-full { margin-top: 14px; }
.tl-toast { margin: 14px auto 0; width: max-content; padding: 8px 16px; border-radius: 999px; background: rgba(76, 217, 100, .14); color: var(--green); font-weight: 600; }
.tl-bubble { position: absolute; right: 22px; bottom: 22px; display: flex; gap: 10px; align-items: flex-start; max-width: 270px; padding: 12px 16px 12px 12px; border-radius: 18px; background: #F6F0F2; color: #0B080B; font-size: 14px; line-height: 1.4; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
.tl-bubble b { font-size: 14px; }
.tl-bubble em { margin-left: 6px; color: #7E747C; font-style: normal; font-size: 12px; }
.tl-av { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #f5a25d, #d6249f 60%, #6b3442); color: #fff; font-style: normal; font-weight: 700; font-size: 14px; }
.tl-visual:has(.tl-bubble) { padding-bottom: 120px; }
.tl-done { padding-bottom: 0; }
.tl-done h3 { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 8px; }
.tl-done .tl-dot { background: var(--wine); }
.tl-done.on .tl-dot { background: var(--green); box-shadow: 0 0 0 5px var(--bg), 0 0 18px rgba(76, 217, 100, .45); }
.tl-step .tl-text, .tl-step .tl-visual { transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.tl.js .tl-step:not(.seen) .tl-text { opacity: 0; transform: translateY(24px); }
.tl.js .tl-step:not(.seen) .tl-visual { opacity: 0; transform: translateY(36px) scale(.97); }
@media (min-width: 900px) {
  .tl-step { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; padding-bottom: 96px; }
  .tl-visual { min-height: 420px; }
  .tl-text { align-self: center; }
}
@media (max-width: 560px) {
  .tl-visual { padding: 26px 16px 110px; min-height: 0; }
  .tl-bubble { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .tl.js .tl-step .tl-text, .tl.js .tl-step .tl-visual { opacity: 1; transform: none; } }

/* Features */
.feature .icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 14px; background: rgba(215, 173, 181, .1); color: var(--rose); }
.feature .icon svg { width: 22px; height: 22px; }

/* Privacy */
.privacy-box {
  position: relative;
  overflow: hidden;
  padding: 44px 28px;
  border-radius: 30px;
  background: linear-gradient(150deg, #2a1a20, #140f13 60%);
  box-shadow: inset 0 1px 0 var(--rim), 0 0 0 1px rgba(255, 255, 255, .04);
}
.privacy-box h2 { font-size: clamp(30px, 5.5vw, 44px); max-width: 14em; }
.checks { display: grid; gap: 16px; margin: 30px 0 0; padding: 0; list-style: none; }
.checks li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; }
.checks svg { flex: none; width: 24px; height: 24px; margin-top: 1px; color: var(--rose); }
.privacy-box .link { display: inline-block; margin-top: 28px; color: var(--rose); font-weight: 600; text-underline-offset: 4px; }

/* Final */
.final { text-align: center; padding-bottom: 104px; }
.final .app-icon { width: 96px; height: 96px; margin: 0 auto 26px; border-radius: 22px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 20px 60px rgba(107, 52, 66, .6); }
.final h2 { font-size: clamp(34px, 7vw, 56px); }
.final p { margin-top: 14px; color: var(--muted); font-size: 18px; }
.final .cta { justify-content: center; }

/* Footer */
footer { padding: 36px 0 44px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.legal { margin-top: 20px; font-size: 12px; line-height: 1.6; }

@media (min-width: 720px) {
  .wrap { padding: 0 32px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .privacy-box { padding: 64px; }
  .checks { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  section { padding: 112px 0; }
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; padding-top: 64px; }
  .hero { padding-bottom: 96px; }
  .features .grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 380px) {
  .phone { transform: scale(.9); transform-origin: top center; margin-bottom: -60px; }
  .lifted { margin: 2px -16px; }
}

/* Language chooser (root fallback) */
.choose { display: grid; place-items: center; align-content: center; gap: 18px; min-height: 100vh; padding: 20px; text-align: center; }
.choose img { width: 88px; height: 88px; border-radius: 20px; }
.choose h1 { font-size: 40px; }
.choose nav { display: grid; gap: 10px; width: 100%; max-width: 280px; }
.choose a { padding: 14px; border-radius: 999px; background: var(--card); box-shadow: inset 0 1px 0 var(--rim); text-decoration: none; font-weight: 600; }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease var(--delay, 0ms), transform .7s cubic-bezier(.2, .7, .2, 1) var(--delay, 0ms); }
  .reveal.in { opacity: 1; transform: none; }

  .hero-grid > div:first-child > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-grid > div:first-child > :nth-child(2) { animation-delay: .08s; }
  .hero-grid > div:first-child > :nth-child(3) { animation-delay: .16s; }
  .hero-grid > div:first-child > :nth-child(4) { animation-delay: .24s; }
  .phone-stage { animation: rise 1s cubic-bezier(.2, .7, .2, 1) .2s both, float 6s ease-in-out 1.2s infinite; }
  .phone-stage .lifted { animation: lift .9s cubic-bezier(.3, 1.4, .5, 1) 1s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes lift {
  from { margin: 0; transform: none; min-height: 58px; padding: 10px 14px; background: var(--card); box-shadow: inset 0 1px 0 var(--rim); }
}
