/* Alifbo landing — Apple-style rhythm: white, grey and black sections, huge headlines,
   full-width MacBook demos with controls underneath. */
:root {
  --brand: #ff6b00;
  --brand-2: #ff9f1c;
  --brand-3: #ff3d6e;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --faint: #86868b;
  --line: #e5e5ea;
  --bg: #ffffff;
  --grey: #f5f5f7;
  --seg: #ececf0;
  --black: #000;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.47 var(--font); letter-spacing: -.01em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { display: block; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 780px; }
.center { text-align: center; }
section { padding: 160px 0; scroll-margin-top: 52px; }
.grey { background: var(--grey); }
.dark { background: var(--black); color: #f5f5f7; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(255, 255, 255, .8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, color .3s; }
.nav.scrolled { border-bottom-color: rgba(0, 0, 0, .08); }
.nav.on-dark { background: rgba(40, 40, 42, .72); border-bottom-color: rgba(255, 255, 255, .08); color: #f5f5f7; }
.nav.on-dark .nav-links a { color: #d2d2d7; }
.nav.on-dark .btn-dark { background: #fff; color: #000; }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; height: 52px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; font-size: 19px; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 28px; margin: 0 auto; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-weight: 500; }
.nav-links a:hover { color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 13px 24px; font: 600 17px/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .15s ease, background .2s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 17px 30px; font-size: 18px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-light { background: #fff; color: #000; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: #f06000; }
.btn-ghost { background: var(--grey); color: var(--ink); }

/* Type */
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.025em; }
h1 { font-size: clamp(48px, 8.4vw, 96px); line-height: 1.02; font-weight: 700; margin: 26px 0 26px; }
h2.big { font-size: clamp(40px, 6.6vw, 80px); line-height: 1.04; font-weight: 700; }
.grad { background: linear-gradient(92deg, var(--brand) 0%, var(--brand-2) 40%, var(--brand-3) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Headlines turn from grey to ink as they scroll in (--p set from JS). */
.ink { color: color-mix(in srgb, var(--ink) calc(var(--p, 1) * 100%), #c7c7cc); }
.ink-dark { color: color-mix(in srgb, #f5f5f7 calc(var(--p, 1) * 100%), #48484a); }
.ink-dark .grad-dark, h2.ink-dark { background: none; }
.lead { font-size: clamp(19px, 2.2vw, 22px); color: var(--muted); max-width: 660px; margin: 0 auto; }
.sub { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 680px; margin: 22px auto 0; }
.dark .sub { color: #a1a1a6; }
.eyebrow { font-weight: 600; color: var(--muted); font-size: clamp(19px, 2vw, 22px); margin: 0 0 14px; }
.dark .eyebrow { color: #d2d2d7; }
.fine { color: var(--faint); font-size: 13.5px; margin: 20px 0 0; line-height: 1.6; }
.hint { color: var(--faint); font-size: 17px; margin: 22px 0 0; }
.hint a, .fine a { color: var(--brand); text-decoration: none; }
.dark .hint { color: #86868b; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.pill { display: inline-flex; gap: 10px; align-items: center; padding: 6px 14px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; color: var(--ink-2); margin: 0; }
.pill-tag { white-space: nowrap; background: var(--grey); border-radius: 999px; padding: 3px 10px; font-weight: 600; font-size: 12px; color: var(--ink); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* Segmented controls (the sample's pill groups) */
.seg { display: inline-flex; background: var(--seg); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { border: 0; background: none; font: 500 15px/1 var(--font); color: var(--ink-2); padding: 11px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: background .25s, color .25s, box-shadow .25s; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.seg-lg button { font-size: 16px; padding: 13px 22px; }
.seg-dark { background: #1d1d1f; }
.seg-dark button { color: #a1a1a6; }
.seg-dark button[aria-pressed="true"] { background: #e8e8ed; color: #000; box-shadow: none; }
.grey .seg { background: #e4e4e9; }
.controls { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin-top: 44px; }
.ctl { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ctl-label { display: block; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 40px; margin-bottom: 12px; }
.ctl .ctl-label { margin: 0; }

/* Sections */
.hero { padding-top: 150px; padding-bottom: 120px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -260px 0 auto; height: 620px; background: radial-gradient(55% 60% at 50% 0%, rgba(0, 0, 0, .06), transparent 70%); pointer-events: none; }
.play, .scope { padding-bottom: 140px; }
.play .macbook, .scope .macbook { margin-top: 70px; }
.how { padding-bottom: 0; }

/* Sticky steps */
.steps { height: 380vh; position: relative; margin-top: 30px; }
.steps-sticky { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: center; max-width: 1240px; margin: 0 auto; padding: 52px 24px 0; }
.steps-text { position: relative; min-height: 230px; }
.dots { display: flex; gap: 6px; margin-bottom: 28px; }
.dots i { width: 6px; height: 6px; border-radius: 99px; background: #d2d2d7; transition: width .4s, background .4s; }
.dots i.on { width: 34px; background: var(--ink); }
.step-copy { position: absolute; inset: 40px 0 auto; opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .5s; pointer-events: none; }
.step-copy.on { opacity: 1; transform: none; }
.step-copy h3 { font-size: clamp(32px, 3.8vw, 48px); line-height: 1.06; font-weight: 700; }
.step-copy p { color: var(--muted); font-size: 21px; margin: 16px 0 0; }

/* Features bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 70px; }
.feat { background: var(--grey); border-radius: 32px; padding: 30px 32px 40px; }
.feat-art { height: 250px; border-radius: 18px; position: relative; overflow: hidden; display: grid; place-items: center; margin-bottom: 26px; }
.feat h3 { font-size: 26px; line-height: 1.15; font-weight: 700; }
.feat p { color: var(--muted); margin: 10px 0 0; font-size: 17px; }

/* Mini illustrations inside feature cards */
.mini-win { background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 8px 24px rgba(0, 0, 0, .08); overflow: hidden; font: 13px/1.4 -apple-system, sans-serif; }
.mini-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid #ececec; font-size: 11.5px; font-weight: 600; color: #333; background: #fafafa; }
.mini-bar .lights i { width: 8px; height: 8px; }
.mini-bar .lights { gap: 5px; margin-right: 4px; }
.mini-body { padding: 16px 18px; }
.big-word { font: 700 44px/1.1 Georgia, "Times New Roman", serif; letter-spacing: -.01em; color: #111; }
.big-word .c1 { color: #ff6b00; } .big-word .u { text-decoration: underline; text-decoration-color: #2f6fe4; text-underline-offset: 6px; font-style: italic; font-weight: 400; }
.chiprow { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 0 18px; }
.chip { font: 500 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 9px 12px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .07); color: #222; transition: background .4s, color .4s; }
.chip.stay { color: #138a4b; }
.chip.conv { background: #fff4ea; }
.chip .tag { margin-left: 6px; font-family: var(--font); font-size: 11px; color: #999; }
.mini-sheet { border-collapse: collapse; font: 13px/1 "Aptos Narrow", Calibri, sans-serif; }
.mini-sheet td, .mini-sheet th { border: 1px solid #e3e3e3; padding: 7px 9px; white-space: nowrap; }
.mini-sheet th { background: #f2f2f2; color: #777; font-weight: 400; font-size: 11px; }
.mini-sheet .num { text-align: right; }
.mini-sheet .fx { outline: 2px solid #107c41; outline-offset: -2px; }
.mini-fx { display: flex; gap: 8px; padding: 7px 10px; border-bottom: 1px solid #ececec; font: 12px ui-monospace, monospace; color: #444; }
.mini-fx i { font: italic 600 13px Georgia, serif; color: #888; }
.keep-list { display: flex; flex-direction: column; gap: 8px; width: 230px; }
.keep-row { display: flex; align-items: center; justify-content: space-between; background: #fff; border-radius: 10px; padding: 9px 12px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .07); font-size: 14px; }
.keep-row svg { color: #ff6b00; }
.mixed { font: 500 22px/1.45 Georgia, serif; text-align: center; padding: 0 22px; color: #111; }

/* Dark: letters */
.letters { display: flex; justify-content: center; gap: 18px; margin-top: 60px; flex-wrap: wrap; }
.letter { position: relative; width: 170px; height: 196px; border-radius: 30px; background: #161617; font: 700 76px/1 var(--display); perspective: 700px; }
.letter span { position: absolute; inset: 0; display: grid; place-items: center; backface-visibility: hidden; transition: transform .8s cubic-bezier(.2, .7, .2, 1); border-radius: inherit; }
.letter .old { color: #8e8e93; }
.letter .new { transform: rotateX(180deg); color: #fff; }
.letter.flipped .old { transform: rotateX(-180deg); }
.letter.flipped .new { transform: rotateX(0); }
.letters-sec .seg { margin-top: 44px; }
.privacy-sec { border-top: 1px solid #1d1d1f; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 80px auto 0; max-width: 960px; }
.trio .ico, .six .ico { display: inline-flex; color: inherit; margin-bottom: 14px; }
.trio h3 { font-size: 22px; margin-bottom: 8px; }
.trio p { color: #a1a1a6; margin: 0; }

/* Converter (keyboard-style section) */
.converter .ctl-label { margin-top: 50px; }
.conv-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 50px; }
.conv-card { display: flex; flex-direction: column; background: var(--grey); border-radius: 30px; padding: 30px 32px; min-height: 300px; }
.conv-head { display: flex; justify-content: space-between; align-items: center; font-size: 17px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.conv-head #convDetect { font-weight: 400; font-size: 14px; }
.conv-card textarea { flex: 1; border: 0; background: transparent; resize: none; font: 19px/1.55 var(--font); color: var(--ink); outline: none; }
.conv-card output { flex: 1; font-size: 19px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.conv-card output mark { background: #ffe0c4; color: inherit; border-radius: 4px; }
.copy { border: 0; background: #fff; border-radius: 999px; padding: 7px 13px; font: 600 13px/1 var(--font); color: var(--ink); cursor: pointer; }

/* Feels native */
.six { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 48px; margin-top: 80px; }
.six h3 { font-size: 21px; margin-bottom: 6px; }
.six p { color: var(--muted); margin: 0; }

/* Pricing */
.center-seg { margin-top: 40px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; align-items: stretch; }
.plan { position: relative; border-radius: 30px; padding: 34px 30px; background: #fff; display: flex; flex-direction: column; }
.plan.popular { box-shadow: inset 0 0 0 2px var(--brand); }
.plan .ribbon-tag { position: absolute; top: -13px; left: 30px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.plan h3 { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.plan .price { font: 700 40px/1.1 var(--display); letter-spacing: -.02em; margin: 14px 0 0; }
.plan .per { color: var(--muted); font-size: 14px; min-height: 1.5em; margin-top: 4px; }
.plan .tagline { color: var(--ink-2); margin: 12px 0 22px; font-size: 16px; }
.plan .btn { width: 100%; }
.plan ul { list-style: none; padding: 22px 0 0; margin: 24px 0 0; border-top: 1px solid var(--line); font-size: 15px; }
.plan li { position: relative; padding-left: 26px; margin: 10px 0; color: var(--ink-2); }
.plan li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px; }
.plan.popular li::before { background-color: var(--brand); }

/* Install */
.install-steps { list-style: none; padding: 0; margin: 60px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.install-steps li { background: var(--grey); border-radius: 30px; padding: 30px; }
.install-steps li > b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 15px; }
.install-steps h3 { font-size: 22px; margin: 18px 0 8px; }
.install-steps p { color: var(--muted); font-size: 16px; margin: 0 0 16px; }
.install-steps p b { color: var(--ink-2); font-weight: 600; }

/* FAQ */
.faq-box { margin-top: 60px; background: var(--grey); border-radius: 28px; overflow: hidden; }
.faq-box details { border-top: 1px solid #e3e3e8; }
.faq-box details:first-child { border-top: 0; }
.faq-box summary { cursor: pointer; list-style: none; padding: 24px 64px 24px 30px; font-size: 20px; font-weight: 600; position: relative; }
.faq-box summary::-webkit-details-marker { display: none; }
.faq-box summary::after { content: ""; position: absolute; right: 30px; top: 50%; width: 9px; height: 9px; border-right: 2px solid #86868b; border-bottom: 2px solid #86868b; transform: translateY(-70%) rotate(45deg); transition: transform .3s; }
.faq-box details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-box details p { margin: 0; padding: 0 30px 26px; color: var(--muted); font-size: 17px; animation: faqIn .35s ease; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Final: scattered documents on black */
.final { position: relative; overflow: hidden; padding: 0; }
.scatter { position: relative; height: 820px; max-width: 1440px; margin: 0 auto; }
.scatter .sdoc { position: absolute; width: 400px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); transition: transform 1.4s cubic-bezier(.2, .8, .2, 1), opacity 1.2s; font: 16px/1.55 "Times New Roman", serif; color: #111; }
.sdoc .mini-bar { font-family: -apple-system, sans-serif; }
.sdoc .mini-body { padding: 22px 26px 26px; }
.sdoc h5 { font: 700 15px/1.3 "Times New Roman", serif; text-align: center; margin: 0 0 10px; letter-spacing: .03em; }
.sdoc .w { white-space: normal; }
.final-copy { position: relative; padding: 40px 24px 120px; }
.final-icon { width: 168px; height: 168px; border-radius: 38px; margin: 0 auto 40px; }
.footer { display: grid; grid-template-columns: auto 1fr; gap: 10px 40px; align-items: center; padding: 30px 24px 40px; border-top: 1px solid #2c2c2e; color: #86868b; font-size: 14px; }
.footer nav { display: flex; gap: 22px; justify-content: flex-end; }
.footer a { text-decoration: none; color: #a1a1a6; }
.footer .tm { grid-column: 1 / -1; font-size: 12.5px; color: #6e6e73; }

/* Responsive */
@media (max-width: 960px) {
  section { padding: 120px 0; }
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .steps-sticky { grid-template-columns: 1fr; gap: 18px; align-content: start; padding-top: 76px; }
  .steps-text { min-height: 180px; order: 2; }
  .step-copy { inset: 30px 0 auto; }
  .bento, .trio, .six { grid-template-columns: 1fr 1fr; }
  .plans, .install-steps { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .conv-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  section { padding: 96px 0; }
  .wrap, .nav-inner { padding: 0 16px; }
  .hero { padding-top: 116px; }
  .pill { font-size: 12.5px; gap: 8px; text-align: left; }
  .bento, .trio, .six { grid-template-columns: 1fr; }
  .controls { gap: 18px; }
  .seg button { padding: 10px 12px; font-size: 14px; }
  .seg-lg button { padding: 11px 14px; font-size: 14px; }
  .letter { width: 74px; height: 92px; font-size: 36px; border-radius: 18px; }
  .feat { padding: 24px 22px 30px; }
  .feat-art { height: 210px; }
  .conv-card { padding: 22px; min-height: 200px; }
  .step-copy h3 { font-size: 28px; }
  .step-copy p { font-size: 17px; }
  .scatter { height: 460px; }
  .scatter .sdoc { width: 200px; font-size: 10px; }
  .sdoc h5 { font-size: 10px; }
  .faq-box summary { font-size: 17px; padding: 20px 52px 20px 20px; }
  .faq-box details p { padding: 0 20px 22px; }
  .footer { grid-template-columns: 1fr; }
  .footer nav { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ Realistic mockups (drawn at 1280×800, scaled) ============ */
.stage-box { position: relative; overflow: hidden; width: 100%; }
.stage { position: absolute; left: 0; top: 0; width: 1280px; height: 800px; transform-origin: 0 0; }

/* Words inside documents: only changed letters move */
.w { border-radius: 3px; white-space: nowrap; transition: background .5s ease; }
.w.flash { background: #ffd9b8; }
.ch { display: inline-block; }
.ch.flip { animation: flip .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes flip { 0% { transform: translateY(-.45em); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* MacBook: Apple's MacBook Pro 14" product image; its screen is transparent at
   x 247–2152, y 35–1272 of 2400×1448, and the notch reaches y 75. The screen box reaches 4 px
   under the frame on every side, so the frame’s soft edge never shows the page behind it. */
.macbook { position: relative; width: min(1100px, calc(100% - 32px)); margin: 80px auto 0; }
.mb-frame { position: relative; z-index: 2; width: 100%; height: auto; pointer-events: none; user-select: none; }
.mb-screen { position: absolute; z-index: 1; left: 10.125%; top: 2.279%; width: 79.75%; height: 85.912%; overflow: hidden; border-radius: .9% .9% 0 0 / 1.4% 1.4% 0 0; background: #000; }
.stage.mbp { height: 831px; }
.mbp .menubar { height: 27px; font-size: 13px; gap: 16px; }
/* On the MacBook the app fills the screen under the menu bar, like a full-size window. */
.mbp .o-win { left: 0; top: 27px; width: 1280px; height: 804px; border-radius: 0; box-shadow: none; transition: transform .6s cubic-bezier(.3, .8, .2, 1); }
/* Switching apps slides the new window up over the old one; nothing shows through. */
.mbp .o-win.closed { opacity: 1; transform: translateY(101%); }

/* Plain screen card (steps, cases) */
.screen-card { background: #e8e8ed; border-radius: 30px; padding: 12px; }
.screen-card .stage-box { border-radius: 20px; }

/* macOS desktop */
.mac { position: absolute; inset: 0; overflow: hidden; font: 13px/1.3 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif; color: #1d1d1f; -webkit-font-smoothing: antialiased; }
.mac-wall { position: absolute; inset: 0; background:
  radial-gradient(42% 55% at 16% 22%, #7ea6ff 0%, rgba(126, 166, 255, 0) 70%),
  radial-gradient(38% 50% at 86% 16%, #c3c8ff 0%, rgba(195, 200, 255, 0) 70%),
  radial-gradient(60% 60% at 62% 108%, #5b33c4 0%, rgba(91, 51, 196, 0) 70%),
  linear-gradient(165deg, #23398f 0%, #172158 52%, #2b2075 100%); }
.menubar { position: absolute; inset: 0 0 auto; height: 32px; z-index: 4; display: flex; align-items: center; gap: 20px; padding: 0 18px; color: #fff; font-size: 13.5px; background: rgba(18, 22, 58, .32); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%); }
.menubar .mb-apple { display: flex; margin-right: 2px; }
.menubar .mb-app { font-weight: 700; }
.menubar .mb-right { margin-left: auto; display: flex; align-items: center; gap: 17px; }
.menubar .mb-batt { display: flex; color: #fff; }
.notch { position: absolute; top: 0; left: 50%; width: 196px; height: 34px; transform: translateX(-50%); background: #000; border-radius: 0 0 14px 14px; z-index: 6; }
.notch::after { content: ""; position: absolute; left: 50%; top: 12px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #1c1f2e; }

/* Office for Mac window */
.o-win { --acc: #185abd; --acc-soft: #e5edf9; position: absolute; left: 34px; top: 50px; width: 1212px; height: 734px; background: #fff; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .45), 0 24px 70px rgba(5, 8, 30, .5); transition: opacity .5s ease, transform .5s cubic-bezier(.2, .8, .2, 1); }
.o-win.excel { --acc: #107c41; --acc-soft: #e3f2ea; }
.o-win.closed { opacity: 0; transform: scale(.94) translateY(14px); pointer-events: none; }
.o-win.back { left: 18px; top: 44px; }
.o-title { height: 46px; flex: none; display: flex; align-items: center; gap: 16px; padding: 0 14px; background: #f1f1f1; color: #3a3a3a; font-size: 12.5px; }
.lights { display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .18); }
.lights .r { background: #ff5f57; } .lights .y { background: #febc2e; } .lights .g { background: #28c840; }
.o-autosave { display: flex; align-items: center; gap: 6px; color: #555; font-size: 12px; }
.o-toggle { width: 26px; height: 15px; border-radius: 99px; background: #cfcfcf; position: relative; }
.o-toggle i { position: absolute; left: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; }
.o-qat { display: flex; gap: 13px; color: #444; }
.o-docname { flex: 1; text-align: center; font-weight: 600; font-size: 13px; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-docname em { font-style: normal; font-weight: 400; color: #7a7a7a; }
.o-search { width: 270px; height: 27px; display: flex; align-items: center; gap: 7px; padding: 0 9px; background: #fff; border: 1px solid #d4d4d4; border-radius: 7px; color: #7d7d7d; font-size: 12px; }
.o-avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #dfe5ee; color: #4b5563; }
.o-tabs { height: 34px; flex: none; display: flex; align-items: flex-end; gap: 22px; padding: 0 18px; background: #f1f1f1; font-size: 13px; color: #333; }
.o-tabs > span:not(.o-tabs-right) { padding-bottom: 8px; border-bottom: 3px solid transparent; border-radius: 2px; }
.o-tabs > span.on { color: var(--acc); font-weight: 600; border-bottom-color: var(--acc); }
.o-tabs-right { margin-left: auto; display: flex; align-items: center; gap: 8px; align-self: center; }
.o-pill { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border: 1px solid #cdcdcd; border-radius: 6px; background: #fff; font-size: 12.5px; color: #333; }
.o-pill.share { background: var(--acc); border-color: var(--acc); color: #fff; }
.o-ribbon { height: 100px; flex: none; display: flex; padding: 7px 6px 4px; background: #fafafa; border-top: 1px solid #e2e2e2; border-bottom: 1px solid #dcdcdc; }
.rg { display: flex; flex-direction: column; padding: 0 11px; border-right: 1px solid #e4e4e4; }
.rg.last { border-right: 0; }
.rg-body { flex: 1; display: flex; align-items: center; gap: 6px; }
.rg-label { font-size: 11px; color: #7a7a7a; text-align: center; padding-top: 2px; }
.rows { display: flex; flex-direction: column; gap: 6px; }
.row { display: flex; align-items: center; gap: 2px; }
.o-dd { height: 24px; display: inline-flex; align-items: center; justify-content: space-between; gap: 4px; padding: 0 6px; margin-right: 4px; border: 1px solid #cfcfcf; border-radius: 5px; background: #fff; font-size: 12.5px; color: #222; white-space: nowrap; overflow: hidden; }
.o-txt { min-width: 22px; height: 24px; display: inline-grid; place-items: center; font-size: 14px; color: #2b2b2b; }
.o-txt sup, .o-txt sub { font-size: 8px; }
.o-txt.b { font-weight: 800; } .o-txt.i { font-style: italic; font-family: Georgia, serif; } .o-txt.u { text-decoration: underline; } .o-txt.s { text-decoration: line-through; font-size: 13px; } .o-txt.sm { font-size: 11px; min-width: 40px; }
.o-ib { width: 25px; height: 24px; display: inline-grid; place-items: center; color: #333; border-radius: 4px; }
.o-ib.on { background: var(--acc-soft); color: var(--acc); }
.o-chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 6px; font-size: 12px; color: #2b2b2b; }
.o-mini { font-size: 12px; color: #2b2b2b; }
.o-big { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 52px; padding: 3px 6px; border-radius: 6px; font-size: 11.5px; line-height: 1.15; text-align: center; color: #2b2b2b; transition: background .25s, transform .15s; }
.styles { display: flex; gap: 4px; }
.st { width: 88px; height: 62px; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 9px; border: 1px solid #e0e0e0; border-radius: 4px; background: #fff; overflow: hidden; white-space: nowrap; }
.st b { font: 400 15px "Times New Roman", serif; color: #111; }
.st i { font-style: normal; font-size: 11px; color: #666; }
.st.on { border: 1.5px solid var(--acc); }
.st.h1 b { color: #1f4e9c; font: 400 17px "Calibri Light", "Helvetica Neue", sans-serif; }
.st.h2 b { color: #2f5fb5; font: 400 15px "Calibri Light", "Helvetica Neue", sans-serif; }
.st.t b { font: 300 24px "Calibri Light", "Helvetica Neue", sans-serif; }
.o-alifbo { gap: 5px; font-weight: 600; font-size: 12px; }
.o-alifbo img { border-radius: 7px; }
.o-alifbo.hot { background: #fff1e6; box-shadow: inset 0 0 0 1.5px #ff6b00; }
.o-alifbo.pulse { animation: alifboPulse 1.6s ease-in-out infinite; }
@keyframes alifboPulse { 0%, 100% { box-shadow: inset 0 0 0 1.5px rgba(255, 107, 0, 0); background: transparent; } 50% { box-shadow: inset 0 0 0 1.5px #ff6b00; background: #fff1e6; } }
.pressed { transform: scale(.94); }
.o-ruler { height: 22px; flex: none; background: #f4f4f4; border-bottom: 1px solid #e0e0e0; display: flex; justify-content: center; }
.o-ruler-in { position: relative; width: 612px; height: 100%; background: #fff; box-shadow: inset 72px 0 0 #e9e9e9, inset -72px 0 0 #e9e9e9; }
.o-ruler-in i { position: absolute; bottom: 3px; width: 0; height: 6px; border-left: 1px solid #a9a9a9; font: 9px/1 -apple-system, sans-serif; font-style: normal; color: #777; }
.o-ruler-in i { text-indent: -3px; padding-top: 0; line-height: 0; }
.o-main { flex: 1; min-height: 0; display: flex; }
.o-doc { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #e8e8e8; }
.o-canvas { flex: 1; min-height: 0; overflow: hidden; display: flex; justify-content: center; padding-top: 20px; }
.o-page { width: 612px; min-height: 792px; flex: none; background: #fff; box-shadow: 0 0 0 1px #d6d6d6, 0 2px 8px rgba(0, 0, 0, .1); padding: 60px 72px; font: 14.5px/1.55 "Times New Roman", Times, serif; color: #111; text-align: left; }
.o-page h4 { font: 700 16px/1.3 "Times New Roman", serif; text-align: center; margin: 0 0 4px; letter-spacing: .03em; }
.o-page p { margin: 0 0 9px; }
.o-page .meta { text-align: center; font-size: 13px; color: #444; margin-bottom: 18px; }
.o-page .sign { margin-top: 20px; text-align: right; }
.o-page table { border-collapse: collapse; width: 100%; font-size: 13.5px; margin-top: 10px; }
.o-page td, .o-page th { border: 1px solid #9aa0a8; padding: 5px 8px; text-align: left; }
.o-page th { background: #dfe7f3; font-weight: 700; }
.o-page .sel { background: #b8d4fb; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: background .4s; }
.o-page .sel.off { background: transparent; }
.o-status { height: 25px; flex: none; display: flex; align-items: center; gap: 18px; padding: 0 14px; background: #f1f1f1; border-top: 1px solid #dcdcdc; font-size: 11.5px; color: #555; }
.o-status-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.zoom { display: flex; align-items: center; gap: 6px; }
.zoom i { position: relative; width: 90px; height: 2px; background: #9a9a9a; }
.zoom i::after { content: ""; position: absolute; left: 50%; top: -4px; width: 2px; height: 10px; background: #555; }

/* Office task pane with the real Alifbo panel */
.o-pane { width: 0; flex: none; overflow: hidden; background: #fff; border-left: 1px solid #d6d6d6; transition: width .55s cubic-bezier(.2, .8, .2, 1); }
.o-pane.open { width: 318px; }
.o-pane > * { width: 318px; }
.op-chrome { height: 36px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border-bottom: 1px solid #e6e6e6; font-size: 13px; color: #222; }
.op-chrome span { display: flex; gap: 12px; color: #666; }
.ap { font: 14px/1.45 "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif; color: #1b2128; }
.ap-top { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; }
.ap-top img { border-radius: 8px; }
.ap-title { display: flex; flex-direction: column; line-height: 1.2; }
.ap-title strong { font-size: 16px; }
.ap-title span { font-size: 12px; color: #6b7280; }
.ap-top em { margin-left: auto; font-style: normal; font-weight: 700; font-size: 12px; color: #fff; background: #ff6b00; padding: 4px 10px; border-radius: 99px; }
.ap-tabs { display: flex; gap: 4px; padding: 0 12px; border-bottom: 1px solid #e7e3dd; }
.ap-tabs span { flex: 1; text-align: center; padding: 10px 4px; font-weight: 600; color: #6b7280; border-bottom: 2px solid transparent; }
.ap-tabs .on { color: #1b2128; border-bottom-color: #ff6b00; }
.ap-body { padding: 14px 16px; }
.ap-label { font-weight: 600; margin-bottom: 6px; }
.ap-seg { display: flex; gap: 2px; padding: 3px; background: #f6f4f1; border-radius: 10px; }
.ap-seg span { flex: 1; text-align: center; padding: 7px 4px; border-radius: 8px; font-weight: 600; font-size: 13px; color: #6b7280; white-space: nowrap; transition: background .3s, color .3s; }
.ap-seg .on { background: #fff; color: #1b2128; box-shadow: 0 0 0 1px #e7e3dd; }
.ap-hint { color: #6b7280; font-size: 12.5px; margin: 6px 0 12px; }
.ap-btn { display: block; text-align: center; padding: 10px 14px; margin-bottom: 8px; border-radius: 10px; background: #f6f4f1; font-weight: 600; transition: transform .15s; }
.ap-btn.primary { background: #ff6b00; color: #fff; }
.ap-status { min-height: 20px; font-size: 13px; color: #138a4b; margin: 6px 0; }
.ap-usage { border-top: 1px solid #e7e3dd; margin-top: 12px; padding-top: 12px; }
.ap-usage div { display: flex; justify-content: space-between; font-size: 12.5px; color: #6b7280; margin-bottom: 6px; }
.ap-usage i { display: block; height: 6px; background: #f6f4f1; border-radius: 99px; overflow: hidden; }
.ap-usage b { display: block; height: 100%; width: 1%; background: #ff6b00; border-radius: 99px; transition: width .6s; }

/* Excel */
.x-fbar { height: 30px; flex: none; display: flex; align-items: center; background: #fff; border-bottom: 1px solid #d9d9d9; font-size: 12.5px; }
.x-name { width: 112px; height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 9px; border-right: 1px solid #dcdcdc; }
.x-fx { padding: 0 12px; font: italic 600 14px Georgia, serif; color: #7a7a7a; border-right: 1px solid #e4e4e4; }
.x-formula { padding: 0 10px; font-size: 13px; color: #222; }
.x-grid { position: relative; flex: 1; min-width: 0; overflow: hidden; background: #fff; }
.x-grid table { border-collapse: collapse; table-layout: fixed; font: 13.5px/1 "Aptos Narrow", Calibri, "Helvetica Neue", sans-serif; color: #111; }
.x-grid th { height: 22px; background: #f2f2f2; color: #5f5f5f; font-weight: 400; font-size: 12px; border: 1px solid #d8d8d8; text-align: center; }
.x-grid tr > th:first-child { width: 44px; }
.x-grid th.corner { width: 44px; }
.x-grid th.fill, .x-grid td.fill { width: 600px; }
.x-grid td { height: 25px; padding: 0 8px; border: 1px solid #e2e2e2; white-space: nowrap; overflow: hidden; }
.x-grid td.num { text-align: right; font-variant-numeric: tabular-nums; }
.x-grid td.hd { font-weight: 700; }
.x-grid td.kept { background: #eef7f1; }
.x-sel { position: absolute; border: 2px solid #107c41; background: rgba(16, 124, 65, .07); pointer-events: none; transition: all .35s ease; }
.x-sel::after { content: ""; position: absolute; right: -5px; bottom: -5px; width: 7px; height: 7px; background: #107c41; border: 1.5px solid #fff; }
.x-tabs { height: 30px; flex: none; display: flex; align-items: center; gap: 2px; padding: 0 10px; background: #f1f1f1; border-top: 1px solid #dcdcdc; font-size: 12.5px; color: #444; }
.x-nav { color: #999; font-size: 9px; margin-right: 10px; letter-spacing: 4px; }
.x-tab { padding: 5px 16px; }
.x-tab.on { background: #fff; color: #107c41; font-weight: 600; box-shadow: inset 0 -2px 0 #107c41; }
.x-add { padding: 0 10px; font-size: 16px; color: #666; }

/* Pointer */
.pointer { position: absolute; left: 0; top: 0; z-index: 30; pointer-events: none; transform: translate(640px, 500px); transition: transform .9s cubic-bezier(.45, .05, .2, 1); }
.pointer svg { display: block; }
.pointer.down::after { content: ""; position: absolute; left: -10px; top: -10px; width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid #ff6b00; animation: ripple .5s ease-out forwards; }
@keyframes ripple { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }

/* Steps visual frame */
.steps-visual { padding: 0; }
.case-visual { min-width: 0; }

@media (max-width: 640px) {
  .macbook { margin-top: 48px; }
  .screen-card { padding: 6px; border-radius: 18px; }
  .screen-card .stage-box { border-radius: 13px; }
}

/* Compact screen for the step and case cards: a bigger window, less desktop */
.stage.compact { width: 980px; height: 700px; }
.compact .o-win { left: 12px; right: 12px; top: 42px; bottom: 12px; width: auto; height: auto; }
.compact .rg.opt { display: none; }
.compact .o-search { width: 150px; }
.compact .o-search span { display: none; }
.compact .o-autosave { display: none; }
.compact .o-tabs { gap: 17px; }
.compact .o-tabs > span:nth-child(n+7):not(.o-tabs-right) { display: none; }
.compact .o-pill:not(.share) { display: none; }
.compact .menubar > span:nth-child(n+8):not(.mb-right) { display: none; }

/* Toast on the hero screen */
.toast { position: absolute; left: 50%; bottom: 74px; z-index: 25; transform: translate(-50%, 12px); opacity: 0; padding: 12px 22px; border-radius: 999px; background: rgba(28, 28, 30, .86); color: #fff; font: 600 19px/1 -apple-system, BlinkMacSystemFont, sans-serif; letter-spacing: -.01em; white-space: nowrap; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: opacity .45s ease, transform .45s ease; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ============ Feature cards: small Mac windows, as in the sample ============ */
.feat-art { display: block; background: none; }
.fw { position: absolute; background: #fff; border-radius: 11px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 10px 30px rgba(0, 0, 0, .08); overflow: hidden; font: 13px/1.45 -apple-system, BlinkMacSystemFont, sans-serif; color: #1d1d1f; }
.fw.active { box-shadow: 0 0 0 2px #2f7cf6, 0 10px 30px rgba(0, 0, 0, .1); }
.fw-bar { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; border-bottom: 1px solid #efefef; background: #fbfbfb; font-size: 12px; font-weight: 600; white-space: nowrap; }
.fw-bar .lights { gap: 5px; margin-right: 3px; }
.fw-bar .lights i { width: 8px; height: 8px; box-shadow: none; }
.glyph { width: 15px; height: 15px; border-radius: 4px; display: grid; place-items: center; color: #fff; font: 800 9px/1 -apple-system, sans-serif; flex: none; }
.glyph.word { background: #185abd; } .glyph.excel { background: #107c41; }
.glyph img { width: 15px; height: 15px; border-radius: 4px; }
.fw-body { padding: 12px 14px; }
.sk { display: block; height: 6px; border-radius: 3px; background: #ececef; margin: 0 0 7px; }
.sk.dark { background: #d9d9de; height: 7px; }
.fw-text { font: 15px/1.5 Georgia, "Times New Roman", serif; color: #111; margin: 4px 0 8px; }
.fw-big { font: 700 34px/1.12 Georgia, "Times New Roman", serif; letter-spacing: -.01em; margin: 6px 0 10px; }
.fw-big .c1 { color: #ff6b00; }
.fw-big .u { font-style: italic; font-weight: 400; text-decoration: underline; text-decoration-color: #2f7cf6; text-underline-offset: 5px; }
.lnk { color: #2f6fe4; text-decoration: underline; text-underline-offset: 2px; }
.cur { position: absolute; z-index: 3; width: 20px; height: 20px; pointer-events: none; }
.keycap { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 7px; background: #1d1d1f; color: #fff; font: 600 11.5px/1 -apple-system, sans-serif; white-space: nowrap; }
.keycap svg { width: 12px; height: 12px; }
.keycap.ok { background: #fff; color: #138a4b; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.fx-row { display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px; border-bottom: 1px solid #efefef; font: 11.5px ui-monospace, SFMono-Regular, Menlo, monospace; color: #444; }
.fx-row i { font: italic 600 12px Georgia, serif; color: #888; }
.fw .mini-sheet { width: 100%; }
.fw .mini-sheet td, .fw .mini-sheet th { padding: 6px 8px; font-size: 12.5px; }
.fw .mini-sheet .fx { outline: 2px solid #107c41; outline-offset: -2px; }
.fw .mini-sheet td.kept { background: #eef7f1; }
.ex-row { display: flex; align-items: center; justify-content: space-between; height: 30px; padding: 0 10px; margin-bottom: 6px; border-radius: 8px; background: #f6f4f1; font-size: 12.5px; }
.ex-row svg { color: #ff6b00; }
.ex-add { display: flex; gap: 6px; margin-top: 4px; }
.ex-add span { flex: 1; height: 28px; border: 1px solid #e3e3e6; border-radius: 8px; padding: 0 9px; display: flex; align-items: center; color: #aaa; font-size: 12px; }
.ex-add b { height: 28px; padding: 0 10px; border-radius: 8px; background: #ff6b00; color: #fff; display: flex; align-items: center; font-size: 12px; }
.ap-mini-tabs { display: flex; gap: 14px; padding: 8px 14px 0; border-bottom: 1px solid #efefef; font-size: 11.5px; font-weight: 600; color: #8a8a8f; }
.ap-mini-tabs span { padding-bottom: 7px; }
.ap-mini-tabs .on { color: #1d1d1f; box-shadow: inset 0 -2px 0 #ff6b00; }
.arrow-pill { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); display: inline-flex; gap: 6px; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: #1d1d1f; color: #fff; font: 600 12px/1 -apple-system, sans-serif; white-space: nowrap; }

/* ============ Motion, matched to the sample ============ */
:root { --ease: cubic-bezier(.22, 1, .36, 1); --spring: cubic-bezier(.32, .72, 0, 1); }
/* Reveal: rise 40px and fade in over 1s, staggered per section through --d. */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.ink { color: var(--ink); }
.ink-dark { color: #f5f5f7; }

/* Story text: the old step fades out first, then the new one rises in. */
.step-copy { transition: opacity .28s ease, transform .28s ease; transform: translateY(14px); }
.step-copy.on { transition: opacity .7s var(--ease) .3s, transform .7s var(--ease) .3s; }

/* Selection sweeps across the line, as when dragging the mouse over text. */
.o-page .sel { background: linear-gradient(#b8d4fb, #b8d4fb) no-repeat 0 0 / 100% 100%; transition: background-size .9s var(--ease); }
.o-page .sel.off { background-size: 0% 100%; background-color: transparent; }

/* MacBook tiling: windows move and resize with a spring-like curve. */
.mbp .o-win { transition: left .75s var(--spring), top .75s var(--spring), width .75s var(--spring), height .75s var(--spring), border-radius .75s var(--spring), transform .75s var(--spring), box-shadow .3s ease; }
.mbp .o-win.top-half { left: 6px; top: 33px; width: 1268px; height: 393px; border-radius: 10px; }
.mbp .o-win.bottom-half { left: 6px; top: 432px; width: 1268px; height: 393px; border-radius: 10px; }
.mbp .o-win.bottom-half.closed { transform: translateY(110%); }
.mbp .o-win.focus { box-shadow: 0 0 0 2.5px #2f7cf6; }

/* Feature cards: a moving Excel selection and a typing field. */
.cell-cursor { position: absolute; z-index: 2; border: 2px solid #107c41; pointer-events: none; transition: left .35s var(--spring), top .35s var(--spring), width .35s var(--spring), height .35s var(--spring); }
.ex-row.new { animation: rowIn .55s var(--ease); }
@keyframes rowIn { from { opacity: 0; transform: translateY(-10px); max-height: 0; } to { opacity: 1; transform: none; max-height: 40px; } }
.ex-add span.typing { color: #1d1d1f; }
.ex-add span.typing::after { content: ""; width: 1px; height: 14px; background: #1d1d1f; margin-left: 1px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.tip { position: absolute; z-index: 3; opacity: 0; transform: translateY(6px) scale(.96); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.tip.on { opacity: 1; transform: none; }
.cur { transition: left .8s var(--spring), top .8s var(--spring); }

/* Final: scattered documents gather into the Alifbo icon as you scroll. */
.final { padding: 0; overflow: clip; }
.final-track { position: relative; height: 300vh; }
.final-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; place-items: center; }
.final-stage .scatter { position: absolute; inset: 0; height: auto; max-width: none; }
.final-stage .sdoc { transition: none; will-change: transform, opacity; }
.familiar { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; white-space: nowrap; font: 700 clamp(44px, 7vw, 88px)/1 var(--display); letter-spacing: -.03em; color: #f5f5f7; }
.final-copy { position: relative; z-index: 3; padding: 0 24px; text-align: center; }
.final-copy .final-icon { margin: 0 auto 36px; will-change: transform, opacity; }
.final-copy .fc { will-change: transform, opacity; }
.final-glow { position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; transform: translate(-50%, -62%); background: radial-gradient(closest-side, rgba(255, 255, 255, .09), transparent); pointer-events: none; opacity: 0; }
@media (max-width: 640px) {
  .final-track { height: 260vh; }
  .familiar { font-size: 40px; }
}
/* Half-height tiles collapse the ribbon (as Office does when space is short) so the content shows. */
.o-ribbon, .o-ruler { overflow: hidden; transition: height .6s var(--spring), padding .6s var(--spring); }
.mbp .o-win.top-half .o-ribbon, .mbp .o-win.bottom-half .o-ribbon { height: 0; padding-top: 0; padding-bottom: 0; border-width: 0; }
.mbp .o-win.top-half .o-ruler { height: 0; border-width: 0; }
.mbp .o-win.top-half .ap-top, .mbp .o-win.bottom-half .ap-top, .mbp .o-win.top-half .ap-hint, .mbp .o-win.bottom-half .ap-hint { display: none; }

/* ============ Install demo: Safari, Word's Insert ribbon, add-in dialogs ============ */
.sf-win { position: absolute; left: 0; top: 27px; width: 1280px; height: 804px; display: flex; flex-direction: column; background: #fff; font: 13px/1.4 -apple-system, BlinkMacSystemFont, sans-serif; color: #1d1d1f; transition: transform .75s var(--spring); }
.sf-win.closed { transform: translateY(101%); }
.sf-bar { height: 52px; flex: none; display: flex; align-items: center; gap: 16px; padding: 0 16px; background: #f6f6f6; border-bottom: 1px solid #e2e2e2; color: #6b6b70; }
.sf-addr { margin: 0 auto; width: 520px; height: 32px; border-radius: 9px; background: #e9e9ec; display: flex; align-items: center; justify-content: center; gap: 6px; color: #3a3a3c; font-size: 13.5px; }
.sf-dl { position: relative; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; }
.sf-dl.on { background: #e3e3e8; color: #2f7cf6; }
.sf-page { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; }
.sf-page img { border-radius: 18px; }
.sf-page h1 { margin: 6px 0 0; font: 700 48px/1.05 -apple-system, sans-serif; letter-spacing: -.03em; }
.sf-page p { margin: 0; color: #6e6e73; font-size: 18px; }
.sf-btn { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px; background: #1d1d1f; color: #fff; font: 600 16px/1 -apple-system, sans-serif; transition: transform .15s; }
.sf-pop { position: absolute; right: 14px; top: 58px; width: 360px; padding: 12px; border-radius: 12px; background: rgba(250, 250, 252, .97); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .2), 0 14px 40px rgba(0, 0, 0, .18); opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.sf-pop.on { opacity: 1; transform: none; }
.sf-pop h6 { margin: 0 0 10px; font: 600 13px -apple-system, sans-serif; }
.sf-file { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; background: #fff; }
.sf-file .doc { width: 34px; height: 42px; border-radius: 4px; background: #fff; box-shadow: 0 0 0 1px #d9d9de; display: grid; place-items: end center; padding-bottom: 5px; font: 700 8px -apple-system, sans-serif; color: #ff6b00; }
.sf-file b { display: block; font-size: 13px; }
.sf-file small { color: #8a8a8f; font-size: 11.5px; }
.sf-prog { height: 4px; border-radius: 99px; background: #e3e3e8; margin-top: 6px; overflow: hidden; }
.sf-prog i { display: block; height: 100%; width: 0; background: #2f7cf6; border-radius: 99px; transition: width 1.1s ease; }

.o-ribbon.ins { display: none; }
.o-win.ins-mode .o-ribbon.home { display: none; }
.o-win.ins-mode .o-ribbon.ins { display: flex; }
.o-big.addins { position: relative; }
.o-big.addins.open { background: var(--acc-soft); }
.menu { position: absolute; z-index: 20; width: 190px; padding: 5px; border-radius: 9px; background: rgba(250, 250, 252, .98); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .25), 0 10px 30px rgba(0, 0, 0, .18); font: 13px/1 -apple-system, sans-serif; opacity: 0; transform: translateY(-4px); transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
.menu.on { opacity: 1; transform: none; }
.menu div { padding: 8px 10px; border-radius: 5px; display: flex; gap: 8px; align-items: center; }
.menu div.hl { background: #2f7cf6; color: #fff; }
.dlg-back { position: absolute; inset: 0; z-index: 15; background: rgba(0, 0, 0, .22); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.dlg-back.on { opacity: 1; }
.dlg { position: absolute; z-index: 16; left: 50%; top: 50%; background: #fff; border-radius: 10px; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .25), 0 24px 60px rgba(0, 0, 0, .3); font: 13px/1.4 "Segoe UI", -apple-system, sans-serif; color: #222; opacity: 0; transform: translate(-50%, -46%) scale(.97); transition: opacity .3s var(--ease), transform .3s var(--ease); pointer-events: none; }
.dlg.on { opacity: 1; transform: translate(-50%, -50%); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; font-size: 17px; font-weight: 600; }
.dlg-tabs { display: flex; gap: 24px; padding: 0 20px; border-bottom: 1px solid #e3e3e3; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: #666; }
.dlg-tabs span { padding: 0 0 9px; }
.dlg-tabs .on { color: #185abd; box-shadow: inset 0 -2px 0 #185abd; }
.dlg-tabs .up { margin-left: auto; color: #185abd; letter-spacing: 0; font-size: 13px; display: flex; gap: 6px; align-items: center; padding: 0 6px 9px; border-radius: 4px; }
.dlg-tabs .up.hl { background: #e5edf9; }
.dlg-body { padding: 40px 20px; text-align: center; color: #777; }
.dlg-row { display: flex; gap: 8px; padding: 6px 20px 0; }
.dlg-row .field { flex: 1; height: 32px; border: 1px solid #c8c8c8; border-radius: 4px; display: flex; align-items: center; padding: 0 10px; color: #222; }
.dlg-row .field.empty { color: #999; }
.dlg-btn { height: 32px; padding: 0 16px; border-radius: 4px; display: inline-flex; align-items: center; border: 1px solid #c8c8c8; background: #fff; font-weight: 600; transition: transform .15s; }
.dlg-btn.primary { background: #185abd; border-color: #185abd; color: #fff; }
.dlg-btn.disabled { opacity: .45; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 22px 20px 18px; }
.o-alifbo.hidden-btn { width: 0; min-width: 0; padding: 0; opacity: 0; transform: scale(.6); overflow: hidden; }
.o-alifbo.appear { animation: popIn .7s var(--spring); }
@keyframes popIn { 0% { opacity: 0; transform: scale(.6); } 60% { opacity: 1; transform: scale(1.08); } 100% { transform: none; } }

/* ============ Install: Windows 11, Edge, Word for Windows, Word for the web ============ */
.monitor { width: min(1100px, calc(100% - 32px)); margin: 80px auto 0; }
.mon-screen { background: #0e0e10; padding: 1.3%; border-radius: 1.8% / 2.8%; box-shadow: inset 0 0 0 1.5px #2a2a2e; }
.mon-screen .stage-box { border-radius: 4px; }
.mon-neck { width: 16%; height: 54px; margin: 0 auto; background: linear-gradient(90deg, #a9a9ae, #d8d8dc 50%, #a9a9ae); }
.mon-foot { width: 32%; height: 12px; margin: 0 auto; border-radius: 8px 8px 3px 3px; background: linear-gradient(#d8d8dc, #b4b4b9); }
.frame-hidden { display: none !important; }
.stage.mon { height: 800px; }
.win { font-family: "Segoe UI", -apple-system, sans-serif; }
.win-wall { position: absolute; inset: 0; background:
  radial-gradient(40% 55% at 50% 58%, #7fb8ff 0%, rgba(127, 184, 255, 0) 70%),
  radial-gradient(60% 70% at 30% 40%, #3f7fe6 0%, rgba(63, 127, 230, 0) 70%),
  linear-gradient(160deg, #0f3b8f 0%, #1555c0 50%, #0b2f73 100%); }
.taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 48px; z-index: 12; display: flex; align-items: center; justify-content: center; background: rgba(240, 242, 246, .88); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-top: 1px solid rgba(0, 0, 0, .06); }
.tb-icons { display: flex; gap: 6px; }
.tb-i { width: 40px; height: 40px; border-radius: 6px; display: grid; place-items: center; font-style: normal; position: relative; }
.tb-i.on { background: rgba(255, 255, 255, .7); }
.tb-i.on::after { content: ""; position: absolute; bottom: 2px; width: 16px; height: 3px; border-radius: 3px; background: #1a73e8; }
.tb-tray { position: absolute; right: 14px; display: flex; align-items: center; gap: 14px; color: #222; }
.tb-clock { font-size: 11.5px; line-height: 1.3; text-align: right; }
.mon .o-win, .mon .sf-win, .mon .ed-win { left: 0; top: 0; width: 1280px; height: 752px; border-radius: 0; box-shadow: none; }
.o-title.win { background: #f3f3f3; gap: 14px; padding-right: 0; }
.o-appicon { width: 22px; height: 22px; border-radius: 4px; background: #185abd; color: #fff; display: grid; place-items: center; font: 800 12px/1 "Segoe UI", sans-serif; }
.win-ctl { display: flex; align-self: stretch; margin-left: 6px; }
.win-ctl i { width: 46px; display: grid; place-items: center; font-style: normal; font-size: 12px; color: #333; }
.o-tabs .file { color: #333; }
.o-win.os-win .o-tabs > span.on { color: #185abd; }

/* Edge */
.ed-win { position: absolute; display: flex; flex-direction: column; background: #fff; font: 13px/1.4 "Segoe UI", sans-serif; color: #1d1d1f; transition: transform .75s var(--spring); }
.ed-win.closed { transform: translateY(101%); }
.ed-tabs { height: 40px; flex: none; display: flex; align-items: flex-end; gap: 6px; padding-left: 10px; background: #e8ecf2; }
.ed-tab { height: 32px; width: 260px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 8px 8px 0 0; background: #fff; font-size: 12.5px; }
.ed-tab img { border-radius: 3px; }
.ed-tab i { margin-left: auto; font-style: normal; color: #777; }
.ed-tabs .plus { align-self: center; color: #555; font-size: 18px; padding: 0 8px; }
.ed-tabs .win-ctl { margin-left: auto; align-self: stretch; }
.ed-bar { height: 44px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 14px; border-bottom: 1px solid #e3e3e3; color: #555; }
.ed-addr { flex: 1; height: 30px; border-radius: 999px; background: #f1f3f5; display: flex; align-items: center; gap: 8px; padding: 0 14px; color: #333; }
.ed-dl { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; }
.ed-dl.on { background: #e3eefc; color: #1a73e8; }
.ed-pop { position: absolute; right: 12px; top: 90px; width: 360px; padding: 14px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1), 0 12px 32px rgba(0, 0, 0, .18); opacity: 0; transform: translateY(-6px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.ed-pop.on { opacity: 1; transform: none; }
.ed-pop h6 { margin: 0 0 10px; font: 600 14px "Segoe UI", sans-serif; }
.ed-pop .open-link { display: block; margin-top: 6px; color: #1a73e8; font-size: 12.5px; }

/* Word for the web, inside a browser window */
.ww { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #fff; font: 13px/1.3 "Segoe UI", -apple-system, sans-serif; color: #242424; }
.ww-head { height: 48px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 14px; background: #fff; border-bottom: 1px solid #e6e6e6; }
.ww-waffle { width: 20px; height: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.ww-waffle i { background: #444; border-radius: 1px; }
.ww-app { font: 600 16px "Segoe UI", sans-serif; color: #185abd; }
.ww-doc { color: #444; }
.ww-search { margin: 0 auto; width: 420px; height: 32px; border-radius: 6px; background: #f3f3f3; display: flex; align-items: center; gap: 8px; padding: 0 10px; color: #777; }
.ww-share { height: 30px; padding: 0 14px; border-radius: 6px; background: #185abd; color: #fff; display: flex; align-items: center; font-weight: 600; }
.ww-tabs { height: 38px; flex: none; display: flex; align-items: flex-end; gap: 22px; padding: 0 16px; }
.ww-tabs span { padding-bottom: 9px; color: #444; }
.ww-tabs span.on { color: #185abd; font-weight: 600; box-shadow: inset 0 -3px 0 #185abd; }
.ww-ribbon { height: 46px; flex: none; margin: 0 10px 8px; padding: 0 10px; display: flex; align-items: center; gap: 4px; border-radius: 8px; background: #f5f5f5; }
.ww-ribbon .sep { width: 1px; height: 22px; background: #d6d6d6; margin: 0 6px; }
.ww-btn { height: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; border-radius: 5px; color: #242424; white-space: nowrap; transition: background .2s, transform .15s; }
.ww-btn.right { margin-left: auto; }
.ww-btn.open, .ww-btn.hl { background: #e1e8f5; }
.ww-btn.o-alifbo { flex-direction: row; font-weight: 600; }
.ww-btn.o-alifbo img { width: 20px; height: 20px; }
.ww .o-main { flex: 1; min-height: 0; }
.ww .o-doc { background: #f3f3f3; }
/* Excel colours in the install demo */
.o-win.excel .o-appicon { background: #107c41; }
.o-win.excel.os-win .o-tabs > span.on { color: #107c41; }
.ww.excel .ww-app { color: #107c41; }
.ww.excel .ww-share { background: #107c41; }
.ww.excel .ww-tabs span.on { color: #107c41; box-shadow: inset 0 -3px 0 #107c41; }
.ww.excel .ww-btn.open, .ww.excel .ww-btn.hl { background: #e3f2ea; }
.ww .x-grid { flex: 1; }

/* Finder (Mac install path through the wef folder) */
.fd-win { position: absolute; left: 230px; top: 120px; width: 820px; height: 500px; z-index: 6; display: flex; flex-direction: column; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .3), 0 22px 60px rgba(0, 0, 0, .35); font: 13px/1.3 -apple-system, BlinkMacSystemFont, sans-serif; color: #1d1d1f; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.fd-win.closed { opacity: 0; transform: scale(.96); pointer-events: none; }
.fd-bar { height: 52px; flex: none; display: flex; align-items: center; gap: 16px; padding: 0 16px; background: #f6f6f6; border-bottom: 1px solid #e3e3e3; }
.fd-bar b { font-size: 14px; }
.fd-nav { display: flex; gap: 10px; color: #8a8a8f; }
.fd-main { flex: 1; display: flex; min-height: 0; }
.fd-side { width: 190px; flex: none; padding: 14px 10px; background: #f2f2f5; display: flex; flex-direction: column; gap: 2px; }
.fd-side small { color: #8a8a8f; font-size: 11px; font-weight: 600; padding: 0 8px 6px; }
.fd-side span { padding: 6px 8px; border-radius: 6px; }
.fd-side span.on { background: #dcdce2; }
.fd-content { flex: 1; padding: 28px; display: flex; align-items: flex-start; }
.fd-file { width: 140px; padding: 10px 6px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 12px; }
.fd-file .doc { width: 58px; height: 72px; border-radius: 5px; background: #fff; box-shadow: 0 0 0 1px #d4d4da; display: grid; place-items: end center; padding-bottom: 8px; font: 700 11px -apple-system, sans-serif; color: #ff6b00; }
.fd-file.sel { background: #dbe7fb; }
.fd-file.pasted { animation: popIn .6s var(--spring); }
.fd-sheet { position: absolute; left: 50%; top: 52px; width: 560px; padding: 18px 20px 14px; background: #fafafc; border-radius: 0 0 12px 12px; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .2), 0 16px 40px rgba(0, 0, 0, .2); transform: translate(-50%, -110%); opacity: 0; transition: transform .35s var(--ease), opacity .25s ease; }
.fd-sheet.on { transform: translate(-50%, 0); opacity: 1; }
.fd-sheet b { display: block; font-size: 13px; margin-bottom: 10px; }
.fd-input { height: 32px; display: flex; align-items: center; padding: 0 10px; border-radius: 6px; background: #fff; box-shadow: 0 0 0 3px rgba(47, 124, 246, .35), 0 0 0 1px #2f7cf6; font: 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; overflow: hidden; }
.fd-sheet-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.menu .menu-h { display: block; padding: 6px 10px 4px; font-size: 11px; font-weight: 600; color: #8a8a8f; }
.menu div { justify-content: flex-start; }
.menu kbd { margin-left: auto; font: 12px -apple-system, sans-serif; color: inherit; opacity: .6; }
.menu { width: 220px; }
/* Home ribbon width: four styles, and none in the small cards, so Add-ins and Alifbo always fit. */
.st { width: 84px; }
.compact .styles-g { display: none; }
#installStageMac .rg.opt, #installStageWin .rg.opt { display: none; }

/* Panel mockup: same style as the real add-in (site style: pills, black action, grey surfaces) */
.ap { font: 14px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif; letter-spacing: -.01em; color: #1d1d1f; }
.ap-top { gap: 12px; padding: 18px 18px 14px; }
.ap-top img { width: 36px; height: 36px; border-radius: 23%; }
.ap-title strong { font: 700 19px/1.15 -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif; letter-spacing: -.02em; }
.ap-title span { font-size: 12.5px; color: #6e6e73; margin-top: 2px; }
.ap-top em { font-weight: 600; font-size: 12.5px; padding: 5px 12px; }
.ap-tabs { margin: 0 18px; padding: 3px; gap: 2px; border: 0; border-radius: 999px; background: #ececf0; }
.ap-tabs span { padding: 8px 6px; border-radius: 999px; border: 0; font-weight: 500; font-size: 13.5px; color: #424245; }
.ap-tabs .on { background: #fff; color: #1d1d1f; font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); border: 0; }
.ap-body { padding: 20px 18px; }
.ap-label { font: 600 15px/1.3 -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif; margin-bottom: 10px; }
.ap-seg { background: #ececf0; border-radius: 999px; padding: 3px; }
.ap-seg span { border-radius: 999px; padding: 8px 4px; font-weight: 500; color: #424245; }
.ap-seg .on { background: #fff; color: #1d1d1f; font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.ap-hint { color: #6e6e73; margin: 8px 2px 16px; }
.ap-btn { border-radius: 999px; padding: 12px 16px; font-size: 14.5px; background: #f5f5f7; color: #1d1d1f; }
.ap-btn.primary { background: #ff6b00; color: #fff; }
.ap-status { color: #1a8f4d; margin: 10px 2px; }
.ap-usage { margin-top: 18px; padding: 14px 16px; border: 0; border-radius: 16px; background: #f5f5f7; }
.ap-usage div { margin-bottom: 8px; }
.ap-usage .ap-used { color: #424245; font-variant-numeric: tabular-nums; }
.ap-usage i { background: #ececf0; }
.ap-usage b { background: #1d1d1f; }
.o-pane.open { width: 340px; }
.o-pane > * { width: 340px; }
/* Mockup tabs: text tabs with an underline, like the real panel */
.ap-tabs { display: flex; gap: 22px; margin: 0 18px; padding: 0; border-radius: 0; background: none; border-bottom: 1px solid #e5e5ea; }
.ap-tabs span { flex: none; padding: 10px 0 11px; margin-bottom: -1px; border-radius: 0; font-weight: 500; font-size: 14px; color: #6e6e73; border-bottom: 2px solid transparent; }
.ap-tabs .on { background: none; box-shadow: none; color: #1d1d1f; font-weight: 600; border-bottom: 2px solid #1d1d1f; }
/* Sections with controls under the laptop: only the lid. macbook-lid-*.webp is the same frame without the
   base, its bottom edge a mirror of the top (2400×1307), so the screen box is re-measured against it. */
.macbook.lid .mb-screen { top: 2.525%; height: 95.18%; }
/* The lid and the controls under it fit on one screen: the laptop shrinks on short windows. */
/* --below = what sits under the laptop (controls + hint) + the sticky nav + a little air, measured per section. */
.macbook.lid { --below: 230px; width: min(1100px, calc(100% - 32px), calc((100svh - var(--below)) * 2400 / 1307)); }
#hajm .macbook.lid { --below: 180px; }
#installMacFrame { --below: 330px; }
#installWinFrame { width: min(1100px, calc(100% - 32px), calc((100svh - 330px) * 1.6)); }
.macbook.lid + .wrap .controls, #installControls { margin-top: 28px; }

/* Nav: contact (bot) and download. On phones the add-in cannot run, so only contact stays. */
.nav-cta { display: flex; gap: 8px; align-items: center; flex: none; }
.nav-cta .btn { gap: 6px; }
.nav.on-dark .nav-cta .btn-ghost { background: rgba(255, 255, 255, .14); color: #f5f5f7; }
@media (max-width: 640px) { .nav-dl { display: none; } }

/* Shorter plan cards: tighter spacing and a smaller price. */
.plan { padding: 26px 26px 22px; }
.plan .price { font-size: 34px; margin-top: 8px; }
.plan .per { margin-top: 2px; }
.plan .tagline { margin: 8px 0 16px; font-size: 15px; }
.plan ul { padding-top: 14px; margin-top: 18px; font-size: 14.5px; }
.plan li { margin: 6px 0; line-height: 1.4; }
.plan li::before { top: 2px; }

/* Hero laptop: leans back in 3D and straightens as it scrolls up (landing.js heroTilt). */
.macbook[data-tilt] { transform-origin: 50% 100%; will-change: transform; transform: perspective(1600px) rotateX(18deg) scale(.87); }
@media (prefers-reduced-motion: reduce) { .macbook[data-tilt] { transform: none; } }

/* Converter cards keep one height; long text scrolls inside instead of stretching the page. */
.conv-card { height: 440px; min-height: 0; }
.conv-card textarea, .conv-card output { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 960px) { .conv-card { height: 320px; } }
