/* The landing page. Same tokens and pieces as the app (theme.css), plus page layout. */
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { overflow-x: clip; }
.skip { position: absolute; left: 1rem; top: -3rem; z-index: 30; padding: .5rem .8rem; border-radius: var(--radius-sm); background: var(--inverse); color: var(--inverse-text); }
.skip:focus { top: .75rem; }

/* --- header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent); }
.top-inner { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; gap: 1.5rem; padding: .7rem clamp(1rem, 4vw, 2rem); }
.logo { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--text); text-decoration: none; }
.logo:hover { color: var(--text); }
.top nav { display: flex; gap: .25rem; margin-left: auto; }
.top nav a { color: var(--text-2); text-decoration: none; font-weight: 550; font-size: .93rem; padding: .45rem .75rem; border-radius: 8px; transition: background-color .15s var(--ease), color .15s var(--ease); }
.top nav a:hover { color: var(--text); background: var(--surface-3); }
@media (max-width: 680px) { .top nav { display: none; } .top-cta { margin-left: auto; } }

/* --- shared section pieces */
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 .8rem; color: var(--accent-ink); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 20px; height: 2px; border-radius: 2px; background: var(--brass); }
.band { padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 4vw, 2rem); }
.band > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
.band.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.band h2 { font-size: clamp(1.7rem, 3.8vw, 2.5rem); letter-spacing: -.03em; margin-bottom: .6rem; }
.section-lede { color: var(--muted); font-size: 1.08rem; max-width: 58ch; margin: 0; }

/* --- hero */
.hero { position: relative; overflow: clip; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(50% 55% at 78% 42%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 70%),
    radial-gradient(28% 30% at 92% 70%, color-mix(in srgb, var(--brass) 11%, transparent), transparent 70%);
}
.hero-inner { position: relative; max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2rem) clamp(3rem, 7vw, 5.5rem); }
.pill { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.4rem; padding: .35rem .8rem .35rem .65rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2); font-size: .84rem; font-weight: 600; box-shadow: var(--shadow-sm); }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); line-height: 1.02; letter-spacing: -.045em; margin-bottom: 1.2rem; font-weight: 700; }
.lede { font-size: clamp(1.06rem, 1.8vw, 1.22rem); color: var(--text-2); max-width: 46ch; margin: 0 0 2rem; line-height: 1.55; }
.cta { display: flex; gap: .75rem; flex-wrap: wrap; margin: 0 0 1.75rem; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; padding: 0; margin: 0; color: var(--muted); font-size: .9rem; font-weight: 550; }
.trust li { display: inline-flex; align-items: center; gap: .45rem; }
.trust li::before { content: ''; width: 14px; height: 14px; background: var(--ok); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%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 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }

