/* Weft website. Every colour is a token here; a section's look comes from .light / .dark, so switching
   layout A (light) to B (dark top and sign-up) is a matter of changing those classes. */
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --green: #266a51;
  --green-light: #348f6c;
  --green-bright: #7cfc67;
  --ink: #0c1a14;
  --ink-soft: #3c5249;
  --ink-muted: #5a6b63;
  --line: #e1e8e4;
  --tint: #e7f3ec;
  --page: #fafbfa;
  --surface: #ffffff;
  --warn-bg: #fff4d6;
  --warn-ink: #8a5a00;
  --ok-bg: #e3f6e9;
  --ok-ink: #1f6b46;
  --error: #b3261e;
}

.light { --bg: var(--page); --fg: var(--ink); --fg-soft: var(--ink-soft); --button-bg: var(--green); --button-fg: #fff; }
.light.raised { --bg: var(--surface); }
.dark { --bg: linear-gradient(120deg, #0c1a14, #142820 55%, #1c4033); --fg: #fff; --fg-soft: #b9d4c6; --button-bg: var(--green-bright); --button-fg: var(--ink); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Inter", "Segoe UI", system-ui, sans-serif; color: var(--ink); background: var(--page); -webkit-font-smoothing: antialiased; }
section, header, footer { background: var(--bg); color: var(--fg); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
a { color: var(--green); }

/* Navigation */
header nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
header nav .links { display: flex; align-items: center; gap: 28px; }
header nav .links a:not(.button) { color: inherit; text-decoration: none; font-size: 15px; opacity: .8; }
header nav .links a:not(.button):hover { opacity: 1; }

/* Type */
h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.08; letter-spacing: -1.2px; margin: 0 0 20px; font-weight: 700; }
h2 { font-size: clamp(28px, 3.4vw, 34px); letter-spacing: -.6px; margin: 0 0 14px; font-weight: 700; }
h3 { font-size: 17px; margin: 12px 0 6px; }
.lead { font-size: 19px; line-height: 1.55; color: var(--fg-soft); max-width: 620px; margin: 0; }
.tag { display: inline-block; font-size: 13px; font-weight: 600; color: var(--green); background: var(--tint); padding: 5px 12px; border-radius: 20px; margin-bottom: 18px; }

/* Buttons */
.button { display: inline-block; padding: 13px 22px; border-radius: 6px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; background: var(--button-bg); color: var(--button-fg); cursor: pointer; font-family: inherit; }
.button:hover { filter: brightness(1.08); }
.button.ghost { background: transparent; color: var(--fg); border-color: #c9d6cf; }
.button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--green-light); outline-offset: 2px; }

/* Layout */
section { padding: 80px 0; }
.hero { padding-top: 48px; }
.hero .wrap { display: grid; grid-template-columns: 0.95fr 1.15fr; gap: 48px; align-items: center; }
.actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px; }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 24px; background: var(--surface); color: var(--ink); }
.card p { font-size: 14.5px; line-height: 1.5; color: #4b6158; margin: 0; }
.icon { width: 36px; height: 36px; border-radius: 8px; background: var(--tint); display: flex; align-items: center; justify-content: center; color: var(--green); font-weight: 700; }

/* The app picture (drawn, not a screenshot) */
.app { border: 1px solid #dfe5e2; border-radius: 10px; background: #fff; color: var(--ink); box-shadow: 0 20px 50px rgba(12, 26, 20, .12); overflow: hidden; font-size: 12.5px; }
.app .bar { height: 34px; background: #f3f5f4; border-bottom: 1px solid #e3e8e5; display: flex; align-items: center; padding: 0 12px; gap: 8px; color: var(--ink-muted); }
.app .body { display: flex; }
.app .side { width: 150px; border-right: 1px solid #eef1ef; padding: 12px; color: #33463d; }
.app .side div { padding: 6px 8px; border-radius: 4px; }
.app .side .on { background: var(--tint); font-weight: 600; }
.app .main { flex: 1; min-width: 0; padding: 14px 18px; overflow-x: auto; }
.app table { width: 100%; border-collapse: collapse; }
.app th { text-align: left; color: var(--ink-muted); font-weight: 600; padding: 6px 4px; border-bottom: 1px solid #e9eeeb; }
.app td { padding: 7px 4px; border-bottom: 1px solid #f1f4f2; white-space: nowrap; }
.pill { background: var(--warn-bg); color: var(--warn-ink); border-radius: 10px; padding: 2px 8px; font-size: 11px; white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok-ink); }

/* Price */
.price-row { display: flex; gap: 40px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.price-card { min-width: 280px; text-align: center; }
.price { font-size: 44px; font-weight: 700; letter-spacing: -1px; }
.price small { font-size: 18px; font-weight: 500; color: var(--ink-soft); }

/* Getting started steps */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; color: var(--ink); }
.steps h3 { margin: 2px 0 6px; }
.steps p { margin: 0; font-size: 14.5px; line-height: 1.5; color: #4b6158; }
.step-number { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* Plans */
.pricing-head { max-width: 760px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px; }
.plan h3 { font-size: 20px; margin: 0 0 6px; }
.plan .plan-for { min-height: 2.9em; }
.plan .price { margin: 18px 0 20px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14.5px; color: var(--ink-soft); }
.plan li { padding-left: 24px; position: relative; line-height: 1.4; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.plan li.plus { font-weight: 600; color: var(--ink); }
.plan li.plus::before { content: "+"; }
.plan.featured { border: 2px solid var(--green); box-shadow: 0 16px 40px rgba(38, 106, 81, .12); }
.plan-badge { position: absolute; top: -13px; left: 28px; background: var(--green); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 20px; }
.soon { font-size: 11px; font-weight: 600; color: var(--warn-ink); background: var(--warn-bg); border-radius: 10px; padding: 1px 7px; margin-left: 4px; }
.plans-note { margin-top: 20px; font-size: 14px; color: var(--ink-muted); }

/* Sign-up */
.join .wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 6px; }
form label span { font-weight: 400; color: #7a8b83; }
form input, form select { width: 100%; padding: 12px; border: 1px solid #cfd9d3; border-radius: 6px; font: inherit; font-size: 15px; background: #fff; color: var(--ink); }
/* Safari draws native selects at its own height; drawn like the text fields instead, with our own arrow */
form select { -webkit-appearance: none; appearance: none; height: 46px; padding-right: 38px; line-height: 1.2;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235a6b63' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; }
form input { height: 46px; }
form .wide { grid-column: 1 / -1; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: #4b6158; line-height: 1.45; }
.consent input { width: auto; margin-top: 2px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { font-size: 14.5px; min-height: 1.2em; }
.status.error { color: var(--error); }
.thanks { text-align: center; padding: 24px 8px; }
.thanks h3 { font-size: 22px; }

footer { padding: 36px 0; font-size: 13.5px; color: var(--ink-muted); border-top: 1px solid #e6ece9; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: inherit; }

/* Privacy page */
.prose { max-width: 720px; line-height: 1.65; font-size: 16px; }
.prose h2 { margin-top: 36px; font-size: 24px; }

/* Grid columns may shrink below their content (the app picture's table would otherwise widen the page) */
.hero .wrap > *, .join .wrap > *, .grid3 > *, .grid4 > * { min-width: 0; }

/* Docs */
.docs { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding: 40px 0 80px; }
.docs-nav { position: sticky; top: 24px; align-self: start; font-size: 14.5px; }
.docs-nav h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); margin: 20px 0 8px; }
.docs-nav a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--ink-soft); text-decoration: none; }
.docs-nav a:hover { background: var(--tint); color: var(--ink); }
.docs-nav a[aria-current="page"] { background: var(--tint); color: var(--green); font-weight: 600; }
.doc { max-width: 760px; line-height: 1.65; font-size: 16px; color: var(--ink); }
.doc h1 { font-size: 38px; margin-bottom: 12px; }
.doc .intro { font-size: 18.5px; color: var(--ink-soft); margin: 0 0 28px; }
.doc h2 { font-size: 23px; margin: 40px 0 10px; letter-spacing: -.3px; }
.doc h3 { font-size: 17px; margin: 26px 0 6px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc pre { background: #0f1f18; color: #e6f2ec; padding: 16px 18px; border-radius: 8px; overflow-x: auto; font-size: 13.5px; line-height: 1.55; }
.doc pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.doc code { font-size: 14px; background: #eef3f0; padding: 1px 6px; border-radius: 4px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 14.5px; margin: 14px 0; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { background: #f3f6f4; font-weight: 600; }
.note { border-left: 4px solid var(--green); background: var(--tint); padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 20px 0; font-size: 15px; }
.note.warn { border-color: #d9a400; background: var(--warn-bg); }
.shot { margin: 22px 0; }
.shot img { width: 100%; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(12,26,20,.08); }
.shot.missing { border: 2px dashed #c9d6cf; border-radius: 8px; padding: 34px 20px; text-align: center; color: var(--ink-muted); font-size: 14px; background: #fff; }
.shot figcaption { font-size: 13.5px; color: var(--ink-muted); margin-top: 8px; }
.doc-next { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; }
.doc-next a { text-decoration: none; font-weight: 600; }
.sources { font-size: 14px; }

/* Phones */
@media (max-width: 900px) {
  .hero .wrap, .join .wrap { grid-template-columns: 1fr; }
  .grid3, .plans, .steps { grid-template-columns: 1fr; }
  .docs { grid-template-columns: 1fr; gap: 24px; }
  .docs-nav { position: static; }
  .plans { gap: 32px; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  nav .links a:not(.button) { display: none; }
  section { padding: 56px 0; }
}
@media (max-width: 560px) {
  .grid4 { grid-template-columns: 1fr; }
  form { grid-template-columns: 1fr; }
  .app .side { display: none; }
}

/* The join bar: slides in at the top while no "Join the first release" is on screen */
.join-bar { background: var(--bg); color: var(--fg); position: fixed; top: 0; left: 0; right: 0; z-index: 50; border-bottom: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06); transform: translateY(-100%); transition: transform .2s ease; }
.join-bar.shown { transform: translateY(0); }
.join-bar .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.join-bar img { display: block; }
.join-bar-text { flex: 1; min-width: 0; font-size: 15px; color: var(--fg-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.join-bar .button { padding: 9px 16px; font-size: 14px; white-space: nowrap; }
@media (max-width: 640px) { .join-bar-text { display: none; } .join-bar .wrap { justify-content: space-between; } }
@media (prefers-reduced-motion: reduce) { .join-bar { transition: none; } }

/* Roadmap */
.roadmap-title { font-size: clamp(32px, 4.4vw, 46px); letter-spacing: -1px; line-height: 1.1; margin: 0 0 14px; }
.roadmap-jump { margin: 12px 0 8px; }
.roadmap-group { margin-top: 48px; padding: 0; background: none; }
.roadmap-group h2 { margin-bottom: 4px; }
.roadmap-group-text { color: var(--fg-soft); margin: 0 0 18px; }
.roadmap-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.roadmap-list > * { min-width: 0; }
.roadmap-item { display: flex; gap: 18px; align-items: flex-start; }
.roadmap-item h3 { font-size: 17px; margin: 2px 0 6px; }
.roadmap-area { display: inline-block; font-size: 12px; font-weight: 600; color: var(--green); }
.vote { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 76px; min-height: 64px;
  border: 1.5px solid var(--green); border-radius: 8px; background: var(--surface); color: var(--green); font: inherit; cursor: pointer; }
.vote:hover { background: var(--tint); }
.vote-label { font-size: 13px; font-weight: 700; white-space: nowrap; }
.roadmap-how { margin: 6px 0 0; color: var(--fg-soft); max-width: 720px; }
.roadmap-how-vote { display: inline-block; padding: 1px 8px; border: 1.5px solid var(--green); border-radius: 6px; color: var(--green); font-weight: 700; font-size: 14px; white-space: nowrap; }
.vote:focus-visible { outline: 3px solid var(--green-light); outline-offset: 2px; }
.vote-count { font-weight: 700; font-size: 17px; color: var(--ink); }
.vote.voted { background: var(--tint); border-color: var(--green); cursor: default; }
.vote:disabled { opacity: .6; }
.roadmap-wish { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
.roadmap-wish > * { min-width: 0; }
#wish-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form textarea { width: 100%; padding: 12px; border: 1px solid #cfd9d3; border-radius: 6px; font: inherit; font-size: 15px; background: #fff; color: var(--ink); resize: vertical; }
form textarea:focus-visible { outline: 3px solid var(--green-light); outline-offset: 2px; }
.vote-dialog { border: none; border-radius: 12px; padding: 28px; max-width: 460px; width: calc(100% - 32px); color: var(--ink); }
.vote-dialog::backdrop { background: rgba(10, 26, 20, .45); }
.vote-dialog h2 { font-size: 21px; letter-spacing: -.3px; }
.vote-dialog form { display: flex; flex-direction: column; gap: 10px; }
.vote-dialog p { margin: 0; color: #4b6158; font-size: 14.5px; }
.vote-actions { display: flex; gap: 10px; margin-top: 6px; }
@media (max-width: 860px) {
  .roadmap-wish { grid-template-columns: 1fr; gap: 24px; }
  #wish-form { grid-template-columns: 1fr; }
  .roadmap-list { grid-template-columns: 1fr; }
}

.done-mark { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 76px; min-height: 64px;
  border-radius: 8px; background: var(--tint); color: var(--green); font-weight: 700; }
.done-when { font-size: 11px; font-weight: 600; text-align: center; line-height: 1.2; }
.roadmap-summary { margin: 18px 0 0; font-weight: 600; color: var(--green); min-height: 1.4em; }
