:root {
    --ink: #1c1b17;
    --paper: #f6f3ec;
    --paper-2: #efebe1;
    --muted: #4a4840;
    --faint: #6b685e;
    --yellow: oklch(0.92 0.13 95);
    --yellow-deep: oklch(0.85 0.13 95);
    --white: #fff;
    --mono: 'IBM Plex Mono', ui-monospace, monospace;
    --sans: 'Familjen Grotesk', system-ui, sans-serif;
    --gutter: clamp(16px, 5vw, 64px);
    --section: clamp(88px, 11vw, 160px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }

.wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.mono { font-family: var(--mono); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 999px;
    font-weight: 600;
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn-ink {
    background: var(--ink);
    color: var(--paper);
    padding: 16px 28px 16px 18px;
    font-size: 18px;
    box-shadow: 5px 5px 0 var(--yellow-deep);
}
.btn-ink:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--yellow-deep); }
.btn-ink img { width: 26px; height: 26px; display: block; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--paper);
    transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 2px 0 var(--ink); }
.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 22px;
    padding-bottom: 22px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inria Sans', sans-serif;
    font-weight: 400;
    font-size: 24px;
    letter-spacing: -0.02em;
}
.logo img { width: 32px; height: 32px; }
.nav {
    display: flex;
    gap: 36px;
    align-items: center;
    font-size: 17px;
    font-weight: 500;
}
.nav a:not(.nav-cta):hover { opacity: .65; }
.nav-cta {
    border: 2px solid var(--ink);
    padding: 9px 18px;
    border-radius: 999px;
    box-shadow: 3px 3px 0 var(--ink);
    background: var(--white);
    transition: transform .15s ease, box-shadow .15s ease;
}
.nav-cta:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }

