/* ============================================================
   Tolq — tolq.no v2 «studio-mørkt lyd-univers»
   Prinsipper (emil-design-eng + impeccable craft-floor + taste):
   - Én aksent (stemme-grønn). Ingen gradient-tekst, ingen glass-pynt.
   - Én elevasjonslogikk: hårlinje-kant + flateløft. Ekte skygger kun
     der noe faktisk svever (telefonen).
   - Ett autorert bevegelsesøyeblikk (herobølgen) + funksjonell lyd-
     visualisering. Avdekking er diskré og ikke identisk overalt.
   - UI-overganger < 300 ms med kraftig ease-out; :active-skala på
     alt trykkbart; hover kun på ekte pekere.
   ============================================================ */

@font-face { font-family: "Inter"; src: url("/fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #08090c;
  --bg-raise: #0d0f14;
  --bg-raise2: #12151c;
  --line: #1e2229;
  --line-strong: #2a2f38;
  --text: #f2f4f7;
  --text-2: #a8b0bd;
  --text-3: #737d8c;
  --accent: #2ee6a8;
  --accent-press: #24c791;
  --accent-ink: #052e20;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(46, 230, 168, .3); }

h1, h2, h3 { font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.05rem; letter-spacing: -0.01em; }

a { color: inherit; text-decoration: none; }
.center { text-align: center; }
.accent { color: var(--accent); }

/* ---------- topbar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px clamp(16px, 4vw, 36px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.wm-wave { width: 22px; height: 14px; color: var(--accent); }
.wordmark.small { font-size: 1rem; }

.topnav { display: flex; gap: clamp(14px, 3vw, 28px); }
.topnav a { color: var(--text-2); font-size: .92rem; font-weight: 500; transition: color 150ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .topnav a:hover { color: var(--text); } }

.top-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  background: none; border: 1px solid var(--line-strong); color: var(--text-2);
  border-radius: 999px; padding: 5px 12px; font: 600 .78rem "Inter", sans-serif;
  cursor: pointer; letter-spacing: .05em;
  transition: color 150ms var(--ease-out), border-color 150ms var(--ease-out), transform 120ms var(--ease-out);
}
.lang-toggle:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .lang-toggle:hover { color: var(--text); border-color: var(--text-3); } }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; border-radius: 10px; padding: 10px 20px;
  transition: background 150ms var(--ease-out), transform 120ms var(--ease-out);
}
.btn:active { transform: scale(0.97); background: var(--accent-press); }
.btn-small { padding: 7px 15px; font-size: .88rem; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 96svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 130px 20px 90px;
}
.hero-wave { position: absolute; inset: auto 0 0 0; height: 46%; width: 100%; pointer-events: none; opacity: .9; }
.hero-inner { position: relative; max-width: 900px; }

.hero h1 { max-width: 16ch; margin: 0 auto; }
.hero h1 .accent { display: block; }

.lede {
  color: var(--text-2); font-size: clamp(1.02rem, 2vw, 1.22rem);
  max-width: 56ch; margin: 26px auto 0; line-height: 1.65;
}

.cta-row { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 40px; flex-wrap: wrap; }
.appstore-badge { display: inline-block; border-radius: 9px; transition: transform 150ms var(--ease-out), opacity 150ms var(--ease-out); }
.appstore-badge:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .appstore-badge:hover { transform: translateY(-1px); } }
.appstore-badge svg { display: block; }
.hear-link {
  color: var(--text-2); font-weight: 500; font-size: .98rem;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color 150ms var(--ease-out);
}
.hear-link svg { width: 15px; height: 15px; }
@media (hover: hover) and (pointer: fine) { .hear-link:hover { color: var(--accent); } }
.trial-note { display: block; margin-top: 18px; color: var(--text-3); font-size: .88rem; }

/* ---------- seksjoner: stor luft, rolig rytme ---------- */
.section { position: relative; max-width: var(--maxw); margin: 0 auto; padding: clamp(90px, 14vh, 160px) clamp(20px, 4vw, 40px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vh, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--text-2); margin-top: 16px; font-size: 1.05rem; }

/* ---------- USP: aldri avbrutt ---------- */
.usp { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.usp-copy h2 { max-width: 14ch; }
.usp-copy > p { color: var(--text-2); margin-top: 18px; max-width: 46ch; }
.usp-points { list-style: none; margin-top: 28px; display: grid; gap: 14px; }
.usp-points li { display: flex; gap: 12px; align-items: baseline; font-weight: 500; }
.usp-points li::before { content: ""; flex: 0 0 6px; height: 6px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }
.usp-points li span { color: var(--text-2); font-weight: 400; }

/* taletidslinje: tale — pause — tale, Tolq venter */
.talelinje {
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: 16px;
  padding: clamp(24px, 4vw, 40px);
}
.tl-rad { display: flex; align-items: center; gap: 3px; height: 44px; margin: 10px 0; }
.tl-merke { font-size: .78rem; color: var(--text-3); font-weight: 500; letter-spacing: .01em; }
.tl-rad i { width: 3px; border-radius: 2px; background: var(--accent); opacity: .9; }
.tl-rad i.p { background: var(--line-strong); height: 3px !important; }
.tl-status { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--text-2); font-size: .9rem; font-weight: 500; }
.tl-status .prikk { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: rolig 2.4s ease-in-out infinite; }
@keyframes rolig { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- lyddemo ---------- */
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.demo-card {
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px 22px;
  transition: border-color 180ms var(--ease-out), background 180ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .demo-card:hover { border-color: var(--line-strong); background: var(--bg-raise2); } }
.demo-card.playing { border-color: var(--accent); }
.demo-langs { display: flex; align-items: center; gap: 9px; font-size: .78rem; font-weight: 600; letter-spacing: .05em; color: var(--text-3); text-transform: uppercase; }
.demo-arrow { width: 18px; color: var(--accent); flex-shrink: 0; }
.demo-quote { margin: 14px 0 20px; font-size: 1rem; font-weight: 500; line-height: 1.45; min-height: 2.9em; color: var(--text); }
.demo-player { display: flex; align-items: center; gap: 13px; }
.play-btn {
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background 150ms var(--ease-out), transform 120ms var(--ease-out);
}
.play-btn:active { transform: scale(0.94); background: var(--accent-press); }
.play-btn .ic-pause { display: none; }
.demo-card.playing .ic-play { display: none; }
.demo-card.playing .ic-pause { display: block; }
.viz { flex: 1; height: 42px; width: 100%; }
.demo-note { color: var(--text-3); font-size: .85rem; margin-top: 28px; }

/* ---------- telefon + steg ---------- */
.phone-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.steg { display: grid; gap: 0; counter-reset: steg; }
.steg-item { position: relative; padding: 22px 0 22px 46px; }
.steg-item + .steg-item { border-top: 1px solid var(--line); }
.steg-item::before {
  counter-increment: steg; content: counter(steg);
  position: absolute; left: 0; top: 24px;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--text-2);
  font-size: .82rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.steg-item h3 { margin-bottom: 6px; }
.steg-item p { color: var(--text-2); font-size: .95rem; max-width: 44ch; }

.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: min(290px, 76vw); aspect-ratio: 9 / 19;
  border-radius: 42px; padding: 9px;
  background: linear-gradient(165deg, #1c212b, #0e1116 65%);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .65), 0 0 0 1px var(--line-strong);
  position: relative;
}
.phone-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; border-radius: 12px; background: #05060a; z-index: 2; }
.phone-screen {
  width: 100%; height: 100%; border-radius: 34px; overflow: hidden;
  background: #0a0c11;
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
}
.phone-head {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 50px 12px 12px; font-size: .7rem; font-weight: 600; color: var(--text-3);
  border-bottom: 1px solid var(--line);
}
.ph-arrows { width: 19px; color: var(--accent); }
.phone-chat { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 9px; overflow: hidden; }

.bubble {
  max-width: 84%; padding: 8px 11px; border-radius: 14px;
  font-size: .76rem; line-height: 1.45;
  opacity: 0; transform: translateY(8px) scale(.98);
  animation: bubbleIn 260ms var(--ease-out) forwards;
}
@keyframes bubbleIn { to { opacity: 1; transform: none; } }
.bubble .b-orig { font-weight: 600; }
.bubble .b-trans { color: var(--text-3); font-size: .7rem; margin-top: 3px; }
.bubble.me { align-self: flex-end; background: rgba(46, 230, 168, .12); border: 1px solid rgba(46, 230, 168, .28); border-bottom-right-radius: 5px; }
.bubble.them { align-self: flex-start; background: var(--bg-raise2); border: 1px solid var(--line-strong); border-bottom-left-radius: 5px; }

.speak-bars { display: inline-flex; gap: 2.5px; align-items: flex-end; height: 9px; margin-left: 6px; }
.speak-bars i { width: 2.5px; border-radius: 2px; background: var(--accent); animation: sbar 900ms ease-in-out infinite; }
.speak-bars i:nth-child(1) { height: 5px; }
.speak-bars i:nth-child(2) { height: 9px; animation-delay: 150ms; }
.speak-bars i:nth-child(3) { height: 6px; animation-delay: 300ms; }
.speak-bars i:nth-child(4) { height: 9px; animation-delay: 450ms; }
@keyframes sbar { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }

.phone-mic {
  position: relative; align-self: center; margin: 0 0 18px;
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink); flex-shrink: 0;
}
.mic-ring { position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid rgba(46, 230, 168, .45); animation: micring 2.2s var(--ease-out) infinite; }
@keyframes micring { 0% { transform: scale(.92); opacity: 1; } 100% { transform: scale(1.45); opacity: 0; } }

/* ---------- opptak ---------- */
.rec-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.rec-split .usp-points { margin-top: 24px; }
.doc-card {
  width: min(380px, 88vw); padding: 30px 28px; justify-self: center;
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: 16px;
  display: grid; gap: 13px;
}
.doc-line { height: 8px; border-radius: 4px; background: var(--line-strong); }
.doc-line.w60 { width: 60%; } .doc-line.w70 { width: 70%; } .doc-line.w75 { width: 75%; }
.doc-line.w80 { width: 80%; } .doc-line.w85 { width: 85%; } .doc-line.w90 { width: 90%; } .doc-line.w95 { width: 95%; }
.doc-tag {
  justify-self: start; font-size: .68rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(46, 230, 168, .35); border-radius: 6px; padding: 3px 9px;
}
.doc-tag.alt { color: var(--text-2); border-color: var(--line-strong); }

/* ---------- privat: rene utsagn, ingen kort ---------- */
.priv-list { max-width: 620px; margin: 0 auto; display: grid; gap: 0; }
.priv-item { padding: 26px 0; }
.priv-item + .priv-item { border-top: 1px solid var(--line); }
.priv-item h3 { font-size: 1.25rem; }
.priv-item p { color: var(--text-2); margin-top: 6px; max-width: 60ch; }

/* ---------- pris ---------- */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 330px)); gap: 16px; justify-content: center; }
.price-card {
  position: relative; padding: 34px 30px 30px;
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: 16px;
}
.price-card.best { border-color: var(--accent); }
.best-tag {
  position: absolute; top: -12px; left: 26px;
  background: var(--accent); color: var(--accent-ink); font-size: .72rem; font-weight: 700;
  border-radius: 6px; padding: 3px 10px; letter-spacing: .03em;
}
.price-card h3 { color: var(--text-3); font-size: .82rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 600; }
.price { margin: 14px 0 4px; display: flex; align-items: baseline; gap: 7px; }
.price .num { font-size: 2.9rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price .unit { color: var(--text-3); font-weight: 500; }
.price-note { color: var(--accent); font-weight: 600; font-size: .89rem; }
.price-note.alt { color: var(--text-3); font-weight: 400; font-size: .82rem; margin-top: 3px; }
.fine { color: var(--text-3); font-size: .84rem; max-width: 56ch; margin: 34px auto 0; }
#priser .cta-row { margin-top: 36px; }

/* ---------- founder + footer ---------- */
.founder { max-width: 640px; margin: 0 auto; text-align: center; }
.founder-text { font-size: clamp(1.1rem, 2.2vw, 1.35rem); font-weight: 500; line-height: 1.55; }
.founder-mail { display: inline-block; margin-top: 18px; color: var(--accent); font-weight: 600; border-bottom: 1px solid rgba(46, 230, 168, .35); transition: border-color 150ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .founder-mail:hover { border-color: var(--accent); } }

.footer { border-top: 1px solid var(--line); padding: 52px clamp(20px, 4vw, 40px) 36px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 440px; display: grid; gap: 13px; }
.footer-note { color: var(--text-3); font-size: .82rem; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { color: var(--text-2); font-size: .9rem; transition: color 150ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .footer-links a:hover { color: var(--text); } }
.footer-legal { max-width: var(--maxw); margin: 34px auto 0; color: var(--text-3); font-size: .78rem; }

/* ---------- avdekking: diskré, kun opasitet + 12px løft ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.js .reveal.vis { opacity: 1; transform: none; }
.js .demo-card.reveal:nth-child(2) { transition-delay: 60ms; }
.js .demo-card.reveal:nth-child(3) { transition-delay: 120ms; }

/* ---------- responsivt ---------- */
@media (max-width: 900px) {
  .topnav { display: none; }
  .usp, .phone-split, .rec-split { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .hero { min-height: 88svh; }
  .phone-wrap { order: 1; }
}
@media (max-width: 560px) {
  .btn-small { display: none; }
}

/* ---------- redusert bevegelse ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- demofilm ---------- */
.film-stage { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.film-side { display: grid; gap: 24px; align-content: center; }
.scene-picker { display: flex; gap: 10px; flex-wrap: wrap; }
.scene-chip {
  display: grid; gap: 2px; text-align: left;
  background: var(--bg-raise); border: 1px solid var(--line); color: var(--text);
  border-radius: 12px; padding: 10px 16px; cursor: pointer;
  font: 600 .95rem "Inter", sans-serif;
  transition: border-color 150ms var(--ease-out), background 150ms var(--ease-out), transform 120ms var(--ease-out);
}
.scene-chip small { color: var(--text-3); font-weight: 500; font-size: .76rem; }
.scene-chip:active { transform: scale(0.97); }
.scene-chip.on { border-color: var(--accent); }
.scene-chip.on small { color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .scene-chip:hover { background: var(--bg-raise2); } }

.film-caption { font-size: clamp(1.1rem, 2.2vw, 1.45rem); font-weight: 600; line-height: 1.4; min-height: 3.9em; letter-spacing: -0.015em; text-wrap: balance; }
.film-progress { display: flex; gap: 5px; }
.film-progress i { height: 3px; flex: 1; border-radius: 2px; background: var(--line-strong); transition: background 250ms var(--ease-out); }
.film-progress i.full { background: var(--accent); }

.film-phone-wrap { display: flex; justify-content: center; }
.film-phone { width: min(320px, 82vw); }
.film-detect {
  margin: 10px 12px 0; padding: 5px 10px; border-radius: 8px;
  font-size: .68rem; font-weight: 600; color: var(--accent);
  border: 1px solid rgba(46, 230, 168, .3); background: rgba(46, 230, 168, .07);
  opacity: 0; transform: translateY(-4px);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
  min-height: 1.6em; text-align: center;
}
.film-detect.on { opacity: 1; transform: none; }
.film-mic { transition: box-shadow 200ms var(--ease-out); }
.film-mic .mic-ring { animation-play-state: paused; opacity: 0; }
.film-mic.hot .mic-ring { animation-play-state: running; opacity: 1; }
.film-mic.hot { box-shadow: 0 0 0 4px rgba(46, 230, 168, .18); }

.film-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 74px; height: 74px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5), 0 0 0 6px rgba(46, 230, 168, .15);
  transition: transform 150ms var(--ease-out), opacity 200ms var(--ease-out);
  z-index: 3;
}
.film-play:active { transform: translate(-50%, -50%) scale(0.94); }
.film-play .fp-pause { display: none; }
.film-play.spiller { opacity: 0; }
.iphone:hover .film-play.spiller, .film-play.spiller:focus-visible { opacity: .92; }
.film-play.spiller .fp-play { display: none; }
.film-play.spiller .fp-pause { display: block; }

/* gjennomgangs-visninger inne i telefonen */
.wt-view { display: flex; flex-direction: column; justify-content: center; height: 100%; padding: 6px 2px; animation: wtInn 350ms var(--ease-out); }
@keyframes wtInn { from { opacity: 0; transform: translateY(10px); } }
.wt-note { display: grid; gap: 10px; background: var(--bg-raise2); border: 1px solid var(--line-strong); border-radius: 12px; padding: 16px 14px; }
.wt-rec { display: grid; gap: 12px; justify-items: center; }
.wt-timer { font-size: 1.7rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.wt-recbars { display: flex; gap: 2.5px; align-items: center; height: 26px; }
.wt-recbars i { width: 3px; border-radius: 2px; background: var(--accent); animation: sbar 900ms ease-in-out infinite; }
.wt-recbars i:nth-child(3n) { height: 20px; animation-delay: 100ms; }
.wt-recbars i:nth-child(3n+1) { height: 10px; animation-delay: 250ms; }
.wt-recbars i:nth-child(3n+2) { height: 15px; animation-delay: 400ms; }
.wt-lock { display: flex; align-items: center; gap: 5px; color: var(--text-3); font-size: .7rem; font-weight: 500; }
.wt-lines { display: grid; gap: 9px; }
.wt-line { display: grid; gap: 2px; border-left: 1px solid var(--line-strong); padding-left: 9px; }
.wt-line b { color: var(--text-3); font-size: .62rem; font-weight: 600; letter-spacing: .04em; }
.wt-line span { font-size: .74rem; line-height: 1.4; }
.wt-chat { display: flex; flex-direction: column; gap: 9px; }
.wt-chat .bubble { animation: none; opacity: 1; transform: none; }
.wt-export { display: flex; gap: 9px; justify-content: center; }
.wt-export span { border: 1px solid var(--line-strong); border-radius: 9px; padding: 9px 13px; font-size: .74rem; font-weight: 600; color: var(--text-2); }
.wt-end { display: grid; gap: 12px; justify-items: center; text-align: center; }
.wt-end .wm-wave { width: 30px; height: 19px; color: var(--accent); }
.wt-end b { font-size: 1.25rem; letter-spacing: -0.02em; }
.wt-replay { margin-top: 6px; background: var(--accent); color: var(--accent-ink); border: none; border-radius: 999px; padding: 8px 18px; font: 600 .82rem "Inter", sans-serif; cursor: pointer; transition: transform 120ms var(--ease-out); }
.wt-replay:active { transform: scale(0.96); }

@media (max-width: 900px) {
  .film-stage { grid-template-columns: 1fr; }
  .film-phone-wrap { order: -1; }
  .film-caption { min-height: 2.9em; }
}

/* ---------- ekte iPhone (film-seksjonen) ---------- */
.film-phone-wrap { position: relative; padding: 30px 0 46px; }
.scene-lys {
  position: absolute; inset: -8% -18%;
  background: radial-gradient(58% 52% at 50% 42%, rgba(46, 230, 168, .09), transparent 72%);
  pointer-events: none;
}

.iphone {
  position: relative; width: min(322px, 80vw); aspect-ratio: 71 / 146;
  border-radius: clamp(44px, 16.5%, 56px);
  background: linear-gradient(148deg, #5a5e68 0%, #2c2f36 22%, #16181d 38%, #3b3e46 52%, #14161a 68%, #4a4d56 88%, #24262c 100%);
  padding: 3px;
  box-shadow:
    inset 0 0 2px rgba(255, 255, 255, .28),
    0 1px 0 rgba(255, 255, 255, .06),
    0 30px 70px -18px rgba(0, 0, 0, .8);
  margin: 0 auto;
}
.ip-knapp {
  position: absolute; background: linear-gradient(90deg, #3c3f47, #23252b); border-radius: 3px;
}
.ip-mute  { left: -2.5px; top: 17%;  width: 3px; height: 4.5%; }
.ip-vol1  { left: -2.5px; top: 24%;  width: 3px; height: 8%; }
.ip-vol2  { left: -2.5px; top: 33.5%; width: 3px; height: 8%; }
.ip-power { right: -2.5px; top: 27%; width: 3px; height: 12%; border-radius: 3px; background: linear-gradient(270deg, #3c3f47, #23252b); }

.ip-ramme {
  width: 100%; height: 100%;
  border-radius: inherit;
  background: #000;
  padding: 9px;
}
.ip-skjerm {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: clamp(34px, 13.5%, 44px);
  background:
    radial-gradient(140% 90% at 80% -10%, #101623 0%, #0a0d13 45%, #07090d 100%);
  display: flex; flex-direction: column;
  isolation: isolate;
}
.ip-glans {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, .055) 0%, rgba(255, 255, 255, .015) 26%, transparent 44%);
  border-radius: inherit;
}

.ip-topp {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  padding: 13px 22px 4px; min-height: 40px;
}
.ip-tid { font-size: .78rem; font-weight: 600; letter-spacing: .01em; }
.ip-island {
  position: absolute; left: 50%; top: 11px; transform: translateX(-50%);
  width: 33%; height: 24px; border-radius: 999px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04), 0 0 0 1px rgba(0, 0, 0, .6);
}
.ip-ikoner { display: inline-flex; align-items: center; gap: 5px; color: var(--text); }

.ip-apphead {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 8px 14px 0; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, .025);
  font-size: .72rem; font-weight: 600; color: var(--text-2);
}
.ip-apphead .ph-arrows { width: 19px; color: var(--accent); }

.ip-mikrolinje { display: flex; justify-content: center; padding: 6px 0 14px; }
.ip-homebar {
  align-self: center; width: 36%; height: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .28); margin-bottom: 7px; flex-shrink: 0;
}

.ip-skygge {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  width: 66%; height: 30px; border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, .55), transparent 70%);
  filter: blur(6px);
  pointer-events: none;
}

/* spilleknapp: frostet glass med aksentring — mer premium enn heldekkende */
.film-play {
  background: rgba(8, 9, 12, .66);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--accent);
  border: 1.5px solid rgba(46, 230, 168, .65);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .55);
}

/* chat-området arver stil, men litt mer luft i ekte skjerm */
.iphone .phone-chat { padding: 14px 14px 4px; }
.iphone .film-detect { margin-top: 8px; }

@media (max-width: 900px) {
  .iphone { width: min(300px, 78vw); }
}
