/* OnceOut marketing site + legal pages. Palette and fonts follow the forest/cream brand system. Fonts are self-hosted. */
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dm-sans.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }

:root {
  --forest: #0e241c; --forest-2: #17382c; --cream: #f3ede0; --sage: #9fb6a8; --orange: #e9622b;
  --line: rgba(243, 237, 224, .18); --line-dark: rgba(14, 36, 28, .2);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--forest); color: var(--cream); font: 400 18px/1.55 var(--sans); }
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cream); color: var(--forest); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { width: min(1160px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 22px; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 22px/1 var(--serif); letter-spacing: -.01em; text-decoration: none; font-variation-settings: "opsz" 48; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.top nav { display: flex; align-items: center; gap: 26px; font-size: 16px; }
.top nav a { text-decoration: none; opacity: .85; }
.top nav a:hover { opacity: 1; text-decoration: underline; }
@media (max-width: 640px) { .top nav .hide-sm { display: none; } }

/* buttons */
.btn { display: inline-block; padding: 14px 24px; border-radius: 10px; font: 600 17px/1 var(--sans); text-decoration: none; background: var(--orange); color: var(--forest); border: 2px solid var(--orange); }
.btn:hover { background: #f27a47; border-color: #f27a47; }
.btn.small { padding: 10px 18px; font-size: 15px; }
.btn.ghost { background: transparent; color: var(--cream); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--cream); background: transparent; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-block: clamp(36px, 7vw, 88px) clamp(56px, 8vw, 104px); }
@media (max-width: 920px) { .hero { grid-template-columns: 1fr; } }
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -.02em; margin: 0; font-variation-settings: "opsz" 120; }
h1 { font-size: clamp(40px, 6.2vw, 74px); line-height: 1.02; text-wrap: balance; }
.lede { font-size: clamp(18px, 2vw, 21px); color: #dcd7ca; max-width: 34em; margin: 26px 0 0; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; align-items: center; }
.fine { font-size: 15px; color: var(--sage); margin: 18px 0 0; max-width: 34em; }

/* the live demo: the one memorable element */
.demo { background: var(--forest-2); border: 1px solid var(--line); border-radius: 14px; padding: clamp(16px, 2.4vw, 26px); }
.demo label { display: block; font-size: 15px; color: var(--sage); margin-bottom: 10px; }
.demo textarea { width: 100%; min-height: 168px; resize: vertical; background: var(--forest); color: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font: 400 17px/1.5 var(--sans); }
.demo textarea:focus { outline: 3px solid var(--orange); outline-offset: 0; border-color: transparent; }
.limits { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.limits h3 { font: 600 15px/1.3 var(--sans); color: var(--sage); letter-spacing: 0; margin: 10px 0 2px; }
.limits li { display: grid; grid-template-columns: 8.5em 1fr auto; gap: 12px; align-items: center; font-size: 16px; }
.limits .bar { height: 8px; background: rgba(243, 237, 224, .12); border-radius: 4px; overflow: hidden; }
.limits .bar i { display: block; height: 100%; width: 0; background: var(--sage); border-radius: 4px; transition: width .12s linear, background-color .2s; }
.limits .n { font-variant-numeric: tabular-nums; color: var(--sage); min-width: 7.5em; text-align: right; font-size: 15px; }
.limits li.over .bar i { background: var(--orange); }
.limits li.over .n { color: var(--orange); font-weight: 600; }
.limits li.over .nm { font-weight: 600; }
@media (max-width: 520px) { .limits li { grid-template-columns: 1fr auto; } .limits .bar { grid-column: 1 / -1; order: 3; } }
.demo .hint { margin: 16px 0 0; font-size: 15px; color: var(--sage); min-height: 2.9em; }

/* sections */
section.block { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--line); }
section.block > .wrap > h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; max-width: 18em; text-wrap: balance; }
.intro { color: #dcd7ca; max-width: 40em; margin: 18px 0 0; }

.features { display: grid; grid-template-columns: 1fr 1fr; gap: 44px clamp(32px, 6vw, 88px); margin-top: 52px; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; gap: 34px; } }
.features h3 { font-size: 24px; line-height: 1.2; margin-bottom: 8px; }
.features p { margin: 0; color: #dcd7ca; max-width: 30em; }

/* steps: a real sequence, so numbered */
.steps { list-style: none; counter-reset: s; margin: 48px 0 0; padding: 0; display: grid; gap: 30px; max-width: 46em; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: 6px 18px; }
.steps li::before { content: counter(s); font: 560 44px/1 var(--serif); color: var(--orange); grid-row: span 2; font-variation-settings: "opsz" 120; }
.steps h3 { font-size: 24px; }
.steps p { margin: 0; color: #dcd7ca; }

/* the paper band: comparison table */
.paper { background: var(--cream); color: var(--forest); border-top: 0; }
.paper .intro { color: #34483f; }
.tablewrap { overflow-x: auto; margin-top: 40px; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 16px; }
caption { text-align: left; padding-bottom: 12px; font-size: 15px; color: #34483f; }
th, td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line-dark); vertical-align: top; }
thead th { font-weight: 600; font-size: 15px; border-bottom: 2px solid var(--forest); }
tbody th { font: 600 17px/1.3 var(--sans); white-space: nowrap; }
td.y { font-weight: 600; }
td.no { color: #6a7b72; }
.notes { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 16px; color: #34483f; max-width: 52em; }

details { border-top: 1px solid var(--line); padding: 20px 0; max-width: 46em; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font: 560 22px/1.3 var(--serif); letter-spacing: -.01em; list-style-position: outside; }
details p { margin: 12px 0 0; color: #dcd7ca; }
.faq { margin-top: 40px; }

.closer { text-align: left; }
.closer h2 { max-width: 14em; }

footer { border-top: 1px solid var(--line); padding-block: 36px 56px; font-size: 15px; color: var(--sage); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* legal pages */
.doc { max-width: 44em; padding-block: 24px 80px; }
.doc h1 { font-size: clamp(34px, 5vw, 54px); margin-bottom: 8px; }
.doc h2 { font-size: 26px; margin: 40px 0 10px; }
.doc p, .doc li { color: #e6e1d4; }
.doc ul { padding-left: 1.2em; }
.draft { background: rgba(233, 98, 43, .14); border: 1px solid var(--orange); border-radius: 10px; padding: 14px 18px; margin: 22px 0; font-size: 16px; }
.doc .meta { color: var(--sage); font-size: 15px; }
