/* ============================================================
   Rice — the homepage
   style.css supplies the night tokens and the parts every page shares
   (nav, buttons, forms, FAQ, footer); this file adds the homepage's
   own pieces.
   ============================================================ */

/* The night tokens themselves now live in style.css, for every page. */

body.home { background: var(--paper); }
.home .sec { position: relative; }
.home h2 em, .home h1 em { color: var(--leaf); }

.sec-head { max-width: 760px; margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .lede { margin-inline: auto; }
.sec-head h2 { margin: 1rem 0 .9rem; font-size: clamp(2.2rem, 5vw, 3.7rem); }
.inline-ico { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; vertical-align: -.35em; border-radius: 50%; background: var(--leaf-wash); }
.inline-ico svg { width: .9em; height: .9em; fill: var(--leaf); }

/* sections are told apart by a hairline shore, not by colour blocks */
.home main > .sec + .sec::before {
  content: ''; position: absolute; top: 0; left: 50%; translate: -50% 0;
  width: min(var(--maxw), calc(100% - 2 * var(--pad))); height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

@keyframes blink { 50% { opacity: .25; } }
@keyframes pop { from { opacity: 0; transform: scale(.85) translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: .85; } 100% { opacity: 0; } }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(2.5rem, 6vw, 5rem)) 0 clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
  isolation: isolate;
}
/* one soft light from above, where the panel comes from */
.hero::before {
  content: ''; position: absolute; z-index: -1; inset: -20% -10% auto;
  height: 90%;
  background: radial-gradient(60% 55% at 70% 20%, var(--glow), transparent 70%),
              radial-gradient(40% 40% at 15% 0%, rgba(212, 161, 63, .07), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 4.4fr) minmax(0, 7fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .55rem; margin: 0;
  padding: .45rem .85rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(var(--ink-rgb), .03);
  font: 500 .72rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 4px var(--leaf-wash); }
.hero-title {
  margin: 1.3rem 0 1.2rem;
  font-size: clamp(2.9rem, 5.6vw, 5rem);
  line-height: .98;
  letter-spacing: -.035em;
  animation: fadeUp .9s var(--ease) both .05s;
}
.hero-title em { font-style: italic; }
.hero-lede { margin: 0; max-width: 46ch; font-size: clamp(1.04rem, 1.35vw, 1.18rem); line-height: 1.6; color: var(--muted); }
.home .hero-cta { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: .6rem; margin-top: 2rem; }
.home .hero-cta .btn.lg { padding-inline: 1.25rem; }
.hero-fine { margin: 1.3rem 0 0; font-size: .9rem; line-height: 1.7; color: var(--faint); }
.hero-fine b { color: var(--ink-2); font-weight: 600; }
.hero-fine a { color: var(--leaf); font-weight: 600; }
.hero-os { display: inline-flex; align-items: center; gap: .35rem; margin-left: .3rem; white-space: nowrap; }
.hero-os svg { width: 13px; height: 13px; fill: currentColor; }
.hero-os svg:nth-of-type(2) { margin-left: .4rem; }

.hero-proof {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2rem;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 1.3rem 0 0; list-style: none;
  border-top: 1px solid var(--line-soft);
  font-size: .9rem; color: var(--muted);
}
.hero-proof li { display: inline-flex; align-items: center; gap: .5rem; }
.hero-proof svg { width: 16px; height: 16px; fill: var(--leaf); }

/* ---- the hero stage: everything sized in container units, so it scales as one picture ---- */

.hero-stage { margin: 0; container-type: inline-size; }
.hs-desk {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: 2.6cqw;
  overflow: hidden;
  background:
    radial-gradient(80% 70% at 85% 10%, rgba(var(--leaf-rgb), .22), transparent 60%),
    radial-gradient(60% 60% at 0% 100%, rgba(212, 161, 63, .14), transparent 60%),
    linear-gradient(160deg, #1b2a23, #0e1714 60%, #101a17);
  border: 1px solid rgba(var(--ink-rgb), .12);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, .4);
  font-size: 1.7cqw;
  color: #1d211c;
}
.hs-menubar {
  display: flex; align-items: center; gap: 2.2cqw; height: 4.4cqw; padding: 0 2.4cqw;
  background: rgba(10, 15, 13, .55); color: rgba(237, 231, 218, .85); font-size: 1.45cqw;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hs-menubar b { font-weight: 650; }
.hs-menubar i { margin-left: auto; font-style: normal; font-variant-numeric: tabular-nums; }
.hs-browser {
  position: absolute; left: 3%; top: 10%; width: 60%; height: 84%;
  border-radius: 1.6cqw; overflow: hidden; background: #fbfaf6;
  box-shadow: 0 3cqw 6cqw -2cqw rgba(0, 0, 0, .55);
}
.hs-chrome { display: flex; align-items: center; gap: .9cqw; height: 4.6cqw; padding: 0 1.6cqw; background: #ecebe5; border-bottom: 1px solid #dddcd4; }
.hs-chrome i { width: 1.1cqw; height: 1.1cqw; border-radius: 50%; background: #d3d1c8; }
.hs-chrome i:first-child { background: #f26a5e; } .hs-chrome i:nth-child(2) { background: #f5be4f; } .hs-chrome i:nth-child(3) { background: #5fc454; }
.hs-url { margin-left: 1.6cqw; flex: 1; padding: .55cqw 1.4cqw; border-radius: 1cqw; background: #fff; color: #6b6f64; font: 500 1.25cqw/1.2 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-viewport { position: relative; height: calc(100% - 4.6cqw); overflow: hidden; }
.hs-page { padding: 2.6cqw 3.2cqw; transition: transform 1.1s var(--ease-io); }
.hs-sec { position: relative; height: 31cqw; }
.hs-sec small { font: 500 1.15cqw/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #3d6a37; }
.hs-sec h4 { margin: 1cqw 0 1.4cqw; font: 600 2.8cqw/1.1 var(--font); color: #141812; letter-spacing: -.02em; }
.hs-line { height: 1.1cqw; margin: 0 0 1.1cqw; border-radius: 1cqw; background: #e3e1d8; }
.w90 { width: 90%; } .w85 { width: 85%; } .w80 { width: 80%; } .w75 { width: 75%; } .w70 { width: 70%; } .w60 { width: 60%; } .w50 { width: 50%; }
.hs-table { display: grid; grid-template-columns: 1fr 1fr; margin: 1.8cqw 0; border: 1px solid #e3e1d8; border-radius: 1cqw; overflow: hidden; font-size: 1.4cqw; }
.hs-table span { padding: .8cqw 1.4cqw; border-top: 1px solid #ecebe4; }
.hs-table span:nth-child(-n+2) { border-top: 0; background: #f1f0ea; font-weight: 650; }
.hs-sec pre { margin: 1.6cqw 0; padding: 1.6cqw 2cqw; border-radius: 1cqw; background: #171c19; color: #b9e28a; font: 500 1.35cqw/1.55 var(--mono); white-space: pre; }
.hs-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.hs-frame {
  position: absolute; left: 2%; right: 2%; top: 3%; height: 92%;
  border: .35cqw dashed rgba(61, 106, 55, .9); border-radius: 1.2cqw;
  opacity: 0; transition: opacity .3s var(--ease);
}

.hs-rice {
  position: absolute; right: 2.6%; top: 15%; width: 45%; height: 80%;
  display: flex; flex-direction: column;
  border-radius: 2cqw; overflow: hidden;
  background: rgba(35, 38, 36, .94); color: var(--rp-ink);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 4cqw 8cqw -2cqw rgba(0, 0, 0, .7), 0 0 0 .4cqw rgba(var(--leaf-rgb), .08);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.hs-rice-head { display: flex; align-items: center; gap: 1cqw; padding: 1.6cqw 1.8cqw; border-bottom: 1px solid var(--rp-line); font-size: 1.85cqw; }
.hs-rice-head img { width: 2.4cqw; height: 2.4cqw; }
.hs-model { margin-left: auto; display: inline-flex; align-items: center; gap: .3cqw; padding: .5cqw 1cqw; border-radius: 99px; background: rgba(255, 255, 255, .07); color: var(--rp-muted); font-size: 1.3cqw; }
.hs-model svg { width: 1.3cqw; height: 1.3cqw; fill: currentColor; }
.hs-thread { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 1.2cqw; padding: 1.6cqw 1.8cqw; overflow: hidden; }
.hs-shots { display: flex; justify-content: flex-end; gap: .9cqw; }
.hs-shot {
  position: relative; display: grid; align-content: start; gap: .5cqw;
  width: 9.6cqw; height: 6.2cqw; padding: .8cqw; border-radius: .9cqw;
  background: #fbfaf6; border: .25cqw solid var(--rp-bubble);
  opacity: 0; transform: scale(.7); transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.hs-shot i { display: block; height: .7cqw; border-radius: 1cqw; background: #d8d6cc; }
.hs-shot i.s { width: 60%; }
.hs-shot::after { content: attr(data-n); position: absolute; top: -1cqw; right: -1cqw; width: 2.2cqw; height: 2.2cqw; display: grid; place-items: center; border-radius: 50%; background: var(--leaf); color: #0b100e; font: 700 1.2cqw/1 var(--font); }
.hs-q { align-self: flex-end; max-width: 92%; margin: 0; padding: 1cqw 1.4cqw; border-radius: 1.4cqw 1.4cqw .4cqw 1.4cqw; background: var(--rp-bubble); color: #fff; font-size: 1.68cqw; line-height: 1.4; opacity: 0; }
.hs-q span::after { content: ''; display: inline-block; width: .15cqw; height: 1.3cqw; margin-left: .2cqw; vertical-align: -.15cqw; background: #fff; animation: blink 1s steps(1) infinite; }
.hs-a { padding: 1.3cqw 1.5cqw; border-radius: 1.4cqw; background: var(--rp-card); border: 1px solid var(--rp-line); font-size: 1.62cqw; line-height: 1.5; opacity: 0; transform: translateY(1cqw); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.hs-a b { display: flex; align-items: center; gap: .5cqw; margin-bottom: .5cqw; color: var(--rp-muted); font-weight: 600; }
.hs-a b svg { width: 1.3cqw; height: 1.3cqw; fill: var(--sun); }
.hs-a p { margin: 0; }
.hs-a em { color: var(--rp-code); font-style: normal; }
.hs-a code { padding: .1cqw .5cqw; border-radius: .5cqw; background: rgba(0, 0, 0, .35); color: var(--rp-mark); font: 500 1.3cqw/1 var(--mono); }
.hs-input { display: flex; align-items: center; gap: 1cqw; margin: 0 1.6cqw 1.6cqw; padding: .8cqw .9cqw; border-radius: 99px; background: rgba(0, 0, 0, .25); border: 1px solid var(--rp-line); font-size: 1.55cqw; color: var(--rp-muted); }
.hs-cam { position: relative; display: grid; place-items: center; width: 3.2cqw; height: 3.2cqw; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.hs-cam svg { width: 1.7cqw; height: 1.7cqw; fill: var(--rp-ink); }
.hs-cam b { position: absolute; top: -.7cqw; right: -.8cqw; min-width: 1.9cqw; height: 1.9cqw; display: grid; place-items: center; padding: 0 .4cqw; border-radius: 99px; background: var(--leaf); color: #0b100e; font: 700 1.1cqw/1 var(--font); opacity: 0; transition: opacity .2s; }
.hs-ph { flex: 1; }
.hs-send { display: grid; place-items: center; width: 3cqw; height: 3cqw; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.hs-send svg { width: 1.6cqw; height: 1.6cqw; fill: var(--rp-ink); }
.hs-caption { display: flex; align-items: center; justify-content: center; gap: .55rem; margin-top: 1rem; font: 500 .74rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.hs-caption .rec { width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); animation: blink 1.6s infinite; }

/* the steps of the loop, set by home.js on #heroStage[data-step] */
.hero-stage[data-step="1"] .hs-frame, .hero-stage[data-step="3"] .hs-frame { opacity: 1; }
.hero-stage[data-step="1"] .hs-flash, .hero-stage[data-step="3"] .hs-flash { animation: flash .6s var(--ease) both .25s; }
.hero-stage:is([data-step="1"], [data-step="2"], [data-step="3"], [data-step="4"], [data-step="5"]) .hs-shot[data-n="1"],
.hero-stage:is([data-step="3"], [data-step="4"], [data-step="5"]) .hs-shot[data-n="2"] { opacity: 1; transform: none; }
.hero-stage:is([data-step="2"], [data-step="3"], [data-step="4"], [data-step="5"]) .hs-page { transform: translateY(-31cqw); }
.hero-stage:is([data-step="1"], [data-step="2"], [data-step="3"]) .hs-cam b { opacity: 1; }
.hs-q, .hs-a { display: none; }
.hero-stage:is([data-step="4"], [data-step="5"]) .hs-q { display: block; opacity: 1; animation: pop .3s var(--ease); }
.hero-stage[data-step="5"] .hs-a { display: block; animation: pop .45s var(--ease); }
.hero-stage[data-step="5"] .hs-q span::after { display: none; }
.hero-stage[data-step="5"] .hs-a { opacity: 1; transform: none; }

/* ============================================================
   01 — the pretend desktop
   ============================================================ */

.desk {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(var(--ink-rgb), .12);
  background:
    radial-gradient(70% 80% at 100% 0%, rgba(var(--leaf-rgb), .16), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(212, 161, 63, .1), transparent 60%),
    linear-gradient(160deg, #18251f, #0d1513);
  box-shadow: var(--shadow-lg);
}
.desk-bar { display: flex; align-items: center; gap: 1rem; min-height: 48px; padding: .35rem .8rem; background: rgba(7, 11, 10, .6); border-bottom: 1px solid var(--line-soft); }
.desk-apps { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.desk-apps::-webkit-scrollbar { display: none; }
.desk-apps button {
  display: inline-flex; align-items: center; gap: .45rem; flex: none;
  min-height: 36px; padding: .4rem .8rem; border-radius: 9px;
  color: var(--muted); font-size: .86rem; font-weight: 550;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.desk-apps button svg { width: 15px; height: 15px; fill: currentColor; }
.desk-apps button:hover { color: var(--ink); background: rgba(var(--ink-rgb), .05); }
.desk-apps button[aria-selected=true] { color: var(--ink); background: rgba(var(--ink-rgb), .1); }
.desk-clock { margin-left: auto; font: 500 .8rem/1 var(--mono); color: var(--faint); white-space: nowrap; }

.desk-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  gap: 1.2rem;
  height: clamp(560px, 72vh, 660px);
  padding: 1.2rem;
}
.desk-app {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 0;
  border-radius: 14px; overflow: hidden;
  background: #fbfaf6; color: #1d211c;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 0, 0, .3);
}
.win-top { display: flex; align-items: center; gap: .4rem; height: 34px; flex: none; padding: 0 .8rem; background: #ecebe5; border-bottom: 1px solid #dcdad1; }
.win-top i { width: 10px; height: 10px; border-radius: 50%; background: #d3d1c8; }
.win-top i:first-child { background: #f26a5e; } .win-top i:nth-child(2) { background: #f5be4f; } .win-top i:nth-child(3) { background: #5fc454; }
.win-top span { margin: 0 auto; padding-right: 40px; font: 500 .78rem/1 var(--font); color: #5f6359; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desk-app[data-app=code] .win-top, .desk-app[data-app=meet] .win-top { background: #1e2320; border-color: #2a302c; }
.desk-app[data-app=code] .win-top span, .desk-app[data-app=meet] .win-top span { color: #a4a69f; }
.desk-view { position: relative; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; outline: none; }
.desk-view:focus-visible { box-shadow: inset 0 0 0 2px var(--leaf); }
.desk-flash { position: absolute; inset: 34px 0 0; background: #fff; opacity: 0; pointer-events: none; }
.desk-flash.go { animation: flash .55s var(--ease); }
.desk-scrollhint {
  position: absolute; left: 50%; bottom: .8rem; translate: -50% 0; margin: 0;
  display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem; border-radius: 99px;
  background: rgba(23, 27, 21, .82); color: #f1efe9; font-size: .74rem; font-weight: 600;
  pointer-events: none; transition: opacity .4s var(--ease);
}
.desk-scrollhint svg { width: 13px; height: 13px; fill: currentColor; }
.desk-scrollhint.off { opacity: 0; }

/* the scenarios */
.sc { min-height: 100%; }
.sc-sec { position: relative; }
.sc-code, .sc-meet { background: #171b19; color: #e6e3da; }
.sc-code pre { margin: 0; padding: 1rem 1.2rem; font: 500 .84rem/1.75 var(--mono); white-space: pre; overflow-x: auto; }
.sc-code .ln { display: inline-block; width: 1.8rem; color: #5d635c; user-select: none; }
.sc-code .ln.bad { color: #f08a9c; }
.sc-code .k { color: #c792ea; font-weight: 500; } .sc-code .f { color: #82aaff; font-weight: 500; }
.sc-code .n { color: #f78c6c; font-weight: 500; } .sc-code .s { color: #c3e88d; font-weight: 500; }
.sc-code .ok { color: #6cc99b; } .sc-code .bad { color: #f08a9c; }
.sc-term { border-top: 1px solid #2a302c; background: #101311; }
.term-head { margin: 0; padding: .6rem 1.2rem 0; font: 600 .7rem/1 var(--mono); letter-spacing: .08em; color: #7c827a; }

.sc-web { padding: 0 0 2rem; }
.web-url { position: sticky; top: 0; z-index: 1; margin: 0; padding: .55rem 1rem; background: rgba(251, 250, 246, .94); border-bottom: 1px solid #e6e4dc; }
.web-url span { display: block; padding: .3rem .7rem; border-radius: 8px; background: #efeee8; font: 500 .74rem/1.2 var(--mono); color: #6b6f64; }
.sc-web .sc-sec { margin: 1.1rem 1.2rem 0; padding: 1.2rem 1.3rem; border: 1px solid #e6e4dc; border-radius: 12px; background: #fff; min-height: 220px; }
.sc-web small { font: 500 .7rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #3d6a37; }
.sc-web h4 { margin: .4rem 0 .1rem; font: 650 1.35rem/1.2 var(--font); letter-spacing: -.02em; color: #141812; }
.sc-web h5 { margin: 0 0 .7rem; font: 650 1rem/1.3 var(--font); color: #141812; }
.sc-web .price { margin: 0 0 .9rem; font-weight: 650; color: #3d6a37; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.2rem; margin: 0; font-size: .9rem; }
.specs dt { color: #6b6f64; } .specs dd { margin: 0; font-weight: 600; }
.sc-web blockquote { margin: 0 0 .7rem; padding: .7rem .9rem; border-left: 3px solid #d4a13f; background: #faf6ea; border-radius: 0 8px 8px 0; font-size: .9rem; color: #33372f; }

.sc-doc { padding: 1.2rem 0 2rem; background: #e9e7df; }
.sc-doc .sc-sec { margin: 0 auto 1rem; width: min(92%, 560px); padding: 1.5rem 1.6rem; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); min-height: 230px; font-family: var(--serif); }
.sc-doc h4 { margin: 0 0 .3rem; font: 500 1.35rem/1.25 var(--serif); color: #141812; letter-spacing: -.01em; }
.sc-doc .byline { margin: 0 0 1rem; font: 500 .72rem/1 var(--mono); color: #7a7e72; }
.sc-doc h5 { margin: 0 0 .5rem; font: 650 .82rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: #3d6a37; }
.sc-doc p { margin: 0 0 .7rem; font-size: .95rem; line-height: 1.65; color: #2b2f28; }
.sc-doc table { width: 100%; margin: .2rem 0 .9rem; border-collapse: collapse; font: 500 .88rem/1.4 var(--font); }
.sc-doc th, .sc-doc td { padding: .5rem .6rem; border-bottom: 1px solid #e3e1d8; text-align: left; }
.sc-doc th { color: #6b6f64; font-weight: 600; }
.sc-doc td:last-child { font-weight: 700; }

.sc-slide { margin: 1rem; padding: 1.4rem 1.5rem; min-height: 290px; border-radius: 12px; background: linear-gradient(150deg, #f5f1e8, #e7efe2); color: #171b15; }
.meet-tag { display: inline-flex; align-items: center; gap: .4rem; margin: 0 0 .9rem; padding: .3rem .6rem; border-radius: 99px; background: rgba(23, 27, 21, .08); font-size: .72rem; font-weight: 650; }
.meet-tag .live { width: 7px; height: 7px; border-radius: 50%; background: #d6335c; animation: blink 1.4s infinite; }
.sc-slide h4 { margin: 0 0 .8rem; font: 500 1.7rem/1.1 var(--serif); letter-spacing: -.02em; }
.sc-slide ul { margin: 0 0 1rem; padding-left: 1.1rem; display: grid; gap: .35rem; font-size: .95rem; }
.sc-slide .risk { display: inline-block; margin: 0; padding: .4rem .7rem; border-radius: 8px; background: rgba(212, 161, 63, .25); font-size: .84rem; font-weight: 600; }
.sc-chat { margin: 0 1rem 1rem; padding: 1rem 1.1rem; border-radius: 12px; background: #212723; }
/* about one section per screenful, so each part of a page needs its own screenshot */
.sc-code > .sc-sec, .sc-term, .sc-web .sc-sec, .sc-doc .sc-sec, .sc-slide, .sc-chat { min-height: calc(var(--view-h, 480px) * .82); }
.chat-head { margin: 0 0 .7rem; font: 600 .7rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #8b9184; }
.sc-chat p { margin: 0 0 .6rem; font-size: .9rem; line-height: 1.5; color: #d9d6cc; }
.sc-chat b { display: block; font-size: .78rem; color: var(--leaf); }

/* ---- the Rice panel in the demo, drawn the way the app draws it ---- */

.rice {
  position: relative;
  display: flex; flex-direction: column; min-height: 0;
  border-radius: 18px; overflow: visible;
  background: rgba(35, 38, 36, .96); color: var(--rp-ink);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 36px 70px -30px rgba(0, 0, 0, .85), 0 0 0 5px rgba(var(--leaf-rgb), .06);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.rice-head { display: flex; align-items: center; gap: .65rem; padding: .8rem .95rem; border-bottom: 1px solid var(--rp-line); }
.rice-id { display: grid; line-height: 1.15; }
.rice-id > b { font-size: .95rem; }
.rice-only { margin-left: auto; display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .55rem; border-radius: 99px; background: rgba(var(--leaf-rgb), .12); color: var(--leaf); font: 600 .62rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.rice-only svg { width: 12px; height: 12px; fill: currentColor; }
.model-pick { position: relative; }
.model-btn { display: inline-flex; align-items: center; gap: .2rem; margin-left: -.3rem; padding: .1rem .3rem; border-radius: 6px; color: var(--rp-muted); font-size: .8rem; font-weight: 550; }
.model-btn:hover, .model-btn[aria-expanded=true] { color: var(--rp-ink); background: rgba(255, 255, 255, .07); }
.model-btn svg { width: 13px; height: 13px; fill: currentColor; transition: transform var(--t) var(--ease); }
.model-btn[aria-expanded=true] svg { transform: rotate(180deg); }
.model-list {
  position: absolute; z-index: 20; top: calc(100% + 6px); left: -.3rem;
  width: 230px; margin: 0; padding: .35rem; list-style: none;
  border-radius: 12px; background: #2d302e; border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .8);
  animation: pop .18s var(--ease);
}
.model-list li { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: .55rem; padding: .5rem .6rem; border-radius: 8px; cursor: pointer; font-size: .88rem; font-weight: 600; outline: none; }
.model-list li small { grid-column: 2; font-size: .72rem; font-weight: 500; color: var(--rp-muted); }
.model-list li .mdot { grid-row: span 2; }
.model-list li:hover, .model-list li:focus-visible { background: rgba(255, 255, 255, .07); }
.model-list li[aria-selected=true] { background: rgba(var(--leaf-rgb), .14); }

.rice-thread { position: relative; flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: .75rem; padding: .95rem; scroll-behavior: smooth; overscroll-behavior: contain; }
.rice-empty { margin: auto 0 0; color: var(--rp-muted); font-size: .86rem; line-height: 1.55; }
.rice-empty b { display: block; margin-bottom: .2rem; color: var(--rp-ink); font-size: .95rem; }
.rice-empty ol { margin: .5rem 0 0; padding-left: 1.1rem; display: grid; gap: .25rem; }
.m-q { align-self: flex-end; max-width: 90%; display: grid; justify-items: end; gap: .4rem; animation: pop .3s var(--ease); }
.m-q p { margin: 0; padding: .55rem .8rem; border-radius: 14px 14px 4px 14px; background: var(--rp-bubble); color: #fff; font-size: .9rem; line-height: 1.45; }
.m-shots { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
.m-a { padding: .75rem .85rem; border-radius: 14px; background: var(--rp-card); border: 1px solid var(--rp-line); font-size: .89rem; line-height: 1.55; animation: pop .3s var(--ease); }
.m-a-head { display: flex; align-items: center; gap: .4rem; margin-bottom: .35rem; color: var(--rp-muted); font-size: .78rem; font-weight: 600; }
.m-a-head svg { width: 12px; height: 12px; fill: var(--sun); }
.m-a-head .m-model { color: var(--rp-ink); }
.m-a-head .rp-copy { margin-left: auto; display: inline-flex; align-items: center; gap: .25rem; padding: .2rem .45rem; border-radius: 6px; background: rgba(255, 255, 255, .06); color: var(--rp-muted); font-size: .72rem; font-weight: 600; }
.m-a-head .rp-copy:hover { color: var(--rp-ink); }
.m-a-head .rp-copy svg { width: 11px; height: 11px; fill: currentColor; }
.m-a p, .m-a ul { margin: 0 0 .45rem; }
.m-a p:last-child, .m-a ul:last-child { margin-bottom: 0; }
.m-a ul { padding-left: 1.05rem; }
.m-a code { padding: .05rem .3rem; border-radius: 5px; background: rgba(0, 0, 0, .3); color: var(--rp-mark); font: 500 .82em/1 var(--mono); }
.m-a pre { margin: .4rem 0; padding: .55rem .7rem; border-radius: 8px; background: rgba(0, 0, 0, .35); color: var(--rp-code); font: 500 .8rem/1.5 var(--mono); white-space: pre-wrap; }
.m-a .w { animation: wordIn .35s var(--ease) both; }
@keyframes wordIn { from { opacity: 0; } to { opacity: 1; } }
.m-status { display: inline-flex; align-items: center; gap: .45rem; margin: 0; color: var(--rp-muted); font-size: .82rem; }
.m-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); animation: blink 1s infinite; }
.m-note { margin: .1rem 0 0; font-size: .74rem; color: var(--rp-muted); }

/* a screenshot: a real copy of what the window showed, scaled down */
.thumb { position: relative; display: block; width: 84px; height: 54px; border-radius: 7px; overflow: hidden; background: #fbfaf6; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .22); flex: none; }
.thumb.small { width: 58px; height: 38px; border-radius: 5px; }
.thumb-inner { position: absolute; top: 0; left: 0; transform-origin: 0 0; pointer-events: none; }
.thumb-label { position: absolute; left: 0; right: 0; bottom: 0; padding: .12rem .3rem; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); color: #fff; font: 600 .58rem/1.2 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.rice-compose { border-top: 1px solid var(--rp-line); padding: .7rem .8rem .8rem; display: grid; gap: .6rem; }
.rice-tray { display: grid; gap: .4rem; }
.tray-list { display: flex; gap: .5rem; margin: 0; padding: .35rem .1rem 0; list-style: none; overflow-x: auto; }
.tray-list li { position: relative; animation: pop .35s var(--ease); }
.tray-x { position: absolute; top: -6px; right: -6px; z-index: 2; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #3a3d3b; border: 1px solid rgba(255, 255, 255, .2); }
.tray-x svg { width: 11px; height: 11px; fill: #fff; }
.tray-x:hover { background: #d6335c; }
.tray-note { margin: 0; font-size: .74rem; color: var(--rp-muted); }
.rice-prompts { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 1px; }
.rice-prompts::-webkit-scrollbar { display: none; }
.rice-prompts button { flex: none; padding: .38rem .7rem; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: var(--rp-ink); font-size: .78rem; font-weight: 550; white-space: nowrap; transition: background-color var(--t-fast), border-color var(--t-fast); }
.rice-prompts button:hover { background: rgba(var(--leaf-rgb), .14); border-color: rgba(var(--leaf-rgb), .45); }
.rice-input { position: relative; display: flex; align-items: center; gap: .45rem; padding: .3rem; border-radius: 99px; background: rgba(0, 0, 0, .28); border: 1px solid var(--rp-line); }
.rice-input:focus-within { border-color: rgba(var(--leaf-rgb), .5); }
.rice-input input { flex: 1; min-width: 0; height: 36px; padding: 0 .3rem; border: 0; background: none; color: var(--rp-ink); font-size: .9rem; outline: none; }
.rice-input input::placeholder { color: #8a8d86; }
.rice-cap, .rice-send { position: relative; width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .09); transition: background-color var(--t-fast), transform var(--t-fast); }
.rice-cap svg, .rice-send svg { width: 17px; height: 17px; fill: var(--rp-ink); }
.rice-cap:hover { background: rgba(var(--leaf-rgb), .25); }
.rice-cap:active { transform: scale(.92); }
.rice-cap.nudge::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--leaf); animation: ring 1.6s var(--ease) infinite; }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.rice-cap .count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; border-radius: 99px; background: var(--leaf); color: #0b100e; font: 700 .66rem/1 var(--font); }
.rice-send { background: var(--rp-bubble); }
.rice-send:hover { background: #4a8a3e; }
.rice-tip { position: absolute; left: 0; bottom: calc(100% + 8px); padding: .35rem .55rem; border-radius: 7px; background: #f1efe9; color: #171b15; font-size: .72rem; font-weight: 650; white-space: nowrap; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; pointer-events: none; }
.rice-cap:hover + .rice-tip, .rice-cap:focus-visible + .rice-tip { opacity: 1; transform: none; }

.demo-disclaimer { display: flex; align-items: flex-start; gap: .55rem; max-width: 760px; margin: 1.1rem auto 0; font-size: .86rem; line-height: 1.55; color: var(--faint); text-align: left; }
.demo-disclaimer svg { width: 16px; height: 16px; flex: none; margin-top: .15rem; fill: var(--faint); }

@media (max-width: 900px) {
  .desk-body { grid-template-columns: 1fr; height: auto; padding: .8rem; gap: .8rem; }
  .desk-app { height: 330px; }
  .rice { height: 470px; }
  .desk-apps button span { display: none; }
  .desk-apps button[aria-selected=true] span { display: inline; }
}
@media (max-width: 600px) {
  .desk-clock { display: none; }
}
@media (max-width: 520px) {
  .home .nav-account { display: none; }
}
@media (max-width: 420px) {
  .rice-only { display: none; }
}

/* ============================================================
   02 — how it works
   ============================================================ */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.step { padding: 1.2rem 1.2rem 1.5rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.step h3 { margin: .2rem 0 .45rem; font-size: 1.2rem; letter-spacing: -.015em; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.step-n { margin: 1.1rem 0 0 !important; font: 500 .72rem/1 var(--mono) !important; letter-spacing: .12em; color: var(--leaf) !important; }
.step-art { position: relative; height: 150px; display: grid; place-items: center; border-radius: 14px; background: radial-gradient(80% 90% at 50% 0%, rgba(var(--leaf-rgb), .1), transparent 70%), var(--paper-2); border: 1px solid var(--line-soft); overflow: hidden; }
.art-keys { display: flex; gap: .5rem; justify-content: center; align-items: center; }
.kc { display: grid; place-items: center; min-width: 52px; height: 52px; padding: 0 .6rem; border-radius: 12px; background: linear-gradient(#f4ecd8, #dccfae); color: #171b15; font: 600 1.2rem/1 var(--font); box-shadow: 0 4px 0 #9c8a5f, 0 10px 18px -8px rgba(0, 0, 0, .8); }
.kc.wide { min-width: 72px; font-size: 1rem; }
.kc.hit { animation: keyHit 2.8s var(--ease) infinite; }
@keyframes keyHit { 0%, 70%, 100% { transform: none; box-shadow: 0 4px 0 #9c8a5f, 0 10px 18px -8px rgba(0, 0, 0, .8); } 76% { transform: translateY(3px); box-shadow: 0 1px 0 #9c8a5f, 0 4px 8px -4px rgba(0, 0, 0, .8); } }
.art-ask { align-content: center; gap: .7rem; padding: 0 1.2rem; }
.aa-shots { display: flex; gap: .4rem; justify-content: flex-start; }
.aa-shots i { width: 50px; height: 32px; border-radius: 5px; background: #fbfaf6; box-shadow: 0 0 0 2px var(--rp-bubble); }
.aa-input { display: flex; align-items: center; gap: .5rem; width: 100%; padding: .55rem .7rem; border-radius: 99px; background: #232624; border: 1px solid var(--rp-line); color: var(--rp-ink); font-size: .85rem; }
.aa-input em { flex: 1; font-style: normal; }
.aa-input svg { width: 16px; height: 16px; fill: var(--rp-muted); }
.art-keep { padding: 1.2rem; }
.ak-win { position: absolute; inset: 1.2rem 2rem 1.2rem 1.2rem; display: grid; align-content: start; gap: .5rem; padding: 1rem; border-radius: 10px; background: #fbfaf6; }
.ak-win i { height: 8px; border-radius: 4px; background: #dcdad1; } .ak-win i.s { width: 60%; }
.ak-panel { position: absolute; right: 1rem; top: 1.6rem; width: 38%; height: 62%; border-radius: 10px; background: #232624; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .8); animation: hideShow 4s var(--ease) infinite; }
@keyframes hideShow { 0%, 40% { opacity: 1; transform: none; } 50%, 85% { opacity: 0; transform: translateY(8px) scale(.96); } 95%, 100% { opacity: 1; transform: none; } }

/* ============================================================
   03 — multiple screenshots
   ============================================================ */

.shots-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.shots-copy h2 { margin: 1rem 0 .9rem; font-size: clamp(2.2rem, 5vw, 3.7rem); }
.shots-steps { margin: 1.6rem 0 1.8rem; padding: 0; list-style: none; counter-reset: s; display: grid; gap: .1rem; }
.shots-steps li { counter-increment: s; position: relative; padding: .65rem 0 .65rem 2.2rem; border-bottom: 1px solid var(--line-soft); color: var(--muted); }
.shots-steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: .65rem; font: 500 .74rem/1.9 var(--mono); color: var(--leaf); }
.shots-steps b { color: var(--ink); font-weight: 650; }
.shots-visual { position: relative; height: 440px; }
.sv-page { position: absolute; left: 0; top: 0; width: 68%; height: 100%; display: grid; align-content: start; gap: .7rem; padding: 1.4rem; border-radius: 16px; background: #fbfaf6; box-shadow: var(--shadow-lg); overflow: hidden; }
.sv-page .l { display: block; height: 10px; border-radius: 6px; background: #e1dfd6; }
.sv-page .blk { display: block; height: 62px; border-radius: 10px; background: #eef2ea; border: 1px solid #dfe6d9; }
.sv-page .blk.tall { height: 84px; }
.sv-cap { position: absolute; left: .7rem; right: .7rem; border: 2px dashed rgba(61, 106, 55, .85); border-radius: 12px; background: rgba(143, 197, 129, .08); }
.sv-cap b { position: absolute; top: -12px; right: -12px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #3d6a37; color: #fff; font-size: .78rem; }
.sv-cap.c1 { top: 4.5rem; height: 70px; } .sv-cap.c2 { top: 11.7rem; height: 92px; } .sv-cap.c3 { top: 20.6rem; height: 70px; }
.sv-panel { position: absolute; right: 0; bottom: 1.5rem; width: 52%; display: grid; gap: .7rem; padding: 1rem; border-radius: 16px; background: rgba(35, 38, 36, .97); border: 1px solid rgba(255, 255, 255, .12); box-shadow: var(--shadow-lg); color: var(--rp-ink); }
.sv-trio { display: flex; gap: .4rem; justify-content: flex-end; }
.sv-trio span { width: 46px; height: 30px; display: grid; place-items: end; padding: 2px 4px; border-radius: 5px; background: #fbfaf6; box-shadow: 0 0 0 2px var(--rp-bubble); color: #3d6a37; font: 700 .62rem/1 var(--font); }
.sv-ask { justify-self: end; margin: 0; padding: .5rem .7rem; border-radius: 12px 12px 4px 12px; background: var(--rp-bubble); font-size: .82rem; line-height: 1.4; }
.sv-ans { display: grid; gap: .4rem; margin: 0; padding: .7rem; border-radius: 10px; background: var(--rp-card); }
.sv-ans i { height: 7px; border-radius: 4px; background: #4a4e4b; } .sv-ans i.s { width: 55%; }
.shots-visual .sv-cap, .shots-visual .sv-trio span, .shots-visual .sv-ask, .shots-visual .sv-ans { opacity: 0; transform: scale(.94); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.shots-visual.in .sv-cap.c1, .shots-visual.in .sv-trio span:nth-child(1) { opacity: 1; transform: none; transition-delay: .4s; }
.shots-visual.in .sv-cap.c2, .shots-visual.in .sv-trio span:nth-child(2) { opacity: 1; transform: none; transition-delay: 1s; }
.shots-visual.in .sv-cap.c3, .shots-visual.in .sv-trio span:nth-child(3) { opacity: 1; transform: none; transition-delay: 1.6s; }
.shots-visual.in .sv-ask { opacity: 1; transform: none; transition-delay: 2.2s; }
.shots-visual.in .sv-ans { opacity: 1; transform: none; transition-delay: 2.8s; }

/* ============================================================
   04 — features
   ============================================================ */

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.tile { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 1.4rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease); }
.tile:hover { border-color: rgba(var(--leaf-rgb), .28); background: #121b17; }
.tile h3 { margin: .35rem 0 0; font-size: 1.08rem; letter-spacing: -.015em; }
.tile p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.6; }
.tile-ico { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--leaf-wash); }
.tile-ico svg { width: 18px; height: 18px; fill: var(--leaf); }
.t-wide { grid-column: span 2; grid-row: span 2; padding: 0; }
.t-wide .tile-copy { display: grid; gap: .5rem; padding: 1.5rem 1.5rem 0; max-width: 54ch; }
.tile-shot { display: block; margin: 1.2rem 0 0 1.5rem; border-radius: 12px 0 0 0; overflow: hidden; border: 1px solid var(--line); border-right: 0; border-bottom: 0; }
.tile-shot img { display: block; width: 100%; height: auto; }
.mini-tray { display: flex; gap: .4rem; margin-top: auto; padding-top: .9rem; }
.mini-tray span { width: 54px; height: 36px; border-radius: 6px; background: linear-gradient(#fbfaf6 0 30%, #e8e6dd 30% 38%, #fbfaf6 38% 55%, #e8e6dd 55% 63%, #fbfaf6 63%); box-shadow: 0 0 0 2px var(--rp-bubble); }
.mini-tray em { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 6px; border: 1px dashed rgba(var(--ink-rgb), .3); color: var(--faint); font-style: normal; }
.mini-models { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: auto; padding-top: .9rem; }
.mini-models span { padding: .28rem .6rem; border-radius: 99px; border: 1px solid var(--line); font-size: .76rem; color: var(--muted); }
.mini-models span.on { border-color: rgba(var(--leaf-rgb), .5); background: var(--leaf-wash); color: var(--leaf); }
.mini-wave { display: flex; align-items: center; gap: 3px; height: 36px; margin-top: auto; padding-top: .9rem; }
.mini-wave i { width: 4px; height: 30%; border-radius: 2px; background: var(--leaf); animation: wave 1.2s ease-in-out infinite; }
.mini-wave i:nth-child(3n) { animation-delay: -.3s; } .mini-wave i:nth-child(3n+1) { animation-delay: -.6s; } .mini-wave i:nth-child(4n) { animation-delay: -.9s; }
@keyframes wave { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.tile .text-link { color: var(--leaf); font-weight: 600; }

/* ============================================================
   05 — use cases
   ============================================================ */

.uc-tabs { display: flex; gap: .4rem; margin-bottom: 1.2rem; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.uc-tabs::-webkit-scrollbar { display: none; }
.uc-tabs button { flex: none; display: inline-flex; align-items: center; gap: .45rem; min-height: 42px; padding: .5rem 1rem; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); font-size: .9rem; font-weight: 600; transition: all var(--t-fast); }
.uc-tabs button svg { width: 16px; height: 16px; fill: currentColor; }
.uc-tabs button:hover { color: var(--ink); border-color: rgba(var(--ink-rgb), .25); }
.uc-tabs button[aria-selected=true] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.uc-panel { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); animation: fadeUp .45s var(--ease); }
.uc-copy h3 { margin: 0 0 .6rem; font: 400 clamp(1.6rem, 3vw, 2.1rem)/1.1 var(--serif); letter-spacing: -.02em; }
.uc-copy > p { margin: 0; color: var(--muted); line-height: 1.65; }
.uc-list { margin: 1.1rem 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.uc-list li { position: relative; padding-left: 1.2rem; color: var(--ink-2); font-size: .95rem; }
.uc-list li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--leaf); }
.uc-benefit { display: flex; align-items: flex-start; gap: .5rem; margin: 0; padding: .7rem .85rem; border-radius: 12px; background: var(--leaf-wash); color: var(--ink-2); font-size: .9rem; }
.uc-benefit svg { width: 16px; height: 16px; flex: none; margin-top: .2rem; fill: var(--leaf); }
.uc-art { display: grid; place-items: center; min-height: 260px; padding: 1.4rem; border-radius: 16px; background: radial-gradient(80% 80% at 80% 0%, rgba(var(--leaf-rgb), .14), transparent 60%), var(--paper-2); border: 1px solid var(--line-soft); }
.mini-rice { width: min(100%, 340px); display: grid; gap: .6rem; padding: 1rem; border-radius: 16px; background: rgba(35, 38, 36, .97); border: 1px solid rgba(255, 255, 255, .12); box-shadow: var(--shadow-lg); color: var(--rp-ink); }
.mr-shots { display: flex; gap: .4rem; justify-content: flex-end; flex-wrap: wrap; }
.mr-shots span { padding: .3rem .5rem; border-radius: 6px; background: #fbfaf6; box-shadow: 0 0 0 2px var(--rp-bubble); color: #3d6a37; font: 650 .68rem/1 var(--font); }
.mr-q { justify-self: end; max-width: 92%; margin: 0; padding: .5rem .75rem; border-radius: 12px 12px 4px 12px; background: var(--rp-bubble); font-size: .86rem; line-height: 1.4; }
.mr-a { margin: 0; padding: .7rem .8rem; border-radius: 12px; background: var(--rp-card); border: 1px solid var(--rp-line); font-size: .86rem; line-height: 1.55; }
.mr-a code { padding: .05rem .3rem; border-radius: 4px; background: rgba(0, 0, 0, .3); color: var(--rp-mark); font: 500 .8em/1 var(--mono); }
.mr-a del { color: #f08a9c; } .mr-a ins { color: var(--rp-code); text-decoration: none; }

/* ============================================================
   06 — models
   ============================================================ */

.models-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.models-grid h2 { margin: 1rem 0 .9rem; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.model-notes { margin: 1.5rem 0 0; padding: 0; list-style: none; display: grid; gap: .8rem; }
.model-notes li { padding-left: 1rem; border-left: 2px solid rgba(var(--leaf-rgb), .4); color: var(--muted); font-size: .95rem; line-height: 1.6; }
.model-notes b { color: var(--ink); }
.model-notes .text-link { color: var(--leaf); }
.model-cards { display: grid; gap: .7rem; }
.mcard { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: transform var(--t) var(--ease), border-color var(--t); }
.mcard:hover { transform: translateX(-4px); border-color: rgba(var(--leaf-rgb), .3); }
.mcard .mdot { width: 14px; height: 14px; }
.mcard h3 { margin: 0; font-size: 1.05rem; }
.mcard p { margin: .1rem 0 0; color: var(--faint); font-size: .84rem; }
.mtag { margin-left: auto; padding: .3rem .6rem; border-radius: 99px; background: var(--leaf-wash); color: var(--leaf); font: 600 .66rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }

/* ============================================================
   07 — privacy
   ============================================================ */

.priv-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.compare { margin: 0; }
.compare figcaption { margin-top: .8rem; font-size: .85rem; color: var(--faint); text-align: center; }
.shot { position: relative; overflow: hidden; border-radius: clamp(14px, 2vw, 20px); background: #fbfaf6; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.shot img { display: block; width: 100%; height: auto; }
.tag { position: absolute; top: .85rem; left: .85rem; z-index: 3; display: inline-flex; align-items: center; gap: .4rem; padding: .42rem .7rem; border-radius: 999px; background: rgba(251, 249, 244, .94); box-shadow: 0 2px 8px rgba(0, 0, 0, .2); font: 500 .62rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.tag.live { color: #2d5328; }
.tag.rec { left: auto; right: .85rem; color: #b8304b; }
.tag.rec::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #b8304b; animation: blink 1.5s infinite; }
.compare .shot { cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.compare .shot img { pointer-events: none; -webkit-user-drag: none; }
.compare-top { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare-top img { width: 100%; height: 100%; }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 4; width: 0; outline: none; }
.compare-handle::before { content: ''; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: #fff; box-shadow: 0 0 18px rgba(255, 255, 255, .6); }
.compare-knob { position: absolute; top: 50%; left: 0; translate: -50% -50%; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; gap: 1px; border-radius: 50%; background: #171b15; box-shadow: 0 8px 20px rgba(0, 0, 0, .5), 0 0 0 4px rgba(255, 255, 255, .6); transition: transform var(--t) var(--ease); }
.compare-knob svg { width: 12px; height: 12px; fill: #f5f1e8; }
.compare-knob svg:first-child { rotate: 180deg; }
.compare .shot:hover .compare-knob, .compare.dragging .compare-knob { transform: scale(1.08); }
.compare-handle:focus-visible .compare-knob { outline: 3px solid var(--leaf); outline-offset: 4px; }

.priv-list { display: grid; gap: .3rem; }
.priv-item { display: flex; gap: .85rem; padding: .9rem 0; border-bottom: 1px solid var(--line-soft); }
.priv-item > svg { width: 20px; height: 20px; flex: none; margin-top: .15rem; fill: var(--leaf); }
.priv-item b { display: block; margin-bottom: .15rem; font-size: .98rem; }
.priv-item p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.priv-limits { margin-top: .9rem; padding: 1rem 1.1rem; border-radius: 14px; background: rgba(212, 161, 63, .08); border: 1px solid rgba(212, 161, 63, .25); }
.priv-limits b { color: var(--sun-bold); font-size: .92rem; }
.priv-limits ul { margin: .5rem 0 0; padding-left: 1.1rem; display: grid; gap: .35rem; color: var(--sun-text); font-size: .88rem; line-height: 1.5; }
.priv-limits a { color: var(--sun-bold); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   08 — pricing
   ============================================================ */

.cur-switch { display: flex; justify-content: center; margin-bottom: 1.8rem; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; max-width: 980px; margin-inline: auto; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.1rem); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.plan-byo { border-color: rgba(var(--leaf-rgb), .4); background: radial-gradient(90% 60% at 50% 0%, rgba(var(--leaf-rgb), .1), transparent 70%), var(--surface); box-shadow: 0 0 0 1px rgba(var(--leaf-rgb), .1), var(--shadow-md); }
.plan-ai { background: radial-gradient(90% 60% at 50% 0%, rgba(212, 161, 63, .08), transparent 70%), var(--surface); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.plan-top h3 { margin: 0; font: 400 1.75rem/1.1 var(--serif); letter-spacing: -.02em; }
.badge { padding: .35rem .7rem; border-radius: 99px; background: var(--leaf-wash); color: var(--leaf); font: 600 .68rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.badge.soon { background: rgba(212, 161, 63, .14); color: var(--sun-ink); }
.plan-tag { margin: .5rem 0 0; color: var(--ink-2); font-weight: 600; }
.plan-price { display: flex; align-items: baseline; gap: .2rem; margin: 1.3rem 0 0; }
.plan-price .amt { font: 400 clamp(3rem, 6vw, 3.8rem)/1 var(--serif); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.plan-price .per { color: var(--faint); font-size: 1rem; }
.plan-alt { margin: .35rem 0 0; color: var(--faint); font-size: .86rem; }
.plan-explain { margin: 1.1rem 0 1.2rem; padding: .85rem 1rem; border-radius: 12px; background: rgba(var(--ink-rgb), .04); color: var(--muted); font-size: .9rem; line-height: 1.55; }
.plan-list { margin: 0 0 1.5rem; padding: 0; list-style: none; display: grid; gap: .6rem; }
.plan-list li { position: relative; padding-left: 1.65rem; color: var(--ink-2); font-size: .93rem; line-height: 1.5; }
.plan-list li svg { position: absolute; left: 0; top: .2em; width: 17px; height: 17px; fill: var(--leaf); }
.plan-list li.dim { color: var(--faint); }
.plan-list li.dim svg { fill: var(--faint); }
.plan .btn.wide, .plan .waitlist { margin-top: auto; }
.plan-fine { margin: .8rem 0 0; color: var(--faint); font-size: .8rem; line-height: 1.5; text-align: center; }
.waitlist { display: flex; gap: .5rem; }
.waitlist input { flex: 1; min-width: 0; min-height: 50px; padding: 0 1rem; border-radius: 99px; border: 1px solid var(--line); background: var(--paper-2); color: var(--ink); font-size: .95rem; }
.waitlist input:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 4px rgba(212, 161, 63, .15); }
.waitlist .btn { min-height: 50px; white-space: nowrap; }
.plan .note { margin: .4rem 0 0; text-align: center; }
.plan .note:empty { display: none; }

.compare-plans { max-width: 980px; margin: 2.6rem auto 0; }
.cp-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .8rem; }
.cp-head h3 { margin: 0; font-size: 1.15rem; }
.cp-diff { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .88rem; cursor: pointer; }
.cp-diff input { width: 17px; height: 17px; accent-color: var(--leaf); }
.table-scroll { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); }
.cp { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .9rem; }
.cp th, .cp td { padding: .8rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.cp thead th { position: sticky; top: 0; background: var(--surface-2); font-size: .9rem; color: var(--ink); }
.cp thead small { display: block; font: 500 .62rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--sun-ink); }
.cp tbody th { width: 30%; color: var(--muted); font-weight: 550; }
.cp td { color: var(--ink-2); }
.cp td svg { width: 16px; height: 16px; vertical-align: -3px; fill: var(--leaf); }
.cp tbody tr:last-child > * { border-bottom: 0; }
.cp tbody tr:hover > * { background: rgba(var(--ink-rgb), .025); }
.cp td:nth-child(2) { background: rgba(var(--leaf-rgb), .035); }
.cp.diff-only tbody tr:not(.diff) { display: none; }
.cp-fine { margin: .9rem 0 0; color: var(--faint); font-size: .86rem; text-align: center; }

/* ============================================================
   09 — download
   ============================================================ */

.download { overflow: hidden; isolation: isolate; }
.download::after { content: ''; position: absolute; z-index: -1; left: 50%; top: 0; translate: -50% 0; width: min(900px, 120%); height: 420px; background: radial-gradient(50% 60% at 50% 0%, var(--glow), transparent 70%); pointer-events: none; }
.dl-status { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; max-width: 840px; margin: 0 auto; padding: 1.1rem 1.25rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.dl-ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(212, 161, 63, .14); }
.dl-ico svg { width: 19px; height: 19px; fill: var(--sun); }
.dl-status[data-state=ready] .dl-ico { background: rgba(108, 201, 155, .14); }
.dl-status[data-state=ready] .dl-ico svg { fill: var(--ok); }
.dl-text { flex: 1; min-width: 220px; }
.dl-text b { display: block; font-size: 1.02rem; }
.dl-text p { margin: .15rem 0 0; font-size: .9rem; color: var(--muted); }
.dl-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.dl-status.swap { animation: fadeUp .5s var(--ease); }
.dl-phone { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; max-width: 840px; margin: 1rem auto 0; padding: .9rem 1.1rem; border-radius: 14px; background: rgba(212, 161, 63, .1); border: 1px solid rgba(212, 161, 63, .3); font-size: .9rem; color: var(--sun-text); }
.dl-phone > svg { width: 18px; height: 18px; flex: none; fill: var(--sun); }
.dl-phone span { flex: 1; min-width: 200px; }
.download .builds { margin: 1.6rem auto 0; }
.download .build { background: var(--surface); }
.download .build .os { background: var(--ink); }
.download .build .os svg { fill: var(--paper); }
.download .build .btn[aria-disabled=true] { opacity: .55; pointer-events: none; }
.dl-path { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.6rem; max-width: 840px; margin: 2rem auto 0; padding: 0; list-style: none; color: var(--muted); font-size: .88rem; }
.dl-path li { display: inline-flex; align-items: center; gap: .5rem; }
.dl-path b { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(var(--leaf-rgb), .45); color: var(--leaf); font: 600 .72rem/1 var(--mono); }
.dl-help { max-width: 840px; margin: 1.2rem auto 0; font-size: .9rem; color: var(--faint); text-align: center; }
.dl-help .text-link, .faq-more .text-link { color: var(--leaf); }

/* ============================================================
   FAQ and contact
   ============================================================ */

.faq-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3.5rem); }
.faq-cols .faq { max-width: none; margin: 0; }
.faq-group { margin: 0 0 .2rem; font: 500 .72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--leaf); }
.faq-more { margin: 2rem 0 0; text-align: center; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-title { margin: 1rem 0 1.4rem; font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
.contact-item { display: flex; align-items: center; gap: .9rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.contact-item .cico { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--leaf-wash); }
.contact-item svg { width: 16px; height: 16px; fill: var(--leaf); }
.contact-item .k { font-size: .78rem; font-weight: 600; color: var(--faint); }
.contact-item .v { font-size: 1rem; font-weight: 600; }
.contact-item a.v:hover { color: var(--leaf); }
.contact-fine { margin: 1.2rem 0 0; font-size: .92rem; color: var(--muted); }
.form-card { padding: clamp(1.5rem, 3vw, 2.1rem); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.home .field input, .home .field textarea { background: var(--paper-2); }
.home .field input::placeholder, .home .field textarea::placeholder { color: #737a6e; }

/* ============================================================
   Narrow screens
   ============================================================ */

@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-wide { grid-row: auto; }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 640px; }
  .hero-stage { max-width: 720px; }
  .shots-grid, .models-grid, .priv-grid { grid-template-columns: 1fr; }
  .uc-panel { grid-template-columns: 1fr; }
  .faq-cols { grid-template-columns: 1fr; }
  .faq-cols .faq + .faq { margin-top: 2rem; }
}
@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .t-wide { grid-column: auto; }
  .hero-proof { justify-content: flex-start; flex-direction: column; gap: .55rem; }
  .shots-visual { height: 380px; }
  .sv-page { width: 82%; }
  .sv-panel { width: 70%; }
  .waitlist { flex-direction: column; }
  .hero-cta .btn { flex: 1 1 100%; }
  .dl-path { justify-content: flex-start; flex-direction: column; }
}

/* ============================================================
   Motion off: every demo shows its finished state
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .hero-title { animation: none; }
  .hs-page, .hs-shot, .hs-a { transition: none !important; }
  .kc.hit, .ak-panel, .mini-wave i, .hs-caption .rec, .tag.rec::before, .meet-tag .live { animation: none !important; }
  .shots-visual .sv-cap, .shots-visual .sv-trio span, .shots-visual .sv-ask, .shots-visual .sv-ans { opacity: 1; transform: none; transition: none; }
  .m-a .w { animation: none; }
}
