/* Bureaucracy Software - landing page (index.html). */
:root {
  --ink: #0e1626; --ink-2: #3a4558; --muted: #6a7487; --line: #e3e6ec; --paper: #f7f6f2; --white: #fff;
  --accent: #2f6bff; --accent-ink: #1d4fd8; --accent-soft: #eaf0ff;
  --display: 'Schibsted Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 16px; --wrap: 1140px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--ink); background: var(--white); font-size: 16.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { margin: 0; font-family: var(--display); letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0; }
.eyebrow, .head p.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 11px; font-weight: 600; font-size: 15.5px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1c2740; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -10px rgba(47,107,255,.8); }
.btn-accent:hover { background: var(--accent-ink); }
.btn-line { background: #fff; color: var(--ink); border-color: #cfd4de; }
.btn-line:hover { border-color: var(--ink); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.btn-ghost:hover { border-color: #fff; }
.arrow::after { content: '→'; transition: transform .15s; } .arrow:hover::after { transform: translateX(3px); }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.5) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.stuck { border-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 30px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.top .btn { padding: 9px 17px; font-size: 14.5px; }
@media (max-width: 900px) { .nav { display: none; } .top .btn { margin-left: auto; } }

/* Hero */
.hero { position: relative; padding: 84px 0 0; text-align: center; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 760px; z-index: -1;
  background:
    radial-gradient(ellipse 60% 55% at 50% 0%, rgba(47,107,255,.13), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 50% 0 / 56px 100%;
  -webkit-mask-image: linear-gradient(#000 30%, transparent 92%); mask-image: linear-gradient(#000 30%, transparent 92%); opacity: .75; }
.pill-note { display: inline-flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px 7px 11px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); margin-bottom: 26px; box-shadow: 0 1px 2px rgba(14,22,38,.05); }
.pill-note i { width: 8px; height: 8px; border-radius: 50%; background: #17a34a; box-shadow: 0 0 0 4px rgba(23,163,74,.16); }
.hero h1 { max-width: 880px; margin: 0 auto; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: clamp(17px, 1.7vw, 20px); color: var(--ink-2); max-width: 660px; margin: 24px auto 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; margin-top: 34px; font-size: 14px; color: var(--muted); }
.facts b { color: var(--ink); font-weight: 650; }

/* Live preview */
.stage { margin-top: 60px; text-align: left; }
.stage-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 14px; }
.seg { display: inline-flex; padding: 4px; background: #eef0f4; border-radius: 12px; }
.seg button { border: 0; background: none; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--muted); padding: 9px 18px; border-radius: 9px; cursor: pointer; }
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(14,22,38,.14); }
.brands { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; font-size: 13.5px; color: var(--muted); }
.brands button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 13px 6px 9px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.brands button i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.brands button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.frame { border: 1px solid #cfd4de; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -40px rgba(14,22,38,.45); }
.frame-bar { display: flex; align-items: center; gap: 14px; padding: 11px 16px; background: #f3f4f7; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: #cfd4de; }
.url { flex: 1; max-width: 430px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 5px 12px; font-size: 12.5px; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame-open { font-size: 12.5px; font-weight: 600; color: var(--accent-ink); text-decoration: none; white-space: nowrap; }
.frame iframe { display: block; width: 100%; height: 900px; border: 0; transition: height .2s; }
@media (max-width: 760px) { .brands { margin-left: 0; } .frame-open { display: none; } }

/* Sections */
section { padding: 104px 0; }
.band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero + .band { margin-top: 0; }
.head { max-width: 720px; margin-bottom: 52px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head p { margin-top: 16px; color: var(--ink-2); font-size: 18px; }
.head p.eyebrow { margin-top: 0; }

/* Three promises under the hero */
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.promise { padding: 6px 34px; border-left: 1px solid #d9d6cc; }
.promise:first-child { padding-left: 0; border-left: 0; }
.promise span { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--accent-ink); }
.promise h3 { font-size: 23px; margin: 10px 0 8px; }
.promise p { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 820px) { .promises { grid-template-columns: 1fr; gap: 28px; } .promise { padding: 0; border: 0; } }

/* Feature rows with a screen */
.rows { display: grid; gap: 96px; }
.rowf { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.rowf.flip .text { order: 2; }
.rowf .who { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 16px; }
.rowf .who.team { background: #efeee8; color: var(--ink-2); }
.rowf h3 { font-size: clamp(24px, 2.6vw, 31px); letter-spacing: -0.025em; }
.rowf .text > p { margin: 14px 0 20px; color: var(--ink-2); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 29px; font-size: 15.5px; color: var(--ink-2); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4.3 8.3l2.3 2.3 5-5.2' stroke='%231d4fd8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.shot { border: 1px solid #cfd4de; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -36px rgba(14,22,38,.45); }
.shot .frame-bar { padding: 9px 13px; } .shot .dots i { width: 8px; height: 8px; }
.rowf .text .btn { margin-top: 24px; padding: 10px 17px; font-size: 14.5px; }
@media (max-width: 900px) { .rowf { grid-template-columns: 1fr; gap: 28px; } .rowf.flip .text { order: 0; } .rows { gap: 68px; } }

/* Feature cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cell { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.cell:hover { border-color: #c5cbd8; transform: translateY(-2px); box-shadow: 0 16px 30px -24px rgba(14,22,38,.4); }
.cell .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 18px; }
.cell svg { width: 21px; height: 21px; }
.cell p { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.visas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.visas span { border: 1px solid #d9d6cc; background: #fff; border-radius: 999px; padding: 8px 16px; font-size: 14.5px; font-weight: 500; }
.covers { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; }
.covers h3 { font-size: 17px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: s; }
.step { counter-increment: s; position: relative; padding-top: 58px; }
.step::before { content: counter(s); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 700; display: grid; place-items: center; }
.step::after { content: ''; position: absolute; top: 20px; left: 52px; right: -14px; height: 1px; background: #cfd4de; }
.step:last-child::after { display: none; }
.step p { margin-top: 8px; font-size: 15.5px; color: var(--ink-2); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; gap: 36px 26px; } .step::after { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Two ways (dark) */
.dark { background: var(--ink); color: #fff; }
.dark .eyebrow { color: #8fb0ff; } .dark .head p { color: #b8c0cf; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.plan { border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 34px; background: rgba(255,255,255,.04); }
.plan.hl { background: #fff; color: var(--ink); border-color: #fff; }
.plan .kind { font-size: 13px; font-weight: 600; color: #8fb0ff; } .plan.hl .kind { color: var(--accent-ink); }
.plan h3 { font-size: 26px; margin: 8px 0 10px; }
.plan > p { color: #b8c0cf; margin-bottom: 22px; } .plan.hl > p { color: var(--ink-2); }
.plan .ticks li { color: #d5dae4; } .plan.hl .ticks li { color: var(--ink-2); }
.plan:not(.hl) .ticks li::before { background-color: rgba(255,255,255,.12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4.3 8.3l2.3 2.3 5-5.2' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faqwrap { display: grid; grid-template-columns: 4fr 7fr; gap: 56px; }
.faqwrap .head { margin: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 21px 40px 21px 0; font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 27px; width: 11px; height: 11px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 31px; }
.faq details p { padding: 0 40px 24px 0; color: var(--ink-2); }
@media (max-width: 900px) { .faqwrap { grid-template-columns: 1fr; gap: 30px; } }

/* Contact */
.cta { background: var(--paper); border: 1px solid #e4e1d8; border-radius: 24px; padding: 56px; display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.cta h2 { margin-bottom: 16px; }
.cta .lead { color: var(--ink-2); font-size: 18px; margin-bottom: 28px; max-width: 520px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: #fff; }
.card h3 { margin-bottom: 16px; }
.card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: 15px; }
.card dt { color: var(--muted); } .card dd { margin: 0; }
.card a { color: var(--accent-ink); text-decoration: none; font-weight: 500; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; padding: 34px 26px; } }

footer { padding: 40px 0 48px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: space-between; align-items: flex-end; }
footer a { color: var(--ink-2); text-decoration: none; } footer a:hover { color: var(--ink); }
footer .legal { line-height: 1.75; } footer .brand { font-size: 16px; margin-bottom: 10px; color: var(--ink); }
footer .links { display: flex; gap: 24px; flex-wrap: wrap; }

/* Gentle reveal on scroll */
.rise { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rise { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .btn:hover, .cell:hover { transform: none; } }

html, body { overflow-x: clip; }
@media (max-width: 520px) { .seg { width: 100%; } .seg button { flex: 1; padding: 9px 10px; font-size: 13.5px; } section { padding: 72px 0; } .hero { padding-top: 56px; } }

.hero { padding-bottom: 88px; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 19px; border-radius: 11px; font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: all .25s; max-width: 92vw; z-index: 99; box-shadow: 0 14px 30px -14px rgba(14,22,38,.6); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.brand, .top .btn { white-space: nowrap; }
@media (max-width: 480px) { .top .wrap { gap: 12px; padding: 0 16px; } .top .brand { font-size: 15.5px; gap: 8px; } .top .brand img { width: 26px; height: 26px; } .top .btn { padding: 8px 12px; font-size: 13.5px; } }
