/* ==========================================================================
   Hokusai — kura.photos
   Luxury / Editorial design language (see Reference Design.md):
   warm alabaster paper, rich charcoal ink, a single gold accent.
   Rectangular everything, 1px rules, generous air, cinematic motion.
   ========================================================================== */

:root {
    --paper: #f9f8f6;
    --ink: #1a1a1a;
    --taupe: #ebe5de;
    --grey: #6c6863;
    --gold: #d4af37;

    --ink-10: rgba(26, 26, 26, 0.1);
    --ink-18: rgba(26, 26, 26, 0.18);
    --paper-66: rgba(235, 229, 222, 0.66);
    --paper-18: rgba(235, 229, 222, 0.18);

    --serif: 'Playfair Display', 'Georgia', serif;
    --sans: 'Inter', -apple-system, 'Segoe UI', sans-serif;

    --ease-lux: cubic-bezier(0.25, 0.46, 0.45, 0.94);

    --section-pad: 8rem;
    --container-max: 1600px;
    --container-pad: clamp(2rem, 6vw, 6rem);
}

/* ── Reset ─────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.625;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 1px solid var(--ink);
    outline-offset: 4px;
}

.section-dark a:focus-visible {
    outline-color: var(--paper);
}

.container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

.section {
    padding-block: var(--section-pad);
}

.section-dark {
    background: var(--ink);
    color: var(--paper);
}

/* ── Architectural grid lines + paper grain ────────────────────────── */

.gridlines {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: space-between;
    padding-inline: var(--container-pad);
    pointer-events: none;
    z-index: 1;
}

.gridlines span {
    width: 1px;
    background: var(--ink-10);
}

.grain {
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    opacity: 0.028;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Typography ────────────────────────────────────────────────────── */

.overline {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 2.5rem;
}

.overline .rule {
    display: inline-block;
    width: 3rem;
    height: 1px;
    background: var(--ink);
    flex: none;
}

.overline-dark {
    color: var(--paper-66);
}

.overline-dark .rule {
    background: var(--paper);
}

.section-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.6rem, 5vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-bottom: 3rem;
}

.section-title em,
.privacy-statement em,
.hero-title em {
    font-style: italic;
    color: var(--gold);
}

.section-lede {
    max-width: 38rem;
    color: var(--grey);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.section-dark .section-lede {
    color: var(--paper-66);
}

/* ── Buttons ───────────────────────────────────────────────────────── */

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
    padding-inline: 2.25rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 1px solid var(--ink);
    overflow: hidden;
    cursor: pointer;
    transition: color 500ms var(--ease-lux), background-color 500ms var(--ease-lux),
        border-color 500ms var(--ease-lux), box-shadow 500ms var(--ease-lux);
}

.btn-large {
    height: 3.5rem;
    padding-inline: 2.75rem;
}

.btn-small {
    height: 2.5rem;
    padding-inline: 1.5rem;
}

.btn-label {
    position: relative;
    z-index: 2;
    white-space: nowrap;
}

.btn-primary {
    background: var(--ink);
    color: var(--paper);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.gold-slide {
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: translateX(-101%);
    transition: transform 500ms var(--ease-lux);
    z-index: 1;
}

.btn-primary:hover .gold-slide {
    transform: translateX(0);
}

.btn-primary:hover .btn-label {
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--ink);
}

.btn-disabled {
    border-color: var(--ink-18);
    color: var(--grey);
    cursor: default;
    background: transparent;
}

