/* Everank — light, warm, green. The palette is the app icon's: off-white
   ground, Apple-green line, white ring data points, soft green gradient. */
:root {
  --bg: #f6f6f3; --panel: #ffffff; --panel2: #f1f2ee; --text: #1c1e21;
  --dim: #6b7280; --accent: #31ad57; --accent-dark: #27904a; --ok: #31ad57;
  --bad: #e5534b; --border: #e4e6e0; --radius: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Anchor targets clear the sticky nav instead of sliding under it. */
section[id] { scroll-margin-top: 76px; }
body {
  background: var(--bg); color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
/* Form controls don't inherit the page font by default — without this,
   inputs render at the browser's ~13px and look mismatched. */
input, button, select, textarea { font: inherit; color: inherit; }
input::placeholder, textarea::placeholder { color: #a3a9a0; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(20px, 6vw, 64px);
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 246, 243, .88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.nav .links { display: flex; align-items: center; }
.nav .links a { margin-left: 22px; color: var(--dim); font-size: 15px; }
.nav .links a.cta { color: #fff; background: linear-gradient(180deg, #36bd60, #2b9a4e); padding: 8px 16px; border-radius: 999px; }
.nav .links a.cta:hover { background: var(--accent-dark); text-decoration: none; }
@media (max-width: 640px) { .nav .links a.hide-sm { display: none; } }

main.narrow { max-width: 640px; margin: 48px auto; padding: 0 20px; }
/* Auth pages (log in / sign up / forgot / reset / contact): heading, lede and
   the form box all centered. The form itself stays left-aligned inside —
   inputs inherit text-align, so it must be reset on the panel. */
main.center { text-align: center; }
main.center .panel, main.center form.panel { margin-left: auto; margin-right: auto; text-align: left; }

.hero {
  text-align: center; padding: clamp(40px, 8vw, 90px) 20px 30px;
  max-width: 860px; margin: 0 auto;
}
.hero h1 { font-size: clamp(32px, 5.4vw, 56px); line-height: 1.12; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--accent-dark); }
.lede { color: var(--dim); font-size: clamp(16px, 2vw, 19px); margin-top: 16px; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

.btn {
  display: inline-block; background: var(--panel); color: var(--text);
  border: 1px solid var(--border); padding: 12px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  box-shadow: 0 1px 2px rgba(28,30,33,.05);
}
.btn:hover { text-decoration: none; border-color: #d0d3cb; }
.btn.primary { background: linear-gradient(180deg, #36bd60, #2b9a4e); border-color: #2b9a4e; color: #fff; box-shadow: 0 2px 8px rgba(43,154,78,.28); }
.btn.primary:hover { background: linear-gradient(180deg, #2fae57, #278c47); border-color: #278c47; }
.btn.small { padding: 8px 16px; font-size: 14px; }

section { padding: clamp(30px, 5vw, 60px) clamp(20px, 6vw, 64px); max-width: 1120px; margin: 0 auto; }
h2.section { font-size: clamp(24px, 3.4vw, 34px); text-align: center; margin-bottom: 8px; letter-spacing: -0.01em; }
p.section-sub { text-align: center; color: var(--dim); margin-bottom: 40px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.feature {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  box-shadow: 0 1px 3px rgba(28,30,33,.04);
}
.feature .icon { font-size: 26px; }
.feature h3 { margin: 10px 0 6px; font-size: 18px; }
.feature p { color: var(--dim); font-size: 15px; }

/* "Everything inside" — horizontal feature cards: icon tile left, copy right. */
.featrows { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 14px; }
.featrow {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(28,30,33,.04);
}
.featrow .fic {
  font-size: 22px; background: var(--panel2); border-radius: 10px;
  width: 44px; height: 44px; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.featrow h3 { font-size: 16px; margin-bottom: 3px; }
.featrow p { color: var(--dim); font-size: 14px; }

/* Meet-the-maker panel above pricing. */
.maker {
  display: flex; gap: 28px; align-items: center;
  max-width: 760px; margin: 0 auto;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  box-shadow: 0 1px 3px rgba(28,30,33,.04);
}
.maker-pic {
  width: 128px; height: 128px; border-radius: 50%; flex: none;
  border: 3px solid #fff; box-shadow: 0 4px 14px rgba(28,30,33,.14);
}
.maker h2 { font-size: 24px; margin-bottom: 8px; }
.maker p { color: var(--dim); font-size: 15px; margin-top: 8px; }
.maker p strong { color: var(--text); }
.maker-links { font-size: 14px; }
@media (max-width: 560px) {
  .maker { flex-direction: column; text-align: center; }
}

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; align-items: stretch; }
.plan {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column;
  box-shadow: 0 1px 3px rgba(28,30,33,.04);
}
.plan.hot { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 8px 24px rgba(43,154,78,.16); position: relative; }
.plan.hot::before {
  content: "Introductory offer"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(180deg, #36bd60, #2b9a4e); color: #fff; font-size: 12px; font-weight: 700;
  padding: 3px 12px; border-radius: 999px;
}
.plan h3 { font-size: 20px; }
.plan .price { font-size: 40px; font-weight: 800; margin: 10px 0 2px; }
.plan .price span { font-size: 15px; font-weight: 500; color: var(--dim); }
.plan .price .was { font-size: 18px; font-weight: 600; color: var(--dim); text-decoration: line-through; margin-left: 8px; }
.plan .annual-note { color: var(--dim); font-size: 13px; min-height: 20px; }
.plan ul { list-style: none; margin: 18px 0 24px; flex: 1; }
.plan li { padding: 5px 0 5px 26px; position: relative; color: var(--dim); font-size: 15px; }
.plan li.yes { color: var(--text); }
.plan li.yes::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.plan li.no::before { content: "—"; position: absolute; left: 0; color: #c3c8bf; }

.keybox {
  font: 700 22px/1.4 ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--panel); border: 1px dashed var(--accent); border-radius: var(--radius);
  padding: 20px; text-align: center; letter-spacing: 1px; margin: 24px 0 12px; user-select: all;
}
.steps { margin: 26px 0 18px 20px; color: var(--dim); }
.steps li { margin: 8px 0; }
.steps strong { color: var(--text); }
.dim { color: var(--dim); font-size: 14px; margin-top: 14px; }
.error { color: var(--bad); margin: 12px 0; }
.keyform { display: flex; gap: 10px; margin-top: 22px; }
.keyform input {
  flex: 1; background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); padding: 12px 14px;
}

.panel {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; margin: 22px 0;
  box-shadow: 0 1px 3px rgba(28,30,33,.04);
}
.panel input[type=email], .panel input[type=password], .panel input[type=text], .panel textarea {
  background: var(--panel2) !important; border: 1px solid var(--border) !important;
  border-radius: 8px !important; color: var(--text) !important; padding: 11px 13px !important;
}

.badge { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; vertical-align: middle; margin-left: 8px; }
.badge.ok { background: rgba(52,199,89,.14); color: var(--accent-dark); }
.badge.bad { background: rgba(229,83,75,.12); color: var(--bad); }

.meter { margin: 14px 0; }
.meter-head { display: flex; justify-content: space-between; font-size: 14px; color: var(--dim); margin-bottom: 5px; }
.meter-bar { background: var(--panel2); height: 8px; border-radius: 99px; overflow: hidden; }
.meter-fill { background: var(--accent); height: 100%; border-radius: 99px; }
.meter-fill.hot { background: var(--bad); }

code { background: var(--panel2); padding: 2px 7px; border-radius: 6px; font-size: 14px; }
/* Inside a <pre> the block provides its own chrome (e.g. the terminal-style
   install box) — the inline code pill must not layer on top of it. */
pre code { background: none; padding: 0; border-radius: 0; color: inherit; font-size: 14px; }
footer { text-align: center; color: #9aa197; padding: 36px 20px 56px; font-size: 14px; border-top: 1px solid var(--border); margin-top: 48px; }
footer a { color: var(--dim); }
footer .foot-links { margin-bottom: 6px; }
footer .foot-links a { margin: 0 10px; }

.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--dim); margin-top: 10px; font-size: 15px; }

.hero-icon { width: clamp(84px, 12vw, 128px); height: auto; margin-bottom: 18px;
  filter: drop-shadow(0 10px 22px rgba(43,154,78,.25)); }
.hero { background: radial-gradient(60% 55% at 50% 0%, rgba(54,189,96,.10), rgba(54,189,96,0) 70%); border-radius: 0 0 32px 32px; }

/* Full app screenshot below the hero CTA. The window's rounded corners and
   soft drop shadow are baked into the PNG, so no extra chrome is needed. */
.hero-shot { padding: clamp(30px, 5vw, 54px) 20px 0; }
.hero-shot img {
  display: block;
  width: min(1040px, 100%);
  height: auto;
  margin: 0 auto;
}
