@font-face {
  font-family: "Bad Script";
  src: url("assets/fonts/bad-script-v18.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --outside: #0b0b0c;
  --canvas: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: #f0f0f2;
  --text: #1d1d1f;
  --muted: #68686d;
  --muted-light: #929297;
  --line: #d8d8dc;
  --line-soft: #e7e7ea;
  --action: #1d1d1f;
  --action-hover: #000000;
  --focus: #0071e3;
  --brand-orange: #e25d00;
  --portrait-backdrop: #ffd8c2;
  --content-width: 1640px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; scrollbar-width: none; background: var(--outside); }
body { min-width: 320px; margin: 0; scrollbar-width: none; background: var(--outside); color: var(--text); font: 16px/1.48 var(--font); -webkit-font-smoothing: antialiased; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }

.skip-link { position: fixed; top: -80px; left: 24px; z-index: 100; padding: 11px 15px; border-radius: 10px; background: var(--action); color: #fff; font-weight: 650; text-decoration: none; }
.skip-link:focus { top: 20px; }
:focus-visible { outline: 3px solid rgba(0,113,227,.42); outline-offset: 3px; }

.site-shell { width: calc(100% - 16px); min-height: calc(100vh - 16px); margin: 8px auto; overflow: clip; border-radius: 22px; background: var(--canvas); }
.topbar { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(29,29,31,.08); background: rgba(245,245,247,.88); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); }
.topbar-inner { width: min(var(--content-width), calc(100% - 80px)); min-height: 88px; display: flex; align-items: center; justify-content: space-between; margin: 0 auto; }
.topbar-brand { min-height: 52px; display: flex; align-items: baseline; gap: 0; color: var(--text); font-family: "SF Pro Display", var(--font); font-size: 25px; font-weight: 680; letter-spacing: -.055em; text-decoration: none; }
.topbar-brand .brand-at { margin-right: 1px; color: var(--muted); font-weight: 520; }
.topbar-help { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border-radius: 999px; background: var(--action); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; transition: background .18s ease, transform .18s ease; }
.topbar-help:hover { background: var(--action-hover); }
.topbar-help:active { transform: scale(.98); }

main { width: 100%; padding: 58px 40px 84px; }
.page-header, .software-list { width: min(var(--content-width), 100%); margin-inline: auto; }
.page-header { position: relative; z-index: 1; min-height: 440px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(430px, .72fr); align-items: center; gap: 56px; margin-bottom: 0; }
.page-intro { position: relative; z-index: 2; padding-bottom: 10px; }
.page-header h1 { max-width: 760px; margin: 0 0 16px; font-size: clamp(54px, 4vw, 68px); font-weight: 620; letter-spacing: -.055em; line-height: .98; }
.page-header p { max-width: 620px; margin: 0; color: var(--muted); font-size: 19px; letter-spacing: -.015em; }
.page-header .brand-signature { width: max-content; display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; color: var(--brand-orange); font-family: "Bad Script", "Segoe Script", cursive; font-size: clamp(27px, 2.15vw, 34px); font-weight: 400; line-height: 1.05; letter-spacing: -.02em; transform: rotate(-1.5deg); transform-origin: left center; }
.signature-heart { width: .66em; height: .66em; flex: 0 0 auto; fill: currentColor; transform: rotate(-8deg); }
.brand-portrait { position: relative; width: 100%; height: 440px; display: grid; place-items: end center; align-self: end; margin: 0; overflow: hidden; isolation: isolate; }
.brand-portrait::before { content: ""; position: absolute; left: 50%; border-radius: 50%; transform: translateX(-50%); }
.brand-portrait::before { bottom: -2px; z-index: 1; width: min(440px, 92%); aspect-ratio: 1; background: var(--portrait-backdrop); box-shadow: inset 0 1px 0 rgba(255,255,255,.68), 0 24px 54px rgba(126,68,30,.13); }
.portrait-orbits { position: absolute; left: 50%; bottom: -38px; z-index: 0; width: min(520px, 108%); height: auto; overflow: visible; transform: translateX(-50%); }
.portrait-orbit { fill: none; stroke: rgba(226,93,0,.2); stroke-width: 1.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.portrait-orbit--outer { stroke-dasharray: 45 55; stroke-dashoffset: 9; transform: rotate(-74deg); transform-origin: 260px 260px; }
.portrait-orbit--inner { stroke: rgba(226,93,0,.12); stroke-dasharray: 31 69; stroke-dashoffset: 47; transform: rotate(38deg); transform-origin: 260px 260px; }
.brand-portrait img { position: absolute; top: 12px; left: 50%; z-index: 2; width: 355px; max-width: none; height: auto; filter: drop-shadow(0 18px 14px rgba(35,39,50,.14)); transform: translateX(-50%); }

.software-list { position: relative; z-index: 4; display: grid; gap: 16px; margin-top: -44px; }
.software-entry { min-width: 0; }
.software-entry--libreoffice { display: grid; gap: 18px; }
.software-row { min-height: 108px; display: grid; grid-template-columns: 52px minmax(280px, 1fr) auto auto; align-items: center; gap: 22px; padding: 0 28px; border: 1px solid rgba(29,29,31,.06); border-radius: 18px; background: var(--surface); box-shadow: 0 18px 44px rgba(29,29,31,.095), 0 2px 5px rgba(29,29,31,.045); }
.software-mark { width: 42px; height: 46px; display: grid; place-items: center; color: var(--text); }
.software-mark svg { width: 36px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.software-mark--letters { width: 40px; height: 40px; border: 1px solid #c8c8cc; border-radius: 10px; color: var(--muted); font-size: 11px; font-weight: 650; }
.software-copy { min-width: 0; }
.software-copy h2 { margin: 0 0 3px; font-size: 20px; font-weight: 620; letter-spacing: -.025em; }
.software-copy p { margin: 0; color: var(--muted); font-size: 13px; }
.software-state { color: var(--muted-light); font-size: 12px; white-space: nowrap; }
.install-toggle { min-width: 150px; min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 19px; border: 1px solid var(--action); border-radius: 13px; background: var(--action); color: #fff; font-weight: 620; cursor: pointer; transition: background .18s ease, transform .18s ease; }
.install-toggle:hover { background: var(--action-hover); }
.install-toggle:active { transform: scale(.98); }
.install-toggle svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
.install-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.is-coming .software-row { min-height: 82px; grid-template-columns: 52px minmax(280px, 1fr) auto; padding-inline: 20px; border: 0; border-radius: 0; background: transparent; box-shadow: none; border-bottom: 1px solid var(--line); }
.is-coming .software-copy h2 { color: #48484b; font-size: 17px; }

.install-panel { overflow: hidden; border: 1px solid rgba(29,29,31,.06); border-radius: 18px; background: rgba(255,255,255,.72); box-shadow: 0 2px 8px rgba(0,0,0,.025); }
.install-layout { display: grid; grid-template-columns: minmax(360px, 34%) minmax(0, 66%); min-height: 560px; }
.platform-pane, .instruction-pane { padding: 42px 40px 46px; }
.platform-pane { border-right: 1px solid var(--line-soft); }
.step-label { margin: 0 0 10px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.platform-pane h3, .instruction-pane h3 { margin: 0 0 9px; font-size: 23px; font-weight: 620; letter-spacing: -.035em; }
.pane-description, .instruction-empty > p:last-child { margin: 0; color: var(--muted); font-size: 14px; }
.platform-options { display: grid; gap: 10px; margin-top: 30px; }
.platform-option { min-height: 88px; display: grid; grid-template-columns: 36px 1fr 22px; align-items: center; gap: 16px; padding: 0 20px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.65); color: var(--muted); text-align: left; cursor: pointer; transition: border-color .16s ease, background .16s ease, color .16s ease; }
.platform-option:hover { border-color: #aaaab0; background: #fff; color: var(--text); }
.platform-option.is-selected { border-color: var(--text); background: #fff; color: var(--text); }
.platform-option:focus-visible { border-color: var(--focus); outline: 0; box-shadow: none; }
.platform-logo { width: 29px; fill: currentColor; }
.platform-option > span { display: grid; gap: 3px; }
.platform-option strong { font-size: 15px; font-weight: 610; }
.platform-option small { color: var(--muted); font-size: 12px; }
.option-check { width: 19px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.platform-option.is-selected .option-check { opacity: 1; }
.architecture { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.architecture > p { margin: 0 0 11px; color: var(--muted); font-size: 12px; }
.architecture > div { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.architecture-option { min-height: 54px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.65); color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; }
.architecture-option:hover { border-color: #aaaab0; color: var(--text); }
.architecture-option.is-selected { border-color: var(--text); background: #fff; color: var(--text); }
.architecture-option:focus-visible { border-color: var(--focus); outline: 0; box-shadow: none; }
.architecture-option small { display: block; margin-top: 2px; color: var(--muted-light); font-size: 10px; }

.instruction-pane { min-width: 0; }
.instruction-empty { max-width: 440px; }
.instruction-empty::after { content: ""; display: block; width: 100%; margin-top: 34px; border-top: 1px solid var(--line-soft); }
.download-row { min-height: 84px; display: grid; grid-template-columns: 28px minmax(0,1fr) auto; align-items: center; gap: 16px; margin-top: 30px; padding: 0 20px; border: 1px solid var(--line-soft); border-radius: 14px; background: rgba(255,255,255,.72); text-decoration: none; transition: border-color .16s ease, background .16s ease; }
.download-row:hover { border-color: #c1c1c6; background: #fff; }
.download-row > svg { width: 24px; fill: none; stroke: var(--text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.download-row > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.download-row strong { overflow: hidden; color: var(--text); font-size: 15px; font-weight: 590; text-overflow: ellipsis; white-space: nowrap; }
.download-row small { color: var(--muted); font-size: 11px; }
.download-action { min-width: 78px; min-height: 36px; display: grid; place-items: center; padding: 0 14px; border-radius: 10px; background: var(--action); color: #fff; font-size: 12px; font-weight: 620; }
.windows-guide, .mac-guide { margin-top: 34px; }
.windows-guide h4, .mac-guide h4 { margin: 0 0 18px; font-size: 16px; font-weight: 600; }
.windows-guide h4 span, .mac-guide h4 span { margin-left: 7px; color: var(--muted); font-size: 12px; font-weight: 400; }
.visual-steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.visual-steps li { min-width: 0; }
.instruction-shot { position: relative; width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #171818; }
.instruction-shot img { position: absolute; max-width: none; height: auto; }
.shot-browser-download { aspect-ratio: 193 / 135; }
.shot-browser-download img { top: 0; left: -50%; width: 200%; }
.shot-permission { aspect-ratio: 234 / 193; }
.shot-permission img { width: 656.41%; left: -260.68%; top: -268.39%; }
.shot-settings { aspect-ratio: 251 / 193; }
.shot-settings img { width: 611.95%; left: -353.39%; top: -268.39%; }
.shot-finish { aspect-ratio: 269 / 193; }
.shot-finish img { width: 571%; left: -436.8%; top: -268.39%; }
.visual-steps li > div:last-child { display: grid; grid-template-columns: 26px 1fr; gap: 9px; margin-top: 11px; }
.visual-steps li > div:last-child > span, .text-steps > li > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-soft); color: var(--muted); font-size: 11px; }
.visual-steps p { min-width: 0; margin: 0; }
.visual-steps strong { display: block; margin-bottom: 3px; font-size: 12px; font-weight: 600; line-height: 1.35; }
.visual-steps small { display: block; color: var(--muted); font-size: 10px; line-height: 1.45; }
.text-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); list-style: none; }
.text-steps > li { display: grid; grid-template-columns: 30px 1fr; gap: 11px; min-height: 116px; padding: 20px 18px; border-bottom: 1px solid var(--line-soft); }
.text-steps > li:nth-child(odd) { border-right: 1px solid var(--line-soft); }
.text-steps strong { font-size: 13px; font-weight: 620; }
.text-steps p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }

@media (max-width: 1320px) {
  .topbar-inner { width: calc(100% - 64px); }
  main { padding-inline: 32px; }
  .page-header { min-height: 420px; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; }
  .brand-portrait { height: 420px; }
  .brand-portrait::before { width: min(400px, 94%); }
  .portrait-orbits { bottom: -30px; width: min(470px, 108%); }
  .brand-portrait img { width: 325px; }
  .software-list { margin-top: -42px; }
  .install-layout { grid-template-columns: 350px minmax(0,1fr); }
  .platform-pane, .instruction-pane { padding-inline: 27px; }
  .visual-steps { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
}

@media (max-width: 840px) {
  html { scroll-padding-top: 78px; }
  .site-shell { width: 100%; min-height: 100vh; margin: 0; border-radius: 0; }
  .topbar-inner { width: calc(100% - 36px); min-height: 72px; }
  .topbar-brand { font-size: 22px; }
  .topbar-help { min-height: 44px; padding-inline: 16px; font-size: 13px; }
  main { padding: 42px 18px 58px; }
  .page-header { min-height: 0; grid-template-columns: 1fr; gap: 24px; margin-bottom: 0; }
  .page-intro { padding-bottom: 0; }
  .page-header h1 { font-size: 42px; }
  .page-header p { font-size: 16px; }
  .page-header .brand-signature { margin-top: 24px; font-size: 29px; }
  .brand-portrait { width: min(100%, 520px); height: 360px; justify-self: center; }
  .brand-portrait::before { width: 350px; }
  .portrait-orbits { bottom: -26px; width: 410px; }
  .brand-portrait img { width: 290px; }
  .software-list { margin-top: -34px; }
  .install-layout { grid-template-columns: 1fr; }
  .platform-pane { border-right: 0; border-bottom: 1px solid var(--line-soft); }
}

@media (max-width: 600px) {
  .topbar-inner { width: calc(100% - 28px); }
  .topbar-help { padding-inline: 14px; font-size: 12px; }
  main { padding: 34px 14px 48px; }
  .page-header { gap: 18px; margin-bottom: 0; }
  .page-header h1 { margin-bottom: 12px; font-size: 37px; line-height: 1.02; }
  .page-header p { max-width: 330px; font-size: 15px; }
  .page-header .brand-signature { margin-top: 20px; font-size: 27px; }
  .brand-portrait { height: 330px; }
  .brand-portrait::before { width: 330px; }
  .portrait-orbits { bottom: -24px; width: 385px; }
  .brand-portrait img { top: 10px; width: 270px; }
  .software-list { gap: 12px; margin-top: -30px; }
  .software-entry--libreoffice { gap: 12px; }
  .software-row { min-height: 128px; grid-template-columns: 42px minmax(0,1fr) auto; gap: 12px; padding: 16px; border-radius: 15px; }
  .software-copy h2 { font-size: 17px; }
  .software-copy p { display: none; }
  .software-state { font-size: 10px; }
  .install-toggle { grid-column: 1 / -1; width: 100%; min-height: 46px; }
  .is-coming .software-row { min-height: 76px; grid-template-columns: 42px minmax(0,1fr) auto; padding: 0 4px; border-radius: 0; }
  .platform-pane, .instruction-pane { padding: 30px 17px 34px; }
  .platform-option { min-height: 82px; padding-inline: 15px; }
  .architecture > div { grid-template-columns: 1fr; }
  .download-row { grid-template-columns: 24px minmax(0,1fr); padding: 14px; }
  .download-row strong { font-size: 13px; }
  .download-action { grid-column: 1 / -1; min-height: 44px; }
  .visual-steps { grid-template-columns: 1fr; gap: 26px; }
  .visual-steps strong { font-size: 14px; }
  .visual-steps small { font-size: 12px; }
  .text-steps { grid-template-columns: 1fr; }
  .text-steps > li:nth-child(odd) { border-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
