:root {
  --teal-900: #123f41;
  --teal-800: #1a5658;
  --teal-700: #236c6f;
  --teal-600: #2c8a8f;
  --orange: #f2a44d;
  --orange-600: #e2863a;
  --cream: #fdf7ec;
  --ink: #15282b;
  --muted: #5c6f72;
  --card: #ffffff;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(10, 40, 42, 0.12);
  --maxw: 960px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal-700); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(253, 247, 236, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(18, 63, 65, 0.08);
  padding-top: env(safe-area-inset-top);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; color: var(--ink); font-size: 16px; white-space: nowrap; }
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: var(--shadow); flex: 0 0 auto; }
.nav { white-space: nowrap; }
.nav a { color: var(--ink); font-weight: 600; margin-left: 16px; font-size: 14px; }
@media (max-width: 400px) {
  .brand { font-size: 15px; gap: 8px; }
  .nav a { margin-left: 13px; }
}

/* Hero */
.hero {
  background: radial-gradient(1200px 600px at 50% -10%, var(--teal-600), var(--teal-800) 60%, var(--teal-900));
  color: #fff; text-align: center;
  padding: 56px 20px 64px;
}
.hero .app-icon {
  width: 128px; height: 128px; border-radius: 28px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.35);
  margin: 0 auto 22px; display: block;
}
.hero h1 { font-size: clamp(30px, 7vw, 48px); margin: 0 0 8px; letter-spacing: -0.5px; font-weight: 800; }
.hero .tagline { font-size: clamp(17px, 4vw, 21px); color: rgba(255,255,255,0.88); margin: 0 auto 10px; max-width: 30ch; }
.hero .sub { color: rgba(255,255,255,0.68); max-width: 46ch; margin: 0 auto 26px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: #3a2410; font-weight: 700;
  padding: 11px 20px; border-radius: 999px; font-size: 15px;
  box-shadow: 0 8px 20px rgba(242,164,77,0.35);
}
.pill svg { width: 18px; height: 18px; }

/* Sections */
section { padding: 52px 0; }
section h2 { font-size: clamp(24px, 5vw, 32px); margin: 0 0 14px; letter-spacing: -0.3px; }
.lead { font-size: 18px; color: var(--muted); max-width: 60ch; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 28px; }
.feature {
  background: var(--card); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); border: 1px solid rgba(18,63,65,0.05);
}
.feature .ico {
  width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(160deg, var(--teal-600), var(--teal-700));
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.feature .ico svg { width: 24px; height: 24px; stroke: #fff; }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* Content pages */
.doc { background: var(--cream); }
.doc .wrap { max-width: 760px; padding-top: 40px; padding-bottom: 64px; }
.doc h1 { font-size: clamp(28px, 6vw, 38px); margin: 0 0 6px; }
.doc .updated { color: var(--muted); margin: 0 0 32px; font-size: 15px; }
.doc h2 { font-size: 21px; margin: 32px 0 10px; }
.doc p, .doc li { color: #2b3f42; }
.doc ul { padding-left: 20px; }
.doc a { font-weight: 600; }
.callout {
  background: #fff; border: 1px solid rgba(18,63,65,0.08); border-left: 4px solid var(--orange);
  border-radius: 14px; padding: 16px 18px; margin: 22px 0; box-shadow: var(--shadow);
}

/* Footer */
.site-footer {
  background: var(--teal-900); color: rgba(255,255,255,0.82);
  padding: 40px 20px calc(40px + env(safe-area-inset-bottom)); text-align: center;
}
.site-footer .brand { color: #fff; justify-content: center; margin-bottom: 14px; }
.site-footer a { color: var(--orange); font-weight: 600; margin: 0 12px; }
.site-footer .fine { color: rgba(255,255,255,0.5); font-size: 13px; margin-top: 16px; }
