/* Landing page: notebook-page hero intro, tablet tour, announcement, sticky-note features.
   Behaviour lives in /site-home.js. Copy comes from data-i18n elements in
   index.html, so the generated /en, /es, ... pages share this file. */

:root {
    --vn-green: #496642;
    --vn-green-soft: #7d9471;
    --vn-green-deep: #1a4328;
    --vn-mint: #cfe6c7;
    --vn-cream: #faf8f5;
    --vn-paper: #fffdf6;
    --vn-ink: #2f312e;
    --vn-muted: #5d655d;
    --vn-blue-ink: #2c4f9e;
    --vn-terracotta: #c4724e;
    --vn-gold: #d9b45a;
    --vn-hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
}

/* ---------- Hero: one wide notebook page that plays like an intro video ---------- */
.vn-hero {
    position: relative;
    padding: 92px 24px 56px;
    background:
        radial-gradient(circle at 12% 18%, rgba(217, 180, 90, .16), transparent 28rem),
        radial-gradient(circle at 88% 8%, rgba(125, 148, 113, .20), transparent 30rem),
        linear-gradient(180deg, #f3efe6 0%, var(--vn-cream) 100%);
    overflow: hidden;
}
.vn-stage {
    position: relative;
    container-type: inline-size;
    max-width: 1320px;
    margin: 0 auto;
    padding: 2.6% 3.4% 3.4%;
    border-radius: 28px;
    background-color: var(--vn-paper);
    background-image: radial-gradient(circle, rgba(73, 102, 66, .2) 1.1px, transparent 1.4px);
    background-size: 24px 24px;
    background-position: 12px 12px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .8) inset,
        0 0 0 1px rgba(73, 102, 66, .06),
        0 50px 90px -40px rgba(31, 52, 34, .45),
        0 20px 34px -22px rgba(31, 52, 34, .3);
}

