/* Betsson landing — white / orange, sidebar layout, mobile-first */

:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --orange-soft: #fff7ed;
  --orange-glow: rgba(249, 115, 22, 0.35);
  --white: #ffffff;
  --cream: #fafafa;
  --ink: #0f172a;
  --ink-muted: #475569;
  --ink-soft: #64748b;
  --border: #e2e8f0;
  --sidebar-w: 280px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(15, 23, 42, 0.15);
  --shadow-soft: 0 8px 30px rgba(249, 115, 22, 0.12);
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: var(--orange);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 900;
  width: var(--sidebar-w);
  height: 100vh;
  height: 100dvh;
  padding: 1.75rem 1.25rem;
  background: linear-gradient(180deg, var(--white) 0%, var(--orange-soft) 120%);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 2rem;
  padding: 0 0.25rem;
}

.logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: var(--white);
  font-weight: 800;
  font-size: 1.25rem;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft);
}

.logo-text {
  display: block;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.logo-tag {
  font-size: 0.75rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.sidebar-nav a {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

.sidebar-nav a:hover {
  background: rgba(249, 115, 22, 0.1);
  color: var(--orange-dark);
}

.sidebar-nav a.is-active {
  background: rgba(249, 115, 22, 0.15);
  color: var(--orange-dark);
  font-weight: 600;
}

.sidebar-nav a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.sidebar-foot {
  margin: 1.5rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.5;
  padding: 0 0.5rem;
}

/* Main column */
.main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 950;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 850;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Hero */
.hero {
  padding: 3.5rem 2rem 4rem;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, var(--orange-glow), transparent 55%),
    linear-gradient(180deg, var(--cream) 0%, var(--white) 45%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.25rem, 4vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 1.25rem;
}

.highlight {
  color: var(--orange-dark);
  position: relative;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange-dark);
  margin: 0 0 1rem;
}

.lead {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--ink-muted);
  margin: 0 0 1.75rem;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
}

.btn-primary:hover {
  background: var(--orange-dark);
  box-shadow: 0 10px 28px rgba(234, 88, 12, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange-dark);
}

.btn-large {
  padding: 1rem 1.75rem;
  font-size: 1rem;
}

.hero-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-stats strong {
  font-size: 1.5rem;
  color: var(--orange-dark);
}

.hero-stats span {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Phone mock */
.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-mock {
  width: min(280px, 100%);
  aspect-ratio: 9 / 18.5;
  background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
  border-radius: 36px;
  padding: 10px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 26px;
  background: #0f172a;
  border-radius: 0 0 14px 14px;
  z-index: 1;
}

.phone-screen {
  background: #0f172a;
  border-radius: 28px;
  height: 100%;
  padding: 2.25rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mock-header {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
}

.mock-rings {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 6px solid #334155;
  border-top-color: var(--orange);
  border-right-color: var(--orange);
  animation: spin 8s linear infinite;
}

.ring-pro {
  border-top-color: #fb923c;
  border-right-color: #fdba74;
  animation-duration: 10s;
  animation-direction: reverse;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.mock-bars {
  display: flex;
  gap: 6px;
  height: 8px;
}

.mock-bars span {
  flex: 1;
  border-radius: 4px;
  background: #334155;
}

.mock-bars span:nth-child(1) {
  background: linear-gradient(90deg, var(--orange), var(--orange-dark));
  flex: 1.4;
}

.mock-bars span:nth-child(2) {
  background: #475569;
  flex: 0.9;
}

.mock-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.mock-list div {
  height: 36px;
  border-radius: 10px;
  background: #1e293b;
  border: 1px solid #334155;
}

/* Sections */
.section {
  padding: 4rem 2rem;
}

.section-tint {
  background: var(--cream);
}

.section-orange {
  background: linear-gradient(135deg, var(--orange-dark) 0%, var(--orange) 50%, #fb923c 100%);
  color: var(--white);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.container.narrow {
  max-width: 720px;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.section-head p a {
  color: var(--orange-dark);
  font-weight: 600;
}

.section-head p a:hover {
  text-decoration: underline;
}

.section-head-light h2,
.section-head-light p {
  color: var(--white);
}

.section-head-light p {
  opacity: 0.95;
}

.section-head-left {
  text-align: left;
  margin: 0 0 1.5rem;
  max-width: none;
}

.prose {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.1rem;
}

.prose-large {
  font-size: 1.2rem;
  line-height: 1.75;
}

/* Feature cards */
.feature-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 2rem;
  padding: 2rem 2.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
  align-items: start;
}

.feature-reverse {
  background: linear-gradient(135deg, var(--white) 0%, var(--orange-soft) 100%);
}

.feature-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(249, 115, 22, 0.25);
  line-height: 1;
}

.feature-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.feature-card p {
  margin: 0;
  color: var(--ink-muted);
}

/* Plans */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.plan-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.plan-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}

.plan-card p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.95;
  line-height: 1.55;
}

/* Tips */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.tip {
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tip:hover {
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: var(--shadow-soft);
}

.tip h4 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--orange-dark);
}

.tip p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

/* Table */
.table-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.macro-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid var(--border);
}

.macro-table th,
.macro-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.macro-table th {
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.macro-table tr:last-child td {
  border-bottom: none;
}

.macro-table tbody tr:hover {
  background: rgba(249, 115, 22, 0.04);
}

.table-note {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--ink-soft);
  text-align: center;
}

/* Split interface */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--ink-muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.25);
}

