/* SideMount, the site. The tokens mirror the app's DESIGN.md: the emerald
   ramp, the same three type voices, and the same rule that the brand hue is
   a fill and never a glyph colour. */

@font-face {
  font-family: "Cabinet Grotesk"; font-weight: 700; font-display: swap;
  src: url("fonts/CabinetGrotesk-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Cabinet Grotesk"; font-weight: 800; font-display: swap;
  src: url("fonts/CabinetGrotesk-Extrabold.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono"; font-weight: 500; font-display: swap;
  src: url("fonts/JetBrainsMono-Medium.woff2") format("woff2");
}

:root {
  --emerald: #0FA968;
  /* The brand hue is 2.98:1 on paper and fails as text. Anything that draws a
     letter uses this instead, at 5.27:1. Same rule as the app. */
  --emerald-text: #0B7A4B;
  --emerald-cta: #0B7A4B;
  --emerald-cta-hover: #0A7046;
  --emerald-soft: #E7F7EF;

  --ink: #0F1A14;
  --slate: #5C6B63;
  --mist: #93A29A;
  --cloud: #E2EAE6;
  --hairline: #DCE6E1;
  --paper: #FBFDFC;
  --white: #FFFFFF;
  --warning-text: #8A5600;

  --display: "Cabinet Grotesk", ui-sans-serif, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;

  --maxw: 1060px;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 26, 20, .05), 0 18px 48px -18px rgba(15, 26, 20, .20);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
}

/* A soft emerald wash so the paper never reads as a flat field. Cards sit
   opaque on top of it. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(58% 48% at 80% -10%, rgba(15, 169, 104, .14), transparent 60%),
    radial-gradient(48% 38% at 6% 2%, rgba(15, 169, 104, .07), transparent 62%),
    radial-gradient(44% 36% at 96% 70%, rgba(15, 169, 104, .06), transparent 62%);
}

a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); font-weight: 500; }

/* Focus is visible everywhere, because a keyboard is how some people buy. */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--emerald-text);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Navigation */

nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 253, 252, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
nav .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -.4px; }
.brand img { width: 26px; height: 26px; border-radius: 6px; }
nav .links { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 14px; color: var(--slate); }
nav .links a:hover { color: var(--ink); }

/* Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--body); font-size: 15px; font-weight: 600;
  padding: 12px 20px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.985); }
.btn-primary { background: var(--emerald-cta); color: var(--white); }
.btn-primary:hover { background: var(--emerald-cta-hover); }
.btn-ghost { background: transparent; color: var(--emerald-text); border-color: rgba(11, 122, 75, .35); }
.btn-ghost:hover { background: var(--emerald-soft); }
.btn-small { font-size: 14px; padding: 9px 15px; }

/* Sections */

.band { padding: 84px 0; }
.band-tight { padding: 56px 0; }
.sec-title { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.8px; line-height: 1.12; }
.sec-lead { color: var(--slate); font-size: 17px; margin-top: 14px; max-width: 62ch; }
.eyebrow { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--emerald-text); }

/* Hero */

.hero { padding: 76px 0 56px; }
.hero h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(38px, 6.4vw, 62px); line-height: 1.06; letter-spacing: -1.6px;
  max-width: 15ch;
}
.hero h1 .accent { color: var(--emerald-text); }
.hero p.lead { font-size: 19px; color: var(--slate); margin-top: 20px; max-width: 54ch; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; align-items: center; }
.hero .meta { font-family: var(--mono); font-weight: 500; font-size: 12.5px; color: var(--mist); margin-top: 16px; }

/* The panel mock in the hero */

.shot {
  margin-top: 44px; background: var(--white); border: 1px solid var(--hairline);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.shot-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--hairline); }
.shot-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cloud); }
.shot-bar .title { font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: -.3px; margin-left: 4px; }
.shot-bar .chip { margin-left: auto; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: rgba(15, 169, 104, .14); color: var(--emerald-text);
}
.chip.quiet { background: var(--cloud); color: var(--slate); }
.shot-body { padding: 16px; display: grid; gap: 12px; }
.device {
  border: 1px solid var(--hairline); border-radius: 12px; padding: 14px;
  display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center;
  background: var(--white);
}
.device .badge {
  width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(15, 169, 104, .14); color: var(--emerald-text); font-size: 19px;
}
.device .name { font-weight: 600; font-size: 14px; }
.device .bar { height: 5px; border-radius: 999px; background: rgba(147, 162, 154, .28); margin-top: 10px; overflow: hidden; grid-column: 1 / -1; }
.device .bar span { display: block; height: 100%; background: var(--emerald); border-radius: 999px; }
.device .free { grid-column: 1 / -1; font-family: var(--mono); font-weight: 500; font-size: 11.5px; color: var(--slate); margin-top: 6px; }

/* Compatibility strip */

.compat { border-block: 1px solid var(--hairline); background: rgba(226, 234, 230, .35); }
.compat .wrap { display: flex; flex-wrap: wrap; gap: 14px 34px; padding-block: 18px; font-size: 14px; color: var(--slate); align-items: center; }
.compat b { color: var(--ink); font-weight: 600; }

/* Cards */

.grid { display: grid; gap: 20px; margin-top: 40px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 26px;
}
.card h3 { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.3px; }
.card p { color: var(--slate); font-size: 15px; margin-top: 10px; }
.card .ico {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(15, 169, 104, .14); color: var(--emerald-text); margin-bottom: 16px;
}
.card .ico svg { width: 19px; height: 19px; }