.vn-stage-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px 24px;
}
.vn-sticker {
    display: inline-flex;
    align-items: center;
    gap: .55em;
    margin: 0;
    padding: .6em 1.05em;
    border: 3px solid #fff;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #f6f9f3);
    color: var(--vn-green-deep);
    font-family: 'Outfit', sans-serif;
    font-size: clamp(14px, 1.75cqw, 23px);
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.15;
    box-shadow:
        inset 0 0 0 1px rgba(73, 102, 66, .16),
        0 2px 0 rgba(0, 0, 0, .04),
        0 14px 26px -14px rgba(31, 52, 34, .55);
    transform: rotate(var(--rot, 0deg));
}
.vn-sticker::before {
    content: "";
    flex: none;
    width: 1.15em;
    height: 1.15em;
    border-radius: 30%;
    background: linear-gradient(135deg, #7d9471, #1a4328);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35);
}
.vn-note {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .3em;
    max-width: 34%;
    padding: 1em 1.15em 1.05em;
    border-radius: 3px 3px 16px 3px;
    background: #fff1a3;
    color: #3d3510;
    font-size: clamp(12px, 1.2cqw, 16px);
    text-decoration: none;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .05), 0 18px 26px -16px rgba(90, 70, 10, .5);
    transform: rotate(var(--rot, 0deg));
    transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.vn-note::before {
    content: "";
    position: absolute;
    top: -11px;
    left: 50%;
    width: 72px;
    height: 22px;
    background: rgba(255, 255, 255, .6);
    transform: translateX(-50%) rotate(-4deg);
}
.vn-note:hover { transform: rotate(0deg) scale(1.04); }
.vn-note-tag { color: #8a6d1a; font-size: .78em; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.vn-note-tag i { animation: vn-tap 2s ease-in-out infinite; }
.vn-note-title { font-family: var(--vn-hand); font-size: 1.6em; font-weight: 700; line-height: 1.05; }
[dir="rtl"] .vn-note-title i { transform: scaleX(-1); }

.vn-hero #hero-title.vn-slogan {
    margin: 2.4cqw 0 0;
    color: var(--vn-green-deep);
    font-family: var(--vn-hand);
    font-size: clamp(40px, 7cqw, 104px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -.005em;
}
.vn-slogan span:not(.vn-line) {
    background: linear-gradient(90deg, #6f8a62, #2f8f75);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.vn-line { display: inline-block; padding-inline-end: .06em; }
@container (min-width: 760px) {
    .vn-slogan br { display: none; }
    .vn-line:not(:last-child) { margin-inline-end: .26em; }
}

.vn-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 2cqw;
    margin-top: 3cqw;
}
.vn-vig { container-type: inline-size; min-width: 0; }
.vn-art { position: relative; aspect-ratio: 240 / 150; margin-top: 3cqw; }
.vn-art svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.vn-art path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.vn-art .ink-green { stroke: var(--vn-green); stroke-width: 3; }
.vn-art .ink-blue { stroke: var(--vn-blue-ink); stroke-width: 3; }
.vn-art .ink-terra { stroke: var(--vn-terracotta); stroke-width: 3.2; }
.vn-art .ink-tape { stroke: rgba(163, 190, 140, .9); stroke-width: 30; transition: opacity .8s ease .5s; }
.vn-stage.is-finished .ink-tape { opacity: .28; }
.vn-stage.is-armed .ink-gold:not(.is-done) { fill: none; }

.vn-t { margin: 0; white-space: nowrap; line-height: 1.1; --p: 0; }
.vn-art .vn-t { position: absolute; inset-inline-start: var(--x); top: var(--y); }
.vn-t-label { display: inline-block; color: var(--vn-green); font-family: var(--vn-hand); font-size: 11.5cqw; font-weight: 700; }
.vn-t-hand { color: var(--vn-blue-ink); font-family: var(--vn-hand); font-size: 13cqw; font-weight: 500; }
.vn-t-typed { color: var(--vn-ink); font-family: 'Inter', system-ui, sans-serif; font-size: 9cqw; font-weight: 500; }
.vn-t-wrap { white-space: normal; width: var(--w, 40%); line-height: 1.2; }
.vn-t-note { color: var(--vn-terracotta); font-family: var(--vn-hand); font-size: 10.5cqw; font-weight: 600; }
.vn-t-answer { color: var(--vn-green); font-family: var(--vn-hand); font-size: 16cqw; font-weight: 700; }
.vn-t-tapeword { font-size: 14cqw; }
.vn-t-messy {
    color: #7a86a3;
    font-family: var(--vn-hand);
    font-size: 15cqw;
    font-weight: 500;
    letter-spacing: .05em;
    transform: rotate(-6deg) skewX(-14deg);
    transform-origin: left center;
}
.vn-t-neat { color: var(--vn-green-deep); font-family: 'Dancing Script', var(--vn-hand); font-size: 16cqw; font-weight: 600; }
.vn-art .ink-gold { stroke: var(--vn-gold); fill: rgba(217, 180, 90, .35); stroke-width: 2.4; }

/* Until site-home.js arms the stage, everything is simply visible. */
.vn-stage.is-armed [data-step]:not(path):not([data-type]):not([data-pop]):not(.is-done) {
    clip-path: inset(-25% calc((1 - var(--p)) * 100%) -25% 0);
}
.vn-stage.is-armed [data-step][data-rtl]:not(path):not([data-type]):not([data-pop]):not(.is-done) {
    clip-path: inset(-25% 0 -25% calc((1 - var(--p)) * 100%));
}
.vn-stage.is-armed [data-pop]:not(.is-done) {
    opacity: var(--p);
    transform: rotate(var(--rot, 0deg)) scale(calc(1.4 - var(--p) * .4));
}
.vn-t.is-done.vn-caret::after { display: none; }
.vn-caret::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: .95em;
    margin-inline-start: 2px;
    vertical-align: -.1em;
    background: var(--vn-green);
    animation: vn-blink 1s steps(2) infinite;
}
@keyframes vn-blink { 50% { opacity: 0; } }
@keyframes vn-tap { 50% { transform: translateY(-3px) rotate(-8deg); } }

/* After the pen pass the page keeps living, very slowly: sketches drift, the
   clock hands turn, the sparkle twinkles, the tape covers and reveals. Uses the
   individual translate/rotate properties so the stickers keep their tilt. */
@media (prefers-reduced-motion: no-preference) {
    .vn-stage.is-finished .vn-vig { animation: vn-drift 8s ease-in-out infinite; }
    .vn-stage.is-finished .vn-vig:nth-child(2) { animation-duration: 9.5s; animation-delay: -3s; }
    .vn-stage.is-finished .vn-vig:nth-child(3) { animation-duration: 7.2s; animation-delay: -5s; }
    .vn-stage.is-finished .vn-vig:nth-child(4) { animation-duration: 10s; animation-delay: -1.5s; }
    .vn-stage.is-finished .vn-vig:nth-child(5) { animation-duration: 8.6s; animation-delay: -6s; }
    .vn-stage.is-finished .vn-vig:nth-child(6) { animation-duration: 9s; animation-delay: -2.2s; }
    .vn-stage.is-finished .vn-sticker { animation: vn-sway 10s ease-in-out infinite; }
    .vn-stage.is-finished .vn-note { animation: vn-sway 8s ease-in-out infinite reverse; }
    .vn-stage.is-finished .vn-hands { transform-box: view-box; transform-origin: 66px 75px; animation: vn-spin 30s linear infinite; }
    .vn-stage.is-finished .vn-star { transform-box: fill-box; transform-origin: center; animation: vn-twinkle 3.4s ease-in-out infinite; }
    .vn-stage.is-finished .vn-waves { animation: vn-fade 2.6s ease-in-out infinite; }
    .vn-stage.is-finished .ink-tape { transition: none; animation: vn-tape 7s ease-in-out infinite; }
    .vn-stage.is-finished .vn-slogan span:not(.vn-line) {
        background-image: linear-gradient(90deg, #6f8a62, #2f8f75, #9bb88a, #6f8a62);
        background-size: 300% 100%;
        animation: vn-shimmer 9s linear infinite;
    }
}
@keyframes vn-drift {
    0%, 100% { translate: 0 0; rotate: 0deg; }
    50% { translate: 0 -5px; rotate: .7deg; }
}
@keyframes vn-sway { 0%, 100% { rotate: 0deg; } 50% { rotate: 1.4deg; } }
@keyframes vn-spin { to { transform: rotate(360deg); } }
@keyframes vn-twinkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(.65) rotate(30deg); opacity: .55; }
}
@keyframes vn-fade { 50% { opacity: .3; } }
@keyframes vn-tape {
    0%, 30%, 100% { opacity: .9; }
    45%, 85% { opacity: .22; }
}
@keyframes vn-shimmer { to { background-position: 300% 0; } }

/* Caveat has no Arabic or Japanese glyphs; the system fallback runs larger. */
html[lang="ar"] .vn-t-label, html[lang="ja"] .vn-t-label { font-family: system-ui, sans-serif; font-size: 8.4cqw; }
html[lang="ar"] .vn-t-typed, html[lang="ja"] .vn-t-typed { font-size: 6.6cqw; }
html[lang="ar"] .vn-t-note, html[lang="ja"] .vn-t-note { font-family: system-ui, sans-serif; font-size: 6.2cqw; }
html[lang="ar"] .vn-t-tapeword, html[lang="ja"] .vn-t-tapeword { font-family: system-ui, sans-serif; font-size: 10cqw; }
html[lang="ar"] .vn-hero #hero-title.vn-slogan, html[lang="ja"] .vn-hero #hero-title.vn-slogan {
    font-family: 'Outfit', system-ui, sans-serif;
    font-weight: 800;
    font-size: clamp(34px, 5.6cqw, 84px);
}
html[lang="ar"] .vn-t-wrap { line-height: 1.35; }

