/* Gutter website — same palette as the app */
:root {
  --bg: #14161c;
  --bg-2: #181b22;
  --panel: #1c1f27;
  --panel-2: #232631;
  --line: #2e3240;
  --text: #e8e9ee;
  --muted: #a0a7b8;
  --accent: #e8453c;
  --accent-2: #ff6a55;
  --ok: #3fbf7f;
  --radius: 14px;
  --max: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); line-height: 1.6;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); }
a:hover { color: #ff8b7a; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* header */
.site-head { position: sticky; top: 0; z-index: 10; background: rgba(20, 22, 28, .86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; }
.brand img { width: 38px; height: 38px; border-radius: 9px; }
.brand small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.site-head nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.site-head nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; }
.site-head nav a:hover { color: var(--text); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700;
  text-decoration: none; border: 1px solid var(--line); color: var(--text); background: var(--panel); font-size: 16px; }
.btn:hover { border-color: var(--accent); color: var(--text); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn.small { padding: 8px 16px; font-size: 14px; }
.btn[aria-disabled="true"] { opacity: .65; cursor: default; }

/* hero */
.hero { padding: 80px 0 40px; text-align: center; background:
  radial-gradient(900px 400px at 50% -10%, rgba(232, 69, 60, .22), transparent 70%); }
.hero h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.05; margin: 0 0 18px; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--accent-2); }
.hero p.lead { font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); max-width: 720px; margin: 0 auto 30px; }
.hero .ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.shot { margin: 50px auto 0; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55); background: var(--panel); }

/* sections */
section { padding: 80px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 12px; letter-spacing: -.01em; line-height: 1.15; }
.sub { color: var(--muted); font-size: 19px; max-width: 760px; margin: 0 0 40px; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px; }
.feature .ico { font-size: 26px; line-height: 1; margin-bottom: 12px; }
.feature h3 { margin: 0 0 6px; font-size: 19px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 70px; }
.showcase:last-child { margin-bottom: 0; }
.showcase.flip .text { order: 2; }
.showcase h3 { font-size: 26px; margin: 0 0 10px; }
.showcase p { color: var(--muted); margin: 0 0 12px; }
.showcase ul { color: var(--muted); padding-left: 20px; margin: 0; }
.showcase .shot { margin: 0; }

/* pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 900px; margin: 0 auto; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.plan.plus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 60px rgba(232, 69, 60, .15); }
.plan h3 { margin: 0; font-size: 22px; }
.price { font-size: 44px; font-weight: 800; margin: 8px 0 2px; }
.price small { font-size: 16px; font-weight: 600; color: var(--muted); }
.plan .tag { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { padding: 7px 0 7px 28px; position: relative; border-top: 1px solid var(--line); font-size: 15.5px; }
.plan li::before { content: "✓"; position: absolute; left: 4px; color: var(--ok); font-weight: 800; }
.plan li.inherit { color: var(--muted); }
.fine { font-size: 14px; color: var(--muted); text-align: center; margin-top: 22px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 16px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 50px; color: var(--muted); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; margin-left: auto; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* legal pages */
.doc { max-width: 780px; margin: 0 auto; padding: 60px 20px 80px; }
.doc h1 { font-size: 40px; margin: 0 0 6px; }
.doc .updated { color: var(--muted); margin: 0 0 30px; }
.doc h2 { font-size: 22px; margin: 34px 0 8px; }
.doc p, .doc li { color: #cfd2db; }
.doc .callout { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 14px 18px; }

@media (max-width: 860px) {
  .showcase, .plans { grid-template-columns: 1fr; gap: 26px; }
  .showcase.flip .text { order: 0; }
  .site-head nav a:not(.btn) { display: none; }
  section { padding: 60px 0; }
}

/* downloads */
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; margin-top: 10px; }
.dl { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.dl .ico { font-size: 30px; line-height: 1; }
.dl h3 { margin: 0; font-size: 21px; }
.dl p { margin: 0; color: var(--muted); font-size: 15.5px; }
.dl .btn { align-self: flex-start; margin-top: 4px; }
.dl .small { font-size: 13.5px; }
.dl pre { margin: 4px 0 0; background: #0f1115; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow-x: auto; font-size: 13px; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .92em; }
.steps { max-width: 760px; margin: 40px auto 0; color: var(--muted); padding-left: 22px; }
.steps li { margin-bottom: 10px; }
.steps strong { color: var(--text); }

/* guide */
.guide h3 { font-size: 18px; margin: 24px 0 6px; }
.guide pre { background: #0f1115; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow-x: auto; font-size: 13.5px; }
.guide .shot { margin: 18px 0; }
.toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 18px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 10px; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent-2); }
.tour dt { font-weight: 700; margin-top: 14px; color: var(--text); }
.tour dd { margin: 4px 0 0; color: #cfd2db; }
.files { border-collapse: collapse; width: 100%; font-size: 14.5px; margin: 10px 0; }
.files th, .files td { text-align: left; padding: 8px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.files th { color: var(--muted); font-weight: 600; }
.pill { font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent-2); vertical-align: middle; }
:target { scroll-margin-top: 80px; }

/* thank-you page (served by worker/index.js) */
.thanks .key { width: 100%; font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 10px 12px;
  border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); word-break: break-all; resize: none; }
