/* Fonts */
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-display: swap; src: url(assets/fonts/ibm-plex-sans-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-display: swap; src: url(assets/fonts/ibm-plex-sans-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-display: swap; src: url(assets/fonts/ibm-plex-sans-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-display: swap; src: url(assets/fonts/ibm-plex-sans-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-display: swap; src: url(assets/fonts/ibm-plex-sans-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-display: swap; src: url(assets/fonts/ibm-plex-sans-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-display: swap; src: url(assets/fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-display: swap; src: url(assets/fonts/ibm-plex-mono-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-display: swap; src: url(assets/fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 600; font-display: swap; src: url(assets/fonts/ibm-plex-mono-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-display: swap; src: url(assets/fonts/ibm-plex-mono-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Tokens */
:root {
  --bg: #11130E; --surface: #191C15; --surface-2: #20241B; --selected: #252B1C;
  --line: #2C3125; --line-soft: #23271E; --line-strong: #3A4030;
  --text: #E4E7DC; --text-2: #C4C9B8; --muted: #9BA18F;
  --accent: #B4C17E; --accent-hover: #CBD69A; --accent-text: #B4C17E; --on-accent: #11130E;
  --status-ok: #9DB06A; --status-low: #E0A84A; --status-out: #E8806A;
  --sans: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --head-h: 57px;
  --stage-h: calc(100svh - var(--head-h));
  --gutter: 24px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F5F5EF; --surface: #FFFFFF; --surface-2: #E9EBE1; --selected: #E1E7CF;
  --line: #D9DCCE; --line-soft: #E7E9DF; --line-strong: #BFC4B0;
  --text: #1B1E16; --text-2: #3B4033; --muted: #5C6250;
  --accent: #B4C17E; --accent-hover: #A3B16A; --accent-text: #55621E; --on-accent: #11130E;
  --status-ok: #4C6A1C; --status-low: #94600A; --status-out: #B03A22;
  color-scheme: light;
}

/* Base */
* { box-sizing: border-box; }
html { scroll-padding-top: var(--head-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.55 var(--sans); }
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: var(--accent-text); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: calc(1180px + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }
.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.eyebrow { font: 400 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }

.logo { display: inline-flex; align-items: center; gap: 8px; font: 500 16px var(--mono); color: var(--text); text-decoration: none; }
.logo svg { width: 18px; height: 18px; fill: var(--accent-text); }

/* The logo in motion, the same as on the app's sign-in pages (Logo.module.css). Each moving part has
   its own group, so the animations on mount, the idle ones and the hover ones never replace each other. */
.mark { display: block; flex: none; overflow: visible; fill: var(--accent-text); }
.lid, .hop, .body, .eyes, .blink, .eye { transform-box: fill-box; }
.lid, .hop { transform-origin: 0% 100%; }
.body { transform-origin: 50% 100%; }
.blink, .eye { transform-origin: 50% 50%; }

.land .lid { animation: lidLand .7s cubic-bezier(.3, .7, .4, 1) .15s both; }
.land .eye { animation: open .35s cubic-bezier(.3, 1.6, .5, 1) .8s both; }

/* stack waits for .go, or for its [data-play] parent to reach the screen */
.stack:is(.go, .play *) .body { animation: boxDrop .55s cubic-bezier(.3, .7, .4, 1) .1s both; }
.stack:is(.go, .play *) .lid { animation: lidDrop .55s cubic-bezier(.3, .7, .4, 1) .5s both; }
.stack:is(.go, .play *) .eye { animation: open .35s cubic-bezier(.3, 1.6, .5, 1) 1s both; }
.stack:is(.go, .play *) .eyes { animation: look 8s ease-in-out 3s infinite; }
.stack:is(.go, .play *) .blink { animation: idleBlink 8s 3s infinite; }

.logo:hover .land .hop, .stack:hover .hop { animation: hop .6s cubic-bezier(.3, .7, .4, 1); }
.logo:hover .land .eyes, .stack:hover .eyes { animation: blinkOnce .3s .1s; }

@keyframes lidLand {
  0% { transform: translateY(-9px) rotate(-24deg); opacity: 0; }
  55% { transform: translateY(0) rotate(4deg); opacity: 1; }
  75% { transform: rotate(-2deg); }
  100% { transform: none; }
}
@keyframes boxDrop {
  0% { transform: translateY(-14px); opacity: 0; }
  70% { transform: translateY(0) scale(1.04, .92); opacity: 1; }
  100% { transform: none; }
}
@keyframes lidDrop {
  0% { transform: translateY(-12px); opacity: 0; }
  70% { transform: translateY(0) scale(1.03, .85); opacity: 1; }
  100% { transform: none; }
}
@keyframes open { from { transform: scaleY(.1); } to { transform: none; } }
@keyframes look {
  0%, 6% { transform: none; }
  10%, 20% { transform: translateX(-1.2px); }
  25%, 35% { transform: translateX(1.2px); }
  40%, 100% { transform: none; }
}
@keyframes idleBlink { 0%, 60%, 64%, 100% { transform: none; } 62% { transform: scaleY(.1); } }
@keyframes blinkOnce { 50% { transform: scaleY(.1); } }
@keyframes hop { 0%, 100% { transform: none; } 40% { transform: translateY(-1.5px) rotate(-16deg); } 70% { transform: rotate(2deg); } }

.brand { display: flex; align-items: center; gap: 20px; margin-bottom: 8px; }
.brand .mark { width: 80px; height: 80px; }
.brand-name { font: 600 64px/1 var(--mono); letter-spacing: -.02em; }

.btn, .cta {
  display: inline-flex; align-items: center; justify-content: center; border-radius: 4px;
  background: var(--accent); color: var(--on-accent); font-weight: 500; text-decoration: none;
  transition: background .15s;
}
.btn { min-height: 40px; padding: 0 16px; font-size: 15px; white-space: nowrap; }
.cta { min-height: 48px; padding: 0 20px; }
.btn:hover, .cta:hover { background: var(--accent-hover); }

/* Header */
.top { position: sticky; top: 0; z-index: 10; height: var(--head-h); background: var(--bg); border-bottom: 1px solid var(--line); }
.top-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top-actions { display: flex; align-items: center; gap: 16px; }
/* The small logo stands in once the large one in the hero has left the screen */
.pinned .top .logo { visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
.pinned .top.brand-away .logo { visibility: visible; opacity: 1; }
.pinned .top:not(.brand-away) .logo * { animation: none; }
.login { font-size: 15px; font-weight: 500; }
.theme { display: none; width: 40px; height: 40px; place-items: center; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--muted); }
.theme:hover { color: var(--text); }
.js .theme { display: grid; }
.theme .ic-moon { display: none; }
:root[data-theme="light"] .theme .ic-sun { display: none; }
:root[data-theme="light"] .theme .ic-moon { display: block; }

/* Hero */
.hero { padding-block: 56px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 64px; align-items: center; }
.hero-copy { display: grid; gap: 20px; min-width: 0; }
h1 { font-size: clamp(44px, 6vw, 72px); line-height: 1.04; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
.sub { max-width: 56ch; color: var(--text-2); font-size: 18px; }
.cta-row { display: grid; gap: 12px; justify-items: start; }
.note { font-size: 14px; color: var(--muted); }

.live { min-width: 0; overflow: hidden; }
.bar { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); font: 400 12px var(--mono); color: var(--muted); }
.card { padding: 24px; display: grid; gap: 20px; }
.card-head { display: flex; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; align-items: baseline; }
.card-head b { font-size: 18px; font-weight: 600; }
.sku { font: 400 12px var(--mono); color: var(--muted); }
.mid { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding-top: 12px; }
.mid-side { display: grid; gap: 4px; justify-items: end; }
.mid-side small { font: 400 12px var(--mono); color: var(--muted); }
.big { position: relative; display: inline-flex; align-items: baseline; gap: 8px; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.big .num { font-size: clamp(72px, 9vw, 104px); line-height: 1; font-weight: 500; }
.big .unit { font-size: 15px; color: var(--muted); }
.delta { position: absolute; left: 0; top: -22px; font: 500 20px/1 var(--mono); opacity: 0; color: var(--text); }
.delta.pop { animation: pop 1s ease-out; }
@keyframes pop { 0% { opacity: 0; transform: translateY(10px); } 18% { opacity: 1; transform: none; } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px); } }

.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); white-space: nowrap; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--status-ok); }
.status.low { color: var(--status-low); }
.status.low i { background: var(--status-low); }
.status.out { color: var(--status-out); }
.status.out i { background: var(--status-out); }

.sync { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sync .ic-send { display: none; }
.sync.sending { color: var(--accent-text); }
.sync.sending .ic-check { display: none; }
.sync.sending .ic-send { display: block; animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.moves { border-top: 1px solid var(--line); }
.moves li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; color: var(--text-2); transition: opacity .25s, transform .25s; }
.moves li:last-child { border-bottom: 0; padding-bottom: 0; }
.moves li.pending { opacity: 0; transform: translateY(4px); }
.moves b, .mini b { font: 500 14px var(--mono); color: var(--text); font-variant-numeric: tabular-nums; }
b.plus, .moves b.plus, .mini b.plus { color: var(--accent-text); }

/* Excel scene: a normal section, pinned while scrolling only under html.pinned */
.scene { border-top: 1px solid var(--line); padding-block: 64px; }
.scene-grid { display: grid; grid-template-columns: minmax(0, .68fr) minmax(0, 1.5fr); gap: 48px; align-items: center; }
.copy { display: grid; gap: 16px; min-width: 0; }
.steps { display: grid; gap: 20px; }
.steps h3, .step-title { font-weight: 600; }
.steps h3 { font-size: 18px; line-height: 1.3; }
.steps p { color: var(--text-2); font-size: 16px; }

.pinned .scene { height: calc(var(--stage-h) * 4.75); padding: 0; }
.pinned .pin { position: sticky; top: var(--head-h); height: var(--stage-h); overflow: hidden; display: flex; align-items: center; }

.copy-now { display: grid; gap: 12px; min-height: 196px; align-content: start; }
.step-title { font-size: clamp(26px, 3vw, 36px); line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
.step-text { color: var(--text-2); max-width: 40ch; }
.swap { animation: rise .3s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.rail button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 32px; padding: 4px 0; border: 0; border-radius: 4px; background: transparent; text-align: left; }
.rail span { flex: none; width: 16px; height: 4px; border-radius: 2px; background: var(--line-strong); transition: background .2s; }
.rail em { font: normal 14px var(--sans); color: var(--muted); }
.rail button[aria-current="step"] span, .rail button.done span { background: var(--accent); }
.rail button[aria-current="step"] em { color: var(--text); font-weight: 500; }

.win { display: grid; grid-template-columns: 0 minmax(0, 1fr); min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; transition: grid-template-columns .4s ease; }
.win.app { grid-template-columns: 164px minmax(0, 1fr); }
.win-side { background: var(--surface-2); overflow: hidden; display: grid; gap: 4px; align-content: start; padding-block: 12px; }
.win.app .win-side { border-right: 1px solid var(--line); }
.side-logo { width: 139px; margin: 0 12px 8px; padding: 4px 8px; font-size: 14px; }
.side-logo svg { width: 16px; height: 16px; }
.win:not(.app) .side-logo * { animation: none; }
.side-logo b { font-weight: 500; }
.win-side span { display: flex; align-items: center; gap: 8px; width: 139px; min-height: 34px; margin-inline: 12px; padding: 0 8px; border-radius: 4px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.win-side span.on { background: var(--selected); color: var(--text); }
.win-side span.on .ic { color: var(--accent-text); }
.win-main { min-width: 0; }

/* Keeps the window from shrinking when the duplicate rows collapse */
.sheet { min-height: 362px; }
.row { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .4s ease; }
.row.gone { grid-template-rows: 0fr; }
.cells { min-height: 0; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 92px 96px 148px; }
.cell { min-width: 0; min-height: 48px; padding: 12px; font-size: 14px; border-bottom: 1px solid var(--line-soft); border-right: 1px solid var(--line); transition: background .3s, color .3s, border-color .3s; }
.cell:last-child { border-right-color: transparent; }
.head .cell { min-height: 0; padding-block: 6px; font: 400 11px/1.5 var(--mono); letter-spacing: .08em; color: var(--muted); background: var(--surface-2); }
.cell.q { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.row:not(.head) .cell.s { font-family: var(--mono); font-size: 12px; line-height: 21px; color: var(--muted); }
.row.flag .cell { color: var(--status-low); }
.sheet.flagging .row.flag .cell { background: var(--selected); }
.win.app .cell { border-right-color: transparent; }
.row.gone .cell { border-bottom-color: transparent; }

/* Sections */
.sec { border-top: 1px solid var(--line); padding-block: 80px; }
.sec-head { display: grid; gap: 12px; margin-bottom: 40px; }
.sec-head h2, .final h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; font-weight: 600; letter-spacing: -.01em; max-width: 24ch; text-wrap: balance; }
.sec-head p:not(.eyebrow) { color: var(--text-2); max-width: 58ch; }
h3 { font-size: 18px; font-weight: 600; line-height: 1.3; }

.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.strip > * { padding: 28px; border-right: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.strip > :last-child { border-right: 0; }
.strip p { color: var(--text-2); font-size: 16px; }
.strip .n { font: 500 13px var(--mono); color: var(--accent-text); }

/* Drawings in "Kako radi", from the app's loaders. They play once on reaching the screen; the markup is their end state. */
.draw { width: 160px; height: 64px; margin-bottom: 12px; overflow: visible; fill: var(--accent-text); }
.draw .line { fill: none; stroke: var(--text-2); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.draw .wire { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 3 5; }
.draw .packet { fill: var(--accent); opacity: 0; }
.draw .tick { fill: none; stroke: var(--accent-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.draw-num { font: 500 40px var(--mono); fill: var(--text); }

.play .packet { animation: travel 1.1s linear 3 both; }
.play .packet:nth-of-type(2) { animation-delay: .36s; }
.play .packet:nth-of-type(3) { animation-delay: .72s; }
.play .whs { animation: lit .3s linear 3.5s both; }
.play .drop { animation: drop .5s cubic-bezier(.3, .7, .4, 1) .3s both; }
.play .drop:nth-of-type(2) { animation-delay: .55s; }
.play .drop:nth-of-type(3) { animation-delay: .8s; }
.play .tick { animation: tick .45s ease-out 1.2s both; }
.play .meter i { animation: grow .8s ease-out .2s both; }

.pinned [data-play]:not(.play) .whs { fill: var(--muted); }
.pinned [data-play]:not(.play) .drop, .pinned [data-play]:not(.play) .tick, .pinned [data-play]:not(.play) .mark { opacity: 0; }
.pinned [data-play]:not(.play) .meter i { transform: scaleX(0); }

@keyframes travel { 0% { transform: translateX(0); opacity: 0; } 15%, 85% { opacity: 1; } 100% { transform: translateX(38px); opacity: 0; } }
@keyframes lit { from { fill: var(--muted); } to { fill: var(--accent-text); } }
@keyframes drop { 0% { transform: translateY(-12px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes tick { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }

.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feat { padding: 20px; display: grid; gap: 8px; grid-template-rows: auto auto 1fr auto; }
.feat > p { color: var(--text-2); font-size: 15px; }
.feat-ic { width: 20px; height: 20px; margin-bottom: 4px; color: var(--accent-text); }
.mini { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.mini > div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 13px; color: var(--text-2); }
.mini b { font-size: 13px; white-space: nowrap; }
.mini b.low { color: var(--status-low); }
.mini b.out { color: var(--status-out); }
.mini .meter { display: block; height: 4px; padding: 0; margin-bottom: 4px; border-radius: 2px; background: var(--surface-2); }
.meter i { display: block; height: 100%; width: var(--w); border-radius: 2px; background: var(--accent); transform-origin: 0 50%; }

.price { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; padding: 32px; }
.price .sec-head { margin: 0; }

.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; align-items: start; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 16px 0; font-weight: 500; }
details p { padding-bottom: 16px; color: var(--text-2); }

.final .wrap { display: grid; gap: 24px; justify-items: center; text-align: center; }
.final .mark { width: 72px; height: 72px; }

.foot { border-top: 1px solid var(--line); padding-block: 24px; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.foot-nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }

/* Narrow screens */
@media (max-width: 1100px) {
  /* The app's sidebar sits on top of the sheet here, and opens downward instead of sideways */
  .win, .win.app { grid-template-columns: minmax(0, 1fr); grid-template-rows: 0fr auto; transition: grid-template-rows .4s ease; }
  .win.app { grid-template-rows: 1fr auto; }
  .win-side { display: flex; align-items: center; gap: 4px; min-height: 0; padding-block: 0; }
  .win.app .win-side { border-right: 0; border-bottom: 1px solid var(--line); padding-block: 6px; }
  .side-logo { width: auto; margin: 0 8px 0 12px; padding: 0; }
  .win-side span { width: auto; min-height: 30px; margin-inline: 0; }
  .scene-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: 32px; }
  .cells { grid-template-columns: minmax(0, 1fr) 84px 96px 148px; }
}
@media (min-width: 861px) and (max-width: 1000px) {
  .win-side span:not(.on) { font-size: 0; gap: 0; padding: 0 6px; }
}
@media (max-width: 860px) {
  .hero { padding-block: 32px 40px; }
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .scene { padding-block: 40px; }
  .scene-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sheet { min-height: 0; }
  .pinned .pin { align-items: flex-start; padding-top: 16px; }
  .pinned .scene-grid { gap: 8px; }
  .copy-now { gap: 6px; min-height: 124px; }
  .step-title { font-size: 24px; }
  .step-text { font-size: 15px; }
  #scene-title { order: -2; }
  .rail { display: flex; flex-wrap: wrap; gap: 0 14px; order: -1; }
  .rail button { gap: 6px; width: auto; min-height: 26px; padding: 0; }
  .rail span { width: 10px; }
  .rail em { font-size: 13px; }
  .sec { padding-block: 56px; }
  .strip { grid-template-columns: minmax(0, 1fr); }
  .strip > * { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px; }
  .strip > :last-child { border-bottom: 0; }
  .feats, .faq { grid-template-columns: minmax(0, 1fr); }
  .price { grid-template-columns: minmax(0, 1fr); padding: 20px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .btn { min-height: 44px; padding: 0 12px; font-size: 14px; }
  .brand { gap: 12px; margin-bottom: 0; }
  .brand .mark { width: 56px; height: 56px; }
  .brand-name { font-size: 44px; }
  .theme { width: 44px; height: 44px; }
  .top-actions { gap: 8px; }
  .login { font-size: 14px; }
  .cta { width: 100%; min-height: 56px; }
  .card { padding: 16px; gap: 12px; }
  .cells { grid-template-columns: minmax(0, 1fr) 62px 48px 108px; }
  .cell { min-height: 38px; padding: 8px 6px; font-size: 13px; }
  .row:not(.head) .cell.s { font-size: 10px; line-height: 18px; }
  .head .cell { font-size: 10px; letter-spacing: 0; }
  .cell .status { font-size: 11px; gap: 4px; }
  /* Columns B and D are empty in the Excel steps, so the raw quantities get their width */
  .pinned .win:not(.app) .cells { grid-template-columns: minmax(0, 1fr) 28px 92px 28px; }
  .bar { flex-wrap: wrap; gap: 0 8px; font-size: 11px; }
  /* Only the current page keeps its label, the others are their icons */
  .side-logo { margin-right: 4px; }
  .win-side span:not(.on) { font-size: 0; gap: 0; padding: 0 6px; }
}
@media (max-width: 370px) {
  .logo span, .side-logo b { display: none; }
  .cells { grid-template-columns: minmax(0, 1fr) 56px 42px 108px; }
  .row:not(.head) .cell.s { padding-inline: 4px; white-space: nowrap; }
  .pinned .win:not(.app) .cells { grid-template-columns: minmax(0, 1fr) 20px 84px 20px; }
  .cell { font-size: 12px; }
}
/* Low phones: everything stays, it only sits tighter */
@media (max-width: 860px) and (max-height: 640px) {
  .pinned .pin { padding-top: 8px; }
  .pinned .scene-grid { gap: 4px; }
  .copy { gap: 6px; }
  .rail button { min-height: 22px; }
  .copy-now { gap: 2px; min-height: 104px; }
  .step-title { font-size: 20px; }
  .step-text { font-size: 14px; line-height: 1.35; }
  .bar { padding-block: 5px; }
  .cell { min-height: 30px; padding-block: 5px; line-height: 1.3; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
