/* Keel site. Same colors and fonts as the app. Fonts are served from this site, so no request leaves for a font host. */
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/plex-sans-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/plex-sans-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/plex-sans-600.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/space-grotesk-600.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/space-grotesk-700.woff2") format("woff2"); }

:root {
  --ink: #12202b;
  --night: #0c1820;
  --slate: #4a5763;
  --muted: #5f6a72;
  --rope: #dce0db;
  --rope-strong: #b9c0ba;
  --sail: #f5f6f3;
  --white: #ffffff;
  --teal: #0e6a6b;
  --teal-deep: #0a4f50;
  --teal-light: #8fd0cc;
  --hull: #e9eeea;
  --on-dark: #c3d0d8;
  --on-dark-soft: #9fb1bc;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--sail); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--teal-deep); text-underline-offset: 3px; }
a:hover { color: var(--teal); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible { outline-color: var(--teal-light); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; }
figure { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--sail); padding: 8px 12px; border-radius: 6px; z-index: 20; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 720px; }

/* header (light on the legal pages, dark on the home page) */
.top { border-bottom: 1px solid var(--rope); background: var(--sail); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 21px/1 var(--display); letter-spacing: -0.01em; }
.brand svg { display: block; }
.nav { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.nav a { color: var(--slate); text-decoration: none; }
.nav a:hover { color: var(--ink); text-decoration: underline; }
.nav a.btn, .nav a.btn:hover { color: var(--white); text-decoration: none; }
@media (max-width: 560px) { .nav .hide-sm { display: none; } }
.top.dark { background: var(--ink); border-bottom: 0; }
.top.dark .brand { color: var(--white); }
.top.dark .nav a { color: var(--on-dark); }
.top.dark .nav a:hover { color: var(--white); }
.top.dark .nav a.btn.light, .top.dark .nav a.btn.light:hover { color: var(--ink); }

/* buttons */
.btn { display: inline-block; background: var(--teal); color: var(--white); text-decoration: none; font-weight: 600; font-size: 16px; padding: 12px 20px; border-radius: 10px; border: 1px solid var(--teal); }
.btn:hover { background: var(--teal-deep); color: var(--white); }
.btn.sm { font-size: 14px; padding: 8px 14px; }
.btn.light { background: var(--sail); border-color: var(--sail); color: var(--ink); }
.btn.light:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn.ghost-dark { background: transparent; border-color: rgba(245, 246, 243, 0.35); color: var(--white); }
.btn.ghost-dark:hover { background: rgba(245, 246, 243, 0.1); border-color: rgba(245, 246, 243, 0.6); color: var(--white); }

/* hero: dark, with the app itself rising out of it */
.hero { background: var(--ink); color: var(--white); padding: 56px 0 0; position: relative; z-index: 1; display: flow-root; }
.hero h1 { font-size: clamp(2.4rem, 6.2vw, 4.4rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.035em; max-width: 12.5em; margin-bottom: 24px; }
.hero .lead { font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: var(--on-dark); max-width: 36em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }
.hero .fine { font-size: 14px; color: var(--on-dark-soft); margin: 0; max-width: 40em; }
.hero .fine a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 2px; }
.hero .fine a:hover { color: var(--white); }
@media (min-width: 900px) { .hero { padding-top: 88px; } }

.stage { position: relative; margin-top: 56px; margin-bottom: -110px; }
.stage img { display: block; width: 100%; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 40px 70px -28px rgba(0, 0, 0, 0.55); background: var(--white); }
.shot-narrow { display: none; }
.shot-note { position: absolute; left: 20px; right: 20px; top: 100%; font-size: 14px; color: var(--muted); margin: 14px 0 0; }
@media (max-width: 759px) {
  .stage { margin-top: 40px; margin-bottom: -70px; }
  .shot-wide { display: none; }
  .shot-narrow { display: block; width: min(300px, 78%); margin: 0 auto; }
  .shot-note { text-align: center; left: 0; right: 0; }
}

/* sections */
section { padding: 72px 0; }
.sec-head { max-width: 38em; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: 12px; }
.sec-head p { color: var(--slate); font-size: 18px; margin: 0; }

/* product tour */
.tour { padding-top: 232px; }
@media (max-width: 759px) { .tour { padding-top: 176px; } }
.tour-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 64px; }
.tour-row { display: grid; gap: 28px; align-items: center; min-width: 0; }
.tour-text { max-width: 30em; min-width: 0; }
.tour-text .n { display: block; font: 700 56px/1 var(--display); color: var(--teal); margin-bottom: 12px; letter-spacing: -0.04em; }
.tour-text h3 { font-size: 26px; margin-bottom: 10px; }
.tour-text p { color: var(--slate); margin: 0; font-size: 17px; }
.tour-shot { min-width: 0; }
.tour-shot img { display: block; width: 100%; border-radius: 18px; border: 1px solid var(--rope); background: var(--white); box-shadow: 0 24px 48px -28px rgba(18, 32, 43, 0.35); }
@media (min-width: 860px) {
  .tour-row { grid-template-columns: 1fr 340px; gap: 72px; }
  .tour-row:nth-child(even) .tour-shot { order: -1; }
  .tour-row:nth-child(even) { grid-template-columns: 340px 1fr; }
  .tour-row:nth-child(even) .tour-text { justify-self: start; }
}
@media (max-width: 859px) { .tour-shot { max-width: 340px; } }

/* rules */
.control { background: var(--white); border-top: 1px solid var(--rope); border-bottom: 1px solid var(--rope); }
.split { display: grid; gap: 40px; align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 340px; gap: 72px; } }
.split > div { min-width: 0; }
.control .sec-head { margin-bottom: 20px; }
.flow { padding: 72px 0; background: var(--white); border-top: 1px solid var(--rope); border-bottom: 1px solid var(--rope); }
.flow-list { list-style: none; counter-reset: flow; padding: 0; margin: 0; max-width: 720px; }
.flow-list li { counter-increment: flow; position: relative; padding: 16px 0 16px 48px; border-bottom: 1px solid var(--rope); display: grid; gap: 2px; }
.flow-list li:last-child { border-bottom: 0; }
.flow-list li::before { content: counter(flow); position: absolute; left: 0; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: #fff; font: 600 15px/30px var(--display); text-align: center; }
.flow-list strong { font: 600 18px/1.3 var(--display); }
.flow-list span { color: var(--slate); font-size: 16px; }
.rules { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rope); }
.rules li { padding: 16px 0; border-bottom: 1px solid var(--rope); display: grid; gap: 2px; }
.rules strong { font: 600 18px/1.3 var(--display); }
.rules span { color: var(--slate); font-size: 16px; }