.beta-tag {
    padding: 0.15rem 0.55rem;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.btn-secondary:hover {
    background: var(--ink);
    color: var(--paper);
}

.section-dark .btn-secondary {
    border-color: var(--paper);
    color: var(--paper);
}

.section-dark .btn-secondary:hover {
    background: var(--paper);
    color: var(--ink);
}

/* ── Header ────────────────────────────────────────────────────────── */

.site-header {
    border-bottom: 1px solid var(--ink-10);
    background: rgba(249, 248, 246, 0.9);
    position: relative;
    z-index: 10;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    height: 5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.brand img {
    border-radius: 6px;
}

.brand-name {
    font-family: var(--serif);
    font-size: 1.35rem;
    letter-spacing: 0.01em;
}

.site-nav {
    display: flex;
    gap: 2.5rem;
}

.site-nav a {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--grey);
    transition: color 500ms var(--ease-lux);
}

.site-nav a:hover {
    color: var(--gold);
}

/* ── Hero ──────────────────────────────────────────────────────────── */

.hero {
    position: relative;
    padding-block: clamp(5rem, 10vw, 9rem);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    align-items: end;
}

.hero-copy {
    grid-column: 1 / span 7;
}

.hero-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(3.2rem, 7.5vw, 7rem);
    line-height: 0.95;
    letter-spacing: -0.015em;
    margin-bottom: 2.5rem;
}

.hero-sub {
    max-width: 34rem;
    color: var(--grey);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.hero-meta {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--grey);
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.hero-meta .dot {
    width: 3px;
    height: 3px;
    background: var(--gold);
    flex: none;
}

.hero-visual {
    grid-column: 9 / span 4;
    text-align: center;
    margin-bottom: 1rem;
}

.icon-frame {
    display: inline-block;
    padding: 1.75rem;
    border: 1px solid var(--ink-18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), inset 0 0 0 1px rgba(26, 26, 26, 0.04);
    background: #fff;
}

.icon-frame img {
    width: clamp(180px, 18vw, 300px);
    height: auto;
}

.frame-caption {
    margin-top: 1.25rem;
    font-size: 0.66rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--grey);
}

/* ── Vertical side labels ──────────────────────────────────────────── */

.vertical-label {
    position: absolute;
    right: 1.75rem;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    font-size: 0.62rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--grey);
    pointer-events: none;
}

.vertical-label-dark {
    color: var(--paper-66);
}

section {
    position: relative;
}

/* ── Intro ─────────────────────────────────────────────────────────── */

.intro {
    border-top: 1px solid var(--ink-10);
}

.intro-col {
    max-width: 46rem;
    margin-left: auto;
}

.dropcap {
    font-family: var(--serif);
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    line-height: 1.5;
    margin-bottom: 2.5rem;
}

.dropcap::first-letter {
    float: left;
    font-size: 4.6em;
    line-height: 0.8;
    padding-right: 0.75rem;
    padding-top: 0.08em;
    color: var(--ink);
}

.intro-note {
    color: var(--grey);
    font-size: 1rem;
    border-left: 1px solid var(--gold);
    padding-left: 1.5rem;
}

/* ── Features ──────────────────────────────────────────────────────── */

.feature-list {
    list-style: none;
    margin-top: 4rem;
}

.feature-row {
    display: grid;
    grid-template-columns: 4rem minmax(14rem, 22rem) 1fr;
    gap: 2.5rem;
    align-items: baseline;
    padding-block: 2.75rem;
    border-top: 1px solid var(--paper-18);
    transition: background-color 700ms var(--ease-lux);
}

.feature-row:last-child {
    border-bottom: 1px solid var(--paper-18);
}

.feature-row:hover {
    background: rgba(249, 248, 246, 0.03);
}

.feature-num {
    font-family: var(--serif);
    font-style: italic;
    color: var(--gold);
    font-size: 0.95rem;
}

.feature-name {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.2;
}

.feature-desc {
    color: var(--paper-66);
    font-size: 1rem;
    max-width: 42rem;
}

.pro-tag,
.note-tag {
    display: inline-block;
    vertical-align: middle;
    margin-left: 0.75rem;
    padding: 0.15rem 0.55rem;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: var(--sans);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    transform: translateY(-2px);
}

.note-tag {
    border-color: var(--ink-18);
    color: var(--grey);
}