/* the picture of the app, built from boxes */
.hero-visual { position: relative; padding: 1.5rem 1.25rem 2.5rem 1.5rem; }
.mock { border-radius: 16px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); overflow: hidden; font-size: .82rem; transform: perspective(1400px) rotateY(-5deg) rotateX(2deg); transform-origin: left center; }
.mock-bar { display: flex; align-items: center; justify-content: space-between; padding: .55rem .8rem; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.mock-title { display: inline-flex; align-items: center; gap: .45rem; font-weight: 650; font-size: .78rem; color: var(--text-2); }
.mock-mark { width: 14px; height: 14px; border-radius: 4px; background: #0e4a3a; box-shadow: inset 0 0 0 3.5px #0e4a3a, inset 0 0 0 7px #e9f5ef; }
.mock-ctl { display: inline-flex; align-items: center; gap: 1rem; }
.mock-ctl i { width: 10px; height: 10px; background: linear-gradient(var(--muted), var(--muted)) center / 10px 1.5px no-repeat; }
.mock-ctl i:nth-child(2) { width: 9px; height: 9px; background: none; border: 1.5px solid var(--muted); border-radius: 1px; }
.mock-ctl i:nth-child(3) { background: linear-gradient(45deg, transparent 44%, var(--muted) 44%, var(--muted) 56%, transparent 56%), linear-gradient(-45deg, transparent 44%, var(--muted) 44%, var(--muted) 56%, transparent 56%); }
.mock-body { display: grid; grid-template-columns: 150px minmax(0, 1fr); min-height: 330px; }
.mock-side { display: flex; flex-direction: column; gap: 3px; padding: .8rem .55rem; background: var(--bg-2); border-right: 1px solid var(--line); }
.mock-nav { padding: .4rem .6rem; border-radius: 7px; color: var(--text-2); font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-nav.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.mock-state { margin-top: auto; display: flex; align-items: center; gap: .45rem; padding: .5rem .6rem; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); font-weight: 650; }
.mock-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.mock-main { padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.mock-h { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; }
.mock-search { display: block; padding: .5rem .7rem; border-radius: 9px; border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-list { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.mock-row { display: flex; align-items: center; gap: .65rem; padding: .55rem .7rem; border-top: 1px solid var(--line); }
.mock-row:first-child { border-top: 0; }
.mock-row:nth-child(2) { background: var(--surface-2); }
.mock .avatar { width: 30px; height: 30px; border-radius: 9px; font-size: .85rem; flex: none; }
.mock-t { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.mock-t b { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-t small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-copy { flex: none; padding: .25rem .6rem; border-radius: 7px; border: 1px solid var(--line-strong); font-weight: 600; font-size: .75rem; color: var(--text-2); background: var(--surface); }

.float-lock { position: absolute; left: 0; bottom: 0; display: flex; align-items: center; gap: .8rem; padding: .7rem 1.1rem .7rem .7rem; border-radius: 16px; background: #0b2c23; color: #e9f3ee; box-shadow: var(--shadow-lg), inset 0 0 0 1px rgb(255 255 255 / 8%); animation: float 7s ease-in-out infinite; }
.dial-slot { width: 58px; flex: none; }
.float-text { display: grid; line-height: 1.3; }
.float-text b { font-size: .95rem; }
.float-text small { color: rgb(233 243 238 / 72%); font-size: .8rem; }
.float-toast { position: absolute; right: 0; top: .25rem; display: flex; align-items: center; gap: .55rem; padding: .6rem .9rem; border-radius: 12px; background: var(--inverse); color: var(--inverse-text); font-size: .82rem; font-weight: 550; box-shadow: var(--shadow-lg); animation: float 7s ease-in-out -3.5s infinite; }
.float-toast .tick { width: 18px; height: 18px; border-radius: 50%; background: var(--ok); flex: none; -webkit-mask: radial-gradient(circle, #000 64%, transparent 66%); mask: radial-gradient(circle, #000 64%, transparent 66%); }
@keyframes float { 50% { transform: translateY(-6px); } }

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  .mock { transform: none; }
}
@media (max-width: 560px) {
  .mock-body { grid-template-columns: 1fr; min-height: 0; }
  .mock-side { display: none; }
  .hero-visual { padding: 1.25rem 0 2.75rem; }
  .float-toast { right: .5rem; top: 0; }
  .float-lock { left: .5rem; }
}

/* --- features */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.grid .card + .card { margin-top: 0; }
.feature { padding: 1.5rem; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.feature .tile { margin-bottom: 1.1rem; }
.feature h3 { margin-bottom: .4rem; font-size: 1.08rem; }
.feature p { color: var(--muted); margin: 0; }

/* --- the tour */
#how .deck { width: 100%; }

/* --- get it */
.get-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.25rem 2.5rem; align-items: start; }
.download { padding: clamp(1.25rem, 3vw, 1.9rem); border-color: color-mix(in srgb, var(--accent) 28%, var(--line)); box-shadow: var(--shadow-lg); }
.dl-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.1rem; }
.dl-head .tile { width: 52px; height: 52px; border-radius: 15px; background: var(--accent); color: var(--accent-text); }
.dl-head h3 { font-size: 1.3rem; margin: 0 0 .15rem; }
.dl-head p { margin: 0; font-size: .92rem; }
.checks { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.checks li { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: .84rem; font-weight: 600; }
.checks li::before { content: ''; width: 12px; height: 12px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%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 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.dl-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.25rem; margin-bottom: 1.25rem; }
.sum-link { font-weight: 600; font-size: .92rem; }
.download .notice { margin: 0; font-size: .92rem; }
.download .notice code { overflow-wrap: anywhere; padding: .05rem .3rem; border-radius: 5px; background: color-mix(in srgb, var(--surface) 70%, transparent); }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.4rem; }
.steps li { counter-increment: s; position: relative; padding-left: 3.2rem; color: var(--text-2); line-height: 1.55; min-height: 2.2rem; }
.steps li strong { color: var(--text); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -.2rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-strong); color: var(--accent-ink); font-weight: 700; box-shadow: var(--shadow-sm); }
.steps li:not(:last-child)::after { content: ''; position: absolute; left: calc(1.1rem - 1px); top: 2.2rem; bottom: -1.4rem; width: 2px; background: var(--line); }
.get-side { padding-top: .4rem; }
.side-note { margin: 1.5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .93rem; }
.side-note + .side-note { margin-top: .9rem; }
.side-note strong { color: var(--text-2); }

.source { margin-top: 2.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.source summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 650; list-style: none; display: flex; align-items: center; gap: .6rem; border-radius: var(--radius); }
.source summary::-webkit-details-marker { display: none; }
.source summary::before { content: ''; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .2s var(--ease); margin-right: .2rem; }
.source[open] summary::before { transform: rotate(45deg); }
.source summary:hover { background: var(--surface-2); }
.source-body { padding: 0 1.25rem 1.25rem; }
.cmds { display: grid; gap: .5rem; margin: 0 0 1rem; }
.cmd {
  position: relative; margin: 0; padding: .8rem 5rem .8rem 2.3rem; border-radius: var(--radius-sm); overflow-x: auto;
  background: #0b1a15; color: #d9eee5; border: 1px solid #1d3a30; font: 500 .9rem/1.5 var(--mono);
}
.cmd::before { content: '>'; position: absolute; left: 1rem; top: .8rem; color: #e2b664; font-weight: 700; }
.copy-cmd { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); font: 600 .78rem var(--font); color: #d9eee5; background: rgb(255 255 255 / 8%); border: 1px solid rgb(255 255 255 / 14%); border-radius: 7px; padding: .3rem .65rem; cursor: pointer; }
.copy-cmd:hover { background: rgb(255 255 255 / 16%); }

@media (max-width: 860px) { .get-grid { grid-template-columns: 1fr; } }

/* --- limits */
.limits { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.limits li { position: relative; padding: 3.4rem 1.3rem 1.3rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text-2); line-height: 1.5; }
.limits li::before { content: ''; position: absolute; left: 1.3rem; top: 1.25rem; width: 34px; height: 34px; border-radius: 10px; background: var(--warn-soft); }
.limits li::after { content: ''; position: absolute; left: calc(1.3rem + 8px); top: calc(1.25rem + 8px); width: 18px; height: 18px; background: var(--warn); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5l9.5 16.5h-19z'/%3E%3Cpath d='M12 10v4.5M12 17.5v.3'/%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 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5l9.5 16.5h-19z'/%3E%3Cpath d='M12 10v4.5M12 17.5v.3'/%3E%3C/svg%3E") center / contain no-repeat; }

/* --- footer */
.foot { border-top: 1px solid var(--line); }
.foot-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; padding: 2rem clamp(1rem, 4vw, 2rem) 2.5rem; }
.foot-inner p { margin: 0; flex: 1; min-width: 220px; font-size: .92rem; }
.foot nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.foot nav a { color: var(--text-2); text-decoration: none; font-size: .92rem; font-weight: 550; }
.foot nav a:hover { color: var(--accent); }
