@import url("/design.css");

/* Startsidans ljusa värld. Portalen behåller tokens från design.css. */
.landing-page {
  color-scheme: light;
  --bg: #f4f8f5;
  --surface: #ffffff;
  --tint: #e8f1eb;
  --ink: #0f2e22;
  --muted: #3f5a4d;
  --accent: #1b7a4b;
  --accent-hover: #15663e;
  --deep: #0f2e22;
  --deep-ink: #eaf3ed;
  --deep-muted: #b9d0c2;
  --line: #cfe3d6;
  --shadow: 0 1px 2px rgba(15, 46, 34, 0.06), 0 28px 56px -32px rgba(15, 46, 34, 0.38);
  font-family: Satoshi, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  caret-color: var(--accent);
}
.landing-page ::selection { background: #bfe3cc; color: var(--ink); }
html:has(.landing-page) { scroll-behavior: smooth; scroll-padding-top: 32px; scrollbar-color: #9fbfac var(--bg); }
.landing-page h1, .landing-page h2, .landing-page h3 { font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
.landing-page p { text-wrap: pretty; }
.landing-page a:focus-visible, .landing-page button:focus-visible, .landing-page input:focus-visible, .landing-page summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.landing-page .skip { background: var(--ink); color: #fff; border-radius: 8px; }

.wrap { width: min(1264px, calc(100% - 96px)); margin-inline: auto; }

/* Knappar */
.landing-page .button { background: var(--accent); color: #fff; border-radius: 999px; min-height: 56px; padding: 0 30px; font-size: 1.0625rem; font-weight: 700; gap: 10px; box-shadow: 0 10px 24px -14px rgba(27, 122, 75, 0.9); transition: background 0.2s, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1); }
.landing-page .button:hover { background: var(--accent-hover); transform: translateY(-1px); }
.text-link { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: #8db79c; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.text-link:hover { text-decoration-color: var(--accent); }

/* Navigation */
.nav { display: flex; justify-content: space-between; align-items: center; gap: 28px; min-height: 92px; }
.landing-page .wordmark { display: inline-flex; align-items: center; gap: 2px; }
.mark-arrow { width: 0.72em; height: 0.72em; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transform: translateY(-0.12em); }
.ext { width: 0.95em; height: 0.95em; margin-left: 4px; vertical-align: -0.12em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.illus { display: inline-block; font-size: 0.75rem; font-weight: 700; color: var(--accent); background: var(--tint); border-radius: 6px; padding: 2px 8px; margin-right: 6px; }
.nav nav { display: flex; align-items: center; gap: 30px; font-size: 0.9375rem; font-weight: 500; }
.nav nav > a { text-decoration: none; }
.nav nav > a:not(.button):hover { color: var(--accent); }
/* Until the beta opens the site invites no signups; this replaces the account buttons. */
.beta-badge { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; margin: 0; padding: 0 24px; border-radius: 999px; background: var(--tint); color: var(--ink); font-weight: 700; white-space: nowrap; }
.beta-badge::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 4px #cfe8d8; }
.nav-beta { min-height: 40px; padding: 0 16px; font-size: 0.875rem; }
.plan .beta-badge { justify-self: start; }
/* Info pages still use the dark design.css tokens. */
body:not(.landing-page) .beta-badge { background: var(--raised); }
body:not(.landing-page) .beta-badge::before { box-shadow: 0 0 0 4px rgba(207, 251, 121, 0.18); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 72px; align-items: start; padding: 72px 0 120px; }
.hero h1 { font-size: clamp(3rem, 6.2vw, 5.25rem); line-height: 0.98; letter-spacing: -0.04em; margin: 0 0 30px; }
.hero h1 span { color: var(--accent); }
.lede { font-size: 1.3125rem; line-height: 1.55; color: var(--muted); max-width: 31em; margin: 0 0 36px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.fine { font-size: 0.875rem; color: var(--muted); line-height: 1.6; margin: 18px 0 0; }

/* Product surfaces wear the portal's dark cards on the light page (2026-11-02). */
.hero-stack, .demo {
  color-scheme: dark;
  --bg: #18211e;
  --surface: #131a18;
  --tint: #22302b;
  --ink: #e6eeea;
  --muted: #8fa39a;
  --accent: #3ddc97;
  --deep: #10251b;
  --deep-ink: #e6eeea;
  --deep-muted: #a9bdb3;
  --line: #212c28;
  --shadow: 0 1px 2px rgba(11, 16, 14, 0.3), 0 32px 64px -32px rgba(11, 16, 14, 0.7);
}
.hero-stack { position: relative; padding-bottom: 28px; }
.hero-stack::before, .hero-stack::after { content: ""; position: absolute; left: 50%; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); translate: -50% 0; height: 60%; }
.hero-stack::before { width: calc(100% - 56px); bottom: 0; opacity: 0.55; }
.hero-stack::after { width: calc(100% - 28px); bottom: 14px; opacity: 0.85; }
.calc-card { position: relative; z-index: 2; width: 100%; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); animation: settle 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
.calc-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.crests { display: flex; }
.crests i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-style: normal; font-weight: 800; font-size: 0.9375rem; background: var(--deep); color: var(--deep-ink); border: 2px solid var(--surface); }
.crests i + i { margin-left: -10px; background: var(--tint); color: var(--ink); }
.calc-card h2 { font-size: 1.5rem; margin: 0; letter-spacing: -0.02em; }
.calc-market { color: var(--muted); font-size: 0.875rem; margin: 0; }
.calc-head .illus { align-self: start; margin: 0; }
.calc-stake { padding: 20px 0 18px; }
.calc-stake label { display: block; font-size: 0.8125rem; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.stake-row { display: flex; gap: 10px; align-items: stretch; }
.stake-input { flex: 1; min-width: 0; display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); padding-right: 16px; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
.stake-input:hover { border-color: #8fe0ad; }
.stake-input:focus-within { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--line); }
.stake-input span { color: var(--muted); font-weight: 700; }
.landing-page .stake-input input { border: 0; background: transparent; color: var(--ink); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; min-height: 56px; padding: 0 14px 0 16px; border-radius: 14px; }
.landing-page .stake-input input:focus-visible { outline: none; }
.quick { display: flex; background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; padding: 4px; gap: 2px; }
.quick button { border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: 0.8125rem; border-radius: 12px; padding: 0 12px; min-width: 44px; min-height: 44px; transition: background 0.2s, color 0.2s; }
.quick button:hover { color: var(--ink); }
.quick button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(15, 46, 34, 0.14); }
.calc-hint { font-size: 0.8125rem; color: var(--muted); margin: 10px 0 0; }
.calc-card.is-invalid .stake-input { border-color: #ff9b8c; }
.calc-card.is-invalid .calc-hint { color: #ff9b8c; font-weight: 700; }
.ledger { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ledger li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 88px; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: var(--bg); }
.bk { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: var(--tint); font-weight: 800; font-size: 0.8125rem; }
.sel { display: grid; line-height: 1.3; }
.sel strong { font-size: 0.9375rem; }
.sel small { font-size: 0.8125rem; color: var(--muted); }
.odds { font-weight: 700; font-size: 1.0625rem; color: var(--muted); }
.odds::before { content: "@ "; font-weight: 500; }
.ledger b { text-align: right; font-size: 1.25rem; letter-spacing: -0.02em; }
.split { display: flex; gap: 3px; height: 6px; margin: 14px 0 18px; }
.split i { border-radius: 999px; background: var(--accent); flex: 0 0 calc(48.8% - 1.5px); }
.split i + i { flex: 1; background: #1f6b4a; }
.calc-net { background: var(--deep); color: var(--deep-ink); border: 1px solid #24402f; border-radius: 16px; padding: 18px 20px; display: grid; gap: 14px; }
.net-main { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.net-main > span { display: grid; gap: 2px; font-size: 0.9375rem; color: var(--deep-ink); }
.net-main small { font-size: 0.8125rem; color: var(--deep-muted); }
.net-main strong { font-size: 2.25rem; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; color: var(--accent); }
.outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding-top: 14px; border-top: 1px solid #24402f; }
.outcomes dt { font-size: 0.8125rem; color: var(--deep-muted); }
.outcomes dd { margin: 0; font-weight: 700; font-size: 1rem; white-space: nowrap; }
.calc-note { font-size: 0.8125rem; color: var(--muted); margin: 12px 2px 0; line-height: 1.5; }
.calc-card.is-updated .ledger b, .calc-card.is-updated .net-main strong { display: inline-block; animation: tick 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.calc-card.is-updated .outcomes dd { animation: tick 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes settle { from { transform: translateY(24px); } }
@keyframes tick { from { transform: translateY(5px); } }

/* Varför mindre marknader */
.why { padding: 0 0 128px; }
.why h2 { font-size: clamp(2.25rem, 4.4vw, 3.75rem); line-height: 1.02; letter-spacing: -0.04em; margin: 0 0 48px; max-width: 13em; }
.why-compare { display: grid; grid-template-columns: 1fr 1fr; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.why-col { padding: 44px 48px 48px; display: grid; align-content: start; gap: 14px; }
.why-col h3 { font-size: 1.5rem; margin: 0; }
.why-col p { margin: 0; font-size: 1.1875rem; line-height: 1.55; color: var(--muted); max-width: 26em; }
.why-ours { background: var(--deep); color: var(--deep-ink); }
.why-ours h3 { color: #8fe0ad; }
.why-ours p { color: var(--deep-ink); }
.why .fine { margin: 16px 0 0; }

/* Så fungerar det */
.how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; padding: 0 0 128px; align-items: start; }
.how h2 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.05; margin: 0 0 20px; }
.how-copy > p { color: var(--muted); max-width: 34em; margin-bottom: 28px; }
.slide-buttons { display: grid; gap: 8px; }
.slide-buttons button { display: grid; gap: 2px; text-align: left; border: 1px solid transparent; border-radius: 14px; background: transparent; color: var(--ink); padding: 14px 18px; min-height: 64px; transition: background 0.2s, border-color 0.2s; }
.slide-buttons button:hover { background: var(--tint); }
.slide-buttons button[aria-pressed="true"] { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.slide-buttons strong { font-size: 1.0625rem; }
.slide-buttons small { color: var(--muted); font-size: 0.9375rem; }
.demo { color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px 32px 32px; box-shadow: var(--shadow); }
.quality dl { margin: 0; }
.demo-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 0.875rem; color: var(--muted); margin-bottom: 18px; }
.demo-bar .illus { margin: 0; }
.demo-event { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.demo-event strong { display: block; font-size: 1.375rem; }
.demo-event small { color: var(--muted); font-size: 0.9375rem; }
.demo-event b { white-space: nowrap; font-size: 1.75rem; color: var(--accent); letter-spacing: -0.02em; }
.demo-legs { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.demo-legs li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; gap: 16px; background: var(--bg); border-radius: 12px; padding: 14px 18px; }
.demo-legs li span:first-child { font-weight: 700; }
.demo-legs li span:nth-child(2) { color: var(--muted); }
.demo-legs strong { font-size: 1.375rem; }
.pill { color: var(--muted); font-size: 0.8125rem; font-weight: 500; border: 1px dashed #5f7a6d; border-radius: 8px; padding: 6px 10px; white-space: nowrap; }
.nw { white-space: nowrap; }
.demo-facts { margin: 14px 0 0; }
.demo-facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.demo-facts dt { color: var(--muted); }
.demo-facts dd { margin: 0; font-weight: 700; text-align: right; }
.demo-facts dd.pos { color: var(--accent); }
.demo .fine { margin-top: 14px; }

/* Kvalitet */
.quality { background: var(--deep); color: var(--deep-ink); padding: 112px 0; margin-bottom: 128px; }
.quality-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.quality h2 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.05; margin: 0 0 20px; }
.quality p { color: var(--deep-muted); max-width: 30em; }
.quality a { color: var(--deep-ink); font-weight: 700; text-decoration-color: #6fa587; text-decoration-thickness: 2px; }
.quality a:focus-visible { outline-color: #9ee0b6; }
.quality-inner > div > a { display: block; width: fit-content; }
.quality-inner > div > a + a { margin-top: 12px; }
.quality dl { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #2c5543; }
.quality dl > div { padding: 24px 24px 24px 0; border-bottom: 1px solid #2c5543; }
.quality dt { font-weight: 700; font-size: 1.1875rem; margin-bottom: 4px; }
.quality dd { margin: 0; color: var(--deep-muted); }

/* Free och Pro */
.plans { padding: 0 0 128px; }
.plans h2, .faq h2 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.05; margin: 0 0 36px; }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px 34px; display: grid; align-content: start; gap: 22px; }
.plan h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 1.5rem; margin: 0; }
.plan h3 span { font-size: 1.125rem; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.plan-status { margin: -12px 0 0; font-size: 0.875rem; font-weight: 700; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan li { padding-left: 28px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.plan .button { justify-self: start; }
.plan-pro { background: var(--tint); border-color: transparent; }
.plan-pro .text-link { justify-self: start; }

/* Frågor */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; padding: 0 0 128px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; font-weight: 700; font-size: 1.125rem; padding: 18px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--accent), var(--accent)) center / 100% 2px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 2px 100% no-repeat; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 20px; max-width: 40em; }
.faq a { color: var(--accent); font-weight: 700; }

/* Avslut och sidfot */
.closing { text-align: center; padding: 96px 0 112px; border-top: 1px solid var(--line); }
.closing h2 { font-size: clamp(2.25rem, 4.6vw, 4rem); line-height: 1.02; letter-spacing: -0.04em; margin: 0 auto 32px; max-width: 14em; }
.closing h2 span { color: var(--accent); }
.landing-page .site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.footer-heading .wordmark { color: var(--ink); font-size: 1.5rem; }

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 48px 0 96px; }
  .hero-stack { max-width: 560px; }
  .how, .quality-inner, .faq { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .landing-page { font-size: 16px; }
  .wrap { width: calc(100% - 40px); }
  .nav { min-height: 72px; }
  .nav nav { gap: 12px; }
  .desktop-link { display: none; }
  .hero-actions .beta-badge { min-height: 48px; }
  .hero { padding: 16px 0 80px; gap: 36px; }
  .hero h1 { margin-bottom: 18px; }
  .lede { margin-bottom: 24px; }
  .hero-actions .text-link { display: none; }
  .fine { margin-top: 12px; }
  .hero h1 { font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .lede { font-size: 1.125rem; }
  .hero-stack { padding-bottom: 22px; }
  .calc-card { padding: 20px 18px; }
  .stake-row { flex-direction: column; }
  .quick button { flex: 1; }
  .ledger li { grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 12px; }
  .ledger li .odds { grid-row: 2; grid-column: 2; font-size: 0.875rem; }
  .ledger li b { grid-row: 1 / span 2; grid-column: 3; }
  .net-main strong { font-size: 1.875rem; }
  .why-compare { grid-template-columns: 1fr; }
  .why-col { padding: 28px 22px 30px; }
  .why h2 { margin-bottom: 28px; }
  .demo { padding: 22px 18px 24px; }
  .demo-legs li { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .demo-legs li span:nth-child(2) { grid-row: 2; }
  .demo-legs li > :last-child { grid-row: 1 / span 2; grid-column: 2; }
  .why, .how, .plans, .faq { padding-bottom: 88px; }
  .quality { padding: 80px 0; margin-bottom: 88px; }
  .quality dl { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan { padding: 26px 22px; }
  .closing { padding: 72px 0 88px; }
  .footer-heading { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  .nav nav { gap: 8px; }
  .nav-beta { padding: 0 12px; font-size: 0.8125rem; }
}

/* Info pages (hjälp, villkor, integritet, 404): readable measure and a clear heading scale. */
.info-page { max-width: 46rem; padding-block: 24px 64px; line-height: 1.65; }
.info-page h1 { font-size: clamp(2.25rem, 4.5vw, 3.25rem); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 20px; }
.info-page h2 { font-size: 1.375rem; line-height: 1.25; letter-spacing: -0.01em; margin: 40px 0 10px; }
.info-page p, .info-page li { font-size: 1rem; }
.info-page ul { padding-left: 1.25rem; display: grid; gap: 8px; }
.info-page .draft-notice { font-size: 0.875rem; color: var(--muted); margin: 0 0 8px; }
