/* ==========================================================================
   Plinth landing page.
   White product page; one painted surface (the room sketch) behind the preview.
   Shape rule: controls are pills, cards and frames 20px, small surfaces 12px.
   One accent: the app's blue. Type: DM Sans, the same as the app.
   Layers: page 0 / window 2 / nav 20 / toast, skip link 30
   ========================================================================== */

@font-face { font-family: "DM Sans"; src: url(assets/fonts/dm-sans.woff2) format("woff2"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(assets/fonts/dm-sans-italic.woff2) format("woff2"); font-weight: 100 1000; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(assets/fonts/dm-sans-ext.woff2) format("woff2"); font-weight: 100 1000; font-display: swap; unicode-range: U+0100-02BA, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F; }

:root {
  --ink: #10141a;
  --ink-2: #3d4652;
  --ink-3: #5d6773;
  --paper: #ffffff;
  --mist: #f4f6f7;
  --line: rgb(16 20 26 / 0.1);
  --accent: #2b6485;
  --r-pill: 999px;
  --r-card: 20px;
  --r-small: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif; font-optical-sizing: auto; font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, figure, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.15; text-wrap: balance; }
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 550; }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.012em; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 30; padding: 10px 16px; border-radius: var(--r-pill); background: var(--ink); color: #fff; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border: 1px solid transparent; border-radius: var(--r-pill); font-weight: 550; white-space: nowrap; transition: background-color .2s, border-color .2s, transform .2s var(--ease), box-shadow .3s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn i { transition: transform .3s var(--ease); }
.btn:hover .ph-arrow-right { transform: translateX(3px); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 15px; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { box-shadow: 0 10px 24px -10px rgb(16 20 26 / .5); }
.btn--line { border-color: rgb(16 20 26 / .18); background: #fff; }
.btn--line:hover { border-color: var(--ink); }
.btn--paper { background: #fff; color: var(--ink); }
.btn--ghost { border-color: rgb(255 255 255 / .55); color: #fff; }
.btn--ghost:hover { background: rgb(255 255 255 / .12); border-color: #fff; }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgb(255 255 255 / .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.is-stuck { border-color: var(--line); }
.nav-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; justify-self: start; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 19px; }
.brand-mark--sm { width: 28px; height: 28px; font-size: 16px; }
.nav-links { display: flex; gap: 30px; font-size: 15px; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 18px; justify-self: end; font-size: 15px; }
.nav-login:hover { color: var(--accent); }
.nav-toggle, .nav-login-narrow { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(36px, 5vw, 64px); }
/* the drafting grid of the app, fading out behind the headline */
.hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 620px; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; opacity: .55; -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, transparent 25%, #000 60%, transparent 85%); mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, transparent 25%, #000 60%, transparent 85%); }
.hero-copy { text-align: center; max-width: 940px; }
h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 550; letter-spacing: -0.035em; line-height: 1.14; }
.measure { position: relative; display: inline-block; white-space: nowrap; }
.chip { display: inline-block; padding: 0 .18em .06em; border-radius: var(--r-small); background: linear-gradient(rgb(14 44 50 / .2), rgb(14 44 50 / .2)), #4d7d72 url(assets/art/chip.webp) center / cover; color: #fff; font-style: italic; line-height: 1.16; text-shadow: 0 1px 10px rgb(8 28 34 / .65); }
/* a dimension line, measured out under the words */
.dimline { position: absolute; left: 0; right: 0; bottom: -13px; height: 11px; color: var(--ink-3); background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat; }
.dimline::before, .dimline::after { content: ""; position: absolute; top: 0; width: 1px; height: 11px; background: currentColor; box-shadow: 0 0 0 .2px currentColor; }
.dimline::before { left: 0; }
.dimline::after { right: 0; }
.lede { max-width: 62ch; margin: 32px auto 0; color: var(--ink-3); font-size: clamp(16px, 1.4vw, 18px); text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }

/* ---------- Preview stage: tabs on a notch, painted room behind, app window in front ---------- */
.stage { --bump: 56px; position: relative; margin-top: 44px; padding-top: var(--bump); aspect-ratio: 1200 / 731; }
.stage-art { position: absolute; inset: 0; overflow: hidden; border-radius: var(--r-card); background: #f7f6f2; box-shadow: inset 0 0 0 1px rgb(16 20 26 / .06); }
.stage-art.is-shaped { border-radius: 0; }
/* the kitchen sketch: pencil over a watercolour revealed through brush strokes */
.kitchen { position: absolute; inset: 0; width: 100%; height: 100%; }
.kitchen .pencil { fill: none; stroke: #2f3439; stroke-linecap: round; stroke-linejoin: round; opacity: .82; }

.tabs { position: absolute; top: 12px; left: 50%; translate: -50% 0; z-index: 2; display: flex; gap: 8px; }
.tabs button { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 8px; border-radius: var(--r-pill); background: rgb(255 255 255 / .55); font-size: 14px; font-weight: 550; white-space: nowrap; transition: background-color .25s, transform .2s var(--ease), box-shadow .25s; }
.tabs button:hover { background: rgb(255 255 255 / .85); }
.tabs button:active { transform: scale(.97); }
.tabs button[aria-selected="true"] { background: #fff; box-shadow: 0 6px 18px -8px rgb(16 20 26 / .45); }
.tabs button::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(var(--progress, 0)); transform-origin: left; }
.tab-ico { display: grid; place-items: center; width: 24px; height: 24px; border-radius: var(--r-pill); color: #fff; font-size: 14px; }
.tab-ico--blue { background: #2b6485; }
.tab-ico--plum { background: #7a4f7d; }
.tab-ico--clay { background: #a8572f; }
.tab-ico--moss { background: #3f7356; }

.window { position: absolute; left: 11%; width: 78%; bottom: 0; z-index: 1; overflow: hidden; border-radius: 16px 16px 0 0; background: #fff; box-shadow: 0 0 0 1px rgb(255 255 255 / .6), 0 10px 50px -10px rgb(16 32 44 / .5); clip-path: inset(-60px -60px 0 -60px); }
.window-bar { display: flex; align-items: center; justify-content: center; position: relative; height: 34px; border-bottom: 1px solid var(--line); }
.window-url { padding: 0 14px; border-radius: var(--r-pill); background: var(--mist); color: var(--ink-3); font-size: 12px; line-height: 22px; }
.window-play { position: absolute; right: 8px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: var(--r-pill); color: var(--ink-2); }
.window-play:hover { background: var(--mist); }
.window-screen { position: relative; aspect-ratio: 16 / 10; background: #edf0f2; }
.window-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; cursor: pointer; }
.window-screen video.is-on { opacity: 1; visibility: visible; }
.stage-note { margin-top: 12px; text-align: center; color: var(--ink-3); font-size: 13px; }

/* ---------- Four steps along a measuring tape ---------- */
.steps-section { padding-block: clamp(48px, 6vw, 80px) clamp(24px, 4vw, 48px); }
.tape { position: relative; height: 26px; margin-bottom: 18px; }
.tape-blade { position: absolute; left: 0; right: 30px; top: 5px; height: 16px; border-radius: 3px 0 0 3px; background:
  repeating-linear-gradient(90deg, rgb(16 20 26 / .75) 0 1px, transparent 1px 60px) left bottom / 100% 11px no-repeat,
  repeating-linear-gradient(90deg, rgb(16 20 26 / .45) 0 1px, transparent 1px 12px) left bottom / 100% 6px no-repeat,
  #f0d27c; }
.tape-blade::before { content: ""; position: absolute; left: -3px; top: -3px; width: 5px; height: 22px; border-radius: 2px; background: #6b747e; }
.tape-case { position: absolute; right: 0; top: -3px; display: grid; place-items: center; width: 34px; height: 32px; border-radius: 10px; background: var(--ink); color: #f0d27c; font-size: 17px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.steps li { padding: 4px 24px 4px 20px; border-left: 1px solid var(--line); }
.steps li:first-child { border-left: 2px solid var(--accent); }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-3); font-size: 15px; }

/* ---------- Features ---------- */
.feature { display: grid; grid-template-columns: 5fr 7fr; align-items: center; gap: clamp(32px, 6vw, 88px); padding-block: clamp(40px, 5.5vw, 72px); }
.feature--flip { grid-template-columns: 7fr 5fr; }
.feature--flip .feature-text { order: 2; }
.feature-text h2 { margin-bottom: 16px; }
.feature-text > p { color: var(--ink-3); max-width: 46ch; }

/* each visual sits on a wash of the same paint as the room above */
.feature-visual { position: relative; overflow: hidden; border-radius: var(--r-card); min-height: 420px; }
.wash { isolation: isolate; }
.wash::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(assets/art/washes.webp) no-repeat; background-size: 320%; }
.wash--sage::before { background-position: 0 8%; }
.wash--sky::before { background-position: 100% 0; }
.wash--clay::before { background-position: 8% 100%; }
.wash--moss::before { background-position: 100% 92%; }
.shot { border-radius: 14px; box-shadow: 0 18px 40px -18px rgb(16 32 44 / .45); background: #fff; }

.wash--sage { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 36px; }
.shot--toolbar { width: 100%; border-radius: var(--r-small); }
.margin-stack { display: grid; width: min(360px, 100%); margin-left: auto; }
.margin-stack img { grid-area: 1 / 1; width: 100%; align-self: start; opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .45s var(--ease); }
.margin-stack img.is-on { opacity: 1; transform: none; }
.margin-stack img { border-radius: 24px; }
.india-tax { border-radius: 20px; }

.ask { margin-top: 28px; }
.ask > span, .sees { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 24px; background: var(--mist); }
.seg button { height: 36px; padding: 0 14px; border-radius: var(--r-pill); font-size: 14px; color: var(--ink-2); transition: background-color .2s, box-shadow .2s; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 3px 10px -4px rgb(16 20 26 / .35); }

.sees { margin-top: 28px; }
.select-wrap { position: relative; width: min(300px, 100%); }
.select-wrap select { width: 100%; height: 46px; padding: 0 42px 0 18px; -webkit-appearance: none; appearance: none; border: 1px solid rgb(16 20 26 / .18); border-radius: var(--r-pill); background: #fff; cursor: pointer; }
.select-wrap i { position: absolute; right: 18px; top: 50%; translate: 0 -50%; pointer-events: none; }

/* two quotation designs, fanned like material swatches */
.swatches { aspect-ratio: 7 / 5.6; min-height: 0; }
.swatch { position: absolute; width: 52%; top: 9%; transform-origin: 50% 110%; transition: transform .9s var(--ease); }
.swatch img { width: 100%; border-radius: var(--r-small); background: #fff; box-shadow: 0 18px 40px -16px rgb(16 32 44 / .5); transition: opacity .25s; }
.swatch img.is-loading { opacity: .4; }
.swatch figcaption { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; padding: 4px 14px; border-radius: var(--r-pill); background: var(--ink); color: #fff; font-size: 13px; white-space: nowrap; }
.swatch--a { left: 7%; transform: rotate(-4deg); }
.swatch--b { right: 7%; top: 13%; transform: rotate(4deg); }
.swatches:hover .swatch--a { transform: rotate(-6deg) translateX(-2%); }
.swatches:hover .swatch--b { transform: rotate(6deg) translateX(2%); }

.india { display: grid; align-content: center; gap: 18px; padding: 36px; }
.india-tax { width: min(310px, 100%); }
.india-pay { width: min(540px, 100%); justify-self: end; }

.chat { display: grid; align-content: center; justify-items: center; gap: 16px; padding: 36px 24px 22px; }
.chat-card { width: min(390px, 100%); overflow: hidden; border-radius: var(--r-card); background: #ece7e0; box-shadow: 0 22px 46px -20px rgb(16 32 44 / .55); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #1f5c50; color: #fff; line-height: 1.25; }
.chat-head small, .link-card small { display: block; font-size: 12px; opacity: .75; }
.chat-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-pill); background: #fff; color: #1f5c50; font-size: 13px; font-weight: 700; }
.chat-body { position: relative; padding: 16px; min-height: 236px; }
.bubble { width: 92%; margin-left: auto; padding: 6px 6px 10px; border-radius: 14px 4px 14px 14px; background: #dcf6d2; font-size: 13.5px; line-height: 1.5; transform-origin: top right; }
.bubble p { padding: 6px 8px 0; overflow-wrap: anywhere; }
.link-card { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgb(16 60 40 / .08); line-height: 1.3; }
.chat-link { color: #1c5d86; text-decoration: underline; }
.typing { position: absolute; right: 16px; top: 16px; display: flex; gap: 4px; padding: 12px 14px; border-radius: 14px 4px 14px 14px; background: #dcf6d2; opacity: 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #3f6f5a; }
.chat figcaption { max-width: 44ch; padding: 6px 14px; border-radius: var(--r-small); background: rgb(255 255 255 / .88); color: var(--ink-2); font-size: 13px; text-align: center; }

/* ---------- Security ---------- */
.security { margin-top: clamp(40px, 5vw, 72px); padding-block: clamp(56px, 6.5vw, 88px); background: var(--mist); }
.security h2 { max-width: 22ch; margin-bottom: 40px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.plan { position: relative; display: grid; place-items: center; width: 120px; height: 84px; margin-bottom: 20px; }
.plan svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--ink); stroke-width: 1.5; }
.plan i { font-size: 28px; color: var(--accent); translate: -10px -6px; }
.pillars h3 { margin-bottom: 8px; }
.pillars p { color: var(--ink-3); font-size: 15px; max-width: 40ch; }

/* ---------- Pricing ---------- */
.pricing { position: relative; isolation: isolate; padding-block: clamp(64px, 8vw, 112px) clamp(24px, 3vw, 40px); }
.pricing-sketch { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 72%, transparent); mask-image: linear-gradient(transparent, #000 18%, #000 72%, transparent); }
.plan-lines { width: 100%; height: 100%; fill: none; stroke: #4a5560; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; opacity: .34; }
.pricing-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 32px; margin-bottom: 36px; }
.pricing-head h2 { max-width: 18ch; }
.cycle { background: rgb(244 246 247 / .9); }
.save { margin-left: 4px; font-size: 12px; font-weight: 600; color: var(--accent); }
.plans { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: stretch; gap: 18px; }
.plan-card { display: flex; flex-direction: column; padding: 30px 28px; border: 1px solid var(--line); border-radius: var(--r-card); background: rgb(255 255 255 / .86); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.plan-card h3 { font-size: 17px; }
.price { display: flex; align-items: baseline; gap: 4px; margin-top: 18px; }
.amount { font-size: 42px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.per { color: var(--ink-3); font-size: 15px; }
.plan-for { margin-top: 8px; color: var(--ink-3); font-size: 14px; min-height: 1.6em; }
.ticks { display: grid; gap: 10px; margin: 24px 0 30px; font-size: 15px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 6px; border-left: 1.8px solid var(--accent); border-bottom: 1.8px solid var(--accent); transform: rotate(-45deg); }
.plan-card .btn { margin-top: auto; }
.plan-card--main { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 30px 60px -30px rgb(16 20 26 / .6); }
.plan-card--main .per, .plan-card--main .plan-for { color: rgb(255 255 255 / .7); }
.plan-card--main .ticks li::before { border-color: #9fd0e8; }
.plan-card--main :focus-visible { outline-color: #fff; }

/* ---------- Closing: painted on with a roller ---------- */
.closing { padding-block: clamp(56px, 7vw, 96px); }
.closing-card { position: relative; overflow: hidden; border-radius: var(--r-card); background: var(--mist); text-align: center; }
.closing-paint { position: absolute; inset: 0; background: linear-gradient(rgb(20 52 66 / .5), rgb(20 52 66 / .5)), #275a74 url(assets/art/chip.webp) center / cover; }
.closing-text { position: relative; padding: clamp(44px, 6vw, 80px) 24px; color: #fff; }
.closing-text h2 { margin-bottom: 14px; }
.closing-text > p { max-width: 58ch; margin-inline: auto; color: rgb(255 255 255 / .9); }
.closing-text .closing-small { margin-top: 18px; font-size: 13.5px; color: rgb(255 255 255 / .82); }
.closing-card :focus-visible { outline-color: #fff; }
.roller { position: absolute; top: 0; bottom: 0; left: 0; width: 46px; display: none; pointer-events: none; }
.roller-head { position: absolute; left: 0; top: 0; bottom: 0; width: 30px; border-radius: 15px; background: linear-gradient(90deg, #1c4a60, #4a86a2 45%, #1c4a60); box-shadow: 6px 0 14px rgb(0 0 0 / .18); }
.roller-arm { position: absolute; left: 30px; top: 50%; width: 30px; height: 4px; background: #6b747e; }
.roller-grip { position: absolute; left: 56px; top: calc(50% - 7px); width: 46px; height: 18px; border-radius: 9px; background: var(--ink); }

/* ---------- Footer, privacy and terms ---------- */
.foot { border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 22px; font-size: 14px; }
.foot nav { display: flex; gap: 24px; color: var(--ink-3); }
.foot nav a:hover { color: var(--ink); }
.page-text { width: min(680px, 100% - 40px); margin: 0 auto; padding-block: 64px 120px; color: var(--ink-2); }
.page-text h1 { font-size: 36px; color: var(--ink); margin-bottom: 18px; }
.page-text p { margin-bottom: 14px; }
.toast { position: fixed; left: 50%; bottom: 22px; translate: -50% 0; z-index: 30; width: max-content; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: 0 12px 32px rgb(16 20 26 / .3); }

/* ==========================================================================
   Motion. Everything above is the finished state, so with reduced motion or
   without scripts the page is complete and still.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

@media (prefers-reduced-motion: no-preference) {
  .js .dimline { animation: measure 1s .5s var(--ease) both; }

  /* 1. the room is sketched, 2. paint spreads into it, 3. the product rises over it */
  /* the kitchen is sketched in pencil, then each surface is brushed in, then the product rises over it */
  .js .kitchen .pencil path, .js .kitchen .brush path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .stage.is-in .kitchen .pencil path { animation: draw .5s calc(var(--d) * 1.9s) ease-out forwards; }
  .js .stage.is-in .kitchen .brush path { animation: draw .55s calc(1.1s + var(--b) * 1.8s) cubic-bezier(.4, 0, .3, 1) forwards; }
  .js .window { transform: translateY(66%); opacity: 0; }
  .js .stage.is-in .window { animation: rise 1s 3.1s var(--ease) forwards; }

  /* pencil lines of a room are drawn behind the plans as the section scrolls by */
  .js .plan-lines path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .pricing.is-in .plan-lines path { animation: draw .9s calc(var(--d) * 2.4s) ease-out forwards; }
  @supports (animation-timeline: view()) {
    .js .pricing { view-timeline: --pricing block; }
    .js .pricing .plan-lines path, .js .pricing.is-in .plan-lines path {
      animation: draw linear both;
      animation-timeline: --pricing;
      animation-range: entry calc(var(--d) * 70% + 10%) cover calc(var(--d) * 40% + 25%);
    }
  }
  .js .plan-card { opacity: 0; transform: translateY(22px); transition: opacity .6s calc(var(--i) * .12s), transform .8s calc(var(--i) * .12s) var(--ease); }
  .js .plan-card.is-in { opacity: 1; transform: none; }

  .js .tape-blade { clip-path: inset(-6px 100% -6px -6px); transition: clip-path 1.6s cubic-bezier(.45, 0, .25, 1); }
  .js .tape-case { right: calc(100% - 34px); transition: right 1.6s cubic-bezier(.45, 0, .25, 1); }
  .js .steps li { opacity: 0; transform: translateY(14px); transition: opacity .5s calc(var(--i) * .36s + .15s), transform .7s calc(var(--i) * .36s + .15s) var(--ease); }
  .js .steps-section.is-in .tape-blade { clip-path: inset(-6px 0 -6px -6px); }
  .js .steps-section.is-in .tape-case { right: 0; }
  .js .steps-section.is-in li { opacity: 1; transform: none; }

  .js .feature-visual.reveal > * { opacity: 0; transform: translateY(26px); transition: opacity .6s, transform .9s var(--ease); }
  .js .feature-visual.reveal > :nth-child(2) { transition-delay: .18s; }
  .js .feature-visual.reveal.is-in > * { opacity: 1; transform: none; }
  /* swatches fan out from a single stack */
  .js .swatches.reveal > .swatch { transform: rotate(0deg); }
  .js .swatches.reveal.is-in > .swatch--a { transform: rotate(-4deg); }
  .js .swatches.reveal.is-in > .swatch--b { transform: rotate(4deg); }
  .js .swatches.reveal.is-in:hover > .swatch--a { transform: rotate(-6deg) translateX(-2%); }
  .js .swatches.reveal.is-in:hover > .swatch--b { transform: rotate(6deg) translateX(2%); }

  /* the message is typed, then lands */
  .js .chat .bubble { opacity: 0; }
  .js .chat.is-in .bubble { animation: pop .55s 1.6s var(--ease) forwards; }
  .js .chat.is-in .typing { animation: typing 1.6s .3s both; }
  .js .chat.is-in .typing i { animation: dot .6s infinite alternate; }
  .js .chat.is-in .typing i:nth-child(2) { animation-delay: .2s; }
  .js .chat.is-in .typing i:nth-child(3) { animation-delay: .4s; }

  /* walls of each pillar's room are drawn */
  .js .pillars li .plan path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s calc(var(--i) * .2s) var(--ease); }
  .js .pillars li .plan path:nth-child(2) { transition-delay: calc(var(--i) * .2s + .45s); }
  .js .pillars li .plan path:nth-child(3) { transition-delay: calc(var(--i) * .2s + .8s); }
  .js .pillars li.is-in .plan path { stroke-dashoffset: 0; }

  .js .closing-paint { clip-path: inset(0 100% 0 0); }
  .js .closing-text { opacity: 0; transition: opacity .7s .9s; }
  .js .closing-card.is-in .closing-paint { animation: paint 1.5s cubic-bezier(.5, 0, .2, 1) forwards; }
  .js .closing-card.is-in .closing-text { opacity: 1; }
  .js .closing-card.is-in .roller { display: block; animation: roll 1.5s cubic-bezier(.5, 0, .2, 1) forwards; }
}

@keyframes measure { from { clip-path: inset(0 50%); } to { clip-path: inset(0 0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { to { transform: none; opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes typing { 0% { opacity: 0; } 10%, 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes dot { from { opacity: .3; transform: translateY(0); } to { opacity: 1; transform: translateY(-3px); } }
@keyframes paint { to { clip-path: inset(0 0 0 0); } }
@keyframes roll { 0% { left: -30px; } 99% { left: 100%; } 100% { left: 110%; } }

/* ==========================================================================
   Narrower screens
   ========================================================================== */
@media (max-width: 960px) {
  .plans { grid-template-columns: 1fr; max-width: 480px; }
  .nav-in { grid-template-columns: 1fr auto; }
  .nav-toggle { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-pill); font-size: 22px; }
  .nav-links { display: none; position: absolute; inset: 68px 0 auto; flex-direction: column; gap: 0; padding: 8px 20px 16px; background: #fff; border-bottom: 1px solid var(--line); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 11px 0; font-size: 16px; }
  .nav-login { display: none; }
  .nav-login-narrow { display: block; }

  .feature, .feature--flip { grid-template-columns: 1fr; gap: 28px; }
  .feature--flip .feature-text { order: 0; }

  .steps { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .pillars { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  .measure { white-space: normal; }
  .dimline { display: none; }

  /* the notch goes: tabs scroll sideways above a simply framed window */
  .stage { --bump: 0px; aspect-ratio: auto; padding: 0 0 0; }
  .tabs { position: relative; top: auto; left: auto; translate: none; overflow-x: auto; margin: 0 -20px; padding: 12px 20px; scrollbar-width: none; }
  .stage-art { top: 62px; }
  .tabs button { flex: none; background: var(--mist); }
  .tabs button[aria-selected="true"] { background: #fff; box-shadow: inset 0 0 0 1px rgb(16 20 26 / .2); }
  .window { position: relative; left: auto; width: auto; margin: 0 10px; top: 28px; margin-bottom: 28px; border-radius: 12px 12px 0 0; }
  .stage-note { margin-top: 10px; }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .nav-actions .btn { padding: 0 14px; font-size: 14px; }
  .tabs { margin: 0 -16px; padding-inline: 16px; }
  .cta-row .btn { width: 100%; max-width: 320px; }
  .steps { grid-template-columns: 1fr; }
  .feature-visual { min-height: 0; }
  .wash--sage, .india { padding: 18px; }
  .swatches { aspect-ratio: 1 / 1; }
  .swatch { width: 58%; }
  .swatch--a { left: 3%; }
  .swatch--b { right: 3%; }
  .chat { padding: 20px 12px 14px; }
}