/* ── Sync ──────────────────────────────────────────────────────────── */

.sync {
    border-top: 1px solid var(--ink-10);
}

.sync-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

.sync-copy {
    grid-column: 1 / span 5;
}

.sync-points {
    grid-column: 7 / span 6;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem 2.5rem;
    margin-top: 1rem;
}

.sync-point {
    border-top: 1px solid var(--ink);
    padding-top: 1.5rem;
}

.sync-point h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.sync-point p {
    color: var(--grey);
    font-size: 0.95rem;
}

/* ── Privacy ───────────────────────────────────────────────────────── */

.privacy-statement {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(2.2rem, 4.5vw, 3.75rem);
    line-height: 1.15;
    max-width: 60rem;
    margin-bottom: 3.5rem;
}

.privacy-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 3rem;
    max-width: 64rem;
}

.privacy-points p {
    color: var(--paper-66);
    border-top: 1px solid var(--paper-18);
    padding-top: 1.5rem;
    font-size: 1rem;
}

/* ── Pricing ───────────────────────────────────────────────────────── */

.pricing {
    border-top: 1px solid var(--ink-10);
}

.trial-banner {
    max-width: 44rem;
    font-family: var(--serif);
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 4rem;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
    gap: 3rem;
    max-width: 68rem;
}

.price-card {
    border-top: 1px solid var(--ink);
    padding: 2.5rem 2.5rem 3rem;
    transition: background-color 700ms var(--ease-lux), box-shadow 500ms var(--ease-lux);
}

