/* ==========================================================================
   Directory Display — website
   Same ink-and-marigold palette as the editor: a dark frame like a lit lobby
   sign, warm paper for reading, one amber accent for the thing to press.
   ========================================================================== */

:root {
  --ink: #16202b; --ink-2: #33404d; --muted: #5d6975;
  --paper: #f6f5f1; --surface: #ffffff; --line: #e1ded5; --line-2: #cbc7ba;
  --amber: #ffb53a; --amber-ink: #1c1608; --amber-text: #8a5a00;
  --blue: #1b5fc7; --good: #1f7a4a; --bad: #b3372b;
  --display: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -.015em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--blue); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.wrap { width: min(100% - 40px, 1120px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
kbd { display: inline-block; padding: 0 .4rem; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; background: var(--surface); font: .82em ui-monospace, Consolas, monospace; }
code { font: .88em ui-monospace, Consolas, "Cascadia Mono", monospace; padding: .1rem .35rem; border-radius: 4px; background: #e9e6dd; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 42px; padding: .5rem 1.05rem; font: 600 .95rem var(--sans); color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--ink); }
.btn.accent { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
.btn.accent:hover { background: #ffc35c; border-color: #ffc35c; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: inherit; }
.btn.ghost:hover { border-color: currentColor; }
.btn.outline { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn.outline:hover { border-color: #fff; }
.btn.big { min-height: 52px; padding: .7rem 1.5rem; font-size: 1.05rem; }
.btn:disabled { opacity: .6; cursor: default; }

/* --------------------------------------------------------------- header */
.site-head { background: var(--ink); color: #fff; }
.site-head .wrap { display: flex; align-items: center; gap: 1.4rem; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: .6rem; font: 700 1.12rem var(--display); color: inherit; text-decoration: none; white-space: nowrap; }
.site-nav { display: flex; gap: 1.5rem; margin-left: 1rem; }
.site-nav a, .nav-menu nav a { color: #cfd7df; text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-nav a:hover { color: #fff; }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: .4rem; }
.nav-menu { display: none; margin-left: auto; position: relative; }
.nav-menu summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; cursor: pointer; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu[open] summary { background: #24313f; }
.nav-menu nav { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; display: grid; min-width: 220px; padding: .5rem; background: #24313f; border-radius: 10px; box-shadow: 0 16px 40px rgba(0, 0, 0, .4); }
.nav-menu nav a { padding: .65rem .8rem; border-radius: 6px; color: #fff; }
.nav-menu nav a:last-child { margin-top: .3rem; background: var(--amber); color: var(--amber-ink); text-align: center; }
@media (max-width: 820px) { .site-nav, .head-actions { display: none; } .nav-menu { display: block; } }

/* ----------------------------------------------------------------- hero */
.hero { background: radial-gradient(1100px 620px at 50% -12%, #2a3d50, var(--ink) 70%); color: #fff; padding: clamp(2.6rem, 6vw, 4.6rem) 0 0; text-align: center; }
.eyebrow { font: 600 .8rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--amber); }
.hero h1 { font-size: clamp(2.2rem, 5.6vw, 4rem); max-width: 17ch; margin: .7rem auto 0; }
.hero .lead { max-width: 60ch; margin: 1.1rem auto 0; color: #c9d2db; font-size: clamp(1.02rem, 1.6vw, 1.2rem); }
.cta-row { display: flex; justify-content: center; gap: .7rem; flex-wrap: wrap; margin-top: 1.7rem; }
.hero .fine { margin-top: .9rem; font-size: .9rem; color: #9eabb8; }

/* ------------------------------------------------------------ live demo */
.demo { margin-top: clamp(2rem, 4vw, 3rem); padding-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.demo-note { font-size: .86rem; color: #9eabb8; margin-bottom: .8rem; }
.tv { position: relative; width: min(100%, 1000px); margin: 0 auto; padding: 10px; background: #05090d; border-radius: 14px; box-shadow: 0 0 0 1px #2c3947, 0 34px 80px rgba(0, 0, 0, .55); }
.tv-screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 5px; background: #0d2434 center / cover no-repeat; }
.tv.tall { width: auto; max-width: 100%; height: min(86vh, 800px); aspect-ratio: 9 / 16; }
.tv.tall .tv-screen { aspect-ratio: auto; height: 100%; }
.tv-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.demo-controls { width: min(100%, 1000px); margin: 1.3rem auto 0; display: grid; gap: .7rem; text-align: left; }
.demo-row { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: .8rem; align-items: center; }
.demo-row > span, .demo-row > label { font: 600 .8rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #9eabb8; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { min-height: 36px; padding: .2rem .9rem; border: 1px solid #40505f; border-radius: 999px; background: transparent; color: #dbe2e9; font: 600 .88rem var(--sans); cursor: pointer; }
.chip:hover { border-color: #8494a3; }
.chip[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
.demo-row input { width: min(100%, 360px); min-height: 42px; padding: .4rem .8rem; border: 1px solid #40505f; border-radius: 8px; background: #101a24; color: #fff; font: inherit; font-size: .98rem; }
.demo-row input::placeholder { color: #7f8c99; }
.demo-row input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255, 181, 58, .3); }
@media (max-width: 640px) { .demo-row { grid-template-columns: 1fr; gap: .35rem; } }

/* ------------------------------------------------------------- sections */
.section { padding: clamp(3rem, 7vw, 5.2rem) 0; }
.section.alt { background: #efede6; }
.section-head { max-width: 46rem; margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.section-head.center { margin-inline: auto; }
.section h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section-head p { margin-top: .7rem; color: var(--ink-2); font-size: 1.08rem; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.feature { padding: 1.3rem 1.3rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.feature svg { width: 28px; height: 28px; padding: 5px; box-sizing: content-box; border-radius: 9px; background: var(--ink); color: var(--amber); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.12rem; margin-top: .9rem; }
.feature p { margin-top: .4rem; color: var(--ink-2); font-size: .97rem; }
.steps3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; counter-reset: s; }
.steps3 li { counter-increment: s; position: relative; padding-top: 3.4rem; }
.steps3 li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--ink); color: var(--amber); font: 700 1.25rem/2.6rem var(--display); text-align: center; }
.steps3 h3 { font-size: 1.2rem; }
.steps3 p { margin-top: .4rem; color: var(--ink-2); }
.more { display: inline-block; margin-top: 1.6rem; font-weight: 600; }

.band { background: var(--ink); color: #fff; }
.band .wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1.4rem, 4vw, 3rem); align-items: center; }
.band h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.band p { margin-top: .8rem; color: #c9d2db; }
.band .box { padding: 1.4rem; border: 1px solid #3a4958; border-radius: 12px; background: #1c2936; }
.band .box b { display: block; font: 700 1.05rem var(--display); color: var(--amber); }
.band .box p { margin-top: .35rem; font-size: .95rem; }
.band .box p + b { margin-top: 1rem; }
@media (max-width: 820px) { .band .wrap { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- pricing */
.price-line { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; margin-top: .4rem; }
.price-line b { font: 700 clamp(2.6rem, 6vw, 3.6rem)/1 var(--display); letter-spacing: -.02em; }
.price-teaser { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.6rem; align-items: center; padding: clamp(1.4rem, 3vw, 2.2rem); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: inset 0 5px 0 var(--amber); }
@media (max-width: 720px) { .price-teaser { grid-template-columns: 1fr; } }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; max-width: 780px; margin: 0 auto; }
.plan { display: grid; gap: .6rem; align-content: start; padding: 1.6rem; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; }
.plan.best { border-color: var(--ink); box-shadow: inset 0 5px 0 var(--amber); }
.plan h3 { font-size: 1.15rem; }
.plan .tag { justify-self: start; padding: .1rem .6rem; border-radius: 999px; background: #fdf1d8; color: var(--amber-text); font-size: .8rem; font-weight: 600; }
.plan .btn { margin-top: .5rem; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: .55rem 1.6rem; }
.ticks li { position: relative; padding-left: 1.7rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .42em; width: 1rem; height: .55rem; border-left: 3px solid var(--good); border-bottom: 3px solid var(--good); transform: rotate(-45deg) scale(.8); transform-origin: left; }

/* ------------------------------------------------------------------ faq */
.faq { max-width: 800px; display: grid; gap: .6rem; }
.faq.center { margin-inline: auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0 1.2rem; }
.faq summary { cursor: pointer; padding: 1rem 1.6rem 1rem 0; font: 700 1.05rem var(--display); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font: 400 1.5rem/1 var(--sans); color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 1.1rem; color: var(--ink-2); }
.faq details p + p { margin-top: -.4rem; }

.cta-band { background: var(--amber); color: var(--amber-ink); text-align: center; }
.cta-band h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.cta-band p { margin-top: .6rem; }
.cta-band .btn { margin-top: 1.4rem; }

/* ------------------------------------------------------- inside pages */
.page-head { background: var(--ink); color: #fff; padding: clamp(2.2rem, 5vw, 3.6rem) 0; }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); max-width: 22ch; }
.page-head p { margin-top: .8rem; max-width: 62ch; color: #c9d2db; font-size: 1.1rem; }
.guide { max-width: 800px; display: grid; gap: 1rem; }
.guide h2 { font-size: clamp(1.45rem, 2.8vw, 1.9rem); margin-top: 1.6rem; }
.guide h2:first-child { margin-top: 0; }
.guide ul, .guide ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .5rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .9rem; }
.card { padding: 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.card h3 { font-size: 1.08rem; }
.card p { margin-top: .4rem; color: var(--ink-2); font-size: .96rem; }
.numbered { list-style: none; counter-reset: n; padding: 0 !important; gap: .8rem !important; }
.numbered > li { counter-increment: n; position: relative; padding: 1.1rem 1.2rem 1.2rem 4rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.numbered > li::before { content: counter(n); position: absolute; left: 1.1rem; top: 1rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ink); color: var(--amber); font: 700 1rem/2rem var(--display); text-align: center; }
.numbered h3 { font-size: 1.12rem; }
.numbered p { margin-top: .35rem; color: var(--ink-2); }

.prose { max-width: 72ch; }
.prose h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.prose p, .prose ul { margin-top: .8rem; color: var(--ink-2); }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: .35rem; }
.draft-note { padding: .9rem 1.1rem; border-radius: 10px; background: #fdf1d8; color: #5c3700; border: 1px solid #f0d9a4; }

/* ---------------------------------------------------------------- forms */
.form { display: grid; gap: 1rem; max-width: 560px; }
.form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .3rem; }
.form input, .form textarea { width: 100%; min-height: 46px; padding: .55rem .8rem; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; }
.form textarea { min-height: 170px; resize: vertical; line-height: 1.45; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 181, 58, .45); }
.form .trap { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: .7rem .9rem; border-radius: 8px; }
.form-msg.ok { background: #e4f3ea; color: var(--good); }
.form-msg.bad { background: #fbe9e6; color: var(--bad); }
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(1.4rem, 4vw, 3rem); align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- footer */
.site-foot { background: var(--ink); color: #b9c4cf; padding: 2.6rem 0 2rem; font-size: .93rem; }
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.site-foot .logo { color: #fff; }
.site-foot .about p { margin-top: .6rem; max-width: 30ch; }
.site-foot h2 { font: 600 .76rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #8795a2; margin-bottom: .6rem; }
.site-foot nav { display: grid; gap: .35rem; align-content: start; }
.site-foot a { color: #dbe2e9; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot .legal { grid-column: 1 / -1; padding-top: 1.2rem; border-top: 1px solid #2c3947; color: #8795a2; font-size: .86rem; }
@media (max-width: 720px) { .site-foot .wrap { grid-template-columns: 1fr 1fr; } .site-foot .about { grid-column: 1 / -1; } }
