/* HabitFlow presentation site. Same palette as the app (mobile/src/theme/tokens.ts). */
@font-face { font-family: Sora; font-weight: 600; font-display: swap; src: url(fonts/Sora_600SemiBold.ttf) format("truetype"); }
@font-face { font-family: Sora; font-weight: 700; font-display: swap; src: url(fonts/Sora_700Bold.ttf) format("truetype"); }
@font-face { font-family: Figtree; font-weight: 400; font-display: swap; src: url(fonts/Figtree_400Regular.ttf) format("truetype"); }
@font-face { font-family: Figtree; font-weight: 600; font-display: swap; src: url(fonts/Figtree_600SemiBold.ttf) format("truetype"); }

:root {
  --bg: #F3F4F1; --surface: #FFFFFF; --surface2: #ECEEEA; --ink: #141817; --muted: #5F6763; --line: #E0E3DE;
  --accent: #2E6B57; --accent-ink: #FFFFFF; --accent-soft: rgba(46,107,87,.1); --gold: #8F6A22;
  --danger: #B4453A; --ok: #2E6B57; --hero: linear-gradient(160deg, #E4EEE8 0%, #F3F4F1 60%);
  --shadow: 0 1px 2px rgba(20,24,23,.04), 0 12px 32px rgba(20,24,23,.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D0F0F; --surface: #161919; --surface2: #1F2323; --ink: #ECEFEC; --muted: #9AA39F; --line: #282D2C;
    --accent: #62B896; --accent-ink: #0D0F0F; --accent-soft: rgba(98,184,150,.16); --gold: #D9AE62;
    --danger: #E07A6F; --ok: #62B896; --hero: linear-gradient(160deg, #13201B 0%, #0D0F0F 60%);
    --shadow: 0 0 0 1px #282D2C;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 Figtree, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: Sora, system-ui, sans-serif; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; text-align: center; margin-bottom: 1.2em; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; justify-content: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; color: var(--muted); }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 1.2rem Sora, sans-serif; }
.brand img { border-radius: 9px; }
.top nav { display: flex; align-items: center; gap: 20px; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.top nav a:hover { color: var(--accent); }
.top nav .lang { border: 1.5px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: .8rem; }

/* hero */
.hero { background: var(--hero); padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.kicker { display: inline-block; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: .9rem; border-radius: 999px; padding: 5px 14px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-shot img { width: min(320px, 100%); margin: 0 auto; border-radius: 28px; box-shadow: var(--shadow); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 14px; background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none; }
.store .glyph { font-size: 1.1rem; }
.store.alt { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.store.soon { background: var(--surface2); color: var(--muted); cursor: default; }
.store:not(.soon):hover { transform: translateY(-1px); }

/* sections */
.section { padding: 80px 0; }
.tint { background: var(--surface); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--surface); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.tint .feature { background: var(--bg); }
.ficon { width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 1.35rem; font-weight: 700; margin-bottom: 14px; }
.feature p { color: var(--muted); margin: 0; font-size: .98rem; }
.extras { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.extras li { display: flex; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .95rem; }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.shots img { border-radius: 22px; box-shadow: var(--shadow); }

/* pricing */
.prices { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.price { min-width: 210px; background: var(--surface); border: 2px solid var(--line); border-radius: 20px; padding: 24px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.price strong { font: 700 2.2rem Sora, sans-serif; }
.price span { color: var(--muted); }
.price em { font-style: normal; color: var(--gold); font-weight: 600; font-size: .92rem; }
.price.best { border-color: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 13px; border: 0; background: var(--accent); color: var(--accent-ink); font: 600 1rem Figtree, sans-serif; text-decoration: none; cursor: pointer; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: .92rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 12px; }
.foot a { color: var(--muted); }

/* pages opened from e-mails */
.card-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.card { width: 100%; max-width: 440px; background: var(--surface); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.card h1 { font-size: 1.6rem; }
.card form { display: grid; gap: 14px; }
.card label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--muted); }
.card input { font: 16px Figtree, sans-serif; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 13px; padding: 12px 14px; }
.card input:focus { outline: none; border-color: var(--accent); }
.msg { margin: 14px 0 0; font-weight: 600; }
.msg.ok { color: var(--ok); }
.msg.bad { color: var(--danger); }

@media (max-width: 860px) {
  .hero { padding: 36px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .features { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: 1fr 1fr; }
  .top nav a:not(.lang) { display: none; }
  .section { padding: 60px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .features { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr 1fr; gap: 12px; }
  .store { width: 100%; justify-content: center; }
}