/* Steps */

.steps { counter-reset: step; display: grid; gap: 18px; margin-top: 36px; }
.step { display: grid; grid-template-columns: 34px 1fr; gap: 16px; align-items: start; }
.step .n {
  counter-increment: step; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--emerald-cta); color: var(--white);
  font-family: var(--mono); font-weight: 500; font-size: 14px;
}
.step .n::before { content: counter(step); }
.step h3 { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -.2px; }
.step p { color: var(--slate); font-size: 15px; margin-top: 6px; }

/* Speed table */

table.speed { width: 100%; border-collapse: collapse; margin-top: 34px; background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
table.speed th, table.speed td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--hairline); font-size: 15px; }
table.speed thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--slate); font-weight: 600; background: rgba(226, 234, 230, .4); }
table.speed tbody tr:last-child td { border-bottom: 0; }
table.speed td.num { font-family: var(--mono); font-weight: 500; }
table.speed td.ours { color: var(--emerald-text); }

/* A table is the one block that cannot wrap, so it scrolls inside itself
   rather than pushing the page sideways on a narrow phone. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table.speed { min-width: 520px; }

/* Pricing */

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; align-items: start; }
.plan { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.plan.featured { border-color: rgba(11, 122, 75, .45); box-shadow: var(--shadow); }
.plan .tag { display: inline-block; font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--emerald-text); background: rgba(15, 169, 104, .14); padding: 4px 9px; border-radius: 999px; margin-bottom: 12px; align-self: flex-start; }
.plan h3 { font-family: var(--display); font-weight: 700; font-size: 20px; }
.plan .price { font-family: var(--display); font-weight: 800; font-size: 42px; letter-spacing: -1.4px; margin-top: 10px; }
.plan .price small { font-size: 15px; font-weight: 700; color: var(--slate); letter-spacing: 0; }
.plan .note { color: var(--slate); font-size: 14px; margin-top: 6px; min-height: 42px; }
.plan .btn { margin-top: 18px; width: 100%; }
.plan ul { list-style: none; margin-top: 20px; display: grid; gap: 9px; }
.plan li { font-size: 14.5px; color: var(--slate); display: grid; grid-template-columns: 18px 1fr; gap: 9px; align-items: start; }
.plan li svg { width: 14px; height: 14px; margin-top: 4px; color: var(--emerald-text); }

/* FAQ */

.faq { margin-top: 36px; display: grid; gap: 0; background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 16px; list-style: none; display: flex; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-family: var(--mono); color: var(--slate); font-size: 18px; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 22px 20px; color: var(--slate); font-size: 15px; max-width: 76ch; }
.faq details p + p { padding-top: 0; margin-top: -8px; }

/* Prose pages */

.prose { max-width: 74ch; padding-block: 64px; }
.prose h1 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4.4vw, 42px); letter-spacing: -1px; }
.prose h2 { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.3px; margin-top: 38px; }
.prose h3 { font-family: var(--display); font-weight: 700; font-size: 17px; margin-top: 26px; }
.prose p, .prose li { color: var(--slate); font-size: 16px; margin-top: 14px; }
.prose ul, .prose ol { margin-top: 14px; padding-left: 22px; }
.prose li { margin-top: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code { font-family: var(--mono); font-weight: 500; font-size: .9em; background: var(--cloud); padding: 2px 6px; border-radius: 5px; color: var(--ink); }
.prose .updated { font-family: var(--mono); font-weight: 500; font-size: 12.5px; color: var(--mist); margin-top: 10px; }
.prose a:not(.btn) { color: var(--emerald-text); text-decoration: underline; text-underline-offset: 2px; }

.callout { background: var(--emerald-soft); border: 1px solid rgba(11, 122, 75, .22); border-radius: 12px; padding: 18px 20px; margin-top: 24px; }
.callout p { color: var(--ink); margin-top: 0; font-size: 15px; }
.callout p + p { margin-top: 10px; }

/* Closing band */

.closing { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 64px 40px; text-align: center; }
.closing h2 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.8px; line-height: 1.12; }
.closing p { color: rgba(255, 255, 255, .72); margin-top: 14px; font-size: 17px; }
.closing .cta-row { display: flex; justify-content: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.closing .btn-primary { background: var(--emerald); color: var(--ink); }
.closing .btn-primary:hover { background: #1FBE7A; }
.closing .btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, .3); }
.closing .btn-ghost:hover { background: rgba(255, 255, 255, .08); }

/* Footer */

footer { border-top: 1px solid var(--hairline); margin-top: 84px; padding: 48px 0 60px; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
footer h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--mist); font-weight: 600; }
footer ul { list-style: none; margin-top: 14px; display: grid; gap: 9px; }
footer a { font-size: 14.5px; color: var(--slate); }
footer a:hover { color: var(--ink); }
footer .about p { font-size: 14px; color: var(--slate); margin-top: 12px; max-width: 34ch; }
footer .legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--mist); display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Narrow screens */

@media (max-width: 860px) {
  .grid-3, .grid-2, .plans { grid-template-columns: 1fr; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  nav .links a.hide-sm { display: none; }
  .band { padding: 60px 0; }
  .closing { padding: 48px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
