/* Kavirel product page */

/* ---------- hero ---------- */
.hero { padding-top: clamp(56px, 9vh, 120px); overflow: hidden; }
.hero h1 { font-size: var(--s-display); max-width: 9.5em; }
.hero-line { font-size: var(--s-lead); line-height: 1.4; color: var(--ink); max-width: 30ch; margin-top: 36px; }
.hero-action { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 40px; }
.meta { font-size: var(--s-small); color: var(--ink-soft); }

/* the teal stage the product sits on; its top-left corner is cut on the K's diagonal.
   On wide screens it rises beside the headline, so the product is on the first screen. */
.stage {
  position: relative; margin-top: clamp(56px, 8vh, 96px);
  margin-left: clamp(20px, 10vw, 200px);
  background: var(--stage);
  clip-path: polygon(clamp(64px, 8vw, 140px) 0, 100% 0, 100% 100%, 0 100%, 0 clamp(64px, 8vw, 140px));
  padding: clamp(40px, 5vw, 80px) 0 0 clamp(40px, 5vw, 80px);
  height: clamp(420px, 62vw, 900px);
  overflow: hidden;
}
.stage .window { width: min(1400px, 92vw); }
@media (min-width: 1100px) {
  .hero { display: grid; grid-template-columns: 5fr 7fr; column-gap: 32px; align-items: start; padding-top: clamp(40px, 6vh, 80px); }
  .hero-text { grid-column: 1; grid-row: 1; padding-right: 0; max-width: none; margin: 0; padding-left: max(var(--margin), calc((100vw - var(--max)) / 2 + var(--margin))); padding-top: clamp(24px, 6vh, 80px); }
  .hero h1 { font-size: clamp(56px, 5.6vw, 92px); }
  .stage { grid-column: 2; grid-row: 1; margin: 0; height: calc(100svh - 120px); min-height: 560px; max-height: 900px; }
  .stage .window { width: max(1180px, 82vw); }
}
/* the first screen arrives at once, settled within a second */
.js .arrive { animation: arrive .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes arrive { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) { .js .arrive { animation: none; } }

/* a Mac window: the real screenshot, with the window buttons the screenshot leaves out */
.window { position: relative; margin: 0; border-radius: 12px 12px 0 0; overflow: hidden; background: #1b1d1f; }
.window img { width: 100%; }
.window .lights { position: absolute; left: 1.15%; top: 1.95%; display: flex; gap: 0.6%; width: 6%; }
.window .lights i, .finder .lights i { flex: 0 0 auto; width: clamp(7px, .85vw, 12px); aspect-ratio: 1; border-radius: 50%; background: #ff5f57; }
.window .lights i:nth-child(2), .finder .lights i:nth-child(2) { background: #febc2e; }
.window .lights i:nth-child(3), .finder .lights i:nth-child(3) { background: #28c840; }
.window.wide { border-radius: 12px; }

/* signature move: the hero window opens like a shutter as the page loads, its picture settling */
.js .shutter { animation: shutter 1.1s var(--ease) .2s both; }
.js .shutter img { animation: settle 1.6s var(--ease) .2s both; transform-origin: 30% 0; }
@keyframes shutter { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) {
  .js .shutter, .js .shutter img { animation: none; }
}

@media (max-width: 720px) {
  .hero-line { font-size: 19px; margin-top: 24px; }
  .stage { margin-left: 0; height: 128vw; padding: 28px 0 0 16px; clip-path: polygon(72px 0, 100% 0, 100% 100%, 0 100%, 0 72px); }
  .stage .window { width: 230vw; }
}

/* ---------- files ---------- */
.files { padding: clamp(120px, 16vw, 220px) 0 0; }
.files-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.files h2 { font-size: var(--s-head); margin-bottom: 32px; }
.files-text p { font-size: 17px; max-width: 34ch; }
.files-text p + p { margin-top: 18px; }
.files-pics { position: relative; display: grid; grid-template-columns: 5fr 7fr; gap: 24px; align-items: end; }
.doc-icon { width: 100%; max-width: 300px; }

.finder { background: var(--ground); color: var(--ink); border-radius: 10px; overflow: hidden; font-size: 13px; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 18px 50px rgba(0,0,0,.14); border: 1px solid rgba(127,127,127,.18); } /* taste-skill-ignore: inside a data-ui fragment (Mac window convention) */
.finder-bar { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--ground-2); }
.finder-bar .lights { display: flex; gap: 7px; }
.finder-bar .lights i { width: 12px; }
.finder-head, .finder-row { display: grid; grid-template-columns: 1fr 64px 118px; gap: 10px; padding: 7px 14px; }
.finder-head { color: var(--ink-soft); font-size: 12px; border-bottom: 1px solid rgba(127,127,127,.2); } /* taste-skill-ignore: inside a data-ui fragment (Mac window convention) */
.finder-row span:first-child { display: flex; align-items: center; gap: 8px; }
.finder-row span:not(:first-child) { color: var(--ink-soft); }
.finder-row.sel { background: #0a64d6; color: #fff; }
.finder-row.sel span { color: #fff !important; }
.finder-row:nth-child(even):not(.sel) { background: rgba(127,127,127,.07); }

@media (max-width: 900px) {
  .files-grid { grid-template-columns: 1fr; }
  .files-pics { grid-template-columns: 1fr; }
  .doc-icon { max-width: 200px; }
}

/* ---------- offline and unlimited: two fields side by side ---------- */
.free { padding-top: clamp(120px, 16vw, 220px); }
.free h2 { font-size: var(--s-head); margin-bottom: 56px; }
.free-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.free-half { border-radius: 28px; padding: clamp(32px, 4vw, 64px); }
.free-off { background: var(--night); color: var(--night-ink); }
.free-many { background: var(--accent); color: #fff; }
.free-half h3 { font-size: clamp(32px, 3.4vw, 52px); letter-spacing: -0.035em; line-height: 1.02; margin-bottom: 20px; }
.free-half > p { font-size: 19px; line-height: 1.45; max-width: 34ch; }
.free-half ul { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 18px; }
.free-half li { font-size: 16px; line-height: 1.5; max-width: 42ch; opacity: .92; }
.free-half li b { display: block; font-weight: 600; opacity: 1; }
html[data-theme="dark"] .free-off { background: #1a1f21; }
@media (max-width: 860px) { .free-grid { grid-template-columns: 1fr; } }

/* ---------- features: small proof beside text ---------- */
.features { padding-top: clamp(120px, 16vw, 220px); }
.sec-title { font-size: var(--s-head); margin-bottom: 72px; }
.mod { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 340px); gap: 40px; align-items: start; margin-left: clamp(0px, 14vw, 240px); }
.mod + .mod { margin-top: 96px; }
.mod-text h3 { margin-bottom: 12px; }
.mod-text p { color: var(--ink); font-size: 17px; }
.panel { background: var(--ground-2); border-radius: 18px; padding: 28px; overflow: hidden; font-size: 14px; }

/* auto layout, live */
.al-frame { display: flex; gap: var(--gap); padding: var(--pad); background: var(--ground); border-radius: 12px; outline: 1.5px solid var(--accent-text); outline-offset: -1.5px; transition: gap .15s, padding .15s; flex-wrap: wrap; min-height: 90px; }
.al-item { background: var(--accent); color: #fff; font-weight: 600; font-size: 18px; padding: 14px 18px; border-radius: 10px; font-variant-numeric: tabular-nums; animation: pop .3s var(--ease); }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
.al-props { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 20px; color: var(--ink-soft); }
.al-props label { display: flex; align-items: center; gap: 10px; }
.al-props output { min-width: 2ch; color: var(--ink); font-variant-numeric: tabular-nums; }
.al-props input[type=range] { accent-color: var(--accent); width: 120px; }
.al-props button { font: 500 14px "Inter", system-ui, sans-serif; color: var(--ink); background: var(--ground); border: 1px solid rgba(127,127,127,.35); /* taste-skill-ignore: inside a data-ui fragment (Mac window convention) */ border-radius: 8px; padding: 7px 12px; cursor: pointer; transition: transform .15s; }
.al-props button:hover { border-color: var(--accent-text); }
.al-props button:active { transform: scale(.96); }

/* components */
.comp-label { font-weight: 600; color: var(--accent-text); margin-bottom: 14px; }
.var-row { display: flex; flex-wrap: wrap; gap: 14px; padding: 18px; border: 1.5px dashed #8a63d2; border-radius: 12px; }
.v { padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.v-primary { background: #12202b; color: #fff; }
.v-secondary { background: var(--ground); color: var(--ink); box-shadow: inset 0 0 0 1.5px currentColor; } /* taste-skill-ignore: a secondary button's outline inside a data-ui fragment */
.v-off { background: rgba(127,127,127,.18); color: var(--ink-soft); }
.var-names { display: flex; gap: 14px; margin-top: 10px; color: var(--ink-soft); font-size: 13px; padding-left: 18px; }
.var-names span { min-width: 92px; }

/* fonts */
.fonts { list-style: none; margin: 0; padding: 0; font-size: 28px; line-height: 1.2; }
.fonts li { padding: 8px 12px; border-radius: 8px; }
.fonts li.on { background: var(--accent); color: #fff; }

/* pen */
.pen { width: 100%; height: auto; color: var(--ink); }
.pen .h { stroke: var(--accent-text); stroke-width: 1.5; }
.pen .hd { fill: var(--ground); stroke: var(--accent-text); stroke-width: 1.5; }
.pen .pt { fill: var(--ground); stroke: var(--accent-text); stroke-width: 2; }
.pen .pt.sel { fill: var(--accent-text); }

/* export */
.exp-row { display: grid; grid-template-columns: 56px 64px 1fr; gap: 10px; padding: 9px 12px; background: var(--ground); border-radius: 8px; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.exp-row .muted { color: var(--ink-soft); }
.exp-btn { margin-top: 14px; padding: 11px; text-align: center; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 500; }

/* versions */
.versions { list-style: none; margin: 0; padding: 0; }
.versions li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: 8px; }
.versions li span { color: var(--ink-soft); white-space: nowrap; }
.versions li b { font-weight: 500; }
.versions li.on { background: var(--ground); box-shadow: inset 3px 0 0 var(--accent); } /* taste-skill-ignore: selected row marker inside a data-ui fragment */

@media (max-width: 900px) {
  .mod { grid-template-columns: 1fr; margin-left: 0; gap: 16px; }
  .mod + .mod { margin-top: 64px; }
  .sec-title { margin-bottom: 48px; }
}

/* ---------- light and dark ---------- */
.daylight { padding-top: clamp(120px, 16vw, 220px); }
.daylight h2 { font-size: var(--s-head); }
.daylight .lead { font-size: var(--s-lead); line-height: 1.4; max-width: 34ch; margin-top: 24px; }
.daylight .window { margin: 64px auto 0; width: calc(100% - 2 * var(--margin)); max-width: var(--max); }
.window video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; background: #1b1d1f; }

/* ---------- from Figma: the plugin window beside the steps ---------- */
.hand-off { display: flex; align-items: center; gap: clamp(16px, 4vw, 48px); margin-top: 56px; }
.ho-file { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ho-doc { position: relative; display: block; width: clamp(84px, 11.5vw, 124px); }
.ho-doc svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.18)); }
.ho-page { fill: #ffffff; stroke: rgba(0,0,0,.12); stroke-width: 1.5; }
.ho-fold { fill: #e6e8e8; stroke: rgba(0,0,0,.12); stroke-width: 1.5; }
/* Figma's official icon, unchanged, set on the page; its file has room around the mark */
.ho-file .ho-fig { position: absolute; margin: 0; left: 50%; top: 56%; width: 92%; height: auto; transform: translate(-50%, -50%); }
.ho-file img { width: clamp(124px, 17vw, 186px); height: auto; margin: -14% 0 -12%; }
.ho-file figcaption { font-size: var(--s-small); color: var(--ink-soft); white-space: nowrap; }
.ho-arrow { position: relative; flex: 0 1 140px; min-width: 48px; height: 3px; margin-bottom: 34px; background: linear-gradient(90deg, rgba(127,127,127,.35), var(--accent-text)); border-radius: 2px; }
.ho-arrow::after { content: ""; position: absolute; right: -2px; top: 50%; width: 14px; height: 14px; border: solid var(--accent-text); border-width: 3px 3px 0 0; transform: translateY(-50%) rotate(45deg); border-radius: 2px; }
.ho-arrow i { position: absolute; top: -3px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-text); animation: ho-run 2.4s var(--ease) infinite; }
@keyframes ho-run { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 12px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ho-arrow i { animation: none; display: none; } }
.figma-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 520px); gap: clamp(32px, 6vw, 96px); align-items: start; margin-top: 64px; }
.plug { background: var(--ground); border-radius: 12px; overflow: hidden; font-size: 14px; box-shadow: 0 0 0 1px rgba(127,127,127,.25), 0 24px 60px -24px rgba(0,0,0,.35); } /* taste-skill-ignore: a Figma plugin window inside a data-ui fragment */
.plug-bar { display: flex; justify-content: space-between; align-items: center; padding: 11px 16px; background: var(--ground-2); font-size: 13px; }
.plug-bar span { color: var(--ink-soft); font-size: 16px; line-height: 1; }
.plug-body { display: flex; flex-direction: column; padding: 20px 20px 18px; }
.plug-title { font-size: 18px; }
.plug-sub { color: var(--ink-soft); margin-top: 4px; }
.plug-list { list-style: none; margin: 18px 0 0; padding: 0; }
.plug-list li { padding: 7px 0 7px 26px; position: relative; }
.plug-list li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 10px; height: 6px; border: solid var(--accent-text); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.plug-btns { display: flex; gap: 10px; margin-top: 20px; }
.plug-btns span { padding: 9px 14px; border-radius: 8px; background: var(--ground-2); font-weight: 500; }
.plug-btns span.on { background: var(--accent); color: #fff; }
.figma-text h3 { margin-bottom: 12px; }
.figma-text h3 + p, .figma-text p { color: var(--ink); font-size: 17px; }
.figma-text p + h3 { margin-top: 40px; }
.figma-steps { margin: 0 0 32px; padding-left: 22px; font-size: 17px; }
.figma-steps li { padding-left: 6px; }
.figma-steps li + li { margin-top: 10px; }
.figma-steps b { font-weight: 600; }
.figma-text .figma-note { margin-top: 18px; max-width: 46ch; color: var(--ink-soft); font-size: var(--s-small); }
@media (max-width: 900px) { .figma-grid { grid-template-columns: 1fr; margin-top: 40px; } }

/* ---------- about: lead line over four columns ---------- */
.about { padding: clamp(120px, 14vw, 200px) 0 96px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.about-lead { font-size: clamp(22px, 2.3vw, 34px); line-height: 1.25; letter-spacing: -0.015em; max-width: 36ch; }
.cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 72px; }
.cols p { font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.cols b { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr 1fr; row-gap: 40px; } }
@media (max-width: 520px) { .cols { grid-template-columns: 1fr; row-gap: 28px; } .about-lead { font-size: 21px; } }

/* ---------- install: drag through the stages ---------- */
.install { background: var(--night); color: var(--night-ink); }
.install-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 72svh; }
.install-clause { padding: clamp(56px, 8vw, 120px) var(--margin) 40px; }
.install-clause h2 { font-size: clamp(40px, 4.6vw, 72px); max-width: 11em; transition: opacity .2s; }
.install-pic { position: relative; background: var(--accent); display: grid; place-items: center; overflow: hidden; }
.step-frag { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(.97); transition: opacity .25s, transform .35s var(--ease); pointer-events: none; color: #111517; }
.step-frag.on { opacity: 1; transform: none; }
.dl-row { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 14px; padding: 16px 22px; font-size: 15px; box-shadow: 0 20px 50px rgba(0,0,0,.2); } /* taste-skill-ignore: inside a data-ui fragment (Mac window convention) */
.dl-row span { display: flex; flex-direction: column; }
.dl-row small { color: #4d575b; font-size: 13px; }
.dmg { display: flex; align-items: center; gap: 40px; background: #fff; border-radius: 14px; padding: 36px 48px; box-shadow: 0 20px 50px rgba(0,0,0,.2); } /* taste-skill-ignore: inside a data-ui fragment (Mac window convention) */
.dmg figure { margin: 0; display: grid; justify-items: center; gap: 8px; font-size: 14px; }
.dmg .arrow { font-size: 30px; color: #4d575b; }
.folder { width: 84px; height: 66px; margin-top: 10px; border-radius: 8px; background: #4fa3e6; position: relative; }
.folder::before { content: ""; position: absolute; left: 0; top: -9px; width: 34px; height: 14px; border-radius: 5px 5px 0 0; background: #4fa3e6; }
.launch { display: grid; justify-items: center; gap: 10px; color: #fff; font-size: 15px; font-weight: 500; }
.start { display: grid; gap: 10px; justify-items: start; background: #fff; border-radius: 14px; padding: 32px 36px; max-width: 360px; box-shadow: 0 20px 50px rgba(0,0,0,.2); } /* taste-skill-ignore: inside a data-ui fragment (Mac window convention) */
.start b { font-size: 22px; letter-spacing: -0.01em; }
.start span { color: #4d575b; font-size: 14px; }
.start em { font-style: normal; background: var(--accent); color: #fff; border-radius: 8px; padding: 8px 14px; font-size: 14px; font-weight: 500; margin-top: 6px; }
.install-track { padding-top: 32px; padding-bottom: 48px; }
.install-track input { width: 100%; -webkit-appearance: none; appearance: none; height: 8px; border-radius: 0; background: linear-gradient(var(--night-ink), var(--night-ink)) 0 / var(--fill, 0%) 100% no-repeat, rgba(255,255,255,.18); /* taste-skill-ignore: a flat two-part slider track, not a gradient */ cursor: pointer; }
.install-track input::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; background: var(--accent); border: 3px solid var(--night-ink); cursor: grab; }
.install-track input::-moz-range-thumb { width: 26px; height: 26px; background: var(--accent); border: 3px solid var(--night-ink); border-radius: 0; cursor: grab; }
.step-names { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); font-size: 16px; color: rgba(243,245,245,.62); }
.step-names li { cursor: pointer; transition: color .2s; }
.step-names li:nth-child(2) { text-align: center; transform: translateX(-16%); }
.step-names li:nth-child(3) { text-align: center; transform: translateX(16%); }
.step-names li:last-child { text-align: right; }
.step-names li.on, .step-names li:hover { color: var(--night-ink); }
@media (max-width: 720px) {
  .install-split { grid-template-columns: 1fr; }
  .install-pic { order: -1; min-height: 46svh; }
  .install-clause h2 { font-size: 9vw; }
  .dmg { padding: 24px; gap: 20px; }
  .step-names { grid-template-columns: 1fr 1fr; gap: 8px; font-size: 15px; }
  .step-names li { text-align: left !important; transform: none !important; }
}

/* ---------- download ---------- */
.get { padding-top: clamp(120px, 16vw, 220px); }
.get h2 { font-size: var(--s-display); max-width: 8.5em; }
.get-action { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 48px; }
