/* KeepOne website. Same family as the app: warm near-black, amber, contact-sheet details. */
@font-face { font-family: 'Bricolage'; src: url('/fonts/bricolage.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Instrument'; src: url('/fonts/instrument.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'JetBrains'; src: url('/fonts/jetbrains.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #0f0e0c;
  --bg-1: #161411;
  --bg-2: #1d1a16;
  --line: #2a2620;
  --line-2: #3b352a;
  --text: #f4eee2;
  --soft: #bdb2a0;
  --dim: #8a8070;
  --amber: #ffb224;
  --amber-2: #f08a1c;
  --ink: #1b1304;
  --red: #ff7a6b;
  --display: 'Bricolage', 'Segoe UI', system-ui, sans-serif;
  --body: 'Instrument', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains', ui-monospace, Consolas, monospace;
  --radius: 16px;
  --sprockets: radial-gradient(circle at 9px 50%, #2c2821 3.2px, transparent 3.6px) 0 0 / 22px 100%;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-underline-offset: 3px; }
a:hover { color: #ffd27a; }
h1, h2, h3 { font-family: var(--display); line-height: 1.04; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 700; }
h3 { font-size: 22px; font-weight: 650; letter-spacing: -0.015em; line-height: 1.15; }
p { margin: 0 0 1em; }
.mono, code { font-family: var(--mono); font-size: 0.86em; }
.dim { color: var(--dim); }
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 48px); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--amber); color: var(--ink); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.eyebrow { font: 600 12.5px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 5px rgba(255, 178, 36, 0.16); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: 600 16px/1.2 var(--body); text-decoration: none; cursor: pointer; transition: transform 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s; }
.btn:hover { transform: translateY(-1px); border-color: #5a503d; color: var(--text); }
.btn.primary { background: linear-gradient(180deg, #ffc24d, var(--amber) 55%, #f59a1d); border-color: #ffcf73; color: var(--ink); box-shadow: 0 10px 34px -12px rgba(255, 178, 36, 0.7); }
.btn.primary:hover { color: var(--ink); box-shadow: 0 14px 40px -10px rgba(255, 178, 36, 0.85); }
.btn.sm { padding: 9px 15px; font-size: 14.5px; border-radius: 10px; }
.btn.lg { padding: 15px 22px 15px 18px; border-radius: 14px; text-align: left; }
.btn.lg svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn.lg span { display: grid; gap: 3px; }
.btn.lg b { font-size: 17px; }
.btn small { font: 500 12.5px/1.2 var(--mono); opacity: 0.72; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* nav */
.nav { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(14px); background: rgba(15, 14, 12, 0.78); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 20px/1 var(--display); letter-spacing: -0.02em; }
.nav nav { display: flex; align-items: center; gap: 26px; }
.nav nav a:not(.btn) { color: var(--soft); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav nav a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; padding: 10px; cursor: pointer; }
.nav-toggle i { display: block; height: 2px; background: var(--text); margin: 6px 0; border-radius: 2px; }

/* hero */
.hero { position: relative; padding: clamp(56px, 8vw, 104px) 0 0; overflow: hidden; }
.hero-glow { position: absolute; inset: -20% -10% auto; height: 760px; background: radial-gradient(520px 340px at 22% 30%, rgba(255, 178, 36, 0.17), transparent 70%), radial-gradient(600px 400px at 85% 10%, rgba(240, 138, 28, 0.1), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; }
h1 { font-size: clamp(54px, 10.4vw, 148px); font-weight: 750; letter-spacing: -0.045em; line-height: 0.9; }
h1 em { font-style: normal; color: var(--amber); position: relative; }
.lede { font-size: clamp(18px, 2vw, 22.5px); line-height: 1.5; color: var(--soft); max-width: 44ch; margin: 30px 0 34px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.fine { font-size: 14px; color: var(--dim); margin-top: 18px; max-width: 70ch; }
.fine.center { margin-inline: auto; }
.window { margin: clamp(44px, 6vw, 76px) 0 0; border: 1px solid var(--line-2); border-bottom: 0; border-radius: 18px 18px 0 0; background: var(--bg-1); box-shadow: 0 -30px 120px -40px rgba(255, 178, 36, 0.28), 0 40px 80px rgba(0, 0, 0, 0.5); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--line); background: #131110; }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a342a; }
.window-bar span { margin-left: 10px; font: 500 12.5px var(--mono); color: var(--dim); }
.window img { width: 100%; }
.window figcaption { position: absolute; left: -9999px; }

/* numbers strip */
.strip { border-block: 1px solid var(--line); background: var(--sprockets), #0c0b0a; background-repeat: repeat-x; background-size: 22px 16px, auto; background-position: 0 0, 0 0; padding-top: 16px; position: relative; }
.strip::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 16px; background: var(--sprockets); background-size: 22px 16px; }
.strip-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding-block: 34px 50px; }
.strip-in div { padding: 4px 26px; border-left: 1px solid var(--line); }
.strip-in div:first-child { border-left: 0; padding-left: 0; }
.strip-in b { display: block; font: 750 clamp(30px, 3.6vw, 46px)/1 var(--display); letter-spacing: -0.03em; color: var(--amber); margin-bottom: 10px; }
.strip-in span { color: var(--soft); font-size: 15px; line-height: 1.45; display: block; }

/* sections */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section.alt { background: var(--bg-1); border-block: 1px solid var(--line); }
.section-lede { font-size: 19px; color: var(--soft); max-width: 62ch; margin: 20px 0 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }

.feature { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: clamp(28px, 4.5vw, 64px); align-items: center; margin-top: clamp(56px, 7vw, 96px); }
.feature.flip .feature-text { order: 2; }
.feature .num { font: 600 13px var(--mono); color: var(--amber); letter-spacing: 0.18em; }
.feature h3 { font-size: clamp(26px, 3vw, 36px); margin: 12px 0 16px; }
.feature p { color: var(--soft); }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; color: var(--soft); font-size: 16px; line-height: 1.45; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 5px; width: 15px; height: 15px; border-radius: 5px; background: var(--amber); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.8' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.8' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.shot { margin: 0; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: var(--bg-1); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8); transform: rotate(0.6deg); transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.feature.flip .shot { transform: rotate(-0.6deg); }
.shot:hover { transform: rotate(0) scale(1.01); }
.shot.tall { transform: none; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: clamp(56px, 7vw, 96px); }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-1); padding: 0 0 24px; overflow: hidden; transition: border-color 0.2s, transform 0.2s; }
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card img { aspect-ratio: 16 / 9; object-fit: cover; object-position: 30% 0; border-bottom: 1px solid var(--line); margin-bottom: 22px; width: 100%; }
.card h3, .card p { padding-inline: 24px; }
.card p { color: var(--soft); font-size: 16px; margin: 10px 0 0; }

/* safety */
.rules { list-style: none; counter-reset: r; padding: 0; margin: 34px 0 0; display: grid; gap: 0; }
.rules li { counter-increment: r; padding: 18px 0 18px 54px; border-top: 1px solid var(--line); position: relative; color: var(--soft); font-size: 16.5px; }
.rules li::before { content: counter(r, decimal-leading-zero); position: absolute; left: 0; top: 20px; font: 600 13px var(--mono); color: var(--amber); letter-spacing: 0.1em; }
.rules b { color: var(--text); }
.safety-side { display: grid; gap: 22px; position: sticky; top: 92px; }
.caution { border: 1px solid #5b4420; background: linear-gradient(180deg, rgba(255, 178, 36, 0.09), rgba(255, 178, 36, 0.03)); border-radius: var(--radius); padding: 24px 26px; }
.caution h3 { font-size: 19px; color: var(--amber); margin-bottom: 10px; }
.caution p { font-size: 15.5px; color: #dbcfb9; margin-bottom: 0.8em; }
.caution p:last-child { margin: 0; }

/* speed */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.tile { border-top: 2px solid var(--amber); padding-top: 20px; }
.tile p { color: var(--soft); font-size: 16px; margin: 10px 0 0; }
.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 44px; }
.platform { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; background: var(--bg-1); }

/* story */
.story { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 6vw, 88px); align-items: center; }
.story-num { font: 800 clamp(96px, 17vw, 236px)/0.8 var(--display); letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 2px var(--amber); position: relative; }
.story-num small { display: block; font-size: 0.26em; letter-spacing: 0.02em; color: var(--amber); -webkit-text-stroke: 0; margin-top: 0.2em; }
.story p { color: var(--soft); max-width: 60ch; }
.story h2 { margin-bottom: 22px; }
.story b { color: var(--text); }
.sig { font: 500 14px var(--mono); color: var(--dim); letter-spacing: 0.06em; margin-top: 22px; }

/* early days */
.early { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.early h2 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 20px; }
.early p { color: var(--soft); margin-bottom: 26px; }
.asks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.asks li { border: 1px dashed var(--line-2); border-radius: 14px; padding: 18px 20px; display: grid; gap: 4px; }
.asks b { font-family: var(--display); font-size: 18px; }
.asks span { color: var(--dim); font-size: 15px; }

/* download */
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 40px; }
.dl { border: 1px solid var(--line); background: var(--bg); border-radius: var(--radius); padding: 30px; display: grid; gap: 14px; align-content: start; }
.dl.you { border-color: #6b5326; box-shadow: 0 0 0 1px rgba(255, 178, 36, 0.25), 0 30px 70px -40px rgba(255, 178, 36, 0.5); }
.dl h3 { font-size: 30px; display: flex; align-items: center; gap: 12px; }
.tag { font: 600 11.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); border: 1px solid #6b5326; border-radius: 99px; padding: 6px 10px; }
.dl > p { margin: -8px 0 6px; }
.dl .btn { justify-content: space-between; }
.link { font-size: 15px; color: var(--soft); }
.link.muted { color: var(--dim); }
.dl details { border-top: 1px solid var(--line); padding-top: 14px; font-size: 15.5px; color: var(--soft); }
.dl summary { cursor: pointer; color: var(--text); font-weight: 600; }
.dl details p { margin: 10px 0 0; }
.hash { font-size: 12px; color: var(--dim); margin: 0; word-break: break-all; }
.hash code { color: var(--soft); font-size: 11.5px; }

/* faq */
.q { border-top: 1px solid var(--line); }
.q:last-of-type { border-bottom: 1px solid var(--line); }
#faq h2 { margin-bottom: 34px; }
.q summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font: 650 20px/1.25 var(--display); letter-spacing: -0.01em; position: relative; }
.q summary::-webkit-details-marker { display: none; }
.q summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font: 400 30px/1 var(--display); color: var(--amber); transition: transform 0.2s; }
.q[open] summary::after { transform: rotate(45deg); }
.q p { color: var(--soft); max-width: 68ch; padding-bottom: 8px; }

/* contact */
.mail { font-size: 18px; margin-top: 26px; }
.form { display: grid; gap: 16px; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--bg); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 7px; font-size: 14px; font-weight: 600; color: var(--soft); }
.form .opt { font-weight: 400; color: var(--dim); }
.form input, .form select, .form textarea { font: 16px/1.4 var(--body); color: var(--text); background: var(--bg-1); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 13px; width: 100%; }
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: transparent; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.status { margin: 0; font-size: 15px; color: var(--soft); }
.status.ok { color: #8fe0a0; }
.status.err { color: var(--red); }

/* footer */
.foot { padding: 56px 0 30px; border-top: 1px solid var(--line); background: #0b0a09; }
.foot-in { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; }
.foot p { color: var(--dim); font-size: 14.5px; max-width: 64ch; margin: 14px 0 0; }
.foot-warn { border-left: 2px solid #5b4420; padding-left: 14px; }
.foot nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; align-content: start; }
.foot nav a { color: var(--soft); text-decoration: none; font-size: 15px; }
.foot nav a:hover { color: var(--text); }
.foot-legal { color: #6a6154; font-size: 12.5px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }

/* text pages */
.doc-main { padding: 64px 0 96px; max-width: 800px; }
.doc-main h1 { font-size: clamp(40px, 6vw, 68px); margin-bottom: 14px; }
.doc-main h2 { font-size: 22px; letter-spacing: -0.01em; margin: 40px 0 12px; }
.doc-main p, .doc-main li { color: var(--soft); font-size: 16.5px; }
.doc-main ul { padding-left: 22px; display: grid; gap: 8px; }
.callout { border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 18px; background: var(--bg-1); margin-top: 22px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 8px 14px; border-bottom: 1px solid var(--line); color: var(--soft); }
th { color: var(--text); font-family: var(--display); position: sticky; top: 0; background: var(--bg-1); }

/* entrance */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.rise { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.d1 { animation-delay: 0.08s; } .d2 { animation-delay: 0.18s; } .d3 { animation-delay: 0.28s; } .d4 { animation-delay: 0.42s; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rise, .reveal { animation: none; opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .shot { transform: none !important; } }

@media (max-width: 980px) {
  .two, .feature, .early, .story, .foot-in { grid-template-columns: 1fr; }
  .feature.flip .feature-text { order: 0; }
  .cards, .grid3 { grid-template-columns: 1fr; }
  .strip-in { grid-template-columns: 1fr 1fr; gap: 26px 0; }
  .strip-in div:nth-child(3) { border-left: 0; padding-left: 0; }
  .safety-side { position: static; }
  .dl-grid, .platforms { grid-template-columns: 1fr; }
  .story-num { justify-self: start; }
  .nav-toggle { display: block; }
  .nav nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #12100e; border-bottom: 1px solid var(--line); padding: 8px 24px 20px; }
  .nav nav.open { display: flex; }
  .nav nav a:not(.btn) { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav nav .btn { margin-top: 16px; justify-content: center; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap, .narrow { width: calc(100% - 36px); }
  .strip-in { grid-template-columns: 1fr; }
  .strip-in div { border-left: 0; padding-left: 0; }
  .form .row { grid-template-columns: 1fr; }
  .cta .btn { width: 100%; }
  .shot { transform: none !important; }
}