.vn-nib {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 6;
    width: clamp(46px, 5.4cqw, 86px);
    height: auto;
    pointer-events: none;
    opacity: 0;
    transition: opacity .25s ease;
    filter: drop-shadow(4px 8px 6px rgba(0, 0, 0, .18));
}
.vn-nib.is-on { opacity: 1; }
.vn-replay {
    position: absolute;
    inset-inline-end: 18px;
    bottom: 14px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 6px 14px;
    border: 1px solid rgba(73, 102, 66, .25);
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: var(--vn-green);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity .3s ease, transform .3s ease;
}
.vn-stage.is-finished .vn-replay { opacity: 1; pointer-events: auto; transform: none; }

.vn-hero-below { max-width: 780px; margin: 30px auto 0; text-align: center; }
.vn-hero #hero-subtitle { margin: 0; color: var(--vn-muted); font-size: 18px; line-height: 1.65; }
.vn-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 22px;
    margin-top: 24px;
}
.vn-store img { display: block; width: 180px; height: auto; }
.vn-store { border-radius: 12px; box-shadow: 0 14px 30px rgba(0, 0, 0, .18); transition: transform .2s ease; }
.vn-store:hover { transform: scale(1.04); }
.vn-hero-try {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: var(--vn-green);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid rgba(73, 102, 66, .25);
}
.vn-hero-try:hover { border-bottom-color: var(--vn-green); }
.vn-replay:focus-visible, .vn-help-fab:focus-visible, .vn-help-row:focus-visible, .vn-help-x:focus-visible, .vn-help-copy:focus-visible, .vn-note:focus-visible, .vn-app:focus-visible, .vn-tour-btn:focus-visible, .vn-announce-card:focus-visible, .vn-sheet-close:focus-visible {
    outline: 3px solid var(--vn-green);
    outline-offset: 3px;
}