.panel-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.panel {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--white);
}

.panel-a {
  background: linear-gradient(90deg, #1e293b, #334155);
  transform: rotate(-1deg);
}

.panel-b {
  background: linear-gradient(90deg, var(--orange-dark), var(--orange));
  margin-left: 1.5rem;
  transform: rotate(1deg);
}

.panel-c {
  background: #0f172a;
  margin-left: 0.5rem;
}

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.news-loading,
.news-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 1rem;
  color: var(--ink-muted);
  margin: 0;
}

.news-error .btn-retry {
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: none;
  background: var(--orange);
  color: var(--white);
  font-weight: 600;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.news-error .btn-retry:hover {
  background: var(--orange-dark);
}

.news-error a {
  color: var(--orange-dark);
  font-weight: 600;
}

.news-foot {
  margin: 1.5rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

a.news-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

a.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

a.news-card:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

a.news-card time {
  font-size: 0.8rem;
  color: var(--orange-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

a.news-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  line-height: 1.35;
}

a.news-card p {
  margin: 0 0 1rem;
  flex: 1;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.news-tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange-dark);
}

/* Roadmap */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.road-item {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
}

.road-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  background: var(--orange);
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.road-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.road-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* Footer */
.footer {
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--cream);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 2rem;
  align-items: start;
}

.footer-tag {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--orange-dark);
}

.footer-copy {
  grid-column: 1 / -1;
  margin: 1.5rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* —— Responsive —— */
@media (max-width: 1024px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .roadmap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .tips-grid,
  .news-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .section-head-left {
    text-align: center;
  }

  .split .checklist {
    max-width: 28rem;
    margin: 0 auto;
  }

  .panel-stack {
    max-width: 400px;
    margin: 0 auto;
  }

  .panel-b,
  .panel-c {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  :root {
    --sidebar-w: min(300px, 88vw);
  }

  .nav-toggle {
    display: flex;
  }

  .sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }

  .sidebar.is-open {
    transform: translateX(0);
    box-shadow: var(--shadow);
  }

  .main {
    margin-left: 0;
  }

  .hero {
    padding: 5rem 1.25rem 3rem;
  }

  .section {
    padding: 3rem 1.25rem;
  }

  .feature-card {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .feature-num {
    font-size: 2rem;
  }

  .macro-table th,
  .macro-table td {
    padding: 0.75rem 0.65rem;
    font-size: 0.85rem;
  }

  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;
  }
}

@media (max-width: 400px) {
  .hero-stats {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ring {
    animation: none;
  }

  a.news-card:hover {
    transform: none;
  }
}
