/* Resona landing page, redesign preview. Colours and type follow the Figma "Resona" landing. */
:root {
    --paper: #f3f2ee;
    --ink: #1a1a17;
    --ink-soft: #55554f;
    --line: rgba(26, 26, 23, .12);
    --dark: #1b1b18;
    --teal: #dce7e4;
    --lavender: #d9d0f7;
    --beige: #efe7da;
    --green: #2f8a6b;
    --display: 'Manrope', system-ui, sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
    --gutter: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--display);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; }
a { color: inherit; }

/* ---------- type ---------- */
.display {
    margin: 0;
    font-weight: 500;
    font-size: clamp(44px, 7.4vw, 112px);
    line-height: .98;
    letter-spacing: -.055em;
}
.display-md { font-size: clamp(40px, 6vw, 92px); }
.lead { margin: 18px 0 0; max-width: 34ch; color: var(--ink-soft); font-size: clamp(15px, 1.25vw, 18px); }
.kicker {
    display: block;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    line-height: 1.5;
}

/* ---------- buttons ---------- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 6px 6px 6px 18px;
    border-radius: 999px;
    border: 1px solid var(--ink);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    background: transparent;
    transition: background .25s, color .25s;
}
.pill:hover { background: var(--ink); color: #fff; }
.pill-icon {
    width: 30px; height: 30px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--ink); color: #fff;
}
.pill:hover .pill-icon { background: #fff; color: var(--ink); }
.pill-icon svg { width: 14px; height: 14px; }
.pill-outline { margin-top: 30px; }
.pill-dark { background: var(--ink); color: #fff; margin-top: 30px; }
.pill-dark .pill-icon { background: #fff; color: var(--ink); }
.pill-dark:hover { background: #000; }

/* ---------- header ---------- */
.nav {
    position: fixed; inset: 0 0 auto;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 14px var(--gutter);
    background: rgba(243, 242, 238, .86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(26, 26, 23, .06);
}
.nav-logo img { height: 26px; width: auto; }
.nav-links { display: flex; gap: 28px; font-size: 14px; }
.nav-links a { text-decoration: none; opacity: .8; }
.nav-links a:hover { opacity: 1; }
.nav > .pill { justify-self: end; }

/* ---------- 1–3: the horizontal slides ---------- */
.hscroll { position: relative; height: 300vh; }
.hscroll-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hscroll-bg { position: absolute; inset: 0; background: #f6e2e4; }
.hscroll-bg::after {
    /* a soft wash so the dark type always reads on the gradient */
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(243, 242, 238, .55), rgba(243, 242, 238, .12) 60%);
    pointer-events: none;
}
.hscroll-track { position: relative; z-index: 1; display: flex; height: 100%; width: 300vw; will-change: transform; }
.slide {
    width: 100vw; height: 100%;
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 48px;
    padding: 96px var(--gutter) 72px;
}
.slide-hero { grid-template-columns: 1fr; }
.slide-hero .display { font-size: clamp(48px, 8vw, 124px); }

/* the promo video, with its play button and "See demo" */
.promo {
    position: relative;
    margin: 0;
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    overflow: hidden;
    border: 6px solid rgba(255, 255, 255, .9);
    box-shadow: 0 30px 80px rgba(120, 60, 60, .18);
    background: #fff;
}
.promo video { width: 100%; height: 100%; object-fit: cover; }
.promo-play {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    border: 0; background: rgba(20, 16, 14, .12); cursor: pointer;
    color: #fff; font: inherit;
    transition: background .3s;
}
.promo-play:hover { background: rgba(20, 16, 14, .2); }
.promo-play-circle {
    width: 84px; height: 84px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .95); color: var(--ink);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
    transition: transform .3s;
}
.promo-play:hover .promo-play-circle { transform: scale(1.06); }
.promo-play-circle svg { width: 30px; height: 30px; margin-left: 4px; }
.promo-play-label {
    font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
    padding: 6px 12px; border-radius: 999px; background: rgba(26, 26, 23, .55);
}
.promo.playing .promo-play { display: none; }