/* pricing */
.plans { display: grid; gap: 16px; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; } }
.plan { background: var(--white); border: 1px solid var(--rope); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; min-width: 0; }
.plan h3 { font-size: 22px; margin-bottom: 4px; }
.plan .tag { font-size: 14px; color: var(--slate); margin: 0 0 12px; min-height: 22px; }
.price { font: 700 44px/1.1 var(--display); letter-spacing: -0.03em; margin: 4px 0 2px; }
.price small { font: 400 16px/1 var(--font); color: var(--muted); letter-spacing: 0; }
.drafts { font-size: 15px; font-weight: 500; color: var(--teal-deep); margin: 0 0 18px; }
.plan ul { list-style: none; padding: 16px 0 0; margin: 0; border-top: 1px solid var(--rope); display: grid; gap: 10px; font-size: 15px; color: var(--ink); }
.plan li { padding-left: 24px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 10px; height: 5px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.plan.pick { background: var(--ink); border-color: var(--ink); color: var(--white); }
.plan.pick .tag { color: var(--teal-light); font-weight: 500; }
.plan.pick .price small { color: var(--on-dark-soft); }
.plan.pick .drafts { color: var(--teal-light); }
.plan.pick ul { border-top-color: rgba(255, 255, 255, 0.18); color: var(--white); }
.plan.pick li::before { border-color: var(--teal-light); }
.price-notes { margin-top: 28px; display: grid; gap: 6px; font-size: 15px; color: var(--slate); max-width: 52em; }
.price-notes p { margin: 0; }

/* faq */
.faq-section { background: var(--white); border-top: 1px solid var(--rope); }
.faq { display: grid; gap: 0; border-top: 1px solid var(--rope); max-width: 760px; }
.faq details { border-bottom: 1px solid var(--rope); padding: 16px 0; }
.faq summary { cursor: pointer; font: 600 18px/1.35 var(--display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--teal-deep); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 10px 0 0; color: var(--slate); font-size: 16px; }

/* closing call, with the waterline from the app */
.close { background: var(--ink); color: var(--white); padding: 80px 0 0; }
.close h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); margin-bottom: 12px; }
.close p { color: var(--on-dark); font-size: 18px; max-width: 34em; }
.mail { font-family: var(--mono); font-size: 16px; color: var(--white); }
.close .cta { margin: 24px 0 0; }
.sea { position: relative; height: 120px; margin-top: 24px; overflow: hidden; }
.sea::before { content: ""; position: absolute; left: 0; right: 0; top: 36px; bottom: 0; background: var(--teal); }
.sea .wave { position: absolute; left: 0; width: 200%; height: 22px; }
.sea .wave-front { top: 26px; animation: drift 7s linear infinite; }
.sea .wave-back { top: 22px; opacity: 0.55; animation: drift 11s linear infinite reverse; }
.sea .boat { position: absolute; left: 50%; top: 0; margin-left: -32px; z-index: 1; transform-origin: 50% 90%; animation: rock 3.2s ease-in-out infinite; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes rock { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-4px) rotate(3deg); } }

/* footer */
.foot { background: var(--night); color: var(--on-dark); padding: 40px 0 48px; font-size: 15px; }
.foot .wrap { display: grid; gap: 24px; }
@media (min-width: 800px) { .foot .wrap { grid-template-columns: 1.4fr 1fr; } }
.foot a { color: #e6ecef; }
.foot a:hover { color: var(--white); }
.foot .brand { color: var(--white); margin-bottom: 10px; }
.foot p { margin: 0 0 6px; }
.foot .links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-content: flex-start; }

/* legal pages */
.doc { padding: 48px 0 72px; }
.doc h1 { font-size: clamp(30px, 4.4vw, 42px); margin-bottom: 8px; }
.doc .meta { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--ink); font-size: 17px; }
.doc ul { padding-left: 22px; margin: 0 0 1em; }
.doc li { margin-bottom: 6px; }
.doc .summary { background: var(--white); border: 1px solid var(--rope); border-radius: 12px; padding: 18px 20px; margin-bottom: 8px; }
.doc .summary p { margin: 0; font-size: 16px; color: var(--slate); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 20px; table-layout: fixed; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rope); vertical-align: top; }
.doc th { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.doc td:first-child { font-weight: 600; width: 42%; }
.doc td, .doc th { overflow-wrap: anywhere; }
@media (max-width: 560px) { .doc table { font-size: 14px; } .doc td:first-child { width: 46%; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sea .wave, .sea .boat { animation: none; }
}
