/* WhatsNote marketing site — style adapted from the twin_cv site, re-themed to
   the WhatsNote green. Self-contained: local Inter font, no CDN. */

/* ── Theme tokens ───────────────────────────────────────────────────── */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7faf7;
  --surface-3: #eef4ef;
  --border: #e7ece8;
  --text: #101613;
  --text-muted: #556059;
  --text-faint: #869089;
  --accent: #1daa61;
  --accent-strong: #178a4f;
  --shadow-sm: 0 4px 24px rgba(0, 0, 0, .05);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, .08);
  --topnav-h: 72px;
  /* Horizontal hero color band — greens/teals */
  --hero-color-left:  #9be6bf;
  --hero-color-mid1:  #bff0d4;
  --hero-color-mid:   #d9f2e4;
  --hero-color-mid2:  #c3ecff;
  --hero-color-right: #a6e4ff;
  --hero-fade-color:  #ffffff;
  --hero-fade-mid-1:  rgba(255, 255, 255, .55);
  --hero-fade-mid-2:  rgba(255, 255, 255, .95);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0d1211;
  --surface: #141a18;
  --surface-2: #182120;
  --surface-3: #1f2a27;
  --border: #263230;
  --text: #eef3f0;
  --text-muted: #a3b0aa;
  --text-faint: #7b8a83;
  --accent: #29c06e;
  --accent-strong: #34d07c;
  --shadow-sm: 0 4px 24px rgba(0, 0, 0, .35);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, .45);
  --hero-color-left:  #17402f;
  --hero-color-mid1:  #163a34;
  --hero-color-mid:   #142a2f;
  --hero-color-mid2:  #163043;
  --hero-color-right: #123043;
  --hero-fade-color:  #0d1211;
  --hero-fade-mid-1:  rgba(13, 18, 17, .55);
  --hero-fade-mid-2:  rgba(13, 18, 17, .95);
  color-scheme: dark;
}

/* ── Reset / typography ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica,
               Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s ease, color .2s ease;
}
h1, h2, h3, h4, h5, h6, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

@font-face {
  font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('/assets/fonts/Inter-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-weight: 500; font-style: normal; font-display: swap;
  src: url('/assets/fonts/Inter-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-weight: 600; font-style: normal; font-display: swap;
  src: url('/assets/fonts/Inter-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-weight: 700; font-style: normal; font-display: swap;
  src: url('/assets/fonts/Inter-SemiBold.woff2') format('woff2');
}

/* ── Layout ─────────────────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.hero {
  position: relative; padding: 132px 24px 72px; text-align: center;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, transparent 0%, transparent 52%,
      var(--hero-fade-mid-1) 78%, var(--hero-fade-mid-2) 94%,
      var(--hero-fade-color) 100%),
    linear-gradient(90deg,
      var(--hero-color-left) 0%, var(--hero-color-mid1) 28%,
      var(--hero-color-mid) 50%, var(--hero-color-mid2) 72%,
      var(--hero-color-right) 100%);
}
.hero .eyebrow, .section-eyebrow {
  color: var(--accent-strong); text-transform: uppercase; letter-spacing: .08em;
  font-size: .8rem; font-weight: 600; margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 700; letter-spacing: -.01em;
  max-width: 780px; margin: 0 auto 20px;
}
.hero p.lead, .section .lead {
  font-size: 1.125rem; color: var(--text-muted); max-width: 600px;
  margin: 0 auto 28px;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.section { padding-block: 64px; }
.section h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 700; text-align: center;
  margin-bottom: 12px; letter-spacing: -.01em;
}
.section-eyebrow { text-align: center; margin-bottom: 8px; }
.section .lead { text-align: center; }

/* ── Navbar ─────────────────────────────────────────────────────────── */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, backdrop-filter .25s ease, border-color .25s ease;
}
.topnav.is-scrolled {
  background: var(--nav-bg, rgba(255, 255, 255, .72));
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}
:root[data-theme="dark"] .topnav.is-scrolled { background: rgba(13, 18, 17, .72); }
.brand { font-weight: 700; font-size: 1.2rem; display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand-logo { height: 34px; width: 34px; display: block; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--text-muted); font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; gap: 10px; align-items: center; }
.theme-toggle {
  width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface-2); color: var(--text); cursor: pointer; font-size: 1rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { background: var(--surface-3); }
.nav-toggle {
  display: none; width: 38px; height: 38px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--surface-2); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; }
.nav-desktop-only { display: inline-flex; }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px;
  border-radius: 999px; font-weight: 600; font-size: .95rem; cursor: pointer;
  border: 0; text-decoration: none;
  transition: opacity .15s ease, transform .15s ease, background .15s ease;
}
.btn:hover { opacity: .9; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* ── Cards / features ───────────────────────────────────────────────── */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.feature {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px 24px;
}
.feature .icon { font-size: 1.9rem; margin-bottom: 14px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: .95rem; }

/* ── Download / store badges ────────────────────────────────────────── */
.stores { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.store-badge {
  display: flex; align-items: center; gap: 14px; min-width: 240px;
  padding: 16px 22px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.store-badge.is-disabled { opacity: .55; cursor: default; }
.store-badge.is-disabled:hover { transform: none; box-shadow: var(--shadow-sm); }
.store-badge .glyph { font-size: 1.9rem; line-height: 1; }
.store-badge .sb-top { font-size: .78rem; color: var(--text-faint); }
.store-badge .sb-main { font-size: 1.05rem; font-weight: 600; }
.store-badge .soon { font-size: .72rem; color: var(--accent-strong); font-weight: 600; }

/* ── About / info blocks ────────────────────────────────────────────── */
.info-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
}
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.info-list li:last-child { border-bottom: 0; }
.info-list .k { color: var(--text-faint); min-width: 140px; }
.info-list .v { font-weight: 500; }
.info-list a { color: var(--accent-strong); }
.prose { max-width: 720px; margin: 0 auto; }
.prose p { color: var(--text-muted); margin-bottom: 16px; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  background: #0e1513; color: #b9c4be; padding: 56px 24px 28px; margin-top: 80px;
}
.site-footer .container { display: grid; gap: 32px; grid-template-columns: 2fr 1fr 1fr; }
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.footer-brand img { height: 34px; width: 34px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 7px 0; }
.site-footer a { color: #b9c4be; }
.site-footer a:hover { color: #fff; }
.site-footer .tagline { color: #8b968f; max-width: 320px; }
.site-footer .small {
  grid-column: 1 / -1; font-size: .8rem; color: #7c877f; margin-top: 20px;
  padding-top: 20px; border-top: 1px solid #223029;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: var(--topnav-h) 0 auto 0; flex-direction: column;
    gap: 4px; padding: 16px 24px 24px; background: var(--bg);
    border-bottom: 1px solid var(--border); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; width: 100%; }
  .nav-toggle { display: inline-flex; }
  .nav-desktop-only { display: none; }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
  .hero { padding: 108px 20px 56px; }
  .section { padding-block: 48px; }
}
@media (max-width: 520px) {
  .site-footer .container { grid-template-columns: 1fr; }
}
