/* SeatSense – seatsense.se */

@font-face { font-family: "Texta Alt"; src: url("../assets/fonts/Texta-Alt-Book.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Texta Alt"; src: url("../assets/fonts/Texta-Alt-Book-It.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Texta Alt"; src: url("../assets/fonts/Texta-Alt-Heavy.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Texta Alt"; src: url("../assets/fonts/Texta-Alt-Heavy-It.woff2") format("woff2"); font-weight: 800; font-style: italic; font-display: swap; }

:root {
  --bg: #FAFAF8;
  --alt: #FBF6EC;
  --ink: #014B4F;
  --ink2: #01676C;
  --gold: #D7B26D;
  --gold-hi: #E6C68B;
  --cream: #F5F1E9;
  --mist: #E1EDED;
  --mist2: #C9DCDC;
  --mist3: #B9D3D3;
  --line-hi: #6EABAE;
  --line-lo: #1F4A50;
  --rule: #E6E6E0;
  --grey1: #383832;
  --grey2: #535349;
  --grey3: #6B6B61;
  --font: "Texta Alt", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad-x: clamp(20px, 5vw, 40px);
  --pad-y: clamp(72px, 12vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(17px, calc(15px + 0.45vw), 20px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: var(--ink2); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
input, textarea, button { font-family: inherit; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; min-width: 0; max-width: 1240px; margin: 0 auto; padding: var(--pad-y) var(--pad-x); }
.g2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 24px 64px; align-items: end; }
.h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.06; letter-spacing: -0.02em; font-weight: 800; margin: 0; max-width: 14ch; text-wrap: balance; }
.h3 { font-size: 24px; font-weight: 800; line-height: 1.2; margin: 0; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.lead { max-width: 34em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 14px 24px; border-radius: 4px; font-weight: 800; line-height: 1.2; text-decoration: none; transition: background-color .2s, color .2s; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-hi); color: var(--ink); }
.btn-line { color: #fff; border: 1px solid rgba(255,255,255,.7); }
.btn-line:hover { background: #fff; color: var(--ink); }

/* Header */
.hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 30; pointer-events: none; }
.hdr-in { max-width: 1240px; margin: 0 auto; padding: clamp(18px, 4vw, 28px) var(--pad-x); display: flex; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.wm { pointer-events: auto; display: flex; flex-direction: column; gap: 4px; text-decoration: none; line-height: 1.1; color: var(--cream); }
.wm:hover { color: var(--cream); }
.wm-t { font-size: clamp(52px, 6vw, 88px); font-weight: 800; letter-spacing: -0.045em; }
.wm-by { display: flex; align-items: center; gap: 10px; font-size: 20px; margin-top: -8px; }
.wm-by img { height: 44px; width: auto; }
.hdr-r { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px 16px; margin-left: auto; max-width: 100%; min-width: 0; }
.lang { pointer-events: auto; display: flex; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: 3px; font-size: 15px; }
.lang a { display: flex; align-items: center; justify-content: center; min-height: 38px; min-width: 44px; padding: 4px 12px; border-radius: 999px; color: #fff; text-decoration: none; }
.lang a:hover { color: #fff; background: rgba(255,255,255,.12); }
.lang a[aria-current] { background: #fff; color: var(--ink); }
.hbtn { pointer-events: auto; position: relative; display: flex; align-items: center; gap: 8px; will-change: transform; }
.secwrap { position: relative; }
.secbtn { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px; border: 0; border-radius: 4px; background: var(--ink); color: #fff; font-size: 16px; font-weight: 700; line-height: 1; white-space: nowrap; cursor: pointer; transition: box-shadow .3s, background-color .2s; }
.secbtn:hover { background: var(--ink2); }
.secbtn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
.secnum { font-size: 13px; font-weight: 600; color: var(--mist3); font-variant-numeric: tabular-nums; }
.secbtn svg { display: block; transition: transform .2s; }
.secbtn[aria-expanded="true"] svg { transform: rotate(180deg); }
.secmenu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 260px; display: flex; flex-direction: column; padding: 6px; background: var(--bg); border: 1px solid var(--rule); border-radius: 4px; box-shadow: 0 12px 32px rgba(1,42,45,.18); }
.secmenu[hidden] { display: none; }
.secmenu a { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; padding: 10px 12px; border-radius: 3px; color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; }
.secmenu a:hover { background: var(--alt); color: var(--ink); }
.secmenu a[aria-current] { background: var(--alt); font-weight: 800; }
.secmenu a span + span { color: #7A7A70; font-size: 13px; font-variant-numeric: tabular-nums; }
.hcta { display: flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 4px; background: var(--ink); color: #fff; font-size: 16px; font-weight: 800; line-height: 1; white-space: nowrap; text-decoration: none; transition: box-shadow .3s, background-color .3s, color .3s; }
.hcta:hover { background: var(--ink2); color: #fff; }
.hdr.docked .hcta { background: var(--gold); color: var(--ink); }
.hdr.docked .hcta:hover { background: var(--gold-hi); }
.hdr.docked .hcta, .hdr.docked .secbtn { box-shadow: 0 8px 24px rgba(1,75,79,.25); }
@media (max-width: 479px) { .secnum { display: none; } }

/* Hero */
.hero { position: sticky; top: 0; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; background: var(--bg); }
.hero-media { position: absolute; inset: 0; overflow: hidden; background: var(--ink); transform-origin: 50% 35%; will-change: transform; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(1,42,45,.88), rgba(1,42,45,.35) 50%, rgba(1,42,45,.1)); }
.hero-in { position: relative; flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: clamp(150px, 24vw, 200px) var(--pad-x) 56px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; will-change: transform, opacity; }
.hero h1 { margin: 0; font-weight: 800; display: flex; flex-direction: column; }
.hero h1 span { font-size: clamp(40px, 7.6vw, 124px); line-height: 1; letter-spacing: -0.035em; }
.hero h1 .l1 { color: var(--cream); max-width: 12ch; text-wrap: balance; }
.hero h1 .l2 { color: var(--gold); font-style: italic; }
.hero-row { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-end; justify-content: space-between; margin-top: 28px; }
.hero-row p { font-size: clamp(17px, calc(15px + 0.5vw), 21px); line-height: 1.5; max-width: 32em; color: var(--mist); }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cap { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.25); font-size: 15px; color: var(--mist2); }

/* Cards */
.card { position: relative; background: var(--bg); }
.stack .card { position: sticky; display: grid; align-content: center; min-height: 100vh; border-radius: 40px 40px 0 0; box-shadow: 0 -24px 60px rgba(1,42,45,.2); }
.stack .card + .card { margin-top: -40px; }
.stack .card > * { width: 100%; min-width: 0; }
.alt { background: var(--alt); }

/* Problem */
.problem { background: var(--cream); }
.problem .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 64px; padding-bottom: clamp(64px, 10vw, 96px); }
.problem .h2 { font-size: clamp(30px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -0.025em; }
.problem p { font-size: 20px; line-height: 1.55; max-width: 30em; }
.problem p + p { margin-top: 24px; }

/* Video card: "Every seat. Live." */
.words { overflow: hidden; isolation: isolate; padding: clamp(72px, 12vw, 112px) 0; background: var(--ink); }
.words video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; z-index: -2; }
.words .ov { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(1,42,45,.88), rgba(1,42,45,.35) 50%, rgba(1,42,45,.1)); }
.words h2 { display: contents; }
.wl, .wr { display: block; position: relative; font-size: clamp(34px, 12.5vw, 220px); line-height: .9; font-weight: 800; letter-spacing: -0.05em; white-space: nowrap; }
.wl { color: var(--cream); padding-left: 4vw; }
.wr { color: var(--gold); text-align: right; padding-right: 4vw; }
.wt { position: relative; margin: clamp(40px, 6vw, 72px) 0; padding: 0 4vw; display: grid; grid-template-columns: minmax(0, 34em); gap: 20px; align-items: start; }
.wt p { font-size: clamp(19px, 2vw, 30px); line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; color: var(--cream); }

/* Use cases */
.cases .g2 { margin-bottom: 64px; }
.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 48px; }
.groups .h3 { margin-bottom: 8px; }
.item { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.item strong { display: block; font-weight: 800; margin-bottom: 4px; }
.item span { color: var(--grey1); }

/* Meet SeatSense */
.how .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 64px; align-items: start; }
.how .h2 { margin-bottom: 28px; }
.how-txt > p { max-width: 34em; margin-bottom: 20px; }
.how-txt > p:last-of-type { margin-bottom: 40px; }
.inst { margin-bottom: 48px; padding-top: 20px; border-top: 1px solid var(--ink); }
.inst .h3 { border: 0; padding: 0; margin-bottom: 16px; }
.big { font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -0.01em; }
.inst p { margin-top: 8px; max-width: 34em; color: var(--grey1); }
.inst strong { font-weight: 800; color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; margin: 0; }
.facts dd { margin: 4px 0 0; color: var(--grey1); }
.facts dt { font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -0.01em; }
.facts div { min-width: 0; }
.inst-media { position: relative; width: 100%; max-width: calc(min(78vh, 820px) * 0.645); margin: 0 auto; aspect-ratio: 400 / 620; overflow: hidden; border-radius: 16px; background: var(--ink); transform: translateZ(0); }
.inst-media video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
@media (min-width: 1064px) { .inst-media { order: -1; } }

/* Live seat map */
.map .g2 { margin-bottom: 48px; }
.panel { min-width: 0; max-width: 100%; padding: clamp(14px, 4vw, 28px); background: #fff; border: 1px solid var(--rule); border-radius: 8px; }
.tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px 6px; margin-bottom: 28px; }
.tab { min-width: 0; min-height: 44px; line-height: 1.3; padding: 10px 4px 0; text-align: left; background: transparent; border: 0; border-top: 3px solid var(--rule); color: var(--ink); font-size: 15px; cursor: pointer; }
.tab[aria-pressed="true"] { border-top-color: var(--ink); }
.tab-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0 8px; }
.tab strong { font-weight: 800; white-space: nowrap; }
.bar { display: block; height: 6px; margin-top: 8px; overflow: hidden; border-radius: 3px; background: #F2F2EE; }
.bar i { display: block; height: 100%; background: var(--ink); transition: width .6s; }
.mhead { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; font-size: 16px; }
.mhead strong { font-weight: 800; }
.legend { display: flex; gap: 20px; color: var(--grey2); }
.legend span { display: flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 14px; border-radius: 3px; }
.s-occ { background: var(--ink); }
.s-free { border: 1.5px solid #A8A89E; }
.mgrid { overflow-x: auto; overflow-y: hidden; max-width: 100%; min-width: 0; }
.coach { display: inline-flex; gap: 6px; padding: 18px 22px; border: 1.5px solid #D2D2C9; border-radius: 28px 10px 10px 28px; background: var(--bg); min-height: 151px; }
.col { display: flex; flex-direction: column; gap: 5px; }
.col i { display: block; width: 24px; height: 24px; border-radius: 4px; }
.col .aisle { height: 20px; }
.col .gap { visibility: hidden; }
.mnote { margin-top: 16px; font-size: 15px; color: var(--grey3); }
@media (max-width: 699px) { .tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 599px) {
  .coach { --s: min(24px, calc((100vw - 170px) / 14)); gap: 4px; padding: 12px 14px; min-height: 0; border-radius: 22px 8px 8px 22px; }
  .col { gap: 4px; }
  .col i { width: var(--s); height: var(--s); border-radius: 3px; }
  .col .aisle { height: 12px; }
}

/* Proof */
.proof { overflow: hidden; isolation: isolate; background: var(--ink); color: #fff; }
.proof > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 68% 50%; z-index: -2; }
.proof .ov { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(1,42,45,.82) 0, rgba(1,42,45,.62) min(560px, 100%), rgba(1,42,45,0) max(820px, 100%)); }
.proof .wrap { position: relative; min-height: 85vh; display: flex; align-items: center; }
.proof-txt { max-width: 560px; }
.proof .h2 { margin-bottom: 28px; }
.proof-txt > p { margin-bottom: 36px; color: var(--mist); max-width: 34em; }
.proof ul { list-style: none; margin: 0 0 36px; padding: 0; border-top: 1px solid var(--line-hi); }
.proof li { padding: 16px 0; border-bottom: 1px solid var(--line-lo); }
.proof a { color: #fff; font-weight: 800; text-underline-offset: 4px; }
.proof a:hover { color: var(--gold); }

/* Technology */
.tech .g2 { margin-bottom: 56px; }
.tech-img { width: 100%; height: auto; aspect-ratio: 21 / 8; object-fit: cover; object-position: 78% 21%; border-radius: 4px; margin-bottom: 64px; }
.cols3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px 64px; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.spec { margin: 0; }
.spec div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 17px; }
.spec dt { color: var(--grey2); }
.spec dd { margin: 0; }
.certs div { display: block; }
.certs dt { color: var(--ink); font-weight: 800; }
.certs dd { color: var(--grey2); }
.fnote { margin-top: 12px; font-size: 15px; color: var(--grey3); }

/* FAQ */
.faq .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px 64px; align-items: start; overflow-wrap: anywhere; }
.faq .h2 { max-width: 12ch; }
.qa { border-top: 1px solid var(--ink); }
.qa details { border-bottom: 1px solid var(--rule); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; font-weight: 800; font-size: clamp(18px, calc(16px + 0.3vw), 20px); line-height: 1.3; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { margin: 0; font-size: inherit; font-weight: inherit; }
.plus { flex: none; font-size: 28px; font-weight: 400; line-height: 1; color: var(--ink2); transition: transform .2s ease; }
.qa details[open] .plus { transform: rotate(45deg); }
.qa details p { margin: 0 0 24px; max-width: 38em; color: var(--grey1); }

/* Contact */
.contact .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 64px; align-items: start; overflow-wrap: anywhere; }
.contact .h2 { margin-bottom: 28px; max-width: 13ch; }
.contact-txt > p { margin-bottom: 40px; max-width: 30em; }
.clist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.clist li { padding: 16px 0; border-bottom: 1px solid var(--rule); color: var(--grey1); }
.clist a { font-weight: 800; }
.person { display: flex; flex-direction: column; gap: 2px; }
.plabel { font-size: 15px; color: var(--grey2); }
.pname { color: var(--ink); font-weight: 800; }
.prole { font-weight: 400; color: var(--grey2); }
.prole::before { content: " · "; }
.fcard { min-width: 0; padding: clamp(18px, 5vw, 36px); background: #fff; border: 1px solid var(--rule); border-radius: 8px; }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 16px; font-weight: 800; }
.form .full { grid-column: 1 / -1; }
.form[hidden], .thanks[hidden] { display: none; }
.form input:not([type="checkbox"]), .form textarea { width: 100%; min-width: 0; padding: 12px; font-size: 17px; font-weight: 400; color: var(--ink); background: #fff; border: 1px solid #D2D2C9; border-radius: 4px; }
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--ink2); outline: none; box-shadow: 0 0 0 2px rgba(1,103,108,.2); }
.form .consent { flex-direction: row; align-items: flex-start; gap: 10px; font-size: 15px; font-weight: 400; color: var(--grey2); }
.form .consent input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.form-end { display: flex; justify-content: flex-end; }
.send { min-height: 48px; padding: 14px 28px; border: 0; border-radius: 4px; background: var(--ink); color: #fff; font-size: 17px; font-weight: 800; cursor: pointer; }
.send:hover { background: var(--ink2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.thanks { padding: 40px 0; }
.thanks p:first-child { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.thanks p + p { color: var(--grey1); }
.ftr { max-width: 1240px; margin: 0 auto; padding: 28px var(--pad-x) 40px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 24px; color: var(--grey2); }
.ftr-by { display: flex; align-items: center; gap: 12px; }
.ftr-by img { height: 44px; width: auto; }
.ftr-links { display: flex; align-items: center; gap: 0 24px; flex-wrap: wrap; }
.ftr-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--grey2); }

/* 404 */
.nf { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; background: var(--ink); color: var(--cream); }
.nf h1 { font-size: clamp(40px, 7.6vw, 96px); line-height: 1; letter-spacing: -0.035em; margin: 32px 0 24px; }
.nf .hero-btns { margin-top: 16px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