.price-card:hover {
    background: rgba(235, 229, 222, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.price-card-featured {
    border-top: 4px solid var(--gold);
}

.price-tier {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 1.5rem;
}

.price-amount {
    font-family: var(--serif);
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.price-once {
    font-family: var(--sans);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--grey);
}

.price-note {
    color: var(--grey);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.price-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.price-list li {
    padding-block: 0.7rem;
    border-top: 1px solid var(--ink-10);
    font-size: 0.95rem;
}

.price-fine {
    margin-top: 1.5rem;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--grey);
}

/* ── Download ──────────────────────────────────────────────────────── */

.download {
    border-top: 1px solid var(--ink-10);
    background: linear-gradient(to bottom, var(--paper), var(--taupe) 160%);
}

.dl-panel {
    max-width: 58rem;
    margin-bottom: 3.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

/* JS sets data-os="mac"|"win" — only the visitor's platform stays visible,
   and the panel collapses to a single centered column. No JS → both show. */
.dl-panel[data-os] {
    grid-template-columns: 1fr;
    max-width: 40rem;
}

.dl-panel[data-os='mac'] [data-os-panel='win'],
.dl-panel[data-os='win'] [data-os-panel='mac'] {
    display: none;
}

.dl-os {
    border-top: 1px solid var(--ink);
    padding: 2.5rem 2.5rem 3rem;
    background: rgba(255, 255, 255, 0.35);
    transition: box-shadow 500ms var(--ease-lux), background-color 700ms var(--ease-lux);
}

.dl-panel[data-os] .dl-os {
    border-top: 4px solid var(--gold);
    text-align: center;
}

.dl-os:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.55);
}

.dl-os-kicker {
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.dl-os-name {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    line-height: 1;
    margin-bottom: 1rem;
}

.dl-os-req {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 2.25rem;
}

.dl-switch {
    grid-column: 1 / -1;
    font-size: 0.9rem;
    color: var(--grey);
}

.dl-panel[data-os] .dl-switch {
    text-align: center;
}

/* The switch only makes sense once JS has picked a platform */
.dl-panel:not([data-os]) .dl-switch {
    display: none;
}

.dl-switch-btn {
    font: inherit;
    background: none;
    border: none;
    border-bottom: 1px solid var(--gold);
    color: var(--ink);
    padding: 0 0 0.1rem;
    cursor: pointer;
    transition: color 500ms var(--ease-lux);
}

.dl-switch-btn:hover {
    color: var(--gold);
}

.install-note {
    max-width: 52rem;
    color: var(--grey);
    font-size: 0.95rem;
    border-left: 1px solid var(--gold);
    padding-left: 1.5rem;
}

/* ── FAQ ───────────────────────────────────────────────────────────── */

.faq {
    border-top: 1px solid var(--ink-10);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

.faq-head {
    grid-column: 1 / span 4;
}

.faq-list {
    grid-column: 6 / span 7;
}

.faq-item {
    border-top: 1px solid var(--ink-18);
}

.faq-item:last-child {
    border-bottom: 1px solid var(--ink-18);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-block: 1.75rem;
    cursor: pointer;
    list-style: none;
    transition: color 500ms var(--ease-lux);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-q {
    font-family: var(--serif);
    font-size: 1.25rem;
    line-height: 1.35;
}

.faq-item summary:hover .faq-q,
.faq-item[open] summary .faq-q {
    color: var(--gold);
}

.faq-icon {
    position: relative;
    flex: none;
    width: 12px;
    height: 12px;
    border: 1px solid var(--ink);
    transition: transform 500ms var(--ease-lux), border-color 500ms var(--ease-lux);
}

.faq-item[open] .faq-icon {
    transform: rotate(90deg);
    border-color: var(--gold);
}

.faq-a {
    padding: 0 3rem 2rem 0;
    color: var(--grey);
    font-size: 1rem;
    animation: faq-in 700ms var(--ease-lux);
}

.faq-a a {
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 500ms var(--ease-lux);
}

.faq-a a:hover {
    color: var(--gold);
}

@keyframes faq-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Footer ────────────────────────────────────────────────────────── */

.site-footer {
    padding-block: 5rem 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3.5rem;
}

.brand-dark .brand-name {
    color: var(--paper);
}

.footer-tag {
    margin-top: 1.25rem;
    color: var(--paper-66);
    font-size: 0.95rem;
}

.footer-nav,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.footer-nav a,
.footer-contact a {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--paper-66);
    transition: color 500ms var(--ease-lux);
}

.footer-nav a:hover,
.footer-contact a:hover {
    color: var(--gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    border-top: 1px solid var(--paper-18);
    padding-top: 2rem;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    color: var(--paper-66);
}

.footer-bottom a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-bottom a:hover {
    color: var(--gold);
}

/* ── Hero photo stack ──────────────────────────────────────────────── */

.hero-stack {
    position: relative;
    display: inline-block;
}

.stack-photo {
    position: absolute;
    width: clamp(150px, 14vw, 230px);
    border: 1px solid var(--ink-18);
    background: #fff;
    padding: 0.6rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
    animation: stack-float 9s var(--ease-lux) infinite alternate;
}

.stack-photo img {
    width: 100%;
    height: auto;
}

.stack-photo-1 {
    top: -3.5rem;
    right: -2.5rem;
    transform: rotate(5deg);
    z-index: 0;
}

.stack-photo-2 {
    bottom: -2.5rem;
    left: -3rem;
    transform: rotate(-6deg);
    z-index: 2;
    animation-delay: -4.5s;
}

.hero-stack .icon-frame {
    position: relative;
    z-index: 1;
}

.hero-stack + .frame-caption {
    margin-top: 4rem;
}

@keyframes stack-float {
    from {
        translate: 0 0;
    }
    to {
        translate: 0 -10px;
    }
}

/* ── Filmstrip marquee ─────────────────────────────────────────────── */

.filmstrip {
    border-top: 1px solid var(--ink-10);
    padding-block: 4.5rem;
    overflow: hidden;
}

.filmstrip-caption {
    text-align: center;
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    color: var(--grey);
    margin-bottom: 3rem;
    padding-inline: var(--container-pad);
}

.filmstrip-viewport {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.filmstrip-track {
    display: flex;
    gap: 1.25rem;
    width: max-content;
    animation: filmstrip-drift 80s linear infinite;
}

.filmstrip-track img {
    width: clamp(140px, 15vw, 220px);
    height: clamp(140px, 15vw, 220px);
    object-fit: cover;
    border: 1px solid var(--ink-10);
    filter: saturate(0.85);
    transition: filter 500ms var(--ease-lux), transform 500ms var(--ease-lux);
}

.filmstrip-track img:hover {
    filter: saturate(1.1);
    transform: translateY(-6px);
}

.filmstrip:hover .filmstrip-track {
    animation-play-state: paused;
}

@keyframes filmstrip-drift {
    from {
        transform: translateX(0);
    }
    to {
        /* one full set: 12 tiles + 12 gaps */
        transform: translateX(calc(-12 * (clamp(140px, 15vw, 220px) + 1.25rem)));
    }
}

/* ── Inside the app — faux window ──────────────────────────────────── */

.inside {
    border-top: 1px solid var(--ink-10);
}

.app-window {
    max-width: 1080px;
    border: 1px solid var(--ink-18);
    background: #fff;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.14), inset 0 0 0 1px rgba(26, 26, 26, 0.04);
    transition: transform 600ms var(--ease-lux), box-shadow 600ms var(--ease-lux);
    transform-style: preserve-3d;
    will-change: transform;
}

.app-window:hover {
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(26, 26, 26, 0.04);
}

.app-chrome {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    height: 2.75rem;
    padding-inline: 1.25rem;
    border-bottom: 1px solid var(--ink-10);
    background: var(--paper);
}

.traffic {
    display: inline-flex;
    gap: 0.45rem;
}

.traffic i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--taupe);
    border: 1px solid var(--ink-18);
}

.app-title {
    font-family: var(--serif);
    font-size: 0.9rem;
}

.app-count {
    margin-left: auto;
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--grey);
}

.app-body {
    display: grid;
    grid-template-columns: 200px 1fr;
}

.app-sidebar {
    border-right: 1px solid var(--ink-10);
    padding: 1.5rem 1.25rem;
    background: var(--paper);
}

.app-side-head {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 0.75rem;
}

.app-sidebar ul {
    list-style: none;
    margin-bottom: 1.75rem;
}

.app-sidebar li {
    font-size: 0.85rem;
    padding: 0.35rem 0.6rem;
    color: var(--grey);
}

.app-sidebar li.is-active {
    background: var(--taupe);
    color: var(--ink);
    border-left: 2px solid var(--gold);
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 4px;
}

.app-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.app-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms var(--ease-lux);
}

.app-thumb:hover img {
    transform: scale(1.06);
}

.fav-mark {
    position: absolute;
    right: 0.6rem;
    bottom: 0.6rem;
    width: 18px;
    height: 18px;
    color: var(--gold);
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
}

/* ── Snapshot plates ───────────────────────────────────────────────── */

.plates {
    border-top: 1px solid var(--ink-10);
}

.plate {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    align-items: center;
    padding-block: 4.5rem;
    border-top: 1px solid var(--ink-10);
}

.plate:first-of-type {
    border-top: none;
    padding-top: 2rem;
}

.plate-visual {
    grid-column: 1 / span 7;
}

.plate-copy {
    grid-column: 9 / span 4;
}

.plate-flip .plate-visual {
    grid-column: 6 / span 7;
    order: 2;
}

.plate-flip .plate-copy {
    grid-column: 1 / span 4;
    order: 1;
}

.plate-num {
    font-family: var(--serif);
    font-style: italic;
    color: var(--gold);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.plate-name {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.75rem;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.plate-desc {
    color: var(--grey);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.plate-note {
    font-size: 0.9rem;
    color: var(--grey);
    font-style: italic;
    border-left: 1px solid var(--gold);
    padding-left: 1.25rem;
}

/* Plate I — editor */

.editor-frame {
    position: relative;
    border: 1px solid var(--ink-18);
    background: #fff;
    padding: 0.75rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.editor-frame > img {
    width: 100%;
    height: auto;
}

.editor-panel {
    position: absolute;
    top: 1.75rem;
    right: 1.75rem;
    width: min(240px, 55%);
    background: rgba(26, 26, 26, 0.82);
    backdrop-filter: blur(6px);
    color: var(--paper);
    padding: 1.25rem 1.25rem 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.editor-panel-head {
    font-size: 0.58rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--paper-66);
    margin-bottom: 0.9rem;
}

.editor-slider {
    margin-bottom: 0.9rem;
}

.editor-slider span {
    display: block;
    font-size: 0.72rem;
    margin-bottom: 0.35rem;
}

.slider-track {
    display: block;
    height: 2px;
    background: var(--paper-18);
    position: relative;
}

.slider-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: var(--gold);
    transition: width 1200ms var(--ease-lux) 300ms;
}

.slider-fill::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    width: 10px;
    height: 10px;
    transform: translateY(-50%);
    background: var(--gold);
    border-radius: 50%;
}

.plate-editor.in .slider-fill {
    width: var(--v, 50%);
}

.editor-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.25rem;
}

.editor-chips span {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--paper-18);
    color: var(--paper-66);
}

.editor-chips .is-on {
    border-color: var(--gold);
    color: var(--gold);
}

/* Plate II — duplicates */

.dupe-group {
    border: 1px solid var(--ink-18);
    background: #fff;
    padding: 1.5rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.dupe-head {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 1.25rem;
}

.dupe-head code {
    color: var(--gold);
    letter-spacing: 0.08em;
}

.dupe-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.dupe-keep {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.dupe-tag {
    position: absolute;
    left: 0.5rem;
    top: 0.5rem;
    background: var(--gold);
    color: var(--ink);
    font-size: 0.56rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
}

.dupe-drop img {
    filter: grayscale(0.5) brightness(0.92);
}

/* Plate III — timeline */

.timeline-mock {
    border: 1px solid var(--ink-18);
    background: #fff;
    padding: 1.5rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.timeline-date {
    font-family: var(--serif);
    font-size: 1.05rem;
    margin-bottom: 0.9rem;
}

.timeline-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.timeline-row:last-child {
    margin-bottom: 0;
}

/* ── Privacy credits ───────────────────────────────────────────────── */

.privacy-credits {
    margin-top: 3.5rem;
    max-width: 52rem;
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--paper-66);
    border-top: 1px solid var(--paper-18);
    padding-top: 1.5rem;
}

.privacy-credits a {
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 500ms var(--ease-lux);
}

.privacy-credits a:hover {
    color: var(--gold);
}

/* ── Reveal on scroll ──────────────────────────────────────────────── */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 900ms var(--ease-lux), transform 900ms var(--ease-lux);
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
    .hero-grid,
    .sync-grid,
    .faq-grid {
        display: block;
    }

    .hero-copy,
    .sync-copy,
    .faq-head {
        margin-bottom: 3.5rem;
    }

    .hero-visual {
        text-align: left;
    }

    .hero-stack {
        margin-inline: 3rem 2.5rem;
    }

    .plate,
    .plate-flip {
        display: block;
    }

    .plate .plate-visual,
    .plate-flip .plate-visual {
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 1023px) {
    .gridlines,
    .vertical-label {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --section-pad: 5rem;
    }

    .site-nav {
        display: none;
    }

    .feature-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding-block: 2.25rem;
    }

    .sync-points {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .price-grid {
        grid-template-columns: 1fr;
    }

    .stack-photo {
        display: none;
    }

    .hero-stack {
        margin-inline: 0;
    }

    .app-body {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        display: none;
    }

    .app-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .app-count {
        display: none;
    }

    .editor-panel {
        position: static;
        width: 100%;
        margin-top: 0.75rem;
    }
}

/* ── Reduced motion ────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
