/* Public marketing pages. Same palette as the app (tailwind.config.js): warm canvas, slate-navy
   brand, teal accent, Fraunces headings over Inter. Hand-written because these pages ship without
   the app's bundle — nothing here should depend on Tailwind being loaded. */

:root {
  --canvas: #faf8f4;
  --white: #ffffff;
  --ink: #141f2b;
  --ink-soft: #2c3e52;
  --slate: #4f6580;
  --muted: #71889f;
  --line: #e3e8ee;
  --line-dark: rgba(255, 255, 255, 0.12);
  --accent: #0d9488;
  --accent-bright: #2dd4bf;
  --accent-wash: #effdfa;
  --radius: 18px;
  --wrap: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: 1.16rem; line-height: 1.3; }
p { color: var(--ink-soft); }
a { color: inherit; }
code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.9em; background: rgba(20, 31, 43, 0.06); padding: 0.1em 0.35em; border-radius: 6px; }
strong { font-weight: 600; color: var(--ink); }

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

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }

:where(a, .btn, input):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- pictures ---------- */

/* A screenshot with its caption. width/height are on the tag, so the space is reserved before it
   loads and the text under it never jumps. */
.shot { margin: 28px 0 0; }

/* Words on one side, the screenshot on the other, alternating down the page. One column on a
   phone, where a picture beside two sentences would leave both too narrow to read. */
.split { display: grid; gap: 24px; align-items: center; }
.split .shot { margin: 0; }
.split .lede { margin-bottom: 0; }
/* On a dark band the light hairline round a screenshot reads as a glow; the caption needs to
   lift off the background too. */
