/* Ruby Software Studio - site design system (2026 redesign).
   Tokens follow the redesign brief: charcoal, ruby, warm ivory, soft stone.
   The older styles.css is kept only for the legal pages that still use it. */

@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff") format("woff"); font-weight: 600 800; font-display: swap; }

:root {
  --charcoal: #171717;
  --ruby: #B83246;
  --ruby-deep: #962437;
  --ivory: #F7F5F0;
  --stone: #E8E5DF;
  --surface: #FFFFFF;
  --ink: #171717;
  --muted: #5C5750;
  --line: #E2DED6;
  --accent: var(--ruby);
  --accent-soft: #F6E7E9;
  --radius-btn: 10px;
  --radius-card: 16px;
  --wrap: 1200px;
  --gutter: clamp(18px, 4vw, 32px);
  --section: clamp(64px, 9vw, 112px);
  --shadow: 0 1px 2px rgba(23, 23, 23, .04), 0 12px 32px -12px rgba(23, 23, 23, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
/* Product accents: taken from each app's own icon and UI. */
.accent-tuniva { --accent: #E2542F; --accent-soft: #FBE9E2; }
.accent-selene { --accent: #2FA39A; --accent-soft: #DCEFEA; }
.accent-decks { --accent: #6C4CF1; --accent-soft: #EEE9FF; }
.accent-docuread { --accent: #3D5AFE; --accent-soft: #E6E9FF; }
.accent-lenora { --accent: #C2185B; --accent-soft: #F7E3EC; }
.accent-rubynovel { --accent: #147D78; --accent-soft: #DDEFEC; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 17px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.12; letter-spacing: -.025em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.2rem; letter-spacing: -.015em; }
h4 { font-size: 1rem; letter-spacing: 0; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--charcoal); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
section { padding: var(--section) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.stone { background: var(--stone); }
.white { background: var(--surface); }
.dark { background: var(--charcoal); color: #F1EFEA; }
.dark .muted, .dark .lead { color: #BDB8AF; }

.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.dark .eyebrow { color: #F08A98; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 40em; }
.muted { color: var(--muted); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius-btn);
  background: var(--accent); color: #fff; border: 1.5px solid var(--accent);
  font-weight: 600; font-size: .98rem; text-decoration: none; line-height: 1.2;
  transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease), color .18s var(--ease);
}
.btn:hover { background: var(--ruby-deep); border-color: var(--ruby-deep); }
.accent-tuniva .btn:hover, .accent-selene .btn:hover, .accent-decks .btn:hover, .accent-docuread .btn:hover, .accent-lenora .btn:hover, .accent-rubynovel .btn:hover { filter: brightness(.92); background: var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.dark .btn.ghost { color: #fff; border-color: #fff; }
.dark .btn.ghost:hover { background: #fff; color: var(--charcoal); }
.btn.light { background: #fff; border-color: #fff; color: var(--charcoal); }
.btn.light:hover { background: var(--stone); border-color: var(--stone); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--accent); }
.link-arrow::after { content: " →"; transition: margin .18s var(--ease); }
.link-arrow:hover::after { margin-left: 4px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(247, 245, 240, .88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .bar { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; font-size: 1.05rem; color: var(--ink); margin-right: auto; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .95rem; color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--ink); background: rgba(23, 23, 23, .05); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav .btn { margin-left: 10px; padding: 10px 18px; color: #fff; background: var(--ruby); border-color: var(--ruby); }
.nav .btn:hover { background: var(--ruby-deep); border-color: var(--ruby-deep); color: #fff; }
.menu-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 10px; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 22px; height: 22px; }
@media (max-width: 920px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--gutter) 22px; background: var(--ivory); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgba(0,0,0,.18); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 12px; font-size: 1.05rem; }
  .nav .btn { margin: 10px 0 0; justify-content: center; padding: 14px 18px; }
}

/* Breadcrumb */
.crumbs { font-size: .88rem; color: var(--muted); padding-top: 22px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span[aria-hidden] { margin: 0 6px; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 em { font-style: normal; color: var(--ruby); }
.hero .lead { margin-top: 8px; }
.hero-note { margin-top: 22px; font-size: .92rem; color: var(--muted); }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }

/* Phone frames built from real screenshots */
.phone { border-radius: 30px; overflow: hidden; background: #111; border: 6px solid #111; box-shadow: 0 30px 60px -28px rgba(23, 23, 23, .45), 0 2px 6px rgba(23,23,23,.12); aspect-ratio: 540 / 1083; }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone-stack { position: relative; height: clamp(420px, 52vw, 600px); }
.phone-stack .phone { position: absolute; width: clamp(160px, 19vw, 250px); }
.phone-stack .p1 { left: 4%; top: 12%; transform: rotate(-7deg); z-index: 1; }
.phone-stack .p2 { left: 34%; top: 0; z-index: 3; }
.phone-stack .p3 { right: 2%; top: 14%; transform: rotate(7deg); z-index: 2; }
.phone-stack .tag { position: absolute; z-index: 4; background: var(--surface); border-radius: 999px; padding: 7px 14px; font-size: .82rem; font-weight: 600; box-shadow: var(--shadow); display: inline-flex; align-items: center; gap: 8px; }
.phone-stack .tag i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--ruby)); display: inline-block; }
@media (max-width: 920px) { .phone-stack { width: 100%; height: clamp(360px, 92vw, 560px); max-width: 560px; margin: 0 auto; } .phone-stack .phone { width: 37%; } }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: clamp(22px, 3vw, 32px); }
.card p:last-child { margin-bottom: 0; }
a.card { text-decoration: none; display: block; color: inherit; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #D6D1C7; }
.grid { display: grid; gap: clamp(16px, 2.2vw, 24px); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1120px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

a.card.offer, .offer { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 44px); min-height: 280px; display: flex; flex-direction: column; }
.offer h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.offer .link-arrow { margin-top: auto; }
.offer .num { font-size: .8rem; font-weight: 600; letter-spacing: .14em; color: var(--muted); margin-bottom: 18px; }
.card.dark { background: var(--charcoal); border-color: var(--charcoal); color: #F1EFEA; }
.card.dark .muted { color: #BDB8AF; }
.offer.dark .link-arrow { color: #fff; }

.icon-tile { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.icon-tile svg { width: 24px; height: 24px; }

/* Product cards */
.product-card, a.card.product-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.product-card .shot { background: var(--accent-soft); padding: 26px 26px 0; height: 250px; overflow: hidden; display: flex; justify-content: center; }
.product-card .shot .phone { width: 150px; height: auto; border-width: 5px; border-radius: 24px; box-shadow: 0 18px 40px -20px rgba(23,23,23,.45); }
.product-card .shot.icon-only { align-items: center; padding: 26px; }
.product-card .shot.icon-only img { width: 112px; height: 112px; border-radius: 26px; box-shadow: var(--shadow); }
.product-card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.product-card .top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.product-card .top img { width: 40px; height: 40px; border-radius: 10px; }
.product-card h3 { margin: 0; }
.product-card .cat { font-size: .82rem; color: var(--muted); }
.product-card p { color: var(--muted); font-size: .96rem; }
.product-card .foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; }
.link-arrow { white-space: nowrap; }
.product-card .link-arrow { font-size: .95rem; }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--stone); color: var(--muted); white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.live { background: #E3F3E8; color: #1D7A43; }
.status.soon { background: #FBF0DC; color: #8A5A0B; }
.status.review { background: #E8EEFB; color: #2B4D9B; }

/* Services */
.service h3 { margin-top: 4px; }
.service ul { margin: 14px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .95rem; }
.service li { padding: 6px 0; border-top: 1px solid var(--line); }
.service li:first-child { border-top: 0; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding-top: 52px; }
.steps li::before { counter-increment: step; content: "0" counter(step); position: absolute; top: 0; left: 0; font-size: .82rem; font-weight: 600; letter-spacing: .1em; color: var(--accent); }
.steps li::after { content: ""; position: absolute; top: 28px; left: 0; right: -16px; height: 2px; background: var(--line); }
.steps li:last-child::after { right: 0; }
.steps li span.dot { position: absolute; top: 23px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); z-index: 1; }
.steps h3 { font-size: 1.08rem; }
.steps p { color: var(--muted); font-size: .94rem; }
.dark .steps li::after { background: #3A3733; }
.dark .steps p { color: #BDB8AF; }
.dark .muted { color: #BDB8AF; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 0 0 26px 40px; }
  .steps li::before { position: static; display: block; margin-bottom: 4px; }
  .steps li::after { top: 6px; bottom: -6px; left: 5px; right: auto; width: 2px; height: auto; }
  .steps li span.dot { top: 4px; }
}

/* Why / principles */
.why { border-top: 1px solid var(--line); padding-top: 22px; }
.why h3 { font-size: 1.1rem; }
.why p { color: var(--muted); font-size: .96rem; }

/* CTA band */
.cta { text-align: center; }
.cta h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.cta .actions { justify-content: center; }

/* Product page */
.product-hero { padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 88px); }
.product-hero .title { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.product-hero .title img { width: 76px; height: 76px; border-radius: 20px; box-shadow: var(--shadow); }
.product-hero .title h1 { margin: 0; font-size: clamp(2.4rem, 5.4vw, 4rem); }
.product-hero .stage { background: var(--accent-soft); border-radius: 28px; padding: clamp(24px, 4vw, 44px); display: flex; justify-content: center; gap: clamp(12px, 2vw, 22px); }
.product-hero .stage .phone { width: clamp(130px, 15vw, 210px); }
.product-hero .stage .phone:nth-child(2) { transform: translateY(-18px); }
@media (max-width: 640px) { .product-hero .stage .phone:nth-child(3) { display: none; } .product-hero .stage .phone { width: 42%; } }

.feature { padding: 24px 0; border-top: 1px solid var(--line); }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; }

.gallery { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px; }
.gallery figure { margin: 0; flex: 0 0 clamp(190px, 22vw, 250px); scroll-snap-align: start; }
.gallery figure.wide { flex-basis: clamp(320px, 52vw, 620px); }
.gallery .phone { width: 100%; }
.gallery .landscape { border-radius: 22px; overflow: hidden; border: 6px solid #111; box-shadow: 0 30px 60px -28px rgba(23,23,23,.45); }
.gallery figcaption { font-size: .88rem; color: var(--muted); margin-top: 12px; }

.availability { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.availability h2 { margin: 0 0 6px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.availability p { margin: 0; color: var(--muted); }

details.faq { border-top: 1px solid var(--line); padding: 18px 0; }
details.faq:last-of-type { border-bottom: 1px solid var(--line); }
details.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-size: 1.04rem; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); transition: transform .2s var(--ease); }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { margin: 12px 0 0; color: var(--muted); }

.privacy-box { border-left: 4px solid var(--accent); }

/* Work / case study */
.case-card, a.card.case-card { display: grid; grid-template-columns: 1.1fr 1fr; padding: 0; overflow: hidden; }
.case-card .media { background: #120F16; min-height: 320px; overflow: hidden; }
.case-card .media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.case-card .body { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; }
.case-card .body .link-arrow { margin-top: auto; }
@media (max-width: 860px) { .case-card, a.card.case-card { grid-template-columns: 1fr; } .case-card .media { min-height: 220px; max-height: 300px; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 22px; padding: 0; list-style: none; }
.chips li { font-size: .82rem; padding: 5px 11px; border-radius: 999px; background: var(--stone); color: var(--muted); font-weight: 500; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.facts div { padding: 20px 22px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; }
.facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.facts dd { margin: 0; font-weight: 600; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, 1fr); } .facts div:nth-child(3) { border-left: 0; } .facts div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.browser { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.browser .chrome { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: #EFECE6; border-bottom: 1px solid var(--line); }
.browser .chrome i { width: 10px; height: 10px; border-radius: 50%; background: #D3CEC5; }
.browser img { width: 100%; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.note { font-size: .9rem; color: var(--muted); background: var(--surface); border: 1px dashed #CFC9BE; border-radius: 12px; padding: 12px 16px; }

/* Forms */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border-radius: 10px; border: 1.5px solid #D6D1C7; background: var(--surface); color: var(--ink); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ruby); box-shadow: 0 0 0 3px rgba(184, 50, 70, .15); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #B42318; }
.field .error { display: none; color: #B42318; font-size: .88rem; margin-top: 6px; }
.field.invalid .error { display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ruby); }
.check .error { display: none; color: #B42318; margin-top: 4px; }
.check.invalid .error { display: block; }
.form-status { display: none; padding: 14px 16px; border-radius: 10px; font-size: .95rem; }
.form-status.ok { display: block; background: #E3F3E8; color: #135A30; }
.form-status.err { display: block; background: #FDECEA; color: #8C1D13; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--charcoal); color: #BDB8AF; padding: clamp(48px, 6vw, 72px) 0 32px; font-size: .94rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 9px; }
.site-footer a { color: #BDB8AF; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .legal { border-top: 1px solid #2E2C29; margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .84rem; color: #8F8A82; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .cols > div:first-child { grid-column: 1 / -1; } }

/* Reveal on scroll (skipped with reduced motion) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Home slideshow (works as stacked sections without JavaScript) ---------- */
.h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); letter-spacing: -.035em; }
.hero .h1 em { font-style: normal; color: var(--accent); }
.slideshow .slide .btn { background: var(--accent); border-color: var(--accent); }
.slideshow .slide .btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.slideshow .slide .btn.ghost:hover { background: var(--ink); color: #fff; }
.slideshow .slide .btn:not(.ghost):hover { filter: brightness(.92); }
.slideshow .slide + .slide { margin-top: clamp(48px, 7vw, 88px); }
.slideshow.ready .slides { display: grid; }
.slideshow.ready .slide { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateY(8px); }
.slideshow.ready .slide.is-active { opacity: 1; visibility: visible; transform: none; }
/* fades only after the first paint, so the page never shows the slides overlapping while it loads */
.slideshow.animate .slide { transition: opacity .6s var(--ease), transform .6s var(--ease), visibility 0s linear .6s; }
.slideshow.animate .slide.is-active { transition: opacity .6s var(--ease), transform .6s var(--ease); }
.slideshow .browser { transform: rotate(1.5deg); }
.slideshow { padding-top: clamp(28px, 5vw, 64px); padding-bottom: clamp(40px, 6vw, 72px); }
.slideshow .phone-stack { height: clamp(380px, 41vw, 495px); }
.slideshow .phone-stack .phone { width: clamp(150px, 17vw, 225px); }
.slide-controls { display: flex; align-items: center; gap: 10px; margin-top: clamp(16px, 2.5vw, 28px); }
.slide-controls[hidden] { display: none; }
.slide-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.slide-btn:hover { border-color: var(--ink); }
.slide-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.slide-btn .i-play { fill: currentColor; stroke: none; display: none; }
.slide-btn.paused .i-play { display: block; }
.slide-btn.paused .i-pause { display: none; }
.slide-btn.pause { margin-left: auto; }
.slide-dots { display: flex; gap: 8px; padding: 0 6px; }
.slide-dots button { width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; background: #CFCAC1; cursor: pointer;
  transition: width .3s var(--ease), background .3s var(--ease); }
.slide-dots button[aria-current="true"] { width: 30px; background: var(--ruby); }
.slide-btn:focus-visible, .slide-dots button:focus-visible { outline: 3px solid var(--ruby); outline-offset: 3px; }
@media (max-width: 920px) { .slideshow .browser { transform: none; } .slideshow .phone-stack { height: clamp(340px, 88vw, 520px); } .slideshow .phone-stack .phone { width: 37%; } }
@media (prefers-reduced-motion: reduce) { .slideshow.animate .slide, .slideshow.animate .slide.is-active { transition: none; transform: none; } }
