/* Fiskar's own look (README §4.3), plus the logo's gradient. */
@font-face { font-family: "Nunito"; src: url("/fonts/nunito.ttf") format("truetype"); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains_mono.ttf") format("truetype"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #FFF5EE; --card: #FFFFFF; --ink: #33232B; --muted: #8C7479; --line: #F1DED3; --chip: #FBEADF;
  --accent: #E8622F; --soft: #FFE3D4; --agent: #5B5BD6; --agent-soft: #ECECFD; --ok: #2E9466; --ok-soft: #E2F4EA;
  --fish: linear-gradient(120deg, #FFB800 0%, #FF6A00 40%, #E8247A 75%, #7B0FA8 100%);
  --shadow: 0 1px 2px rgba(51, 35, 43, .06), 0 12px 32px -12px rgba(51, 35, 43, .18);
  --radius: 22px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1D1517; --card: #2A1F22; --ink: #F7EBE6; --muted: #BFA7A3; --line: #3D2D2E; --chip: #36282A;
    --accent: #FF8757; --soft: #46291F; --agent: #A9A8FF; --agent-soft: #2B2A45; --ok: #5CCB94; --ok-soft: #1F3329;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 "Nunito", system-ui, sans-serif; font-weight: 500;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
code, kbd, .mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .86em; }
code { background: var(--chip); padding: .12em .4em; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 850; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.grad { background: var(--fish); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .8em; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 900; font-size: 1.3rem; letter-spacing: -.02em; }
.brand img { width: 34px; height: auto; }
.top nav { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 999px; }
.top nav a:hover, .top nav a[aria-current] { background: var(--chip); }
@media (max-width: 560px) { .top nav a.hide-sm { display: none; } }

/* Buttons */
.btn { font-family: inherit; display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 800; text-decoration: none; border: 0; cursor: pointer; font-size: 1rem; }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: var(--chip); color: var(--ink); }
.btn.ghost:hover { background: var(--soft); }
.top .btn { padding: 8px 16px; }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 1.25rem; color: var(--muted); max-width: 34em; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero .note { font-size: .92rem; color: var(--muted); }
.hero-art { position: relative; display: grid; place-items: center; min-height: 520px; }
.hero-art .blob { position: absolute; inset: 8% 4%; background: var(--fish); filter: blur(70px); opacity: .28; border-radius: 50%; }
.hero-art .phone:nth-child(2) { transform: rotate(-4deg) translateX(-70px); z-index: 1; }
.hero-art .phone:nth-child(3) { position: absolute; transform: rotate(5deg) translate(95px, 40px); width: 220px; z-index: 2; }
@media (max-width: 860px) {
  .hero { padding-top: 36px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { min-height: 440px; }
}
@media (max-width: 560px) {
  .hero-art { min-height: 400px; }
  .hero-art .phone { width: 180px; border-radius: 26px; padding: 6px; }
  .hero-art .phone img { border-radius: 21px; }
  .hero-art .phone:nth-child(2) { transform: rotate(-4deg) translateX(-55px); }
  .hero-art .phone:nth-child(3) { width: 165px; transform: rotate(5deg) translate(70px, 30px); }
}

/* Phone frame around app screenshots */
.phone { width: 250px; border-radius: 34px; padding: 8px; background: #1d1517; box-shadow: var(--shadow); }
.phone img { border-radius: 27px; width: 100%; height: auto; aspect-ratio: 1200 / 2580; }
.phone.sm { width: 200px; border-radius: 28px; padding: 6px; }
.phone.sm img { border-radius: 23px; }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--card); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
section.alt .card { background: var(--bg); }
.card .icon { width: 44px; height: 44px; border-radius: 14px; background: var(--soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.card .icon svg { width: 22px; height: 22px; }
.card p { color: var(--muted); margin: 0; }
.card ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.card ul li { margin: .3em 0; }
.card ul b { color: var(--ink); }

/* Flow diagram */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 12px; align-items: stretch; }
.flow .node { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.flow .node h3 { margin-bottom: .3em; }
.flow .node p { color: var(--muted); margin: 0; font-size: .95rem; }
.flow .link { display: grid; place-items: center; color: var(--muted); font-size: .8rem; font-weight: 800; text-align: center; min-width: 70px; }
.flow .link span { display: block; }
.flow .link::before { content: ""; display: block; width: 100%; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 11px); margin-bottom: 6px; }
@media (max-width: 760px) {
  .flow { grid-template-columns: 1fr; }
  .flow .link { min-height: 44px; }
  .flow .link::before { width: 2px; height: 22px; background: repeating-linear-gradient(180deg, var(--accent) 0 6px, transparent 6px 11px); margin: 0 auto 4px; }
}

/* Tour: screenshot + text rows */
.tour { display: grid; gap: 72px; }
.tour .row { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; }
.tour .row:nth-child(even) { grid-template-columns: 1fr auto; }
.tour .row:nth-child(even) .phone { order: 2; }
.tour .row h3 { font-size: 1.6rem; }
.tour .row p { color: var(--muted); font-size: 1.08rem; }
.tag { display: inline-block; font-size: .78rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--accent); margin-bottom: 12px; }
.tag.agent { background: var(--agent-soft); color: var(--agent); }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
@media (max-width: 760px) {
  .tour .row, .tour .row:nth-child(even) { grid-template-columns: 1fr; gap: 24px; justify-items: center; }
  .tour .row:nth-child(even) .phone { order: 0; }
}

/* Numbers */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat b { display: block; font-size: 2.4rem; font-weight: 900; letter-spacing: -.03em; line-height: 1.1; }
.stat span { color: var(--muted); }
.receipt { display: inline-flex; flex-wrap: wrap; gap: 6px 12px; font-family: "JetBrains Mono", monospace; font-size: .85rem; background: var(--card); border: 1px dashed var(--line); padding: 10px 14px; border-radius: 12px; color: var(--muted); margin-top: 22px; }
.receipt b { color: var(--ok); font-weight: 700; }

table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.table-scroll { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 12px; }

/* CTA band */
.band { background: var(--fish); color: #fff; border-radius: 32px; padding: 48px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.band h2 { color: #fff; }
.band p { opacity: .92; margin: 0; }
.band .btn.primary { background: #fff; color: #33232B; box-shadow: none; }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; padding: 32px 24px; } }

/* Tutorial */
.tut { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; padding-top: 32px; }
.toc { position: sticky; top: 84px; font-size: .95rem; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: s -1; }
.toc li { counter-increment: s; }
.toc a { display: flex; gap: 10px; padding: 6px 10px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 700; }
.toc a::before { content: counter(s); color: var(--accent); min-width: 1.2em; }
.toc a:hover, .toc a.on { background: var(--chip); color: var(--ink); }
@media (max-width: 900px) { .tut { grid-template-columns: 1fr; } .toc { position: static; } .toc ol { display: flex; flex-wrap: wrap; gap: 4px; } }

.step { padding: 48px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 72px; }
.step:last-child { border-bottom: 0; }
.step .num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--fish); color: #fff; font-weight: 900; margin-bottom: 12px; }
.step-body { display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: start; }
.step-body .shots { display: flex; gap: 12px; }
@media (max-width: 760px) { .step-body { grid-template-columns: 1fr; } .step-body .shots { justify-content: center; } }
.step ol, .step ul { padding-left: 1.3em; }
.step li { margin: .45em 0; }
.ui { display: inline-block; font-weight: 800; background: var(--chip); border-radius: 8px; padding: 0 .45em; white-space: nowrap; }
.tip { background: var(--soft); border-radius: 16px; padding: 14px 18px; margin: 18px 0 0; }
.tip b { color: var(--accent); }
.tip.info { background: var(--agent-soft); }
.tip.info b { color: var(--agent); }
.need { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 18px; }
.need .card { padding: 18px; }

/* Footer */
footer { padding: 48px 0 56px; color: var(--muted); font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--muted); }

/* Waitlist sign-up (join.js) */
dialog.join { width: min(440px, 100% - 32px); max-height: calc(100% - 32px); border: 1px solid var(--line); border-radius: 28px; padding: 32px 28px 26px; background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
dialog.join::backdrop { background: rgba(29, 21, 23, .45); backdrop-filter: blur(4px); }
dialog.join h2 { font-size: 1.7rem; margin-bottom: .3em; }
.join-form, .join-done, .join-closed { display: grid; gap: 14px; }
.join [hidden] { display: none !important; }
.join-done, .join-closed { justify-items: start; }
.join-mark { width: 64px; }
.join-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--chip); color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.join-close:hover { background: var(--soft); }
.join label { display: grid; gap: 6px; font-weight: 800; font-size: .95rem; }
.join input { font: inherit; font-weight: 600; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.join input:focus { outline: none; border-color: var(--accent); }
.join .btn { justify-content: center; }
.join .btn[disabled] { opacity: .6; cursor: default; }
.join-check { min-height: 65px; }
.join-error { margin: 0; color: #D23A3A; font-weight: 700; font-size: .95rem; }
.join-note { margin: 0; font-size: .82rem; color: var(--muted); }
.join-tick { width: 56px; height: 56px; border-radius: 18px; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-size: 1.8rem; font-weight: 900; }
.join-done p { margin: 0; }