.dark .shot img { border-color: var(--line-dark); }
.dark .shot figcaption { color: #c4cfda; }

@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 52px; }
  .split-left .split-text { order: 2; }
  .split-left .shot { order: 1; }
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
}
.shot figcaption {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- nav ---------- */

.nav { position: sticky; top: 0; z-index: 30; background: rgba(250, 248, 244, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
/* The real Grawity mark, exactly as the app and the login screen use it: the full-colour SVG on
   dark, its light-background variant on the canvas. */
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { width: 34px; height: 34px; display: block; }
.brand-name { font-family: 'Fraunces', Georgia, serif; font-size: 1.15rem; font-weight: 600; line-height: 1; letter-spacing: -0.01em; }
.brand-sub { display: block; margin-top: 4px; font-family: 'Inter', sans-serif; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: 22px; }
/* `:not(.btn)` matters: without it these beat .btn-solid on specificity and painted the dark
   "Get started" pill's label dark ink on dark ink — an invisible button. The two pills keep the
   colours every other .btn on the site has. */
.nav-links a:not(.btn) { text-decoration: none; font-size: 0.95rem; color: var(--ink-soft); }
.nav-links a:not(.btn):hover { color: var(--accent); }
.nav-links a:not(.btn)[aria-current='page'] { color: var(--ink); font-weight: 500; }
.nav-toggle, .nav-burger { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 10px 20px; font-size: 0.95rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease; }
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: var(--ink-soft); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: var(--white); }
.btn-ghost:hover { border-color: var(--slate); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #0f766e; transform: translateY(-1px); }
.btn-light { background: rgba(255, 255, 255, 0.12); color: #fff; border: 1px solid var(--line-dark); }
.btn-light:hover { background: rgba(255, 255, 255, 0.2); }

/* ---------- hero ---------- */

.hero { padding: 64px 0 20px; background: radial-gradient(900px 420px at 80% -10%, rgba(45, 212, 191, 0.16), transparent 70%); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { max-width: 15ch; }
.hero .lede { margin-top: 18px; font-size: 1.12rem; max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-meta { margin-top: 18px; font-size: 0.92rem; color: var(--muted); }

.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.strip ul { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; padding: 16px 0; justify-content: center; font-size: 0.92rem; color: var(--slate); }
.strip li::before { content: '●'; color: var(--accent-bright); font-size: 0.6em; vertical-align: middle; margin-right: 8px; }

/* ---------- sections ---------- */

.section { padding: 68px 0; }
.section.tight { padding: 44px 0; }
.section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.dark { background: var(--ink); color: #f4f6f8; }
.section.dark p, .section.dark li { color: #c4cfda; }
.section.dark strong { color: #fff; }
.section.dark .card { background: rgba(255, 255, 255, 0.04); border-color: var(--line-dark); }
.section.dark .eyebrow { color: var(--accent-bright); }
.section.dark code { background: rgba(255, 255, 255, 0.1); color: #effdfa; }

.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.lede { font-size: 1.06rem; max-width: 66ch; margin-top: 14px; }
.section h2 + .lede { margin-bottom: 4px; }

.cards { display: grid; gap: 18px; margin-top: 34px; }
.cards-2 { display: grid; gap: 18px; margin-top: 34px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.98rem; }
.card .kicker { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.card-link { display: inline-block; margin-top: 14px; font-size: 0.94rem; font-weight: 500; color: var(--accent); text-decoration: none; }
.card-link:hover { text-decoration: underline; }

.ticks { list-style: none; margin-top: 12px; display: grid; gap: 7px; }
.ticks li { position: relative; padding-left: 24px; font-size: 0.97rem; color: var(--ink-soft); }
.ticks li::before { content: ''; position: absolute; left: 4px; top: 0.62em; width: 8px; height: 8px; border-radius: 3px; background: var(--accent-bright); }
.section.dark .ticks li { color: #c4cfda; }

.flow { list-style: none; display: grid; gap: 14px; margin-top: 34px; counter-reset: step; }
.flow li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 66px; position: relative; }
.flow .flow-step { position: absolute; left: 20px; top: 22px; width: 30px; height: 30px; border-radius: 10px; background: var(--accent-wash); color: var(--accent); display: grid; place-items: center; font-weight: 600; font-size: 0.9rem; }
.flow h3 { margin-bottom: 4px; }
.flow p { font-size: 0.97rem; }
.section.dark .flow li { background: rgba(255, 255, 255, 0.04); border-color: var(--line-dark); }
.section.dark .flow .flow-step { background: rgba(45, 212, 191, 0.16); color: var(--accent-bright); }

.split { display: grid; gap: 28px; margin-top: 30px; align-items: start; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel h3 { margin-bottom: 10px; }
.panel.is-before { background: #fdf6f3; border-color: #f3ded5; }
.panel ul { list-style: none; display: grid; gap: 8px; }
.panel.is-before li { padding-left: 22px; position: relative; font-size: 0.97rem; }
.panel.is-before li::before { content: '×'; position: absolute; left: 4px; color: #b45a3c; font-weight: 600; }

.pair { display: grid; gap: 16px; margin-top: 30px; }
.pair .card h3 { font-family: 'Inter', sans-serif; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.pair .card ul { list-style: none; margin-top: 12px; display: grid; gap: 6px; font-size: 0.97rem; }

.plans { display: grid; gap: 18px; margin-top: 30px; align-items: start; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; display: flex; flex-direction: column; height: 100%; }
.plan.is-popular { border-color: var(--accent); box-shadow: 0 24px 48px -30px rgba(13, 148, 136, 0.55); }
.plan-flag { display: inline-block; align-self: flex-start; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); background: var(--accent-wash); border-radius: 999px; padding: 4px 10px; margin-bottom: 10px; }
.plan h3 { font-size: 1.3rem; }
.plan-note { font-size: 0.86rem; color: var(--muted); margin-top: 2px; }
.plan-price { font-family: 'Fraunces', Georgia, serif; font-size: 2.1rem; color: var(--ink); margin-top: 16px; line-height: 1.1; }
.plan-price span { font-family: 'Inter', sans-serif; font-size: 0.9rem; color: var(--muted); font-weight: 400; }
.plan-annual { font-size: 0.84rem; color: var(--accent); margin-top: 4px; }
.plan-scale { font-size: 0.9rem; color: var(--ink-soft); margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.plan .ticks { margin-top: 14px; }
.plan-cta { margin-top: auto; width: 100%; margin-top: 22px; }
.plan-foot { margin-top: 20px; font-size: 0.86rem; color: var(--muted); }

.faq { margin-top: 28px; display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 500; font-family: 'Fraunces', Georgia, serif; font-size: 1.04rem; }
.faq p { margin-top: 10px; font-size: 0.98rem; }

.table-wrap { margin-top: 28px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.97rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

.cta { background: var(--ink); color: #fff; border-radius: 26px; padding: 44px 28px; text-align: center; margin: 0 auto; }
.cta h2 { max-width: 20ch; margin: 0 auto 12px; }
.cta p { color: #c4cfda; max-width: 54ch; margin: 0 auto; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }

.contact-list { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.contact-list a { color: var(--accent); }

/* ---------- product mock ---------- */

.mock { background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 60px -32px rgba(20, 31, 43, 0.4); overflow: hidden; }
.mock-bar { display: flex; gap: 6px; padding: 12px 16px; background: #f4f6f8; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d3dae3; }
.mock-body { padding: 20px; display: grid; gap: 14px; }
.mock-title { font-family: 'Fraunces', Georgia, serif; font-size: 1rem; color: var(--ink); }
.mock-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mock-stat { background: var(--canvas); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 2px; }
.mock-stat span { font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.mock-stat b { font-family: 'Fraunces', Georgia, serif; font-size: 1.3rem; color: var(--ink); }
.mock-rows { display: grid; gap: 8px; }
.mock-row { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; color: var(--ink-soft); background: var(--canvas); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.mock-row i { width: 8px; height: 8px; border-radius: 3px; background: var(--accent-bright); flex: none; }
.mock-progress { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.mock-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-bright)); }
.mock-note { font-size: 0.8rem; color: var(--muted); }
.mock-q { font-size: 0.92rem; color: var(--ink); }
.mock-options { display: grid; gap: 8px; }
.mock-option { border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; font-size: 0.86rem; color: var(--ink-soft); }
.mock-option.is-picked { border-color: var(--accent); background: var(--accent-wash); color: var(--accent); font-weight: 500; }
/* The hero carries the real product, lifted off the page a little. The drawn mock-ups below are
   the fallback for before the screenshot exists. */
.hero-shot { margin-top: 34px; }
.hero-shot .shot { margin: 0; }
.hero-shot .shot img { box-shadow: 0 26px 60px rgba(20, 31, 43, 0.14); }

.mock-stack { display: grid; gap: 16px; margin-top: 34px; }

/* ---------- footer ---------- */

.foot { background: var(--ink); color: #c4cfda; padding: 52px 0 32px; margin-top: 8px; }
.foot-grid { display: grid; gap: 28px; }
.foot h2 { font-family: 'Inter', sans-serif; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: #9fb0c2; margin-bottom: 12px; }
.foot ul { list-style: none; display: grid; gap: 8px; }
.foot a { color: #c4cfda; text-decoration: none; font-size: 0.95rem; }
.foot a:hover { color: var(--accent-bright); }
.foot-brand .brand-name { color: #f4f6f8; }
.foot-brand .brand-sub { color: #71889f; }
.foot-brand p { color: #9fb0c2; font-size: 0.95rem; margin-top: 12px; max-width: 34ch; }
.foot-eco a { color: var(--accent-bright); }
.foot-legal { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: 0.86rem; color: #71889f; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  /* Four stat tiles clip their labels on a phone ("To grade" became "TO"), so drop to two. */
  .mock-stats { grid-template-columns: repeat(2, 1fr); }
  .nav-burger { display: block; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; position: relative; cursor: pointer; background: var(--white); }
  .nav-burger span, .nav-burger span::before, .nav-burger span::after { content: ''; position: absolute; left: 11px; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); }
  .nav-burger span { top: 19px; }
  .nav-burger span::before { top: -6px; left: 0; }
  .nav-burger span::after { top: 6px; left: 0; }
  .nav-links { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 20px 20px; background: var(--white); border-bottom: 1px solid var(--line); display: none; }
  .nav-links a { padding: 10px 0; }
  .nav-links .btn { margin-top: 6px; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
}

@media (min-width: 861px) {
  .hero { padding: 88px 0 28px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards-2 { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .pair { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .mock-stack { grid-template-columns: 1fr 1fr; align-items: start; }
  .foot-grid { grid-template-columns: 1.4fr repeat(4, 1fr); }
  .cta { padding: 60px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