/* Hero */
.hero {
    padding-top: clamp(40px, 6vw, 72px);
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 48px;
    align-items: end;
}
.hero h1 {
    font-size: clamp(52px, 8.2vw, 104px);
    line-height: 0.95;
    letter-spacing: -0.045em;
    font-weight: 700;
    text-wrap: balance;
}
.hl {
    background-image: linear-gradient(var(--yellow), var(--yellow));
    background-repeat: no-repeat;
    background-size: 100% 100%;
    padding: 0 10px;
    animation: hl-swipe 0.55s cubic-bezier(.65, 0, .35, 1) 0.2s both;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
/* Marker swipe: the yellow fills in left to right (each wrapped line at once, via clone) */
@keyframes hl-swipe {
    from { background-size: 0% 100%; }
    to { background-size: 100% 100%; }
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-bottom: 10px;
}
.hero-side p {
    font-size: clamp(19px, 1.8vw, 22px);
    line-height: 1.45;
    color: var(--muted);
    text-wrap: pretty;
}
.hero-actions {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}
.hero-actions .mono { font-size: 14px; color: var(--faint); }

/* Video */
.video-section { padding-top: clamp(48px, 6vw, 72px); }
.video-frame {
    border: 2px solid var(--ink);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 10px 10px 0 var(--ink);
    background: repeating-linear-gradient(135deg, var(--paper-2) 0 14px, var(--paper) 14px 28px);
    aspect-ratio: 16 / 9;
    position: relative;
    transition: border-color .4s ease, box-shadow .4s ease;
}
/* While playing, the shadow slides back under the video and the frame and stripes go, so only the video shows (transparent border keeps the size steady) */
.video-frame.is-playing { border-color: transparent; box-shadow: 0 0 0 var(--ink); background: none; }
.video-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.video-frame.is-playing .video-play { display: none; }
.video-play {
    all: unset;
    cursor: pointer;
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    background: rgba(255, 255, 255, .5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: background .15s ease, backdrop-filter .15s ease;
}
.video-play:hover {
    background: rgba(255, 255, 255, .35);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.video-play:focus-visible { outline: 3px solid var(--ink); outline-offset: -8px; }
.play-dot {
    width: clamp(72px, 9vw, 112px);
    height: clamp(72px, 9vw, 112px);
    border-radius: 999px;
    background: var(--ink);
    box-shadow: 6px 6px 0 var(--yellow-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s ease, box-shadow .15s ease;
}
.video-play:hover .play-dot { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--yellow-deep); }
.play-dot::before {
    content: '';
    border-style: solid;
    border-width: 20px 0 20px 32px;
    border-color: transparent transparent transparent var(--paper);
    margin-left: 8px;
}
.video-label {
    font: 500 14px var(--mono);
    color: var(--faint);
    background: var(--paper);
    padding: 4px 10px;
    border-radius: 4px;
}

/* Sections */
.section { padding-top: var(--section); }
.eyebrow {
    font: 500 14px var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--faint);
    margin-bottom: 20px;
}
.h2 {
    font-size: clamp(40px, 5vw, 64px);
    letter-spacing: -0.04em;
    line-height: 1;
    font-weight: 700;
}
.h2-sm { font-size: clamp(40px, 4.4vw, 56px); }
.lede {
    font-size: 19px;
    line-height: 1.55;
    color: var(--muted);
    text-wrap: pretty;
}
.split {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 64px;
}
.split-head {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 2px solid var(--ink);
}
.step {
    padding: 28px 32px 0 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.step-n { font: 500 48px var(--mono); }
.step h3 { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.step p { font-size: 18px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }

/* Feature tabs */
.tabs-section .h2 { max-width: 760px; margin-bottom: 56px; }
.tabs {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 56px;
    align-items: start;
}
.tab-list {
    display: flex;
    flex-direction: column;
    border-top: 2px solid var(--ink);
}
.tab {
    all: unset;
    cursor: pointer;
    padding: 22px 20px;
    border-bottom: 2px solid var(--ink);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: background .15s ease;
}
.tab:hover { background: rgba(28, 27, 23, .04); }
.tab:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.tab-head { display: flex; gap: 14px; align-items: baseline; }
.tab-num { font: 500 14px var(--mono); color: var(--faint); }
.tab-title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--faint);
}
.tab-body {
    display: none;
    font-size: 17px;
    line-height: 1.55;
    color: var(--muted);
    padding-left: 34px;
}
.tab[aria-selected="true"] { background: var(--yellow); }
.tab[aria-selected="true"] .tab-title { color: var(--ink); }
.tab[aria-selected="true"] .tab-body { display: block; }
.tab-shot {
    border: 2px solid var(--ink);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 8px 8px 0 var(--ink);
    background: var(--white);
    aspect-ratio: 16 / 11;
}
/* Narrow screens: the panel sits under the selected tab and joins its yellow block */
.tab-list .tab-panel {
    background: var(--yellow);
    padding: 4px 28px 28px 20px;
    border-bottom: 2px solid var(--ink);
}
.tab-list .tab[aria-selected="true"]:has(+ .tab-panel) { border-bottom: 0; }
.tab-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    display: block;
}

/* All features */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 32px;
    row-gap: 44px;
}
.feature {
    border-top: 2px solid var(--ink);
    padding-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.feature-icon {
    width: 48px;
    height: 48px;
    border: 2px solid var(--ink);
    border-radius: 10px;
    background: var(--white);
    box-shadow: 3px 3px 0 var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-icon img { width: 24px; height: 24px; display: block; }
.feature h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
.feature p { font-size: 17px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }

/* Pricing */
.price-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}
.price-card {
    border: 2px solid var(--ink);
    border-radius: 14px;
    background: var(--white);
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.price-card.featured {
    background: var(--yellow);
    box-shadow: 8px 8px 0 var(--ink);
}
.price-name { display: flex; flex-direction: column; gap: 6px; }
.price-name strong { font-size: 24px; font-weight: 600; }
.price-name span { font-size: 17px; color: var(--faint); }
.featured .price-name span { color: var(--muted); }
.price-amount { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-amount strong { font-size: 72px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.price-amount span { font-size: 18px; color: var(--muted); }
.price-alt { font: 400 14px var(--mono); color: var(--muted); margin-top: -12px; }
.price-list {
    list-style: none;
    margin: 0;
    padding: 24px 0 0;
    border-top: 2px solid var(--ink);
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 18px;
}
.price-card .btn { margin-top: auto; }
.price-card .btn-ink { padding: 14px 20px; font-size: 17px; box-shadow: none; }
.price-card .btn-ink:hover { transform: none; box-shadow: none; opacity: .85; }

/* FAQ */
.faq-list { border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 2px solid var(--ink); }
.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 0;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-family: var(--mono);
    font-weight: 400;
    flex: none;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { opacity: .7; }
.faq-item p {
    padding: 0 80px 28px 0;
    font-size: 19px;
    line-height: 1.55;
    color: var(--muted);
}
.faq-item p a { text-decoration: underline; text-underline-offset: 3px; }

/* CTA */
.cta {
    background: var(--yellow);
    border: 2px solid var(--ink);
    border-radius: 20px;
    padding: clamp(36px, 6vw, 72px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    box-shadow: 10px 10px 0 var(--ink);
}
.cta .h2 { max-width: 620px; }
.cta .btn-ink {
    flex: none;
    padding: 18px 32px 18px 20px;
    font-size: 19px;
    box-shadow: none;
}
.cta .btn-ink img { width: 28px; height: 28px; }
.cta .btn-ink:hover { box-shadow: 4px 4px 0 var(--ink); }

/* Footer */
.site-footer .wrap {
    padding-top: 96px;
    padding-bottom: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    font-size: 16px;
    color: var(--muted);
}
.site-footer .logo { font-size: 20px; color: var(--ink); }
.site-footer .logo img { width: 26px; height: 26px; }
.footer-links { display: flex; gap: 32px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--ink); }
.site-footer .mono { font-size: 14px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .hl { animation: none; }
}

/* Responsive */
@media (max-width: 1080px) {
    .split, .tabs { grid-template-columns: 1fr; gap: 40px; }
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .nav a:not(.nav-cta) { display: none; }
    .hero { grid-template-columns: 1fr; gap: 28px; }
    .steps { grid-template-columns: 1fr; border-top: 0; }
    .step {
        border-top: 2px solid var(--ink);
        padding: 18px 0 22px;
        display: grid;
        grid-template-columns: 40px 1fr;
        column-gap: 12px;
        row-gap: 6px;
    }
    .step-n { font-size: 20px; line-height: 30px; grid-row: span 2; }
    .step h3 { font-size: 22px; line-height: 30px; }
    .step p { font-size: 16px; }
    .price-grid { grid-template-columns: 1fr; }
    .cta { flex-direction: column; align-items: flex-start; }
    .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
    .logo { font-size: 21px; }
    .nav-cta { font-size: 15px; padding: 8px 14px; }
    .video-frame { box-shadow: 6px 6px 0 var(--ink); }
    .feature-grid { column-gap: 20px; row-gap: 32px; }
    .feature { gap: 8px; padding-top: 16px; }
    .feature-icon { width: 40px; height: 40px; border-radius: 9px; }
    .feature-icon img { width: 20px; height: 20px; }
    .feature h3 { font-size: 18px; }
    .feature p { font-size: 15px; }
    .tab { padding: 18px 14px; }
    .tab-body { padding-left: 0; }
    .tab-shot { box-shadow: 6px 6px 0 var(--ink); }
    .tab-list .tab-panel { padding: 2px 20px 22px 14px; }
    .price-card { padding: 28px 24px; }
    .price-amount strong { font-size: 60px; }
    .faq-item summary { font-size: 20px; }
    .faq-item p { padding-right: 0; font-size: 17px; }
    .cta { box-shadow: 6px 6px 0 var(--ink); }
    .cta .btn-ink { width: 100%; }
    .btn-ink { padding: 15px 24px 15px 16px; font-size: 17px; }
}