/* stacked layers, no box behind them */
.layers { justify-self: center; width: min(360px, 80%); }
.layers .layer { animation: float 6s ease-in-out infinite; transform-origin: center; }
.layers .l2 { animation-delay: -1.5s; }
.layers .l3 { animation-delay: -3s; }
.layers .l4 { animation-delay: -4.5s; }
@keyframes float { 50% { transform: translateY(-6px); } }

.hscroll-ui {
    position: absolute; z-index: 2; right: var(--gutter); bottom: 32px;
    display: flex; align-items: center; gap: 12px;
    font-family: var(--mono); font-size: 11px;
}
.hscroll-bar { width: 120px; height: 2px; background: rgba(26, 26, 23, .15); border-radius: 2px; overflow: hidden; }
.hscroll-bar span { display: block; height: 100%; width: 0; background: var(--ink); }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 150px) var(--gutter); }
.section-head {
    display: grid;
    grid-template-columns: 1fr 2.2fr 1.1fr;
    gap: 32px;
    align-items: start;
    margin-bottom: clamp(48px, 7vw, 96px);
}
.section-head .aside { margin: 0; align-self: end; color: var(--ink-soft); font-size: 15px; max-width: 30ch; }

/* anything that turns into a gradient on hover */
.glow { position: relative; overflow: hidden; isolation: isolate; }
.glow > .gradflow-canvas { z-index: -1; opacity: 0; transition: opacity .45s ease; }
.glow.lit > .gradflow-canvas { opacity: 1; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step {
    background: var(--card);
    border-radius: 26px;
    padding: 22px 22px 26px;
    min-height: 470px;
    display: flex; flex-direction: column;
}
.step .num { font-family: var(--mono); font-size: 11px; }
.step h3 { margin: auto 0 10px; font-size: clamp(24px, 2.3vw, 32px); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; }
.step p { margin: 0; font-size: 13px; color: var(--ink-soft); max-width: 34ch; }
.orbit { width: 170px; margin: 40px auto 30px; }
.orbit circle { fill: none; stroke: rgba(26, 26, 23, .34); stroke-width: 1; }
.orbit .core { fill: rgba(255, 255, 255, .55); stroke: rgba(26, 26, 23, .12); }
.orbit .planet, .orbit .moon { fill: var(--ink); stroke: none; }
.orbit .spin { transform-origin: 100px 100px; animation: spin 18s linear infinite; }
.orbit .spin.slow { animation-duration: 30s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.step.lit .orbit .spin { animation-duration: 6s; }

/* why: dark, with a faint moving gradient */
.dark { background: var(--dark); color: #f3f2ee; overflow: hidden; isolation: isolate; }
.dark-bg { position: absolute; inset: 0; z-index: -1; opacity: .2; }
.dark-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, transparent, var(--dark) 85%); }
.dark .aside { color: rgba(243, 242, 238, .6); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(243, 242, 238, .14); }
.stat { padding: 28px 24px 8px 0; border-right: 1px solid rgba(243, 242, 238, .14); }
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }
.stat-value { display: block; font-size: clamp(48px, 6vw, 84px); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.stat-label { display: block; margin-top: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(243, 242, 238, .5); }

/* one calm dashboard */
.dash { background: var(--teal); display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.sun { width: min(440px, 100%); justify-self: center; }
.sun .ball { animation: breathe 7s ease-in-out infinite; transform-box: fill-box; transform-origin: center bottom; }
.sun .b2 { animation-delay: -2.3s; }
.sun .b3 { animation-delay: -4.6s; }
@keyframes breathe { 50% { transform: scale(1.05); } }
.dash .display { margin-top: 18px; }
.ticks { list-style: none; margin: 34px 0 0; padding: 0; max-width: 440px; }
.ticks li {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0; border-top: 1px solid var(--line);
    font-family: var(--mono); font-size: 12px;
}
.ticks li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: 0 0 auto; }

/* audio ads */
.tracks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.track {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
    padding: 20px 18px; border-bottom: 1px solid var(--line);
    border-radius: 18px;
    transition: border-color .3s;
}
.track.lit { border-bottom-color: transparent; }
.track-play {
    width: 48px; height: 48px; border-radius: 50%; border: 0;
    background: var(--ink); color: #9fc7ff; cursor: pointer;
    display: grid; place-items: center;
}
.track-play svg { width: 18px; height: 18px; }
.track-play .i-pause, .track.playing .i-play { display: none; }
.track.playing .i-pause { display: block; }
.track-name strong { display: block; font-size: 20px; font-weight: 500; letter-spacing: -.03em; }
.track-name span { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.track-time { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); }

/* faq */
.faq { background: var(--lavender); display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.faq .display { margin-top: 18px; }
.faq-list { border-top: 1px solid rgba(26, 26, 23, .18); }
.faq details { border-bottom: 1px solid rgba(26, 26, 23, .18); }
.faq summary {
    list-style: none; cursor: pointer;
    display: grid; grid-template-columns: 36px 1fr 20px; align-items: center;
    padding: 22px 0; font-size: 16px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 20px; text-align: right; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-n { font-family: var(--mono); font-size: 10px; color: var(--ink-soft); }
.faq details p { margin: -6px 0 22px 36px; max-width: 46ch; color: var(--ink-soft); font-size: 14px; }

/* closing call, on beige */
.cta { background: var(--beige); overflow: hidden; min-height: 560px; }
.cta .display { margin-top: 18px; position: relative; }
.cta .kicker, .cta .pill { position: relative; }
.rings { position: absolute; right: -60px; top: 50%; width: 620px; transform: translateY(-50%); }
.rings circle { fill: none; stroke: rgba(26, 26, 23, .14); }

/* footer */
.footer {
    background: var(--dark); color: rgba(243, 242, 238, .7);
    display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 24px;
    padding: 56px var(--gutter);
    font-family: var(--mono); font-size: 11px;
}
.footer-logo { height: 24px; width: auto; filter: invert(1) brightness(1.4); }

/* ---------- phones and small tablets ---------- */
@media (max-width: 860px) {
    .nav { grid-template-columns: 1fr auto; }
    .nav-links { display: none; }
    .slide { grid-template-columns: 1fr; align-content: center; gap: 28px; padding: 88px var(--gutter) 64px; }
    .promo { border-width: 4px; border-radius: 20px; }
    .layers { width: min(220px, 60%); }
    .section-head { grid-template-columns: 1fr; gap: 18px; }
    .steps { grid-template-columns: 1fr; }
    .step { min-height: 380px; }
    .stats { grid-template-columns: 1fr; }
    .stat, .stat + .stat { border-right: 0; border-bottom: 1px solid rgba(243, 242, 238, .14); padding: 24px 0; }
    .dash, .faq { grid-template-columns: 1fr; }
    .track { gap: 14px; padding: 16px 10px; }
    .track-name strong { font-size: 17px; }
    .rings { width: 420px; right: -160px; opacity: .7; }
    .footer { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .orbit .spin, .layers .layer, .sun .ball { animation: none; }
}

/* ===================== round 2 of feedback ===================== */

/* 1. Protect slide: the artwork sits next to the text, larger */
.slide-protect { grid-template-columns: auto auto; justify-content: start; column-gap: clamp(48px, 8vw, 140px); }
.layers-art { position: relative; width: 410px; height: 450px; }
.layers-art .lp-layers { transform: translate(-50%, -48%) scale(1.36); }

/* the layers animation, as on the live landing page (without its box) */
.lp-layers { position: absolute; left: 50%; top: 50%; width: 300px; height: 330px; transform: translate(-50%, -48%); }
.lp-layer-top { position: absolute; left: 11px; top: 26px; width: 278px; height: 179px; z-index: 5; }
.lp-arrows { position: absolute; left: 120px; top: 0; width: 60px; height: 100px; z-index: 6; }
.lp-layer {
    position: absolute; left: 150px; top: 115px; width: 190px; margin-left: -95px;
    opacity: 0; animation: lp-layer-fall 3.6s cubic-bezier(.45, 0, .2, 1) infinite;
}
.lp-layer:nth-of-type(2) { animation-delay: -1.2s; }
.lp-layer:nth-of-type(3) { animation-delay: -2.4s; }
@keyframes lp-layer-fall {
    0% { transform: translateY(0) scale(1.05); opacity: 0; }
    12% { opacity: 1; }
    33% { transform: translateY(80px) scale(1); }
    66% { transform: translateY(150px) scale(.84); opacity: 1; }
    100% { transform: translateY(210px) scale(.66); opacity: 0; }
}

/* 2–3. the side text: 16px, right next to the heading and level with it */
.section-head { grid-template-columns: minmax(150px, 1fr) auto minmax(0, 380px); column-gap: clamp(32px, 5vw, 80px); align-items: center; justify-content: start; }
.section-head .kicker { align-self: start; }
.section-head .aside { align-self: center; font-size: 16px; line-height: 1.55; max-width: 34ch; }

/* 4. dashboard: the orbit animation from the live landing page, larger; the list at 14px */
.orbit-art { position: relative; height: 420px; overflow: hidden; }
.orbit-art .lp-orbit { transform: scale(1.32); }
.lp-orbit { position: absolute; left: 50%; bottom: -245px; width: 490px; height: 490px; margin-left: -245px; }
.lp-orbit-big { position: absolute; inset: 0; width: 100%; height: 100%; }
.lp-orbit-ring { position: absolute; left: 80px; top: 80px; width: 330px; height: 330px; border: 1px dashed rgba(255, 255, 255, .8); border-radius: 50%; }
.lp-orbit-core { position: absolute; left: 148px; top: 148px; width: 193px; height: 193px; border-radius: 50%; background: radial-gradient(circle at 3% 22%, rgb(247, 235, 217) 26%, rgba(255, 228, 181, .7) 100%); }
.lp-orbit-arm { position: absolute; inset: 80px; animation: lp-orbit 9s linear infinite; }
.lp-orbit-arm-2 { animation-duration: 13s; animation-direction: reverse; animation-delay: -4s; }
.lp-orbit-arm img {
    position: absolute; left: 50%; top: -61px; width: 122px; height: 122px; margin-left: -61px; border-radius: 50%;
    animation: lp-orbit-counter 9s linear infinite, lp-orbit-size 4.5s ease-in-out infinite alternate;
}
.lp-orbit-arm-2 img { animation-duration: 13s, 6s; animation-direction: reverse, alternate; animation-delay: -4s, -2s; }
@keyframes lp-orbit { to { transform: rotate(360deg); } }
@keyframes lp-orbit-counter { to { rotate: -360deg; } }
@keyframes lp-orbit-size { from { scale: 1; } to { scale: 1.4; } }
.dash .lead { font-size: 18px; }
.ticks li { font-size: 14px; padding: 14px 0; }

/* 5. the voices */
.track { grid-template-columns: auto minmax(160px, 240px) 1fr auto; }
.track-name strong { font-size: 22px; }
.track-desc { margin: 0; font-size: 14px; color: var(--ink-soft); max-width: 52ch; }

/* 6. longer answers read better a little larger */
.faq summary { font-size: 17px; line-height: 1.35; gap: 0; }
.faq details p { font-size: 15px; max-width: 58ch; line-height: 1.6; }

/* 7. clients */
.trusted { padding: clamp(64px, 8vw, 110px) 0; text-align: center; }
.trusted-title { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.lp-ticker {
    margin-top: 40px; overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.lp-ticker-row { display: flex; align-items: center; gap: 74px; width: max-content; animation: lp-ticker 32s linear infinite; }
.lp-ticker-row img { width: auto; display: block; }
@keyframes lp-ticker { to { transform: translateX(-50%); } }

/* 8. closing section: #FFF8F3, the request form on the right */
.cta { background: #fff8f3; display: grid; grid-template-columns: 1fr minmax(320px, 520px); gap: clamp(32px, 6vw, 96px); align-items: center; }
.cta-copy { position: relative; }
.rings { right: auto; left: 30%; opacity: .7; }
.request-card {
    position: relative;
    background: rgba(255, 255, 255, .9);
    border-radius: 32px;
    padding: clamp(28px, 4vw, 48px);
    box-shadow: 0 30px 70px rgba(140, 90, 60, .08);
}
.request-card h3 { margin: 0 0 26px; text-align: center; font-size: clamp(26px, 2.6vw, 34px); font-weight: 500; letter-spacing: -.03em; }
.field { display: block; margin-bottom: 18px; }
.field span { display: block; margin-bottom: 8px; font-size: 14px; color: #77736c; }
.field input {
    width: 100%; padding: 15px 16px; border-radius: 12px; border: 1px solid #e3ddd6; background: #fff;
    font: inherit; font-size: 15px; color: var(--ink);
}
.field input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; }
.send {
    width: 100%; margin-top: 8px; padding: 16px; border: 0; border-radius: 12px;
    background: #333; color: #fff; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
}
.send:hover { background: var(--ink); }
.send:disabled { opacity: .6; cursor: default; }
.form-status { min-height: 1.4em; margin: 14px 0 0; text-align: center; font-size: 14px; }
.form-status.error { color: #b3261e; }

@media (max-width: 860px) {
    .slide-protect { grid-template-columns: 1fr; }
    .layers-art { width: 100%; height: 300px; }
    .layers-art .lp-layers { transform: translate(-50%, -48%) scale(.9); }
    .section-head { grid-template-columns: 1fr; }
    .orbit-art { height: 300px; }
    .orbit-art .lp-orbit { transform: scale(.95); }
    .track { grid-template-columns: auto 1fr auto; }
    .track-desc { grid-column: 2 / -1; font-size: 13px; }
    .cta { grid-template-columns: 1fr; }
    .lp-ticker-row { gap: 44px; }
    .lp-ticker-row img { height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
    .lp-layer, .lp-orbit-arm, .lp-orbit-arm img, .lp-ticker-row { animation: none; }
    .lp-layer { opacity: 1; }
}
/* the orbit needs its full width: wider column, a little less zoom */
.dash { grid-template-columns: 1.15fr 1fr; }
.orbit-art { height: 400px; }
.orbit-art .lp-orbit { transform: scale(1.12); transform-origin: 50% 50%; }
@media (max-width: 860px) { .dash { grid-template-columns: 1fr; } .orbit-art .lp-orbit { transform: scale(.8); } }
.cta .display { font-size: clamp(42px, 5.4vw, 88px); }

/* ===================== round 3 of feedback ===================== */

/* 1. heading + side text sit in the middle of the page; the label stays on the left */
.section-head { grid-template-columns: minmax(150px, 1fr) auto minmax(0, 380px) minmax(0, 1fr); }

/* 2. the logo strip spans the full width and never runs out (the script fills it) */
.trusted { overflow: hidden; }
.lp-ticker { width: 100%; }
.lp-ticker-row { animation: none; will-change: transform; }

/* 3. no circles; the form takes the whole space right of the text */
.cta .rings { display: none; }
.cta { grid-template-columns: auto 1fr; align-items: stretch; gap: clamp(40px, 6vw, 110px); }
.cta-copy { align-self: center; }
.request-card { display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 4.5vw, 72px) clamp(28px, 5vw, 96px); min-height: 520px; }
.request-card h3 { font-size: clamp(30px, 3vw, 44px); margin-bottom: 34px; }
.request-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
.request-form .field input { padding: 18px 18px; font-size: 16px; }
.request-form .send, .request-form .form-status { grid-column: 1 / -1; }
.request-form .send { padding: 19px; font-size: 16px; }

/* 4. slide 1 in the centre */
.slide-hero { justify-items: center; text-align: center; }
.slide-hero .lead { margin-left: auto; margin-right: auto; }

/* 5. slide 3: text and artwork together in the centre */
.slide-protect { justify-content: center; }

@media (max-width: 860px) {
    .section-head { grid-template-columns: 1fr; }
    .cta { grid-template-columns: 1fr; }
    .request-card { min-height: 0; }
    .request-form { grid-template-columns: 1fr; }
}

/* round 4: the form card spans from about 44% to 93% of the width, as marked */
.cta { grid-template-columns: 1fr minmax(0, 49vw); padding-right: 7vw; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; padding-right: var(--gutter); } }
.cta .display { font-size: clamp(40px, 4vw, 80px); }
.request-card { min-height: 420px; }

/* the top bar: Log in next to Try for free */
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 22px; }
.nav-login { font-size: 14px; text-decoration: none; opacity: .8; }
.nav-login:hover { opacity: 1; }
.footer-copy a { color: inherit; }
