/* Desklytic landing site. Palette taken from the logo. */
@font-face { font-family: "Schibsted Grotesk"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("assets/fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 800; font-style: normal; font-display: swap; src: url("assets/fonts/schibsted-grotesk-latin-800-normal.woff2") format("woff2"); }

:root {
  --ink: #0a1b45;
  --ink-soft: #3b4a72;
  --blue: #0b3bb8;
  --blue-dark: #082c8c;
  --blue-bright: #0878e8;
  --teal: #03c2b5;
  --teal-text: #00796f;
  --paper: #f5f8fc;
  --white: #ffffff;
  --line: #d9e2f0;
  --navy: #071533;
  --warn: #9a5b00;
  --warn-bg: #fff3dc;
  --radius: 12px;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 10px 14px; z-index: 50; border-radius: 6px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Type */
.h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; margin: 0 0 24px; }
.h2 { font-size: clamp(1.85rem, 3.3vw, 2.8rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.028em; margin: 0 0 16px; }
.h3 { font-size: 1.3rem; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 8px; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink-soft); max-width: 34em; margin: 0 0 32px; }
.text { color: var(--ink-soft); max-width: 36em; margin: 0 0 16px; }
.small { font-size: 0.9rem; color: var(--ink-soft); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; border-radius: 10px; padding: 14px 24px; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--paper); color: var(--ink); }
.btn-small { padding: 9px 16px; font-size: 0.95rem; }
.btn-block { width: 100%; }

/* Header */
.topbar { background: var(--white); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: block; line-height: 0; }
.brand-logo { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav-link { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav-link:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 5px; }
.nav-link-current { font-weight: 700; }

/* Hero */
.hero { background: var(--paper); position: relative; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: stretch; }
.hero-copy { align-self: center; padding: 72px 0 88px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 20px; }
.hero-note { margin: 0; }

.stage { position: relative; display: flex; align-items: center; padding: 56px 0 56px 36px; }
.stage-slab { position: absolute; inset: 0 -9999px 0 18%; background: var(--ink); clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
.stage-stripe { position: absolute; left: 4%; bottom: 0; width: 34%; height: 14px; background: var(--teal); transform: skewX(-38deg); }

.ticket { position: relative; width: 100%; background: var(--white); border-radius: 14px; padding: 22px 24px 24px; box-shadow: 0 24px 48px -20px rgba(7, 21, 51, 0.55); }
.ticket-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 0.85rem; color: var(--ink-soft); }
.ticket-title { font-size: 1.35rem; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 4px; }
.ticket-meta { margin: 0 0 18px; font-size: 0.92rem; color: var(--ink-soft); }
.ticket-block { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.ticket-label { font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); margin: 0 0 8px; }
.ticket-copy { margin: 0; font-size: 1rem; line-height: 1.5; }
.ticket-chips { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.ticket-actions { display: grid; margin-top: 16px; }
.ticket-actions > * { grid-area: 1 / 1; }
.ticket-buttons { display: flex; gap: 10px; align-items: center; }
.fake-btn { font: inherit; font-weight: 700; font-size: 0.95rem; border-radius: 8px; padding: 9px 16px; border: 2px solid var(--blue); background: var(--blue); color: var(--white); }
.fake-btn-quiet { background: transparent; color: var(--blue); }
.ticket-approved { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--teal-text); }

.chip { display: inline-block; font-size: 0.8rem; font-weight: 700; line-height: 1; padding: 6px 10px; border-radius: 999px; background: #e7eefb; color: var(--blue-dark); white-space: nowrap; }
.chip-open { background: var(--warn-bg); color: var(--warn); }
.chip-good { background: #d9f6f2; color: var(--teal-text); }
.chip-ai { background: var(--ink); color: var(--white); }

/* One orchestrated moment: the ticket resolves itself in sequence */
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade-out { to { opacity: 0; visibility: hidden; } }
.step { opacity: 0; animation: reveal .55s ease-out forwards; }
.step-1 { animation-delay: .5s; }
.step-2 { animation-delay: 1.5s; }
.ticket-buttons { animation: fade-out .3s ease-out 3.4s forwards; }
.ticket-approved { opacity: 0; animation: reveal .5s ease-out 3.7s forwards; }

/* Sections */
.section { padding: 96px 0; }
.section-paper { background: var(--paper); }
.section-head { max-width: 40em; margin-bottom: 56px; }

/* Feature rows */
.rows { display: grid; gap: 72px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.row-flip .row-copy { order: 2; }
.row-flip .row-visual { order: 1; }
.mini { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 20px; }
.mini-caption { margin: 10px 4px 0; font-size: 0.85rem; color: var(--ink-soft); }
.mini-row { display: grid; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.mini-row:last-child { border-bottom: 0; }
.mini-tickets .mini-row { grid-template-columns: minmax(0, 1fr) auto auto; }
.mini-devices .mini-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; }
.mini-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-sub { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat { display: grid; gap: 12px; padding: 16px 4px; }
.bubble { max-width: 88%; padding: 12px 16px; border-radius: 14px; font-size: 0.97rem; line-height: 1.5; }
.bubble-user { justify-self: end; background: var(--blue); color: var(--white); border-bottom-right-radius: 4px; }
.bubble-ai { justify-self: start; background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble-ai ol { margin: 6px 0 0; padding-left: 20px; }

.also { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.also-item { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.also-item strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }

/* Dark band with diagonal edges */
.band { background: var(--ink); color: var(--white); padding: 120px 0; clip-path: polygon(0 56px, 100% 0, 100% calc(100% - 56px), 0 100%); margin: -56px 0; position: relative; }
.band .h2 { color: var(--white); }
.band-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 48px 0 0; padding: 0; list-style: none; counter-reset: step; }
.band-step { counter-increment: step; }
.band-step::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--teal); color: var(--navy); font-weight: 800; font-size: 1.15rem; margin-bottom: 18px; }
.band-step .h3 { color: var(--white); }
.band-step p { margin: 0; color: #c7d3ee; max-width: 22em; }

/* Pricing */
.trialnote { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 40px; display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; }
.trialnote strong { font-size: 1.1rem; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.plan { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; padding: 32px 28px; background: var(--white); }
.plan-pro { background: var(--ink); color: var(--white); border-color: var(--ink); }
.plan-flag { align-self: flex-start; background: var(--teal); color: var(--navy); font-weight: 800; font-size: 0.82rem; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.plan-name { font-size: 1.4rem; font-weight: 800; margin: 0 0 4px; letter-spacing: -0.015em; }
.plan-for { margin: 0 0 22px; color: var(--ink-soft); }
.plan-pro .plan-for { color: #c7d3ee; }
.plan-price { font-size: 3.2rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: 0; }
.plan-price span { font-size: 1.05rem; font-weight: 500; letter-spacing: 0; color: var(--ink-soft); }
.plan-pro .plan-price span { color: #c7d3ee; }
.plan-tax { margin: 6px 0 24px; font-size: 0.88rem; color: var(--ink-soft); }
.plan-pro .plan-tax { color: #c7d3ee; }
.plan-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; flex: 1; align-content: start; }
.plan-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 0.98rem; line-height: 1.4; }
.tick { width: 20px; height: 20px; margin-top: 1px; }
.tick path { fill: none; stroke: var(--teal); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.soon { display: inline-block; margin-left: 6px; font-size: 0.74rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(3, 194, 181, 0.18); color: #7ff0e6; vertical-align: 1px; }
.plan:not(.plan-pro) .soon { background: #d9f6f2; color: var(--teal-text); }
.pricing-foot { margin-top: 24px; }

/* Comparison table */
.tablewrap { overflow-x: auto; margin-top: 56px; border: 1px solid var(--line); border-radius: var(--radius); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 1rem; }
.compare th, .compare td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--paper); font-weight: 800; }
.compare tbody th { font-weight: 500; color: var(--ink-soft); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare td { font-weight: 700; }

/* FAQ */
.faq { max-width: 52em; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 700; font-size: 1.12rem; position: relative; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: ""; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq-item[open] .faq-q::after { transform: translateY(-30%) rotate(-135deg); }
.faq-a { margin: 0 0 24px; color: var(--ink-soft); max-width: 40em; }

/* Closing call to action */
.closing { background: var(--paper); padding: 88px 0; }
.closing-inner { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.closing .h2 { margin: 0; max-width: 16em; }

/* Footer */
.footer { background: var(--navy); color: #c7d3ee; padding: 48px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--white); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; text-decoration: none; }
.footer-brand img { width: 36px; height: 36px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer a { color: #c7d3ee; }
.footer a:hover { color: var(--white); }
.footer-copy { width: 100%; margin: 0; font-size: 0.9rem; }

/* Plain text pages */
.doc { padding: 72px 0 96px; }
.doc-body { max-width: 42em; }
.doc-body h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.015em; margin: 40px 0 8px; }
.doc-body p, .doc-body li { color: var(--ink-soft); }
.doc-body ul { padding-left: 22px; margin: 0 0 16px; display: grid; gap: 6px; }
.doc-body .small { margin: 0 0 32px; }
.notice { background: var(--warn-bg); color: #5e3a00; border-radius: var(--radius); padding: 16px 20px; margin: 0 0 24px; font-weight: 500; }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding: 48px 0 40px; }
  .stage { padding: 40px 0; }
  .stage-slab { inset: 0 -9999px 0 -9999px; clip-path: none; }
  .stage-stripe { display: none; }
  .row, .row-flip { grid-template-columns: 1fr; gap: 28px; }
  .row-flip .row-copy, .row-flip .row-visual { order: initial; }
  .also { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band-steps { grid-template-columns: 1fr; gap: 32px; }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .section { padding: 72px 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .nav-link { display: none; }
  .nav { gap: 14px; }
  .brand-logo { height: 36px; }
  .also { grid-template-columns: 1fr; }
  .band { padding: 96px 0; clip-path: polygon(0 36px, 100% 0, 100% calc(100% - 36px), 0 100%); margin: -36px 0; }
  .ticket { padding: 18px; }
  .mini-devices .mini-row { grid-template-columns: minmax(0, 1fr) auto; }
  .mini-devices .mini-sub { display: none; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .step, .ticket-approved { animation: none; opacity: 1; }
  .ticket-buttons { animation: none; opacity: 0; visibility: hidden; }
}