/* ---------- Contact launcher (bottom-right) ---------- */
.vn-help { position: fixed; right: 20px; bottom: 20px; z-index: 45; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.vn-help-fab {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 52px;
    padding: 0 20px 0 17px;
    border: 0;
    border-radius: 999px;
    background: var(--vn-green-deep);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 16px 34px -14px rgba(10, 30, 15, .65), inset 0 0 0 1px rgba(255, 255, 255, .12);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.vn-help-fab i { font-size: 19px; color: #9fe0b5; }
.vn-help-fab:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(10, 30, 15, .7); }
.vn-help.is-open .vn-help-fab { background: #2f5a35; }
.vn-help-panel {
    width: min(360px, calc(100vw - 32px));
    max-height: calc(100svh - 170px);
    overflow-y: auto;
    padding: 18px;
    border-radius: 22px;
    background: #fff;
    color: var(--vn-ink);
    box-shadow: 0 30px 70px -24px rgba(10, 30, 15, .45), 0 0 0 1px rgba(73, 102, 66, .1);
    transform-origin: 100% 100%;
    animation: vn-help-in .28s cubic-bezier(.2, 1.2, .4, 1);
}
.vn-help-panel[hidden] { display: none; }
@keyframes vn-help-in { from { opacity: 0; transform: translateY(12px) scale(.94); } to { opacity: 1; transform: none; } }
.vn-help-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; margin-bottom: 12px; }
.vn-help-logo { width: 40px; height: 40px; border-radius: 30%; background: linear-gradient(135deg, #7d9471, #1a4328); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3); }
.vn-help-head h2 { margin: 0; font-family: 'Outfit', sans-serif; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.vn-help-head p { margin: 4px 0 0; color: var(--vn-muted); font-size: 14px; line-height: 1.45; }
.vn-help-x { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f1efe9; color: var(--vn-ink); cursor: pointer; }
.vn-help-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    margin-top: 8px;
    padding: 10px 14px;
    border-radius: 14px;
    background: #f6f4ee;
    color: var(--vn-ink);
    font-weight: 600;
    text-decoration: none;
    transition: background .15s ease, transform .15s ease;
}
.vn-help-row > i:first-child { width: 20px; color: var(--vn-green); text-align: center; }
.vn-help-row span { flex: 1; }
.vn-help-go { color: #9aa098; font-size: 12px; }
[dir="rtl"] .vn-help-go.fa-chevron-right { transform: scaleX(-1); }
.vn-help-row:hover { background: #ecf3e8; transform: translateX(2px); }
.vn-help-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #ece8de; color: var(--vn-muted); font-size: 13px; }
.vn-help-copy { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 10px; border: 1px solid #ddd8cc; border-radius: 999px; background: #fff; color: var(--vn-green-deep); font-size: 12px; font-weight: 700; cursor: pointer; }
/* Never sit on top of the cookie banner. */
body:has(#cookieBanner:not(.hidden)) .vn-help { opacity: 0; pointer-events: none; }
[dir="rtl"] .vn-help { right: auto; left: 20px; align-items: flex-start; }
[dir="rtl"] .vn-help-panel { transform-origin: 0 100%; }
@media (max-width: 900px) {
    /* Sits above the mobile "Download" rail. */
    .vn-help { right: 14px; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 76px); }
    [dir="rtl"] .vn-help { left: 14px; }
    .vn-help-fab { min-height: 48px; padding: 0 16px 0 14px; font-size: 15px; }
}

@keyframes vn-pulse { 50% { opacity: .35; } }

/* ---------- Tablet tour ---------- */
.vn-tour {
    padding: 96px 24px;
    background: linear-gradient(180deg, var(--vn-cream) 0%, #eef3ea 100%);
    scroll-margin-top: 80px;
}
.vn-tour-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, .66fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}
.vn-eyebrow {
    margin: 0 0 12px;
    color: var(--vn-green);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.vn-tour h2 {
    margin: 0 0 16px;
    color: var(--vn-green-deep);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(32px, 3.6vw, 50px);
    line-height: 1.05;
    letter-spacing: -.03em;
    text-wrap: balance;
}
.vn-tour-sub { margin: 0; color: var(--vn-muted); font-size: 17px; line-height: 1.65; max-width: 520px; }
.vn-tour-now {
    position: relative;
    margin-top: 30px;
    padding: 22px 24px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(73, 102, 66, .14);
    box-shadow: 0 18px 40px -24px rgba(31, 52, 34, .35);
    min-height: 150px;
}
/* The card only speaks while a clip plays; idle, the title already says it all. */
.vn-tour-now { transition: opacity .25s ease; }
.vn-tour:not(.is-playing) .vn-tour-now { visibility: hidden; opacity: 0; }
.vn-tour-now-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--vn-green);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.vn-tour-now-label::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--vn-gold);
}
.vn-tour.is-playing .vn-tour-now-label::before { background: #e05a47; animation: vn-pulse 1.2s ease-in-out infinite; }
.vn-tour-now h3 {
    margin: 10px 0 6px;
    color: var(--vn-ink);
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.02em;
}
.vn-tour-now p { margin: 0; color: var(--vn-muted); line-height: 1.6; }
.vn-tour-note { margin: 16px 0 0; color: #7a8079; font-size: 13px; line-height: 1.55; }

.vn-tablet-wrap { position: relative; display: flex; justify-content: center; min-width: 0; }
.vn-tablet {
    position: relative;
    /* As big as the 720x960 clip, but always fully on screen. */
    width: min(100%, 720px, max(320px, calc((100vh - 88px) * .74)));
    padding: 14px;
    border-radius: 42px;
    background: linear-gradient(145deg, #3a3d3a, #151715);
    box-shadow:
        0 0 0 2px #5b5f5a inset,
        0 50px 90px -40px rgba(20, 35, 22, .65),
        0 22px 40px -22px rgba(20, 35, 22, .5);
}
.vn-pencil {
    position: absolute;
    top: 8%;
    inset-inline-end: -26px;
    width: 14px;
    height: 62%;
    border-radius: 7px 7px 2px 2px;
    background: linear-gradient(90deg, #e9e9e6, #fff 45%, #d6d6d2);
    box-shadow: 4px 10px 18px rgba(0, 0, 0, .18);
}
.vn-pencil::after {
    content: "";
    position: absolute;
    bottom: -22px;
    left: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 22px solid #e4e3df;
}
.vn-screen {
    position: relative;
    aspect-ratio: 3 / 4;
    container-type: inline-size;
    border-radius: 28px;
    overflow: hidden;
    background: #f4efe3;
    isolation: isolate;
}
.vn-home {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: 4.5% 6% 6.5%;
    background:
        radial-gradient(circle at 20% 15%, rgba(255, 255, 255, .55), transparent 40%),
        radial-gradient(circle at 85% 90%, rgba(217, 180, 90, .35), transparent 45%),
        linear-gradient(160deg, #7d9471 0%, #496642 55%, #2f4a2c 100%);
    z-index: 1;
    transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s ease;
}
.vn-tour.is-playing .vn-home { transform: scale(1.08); opacity: 0; pointer-events: none; }
.vn-home-status {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, .92);
    font-size: 12px;
    font-weight: 600;
}
.vn-home-status-icons { display: inline-flex; gap: 6px; }
.vn-home-dots { display: flex; justify-content: center; gap: 7px; margin: auto 0 3.5%; }
.vn-home-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.vn-home-dots span:first-child { background: #fff; }
/* Like iPadOS, the dock shows icons only; names stay for screen readers. */
.vn-dock .vn-app-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.vn-home-grid.vn-dock {
    margin-top: 0;
    padding: 3.6% 4%;
    border-radius: 26px;
    background: rgba(255, 255, 255, .2);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
}
.vn-home-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7% 5%;
    margin-top: 10%;
}
.vn-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.vn-app-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 84px;
    aspect-ratio: 1;
    border-radius: 24%;
    background: var(--app, #fff);
    color: var(--app-fg, var(--vn-green));
    font-size: clamp(15px, 6cqw, 28px);
    font-weight: 800;
    box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .45), 0 1px 0 rgba(255, 255, 255, .5) inset;
    transition: transform .18s ease, box-shadow .18s ease;
}
.vn-app:hover .vn-app-icon { transform: translateY(-3px) scale(1.06); box-shadow: 0 14px 22px -10px rgba(0, 0, 0, .5); }
.vn-app:active .vn-app-icon { transform: scale(.94); }
.vn-app-badge {
    position: absolute;
    top: -6px;
    inset-inline-end: -8px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #e05a47;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.3;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.vn-app-name {
    max-width: 100%;
    font-size: clamp(9.5px, 3.3cqw, 14px);
    font-weight: 600;
    line-height: 1.18;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
    overflow: hidden;
    hyphens: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.vn-home.is-hinting .vn-app-icon { animation: vn-wave 2.8s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes vn-wave {
    0%, 70%, 100% { transform: none; }
    80% { transform: translateY(-6px) scale(1.06); }
}

/* The player stays fully visible under the home screen (Chrome pauses muted
   video it considers invisible); the home screen fades away on top of it. */
.vn-player { position: absolute; inset: 0; z-index: 0; background: #f4efe3; }
.vn-player[hidden] { display: none; }
.vn-player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vn-caps { position: absolute; inset: 0; pointer-events: none; }
.vn-cap {
    position: absolute;
    left: calc(var(--x) * 100%);
    top: calc(var(--y) * 100%);
    width: 0;
    height: 0;
}
.vn-cap-dot {
    position: absolute;
    left: -14px;
    top: -14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid var(--vn-terracotta);
    background: rgba(196, 114, 78, .14);
    animation: vn-ring 1.6s ease-out infinite;
}
@keyframes vn-ring {
    0% { transform: scale(.6); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: scale(1.35); opacity: 0; }
}
.vn-cap-bubble {
    position: absolute;
    left: 0;
    top: 26px;
    width: max-content;
    max-width: 230px;
    padding: 8px 13px;
    border-radius: 14px;
    background: var(--vn-green-deep);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .55);
    transform: translateX(var(--shift, -50%));
    animation: vn-pop .35s cubic-bezier(.2, 1.4, .4, 1) both;
}
.vn-cap.is-above .vn-cap-bubble { top: auto; bottom: 26px; }
@keyframes vn-pop {
    from { opacity: 0; transform: translateX(var(--shift, -50%)) translateY(6px) scale(.9); }
    to { opacity: 1; transform: translateX(var(--shift, -50%)); }
}
.vn-player-close {
    position: absolute;
    top: 3%;
    inset-inline-end: 3.5%;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    background: rgba(26, 67, 40, .88);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .6);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: background .2s ease, transform .2s ease;
}
.vn-player-close:hover { background: var(--vn-green-deep); transform: scale(1.04); }
.vn-player-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.vn-player-bar { position: absolute; left: 8%; right: 8%; bottom: 3.2%; height: 4px; border-radius: 4px; background: rgba(0, 0, 0, .12); overflow: hidden; }
.vn-player-bar span { display: block; width: 0; height: 100%; background: var(--vn-green); }
.vn-player-end {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(26, 67, 40, .55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.vn-player-end[hidden] { display: none; }
.vn-tour-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 170px;
    min-height: 46px;
    padding: 10px 20px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--vn-green-deep);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
.vn-tour-btn--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .7); }
.vn-homebar {
    position: absolute;
    left: 50%;
    bottom: 1.2%;
    z-index: 3;
    width: 34%;
    height: 22px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    transform: translateX(-50%);
    cursor: pointer;
}
.vn-homebar::before {
    content: "";
    display: block;
    width: 100%;
    height: 5px;
    margin: 8px auto 0;
    border-radius: 5px;
    background: rgba(255, 255, 255, .85);
}
.vn-tour.is-playing .vn-homebar::before { background: rgba(0, 0, 0, .55); }

/* ---------- Announcement ---------- */
.vn-announce { padding: 24px 24px 88px; background: #eef3ea; }
.vn-announce-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 40px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 92% 20%, rgba(217, 180, 90, .35), transparent 38%),
        linear-gradient(120deg, #1a4328 0%, #2f5a35 60%, #496642 100%);
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 34px 70px -38px rgba(26, 67, 40, .8);
    transition: transform .25s ease, box-shadow .25s ease;
}
.vn-announce-card:hover { transform: translateY(-3px); box-shadow: 0 40px 80px -36px rgba(26, 67, 40, .85); }
.vn-announce-num {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(64px, 8vw, 112px);
    line-height: .9;
    letter-spacing: -.05em;
    color: var(--vn-mint);
    text-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.vn-announce-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.vn-announce-tag i { color: var(--vn-gold); animation: vn-tap 2s ease-in-out infinite; }
.vn-announce-card h2 {
    margin: 12px 0 8px;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.1;
}
.vn-announce-card p { margin: 0; max-width: 640px; color: rgba(255, 255, 255, .86); font-size: 16px; line-height: 1.6; }
.vn-announce-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 22px;
    border-radius: 999px;
    background: #fff;
    color: var(--vn-green-deep);
    font-weight: 800;
    white-space: nowrap;
}
.vn-announce-cta i { transition: transform .2s ease; }
.vn-announce-card:hover .vn-announce-cta i { transform: translateX(4px); }
[dir="rtl"] .vn-announce-cta i { transform: scaleX(-1); }

/* Release notes open as a page-like sheet. */
.vn-sheet {
    position: fixed;
    inset: 0;
    z-index: 80;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #f7f4ef;
    animation: vn-sheet-in .35s cubic-bezier(.2, .8, .2, 1);
}
.vn-sheet[hidden] { display: none; }
@keyframes vn-sheet-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.vn-sheet-bar {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 24px;
    background: rgba(247, 244, 239, .92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e3ddd2;
}
.vn-sheet-brand { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 20px; color: var(--vn-ink); }
.vn-sheet-brand span { color: var(--vn-green-soft); }
.vn-sheet-close {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid #d8d2c6;
    border-radius: 999px;
    background: #fff;
    color: var(--vn-ink);
    font-weight: 700;
    cursor: pointer;
}
html.vn-sheet-open, html.vn-sheet-open body { overflow: hidden; }
.vn-sheet .release-updates { padding-top: 48px; }

/* ---------- Features as sticky notes ---------- */
#featuresGrid .feature-card {
    --note: #fff6b8;
    position: relative;
    border: 0 !important;
    border-radius: 4px 4px 18px 4px !important;
    background: var(--note) !important;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .05), 0 18px 28px -18px rgba(60, 50, 20, .45) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    transform: rotate(var(--tilt, -1.2deg));
    transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease !important;
}
#featuresGrid .feature-card::before {
    content: "";
    position: absolute;
    top: -11px;
    left: 50%;
    width: 84px;
    height: 24px;
    transform: translateX(-50%) rotate(var(--tape, -3deg));
    background: rgba(255, 255, 255, .55);
    border: 1px solid rgba(0, 0, 0, .04);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}
#featuresGrid .feature-card:nth-child(5n + 1) { --note: #fff3b0; --tilt: -1.4deg; --tape: -4deg; }
#featuresGrid .feature-card:nth-child(5n + 2) { --note: #dcefd3; --tilt: 1.1deg; --tape: 3deg; }
#featuresGrid .feature-card:nth-child(5n + 3) { --note: #fde0d2; --tilt: -.6deg; --tape: -2deg; }
#featuresGrid .feature-card:nth-child(5n + 4) { --note: #dce9f7; --tilt: 1.5deg; --tape: 5deg; }
#featuresGrid .feature-card:nth-child(5n + 5) { --note: #efe2f5; --tilt: -1deg; --tape: 2deg; }
#featuresGrid .feature-card:hover,
#featuresGrid .feature-card.expanded {
    transform: rotate(0deg) translateY(-4px) scale(1.02);
    box-shadow: 0 2px 2px rgba(0, 0, 0, .05), 0 28px 40px -20px rgba(60, 50, 20, .5) !important;
    z-index: 2;
}
#featuresGrid .feature-card .icon-box {
    background: rgba(255, 255, 255, .65) !important;
    color: var(--vn-green) !important;
    border-radius: 50% !important;
}
#featuresGrid .feature-card .feature-title {
    font-family: var(--vn-hand) !important;
    font-size: 27px !important;
    font-weight: 700 !important;
    line-height: 1.1;
    letter-spacing: 0 !important;
    color: #2b3a2b;
}
#featuresGrid .feature-card .feature-summary { color: #4a4f48 !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
    .vn-hero { padding: 100px 20px 56px; }
    .vn-tour-inner { gap: 0; }
    .vn-tour-copy { display: contents; }
    .vn-tour .vn-eyebrow { order: 1; }
    .vn-tour h2 { order: 2; }
    .vn-tour-sub { order: 3; margin-bottom: 28px; }
    .vn-tablet-wrap { order: 4; }
    .vn-tour-now { order: 5; min-height: 0; margin-top: 20px; }
    .vn-tour:not(.is-playing) .vn-tour-now { display: none; }
    .vn-tour-note { order: 6; }
    .vn-tour-inner { grid-template-columns: 1fr; gap: 40px; }
    .vn-tour-copy { text-align: start; }
    .vn-announce-card { grid-template-columns: 1fr; gap: 16px; padding: 28px 24px; }
    .vn-announce-num { font-size: 64px; }
    .vn-announce-cta { justify-self: start; }
}
@media (max-width: 640px) {
    .vn-hero { padding: 92px 12px 44px; }
    .vn-stage { padding: 5% 5% 13%; border-radius: 22px; }
    .vn-stage-top { flex-direction: column; align-items: flex-start; }
    .vn-note { max-width: 78%; align-self: flex-end; font-size: 13px; }
    .vn-hero #hero-title.vn-slogan { margin-top: 18px; font-size: clamp(38px, 12.5cqw, 64px); }
    .vn-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; margin-top: 20px; }
    .vn-hero #hero-subtitle { font-size: 16px; }
    .vn-tour { padding: 72px 16px; }
    .vn-announce { padding: 16px 16px 64px; }
    .vn-tablet { padding: 10px; border-radius: 30px; }
    .vn-screen { border-radius: 21px; }
    .vn-pencil { display: none; }
    .vn-cap-bubble { max-width: 170px; font-size: 12.5px; padding: 6px 10px; }
    .vn-home-grid.vn-dock { border-radius: 18px; }
    .vn-sheet-bar { padding: 10px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .vn-note:hover { transform: rotate(var(--rot, 0deg)); }
    .vn-home.is-hinting .vn-app-icon, .vn-note-tag i, .vn-cap-dot, .vn-announce-tag i { animation: none; }
    #featuresGrid .feature-card { transform: none; }
}

/* Cookie banner: the primary action needs a darker green than japandi-green for
   white text to stay readable (#7D9471 on white text is only ~3.4:1). */
#cookie-accept-all { background-color: var(--vn-green); color: #fff; }
#cookie-accept-all:hover { background-color: var(--vn-green-deep); opacity: 1; }
