:root {
  color-scheme: light;
  --ink: #13314d;
  --muted: #39546d;
  --line: #13314d;
  --fine-line: #9bb4c8;
  --sky: #bfdcf2;
  --paper: #fbfaf3;
  --panel: #fffef9;
  --sidebar: #e9f2fa;
  --blue: #cde4f6;
  --blue-strong: #214f82;
  --art: #a8cff0;
  --art-grid: #13314d23;
  --kraft: #edc38d;
  --kraft-text: #13314d;
  --tape: #fae0b9;
  --accent: #a82b32;
  --focus: #a82b32;
  --shadow: #13314d;
  --dark-button: #13314d;
  --dark-button-text: #fffef9;
  --display: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf5ff;
  --muted: #b9cce0;
  --line: #92bbdc;
  --fine-line: #52718a;
  --sky: #172d45;
  --paper: #101f31;
  --panel: #182d43;
  --sidebar: #14263a;
  --blue: #284966;
  --blue-strong: #a7d1ff;
  --art: #294f72;
  --art-grid: #a9d3ff25;
  --kraft: #e8bc85;
  --kraft-text: #13314d;
  --tape: #f6d6a7;
  --accent: #ffb4b3;
  --focus: #ffb4b3;
  --shadow: #060f1a;
  --dark-button: #d0e8ff;
  --dark-button-text: #13314d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--body); }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
button, summary { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { line-height: 1.07; }
[id] { scroll-margin-block-start: 1.25rem; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.card-kraft :focus-visible, .crate :focus-visible, .button-kraft:focus-visible { outline-color: var(--focus); }
[hidden] { display: none !important; }

.wrap { width: min(100% - 3rem, 73rem); margin-inline: auto; }
.icon-library, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; z-index: 10; inset: .75rem auto auto .75rem; transform: translateY(-180%); background: var(--panel); padding: .65rem 1rem; border: 2px solid var(--line); }
.skip-link:focus { transform: none; }

.site-header { position: relative; z-index: 2; background: var(--paper); border-bottom: 2px solid var(--line); }
.header-inner { min-height: 4.75rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.75rem; }
.brand { display: inline-flex; align-items: center; width: fit-content; gap: .38rem; text-decoration: none; font-weight: 850; font-size: 1.33rem; letter-spacing: -.055em; white-space: nowrap; }
.brand img { flex: none; }
.brand small { align-self: center; padding: .03rem .3rem; border: 1px solid var(--line); border-radius: 3px; background: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: 0; }
.site-nav, .header-actions { display: flex; align-items: center; gap: clamp(.75rem, 2.3vw, 2rem); }
.site-nav a { font-size: .94rem; font-weight: 720; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: .2em; }
.header-actions { justify-self: end; gap: .75rem; }
.button, .icon-button { display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--line); border-radius: 5px; text-decoration: none; font-weight: 780; background: var(--panel); color: var(--ink); transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease; }
.button { min-height: 3.25rem; padding: .65rem 1.18rem; gap: .48rem; box-shadow: 4px 4px 0 var(--shadow); line-height: 1.25; }
.button:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--shadow); }
.button:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--shadow); }
.button-kraft { background: var(--kraft); color: var(--kraft-text); border-color: #13314d; }
.button-ink { background: var(--dark-button); color: var(--dark-button-text); }
.header-demo { min-height: 2.75rem; padding-inline: .9rem; font-size: .9rem; box-shadow: none; }
.header-demo:hover { box-shadow: 3px 3px 0 var(--shadow); }
.icon-button { width: 2.75rem; height: 2.75rem; padding: 0; }
.icon-button:hover { background: var(--blue); }
.menu-toggle, .menu-close, .theme-sun,
[data-theme="dark"] .theme-moon,
.menu-toggle[aria-expanded="true"] .menu-open { display: none; }
[data-theme="dark"] .theme-sun, .menu-toggle[aria-expanded="true"] .menu-close { display: block; }

.hero { background: var(--sky); border-bottom: 2px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.22fr 1fr; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); padding-block: clamp(3rem, 5.3vw, 5.15rem); }
.eyebrow, .section-label, .demo-badge { font-weight: 820; letter-spacing: .085em; text-transform: uppercase; font-size: .83rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.35rem; padding: .37rem .62rem; border: 1.5px solid var(--line); border-radius: 4px; background: var(--panel); }
.status-dot { width: .52rem; height: .52rem; flex: none; border-radius: 50%; background: var(--blue-strong); }
h1, h2 { font-family: var(--display); font-weight: 900; }
h1 { font-size: clamp(3.2rem, 5.1vw, 4.65rem); letter-spacing: -.072em; line-height: .99; }
h1 span { color: var(--blue-strong); }
.hero-lead { font-size: clamp(1.06rem, 1.55vw, 1.25rem); max-width: 41ch; margin-top: 1.55rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.75rem; }
.hero-art { position: relative; display: grid; place-items: center; min-width: 0; min-height: 19rem; aspect-ratio: 1.19; padding: .75rem 1.35rem; border: 2px solid var(--line); border-radius: 7px; box-shadow: 7px 7px 0 var(--shadow); background-color: var(--art); background-image: linear-gradient(var(--art-grid) 1px, transparent 1px), linear-gradient(90deg, var(--art-grid) 1px, transparent 1px); background-size: 25px 25px; overflow: hidden; }
.warehouse { width: min(85%, 24rem); height: auto; max-height: 100%; }
.art-cross { position: absolute; width: 1.4rem; height: 1.4rem; color: var(--ink); }
.art-cross::before, .art-cross::after { content: ""; position: absolute; inset: 50% 0 auto; height: 2px; background: currentColor; transform: translateY(-50%); }
.art-cross::after { transform: translateY(-50%) rotate(90deg); }
.art-cross-top { top: 1.3rem; left: 1.25rem; }
.art-cross-bottom { bottom: 1.3rem; right: 1.25rem; }

.section { padding-block: clamp(3.5rem, 6.4vw, 6rem); }
.section-heading { display: grid; grid-template-columns: 1.3fr 1fr; align-items: end; gap: 1rem 2.5rem; margin-bottom: 2rem; }
.section-heading > p { color: var(--muted); max-width: 45ch; justify-self: end; }
.section-label { margin-bottom: .68rem; color: var(--blue-strong); }
h2 { font-size: clamp(2.25rem, 4.6vw, 4rem); letter-spacing: -.058em; }
h3 { font-size: 1.26rem; letter-spacing: -.03em; }

.manager { border: 2px solid var(--line); border-radius: 8px; box-shadow: 7px 7px 0 var(--shadow); background: var(--panel); }
.manager-header { border-bottom: 2px solid var(--line); background: var(--blue); border-radius: 5px 5px 0 0; min-height: 3.6rem; padding: .55rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.manager-header > div { display: flex; align-items: center; gap: .42rem; }
.manager-header img { flex: none; }
.demo-badge { background: var(--panel); display: inline-flex; align-items: center; gap: .38rem; border: 1px solid var(--line); border-radius: 4px; padding: .2rem .48rem; }
.manager-body { display: grid; grid-template-columns: 13.2rem minmax(0, 1fr); min-height: 21.5rem; }
.manager-sidebar { display: flex; flex-direction: column; gap: 1.1rem; justify-content: space-between; background: var(--sidebar); border-right: 2px solid var(--line); padding: .95rem .8rem; }
.folder-nav { display: grid; gap: .25rem; }
.folder-nav button { display: flex; width: 100%; align-items: center; gap: .6rem; min-height: 2.65rem; padding: .45rem .6rem; text-align: left; font-size: .92rem; font-weight: 710; background: transparent; border: 1px solid transparent; border-radius: 4px; }
.folder-nav button:hover, .folder-nav button[aria-current] { background: var(--blue); border-color: var(--fine-line); }
.folder-nav button[aria-current] { border-color: var(--line); }
.storage { border: 1px solid var(--fine-line); border-radius: 4px; background: var(--panel); padding: .65rem; }
.storage > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem; font-size: .78rem; }
.storage progress { appearance: none; display: block; width: 100%; height: .5rem; margin-top: .45rem; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: var(--sidebar); color: var(--blue-strong); }
.storage progress::-webkit-progress-bar { background: var(--sidebar); }
.storage progress::-webkit-progress-value { background: var(--blue-strong); }
.storage progress::-moz-progress-bar { background: var(--blue-strong); }

.workspace { min-width: 0; padding: 1rem 1.2rem 1.35rem; }
.toolbar { display: flex; gap: .85rem; justify-content: space-between; }
.search { flex: 1; display: flex; align-items: center; gap: .5rem; min-width: 0; max-width: 22rem; height: 2.75rem; padding: 0 .65rem; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--muted); }
.search:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.search input { background: transparent; border: 0; color: var(--ink); min-width: 0; width: 100%; height: 100%; padding: 0; }
.search input:focus-visible { outline: none; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.view-switch { display: flex; border: 1px solid var(--line); border-radius: 4px; }
.view-switch button { display: grid; place-items: center; width: 2.75rem; height: 2.65rem; padding: 0; border: 0; background: transparent; }
.view-switch button:first-child { border-right: 1px solid var(--line); }
.view-switch button:hover, .view-switch button[aria-pressed="true"] { background: var(--blue); }
.view-switch button:focus-visible { z-index: 1; }
.breadcrumbs { min-height: 1.55rem; margin-block: .85rem .35rem; color: var(--muted); font-size: .87rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .55rem; align-items: center; padding: 0; list-style: none; }
.breadcrumbs li { display: flex; align-items: center; gap: .55rem; }
.breadcrumbs button { padding: .2rem 0; background: transparent; border: 0; color: var(--blue-strong); text-decoration: underline; text-underline-offset: 2px; }
.workspace h3 { margin: 0 0 .85rem; width: fit-content; overflow-wrap: anywhere; }
.file-items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; padding: 0; list-style: none; }
.file-item { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: .2rem; width: 100%; min-height: 7.2rem; padding: .65rem; border: 1px solid var(--fine-line); border-radius: 5px; background: var(--paper); line-height: 1.35; }
.file-item:hover { background: var(--sidebar); border-color: var(--line); }
.file-icon { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; margin-bottom: .24rem; border-radius: 4px; border: 1px solid var(--line); color: var(--ink); background: var(--blue); }
.file-icon[data-kind="folder"] { color: var(--kraft-text); background: var(--kraft); border-color: #13314d; }
.file-icon[data-kind="photo"] { color: #13314d; background: #c4e7d9; border-color: #13314d; }
.file-item strong { max-width: 100%; overflow-wrap: anywhere; font-size: .95rem; }
.file-item small { color: var(--muted); font-size: .81rem; }
.file-items[data-view="list"] { grid-template-columns: 1fr; gap: .4rem; }
[data-view="list"] .file-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .65rem; min-height: 2.8rem; padding: .32rem .65rem; }
[data-view="list"] .file-icon { width: 1.85rem; height: 1.85rem; margin: 0; }
[data-view="list"] .file-icon .icon { width: 1.05rem; height: 1.05rem; }
.empty-state, .notice { padding: .85rem; background: var(--sidebar); border: 1px solid var(--fine-line); border-radius: 4px; color: var(--ink); }
.manager-footer { display: flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }

.features { border-block: 2px solid var(--line); background: var(--sky); }
.features-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.feature { padding: 1.15rem; border: 2px solid var(--line); border-radius: 5px; box-shadow: 4px 4px 0 var(--shadow); }
.card-blue { background: var(--blue); }
.card-white { background: var(--panel); }
.card-kraft { background: var(--kraft); color: var(--kraft-text); border-color: #13314d; }
.feature-icon { display: grid; place-items: center; width: 2.65rem; height: 2.65rem; margin-bottom: .9rem; border: 1px solid currentColor; border-radius: 4px; }
.feature h3 { margin-bottom: .5rem; }
.platforms { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem 1.5rem; margin-top: 2.4rem; padding: 1.25rem 1.1rem; border-block: 1px solid var(--line); }
.platforms p { color: var(--muted); margin-top: .35rem; }
.platform-list { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; }
.platform-list li { display: flex; align-items: center; gap: .38rem; padding: .47rem .6rem; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); font-size: .9rem; font-weight: 740; }

.tariff-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.crate { position: relative; overflow: hidden; min-width: 0; padding: 1.4rem; color: #13314d; border: 2px solid #13314d; border-radius: 5px; box-shadow: 5px 5px 0 var(--shadow); }
.crate::before { content: ""; position: absolute; top: 0; right: 1.45rem; width: 2.75rem; height: 2.35rem; background: var(--tape); border-inline: 1px dashed #764a26; }
.crate-small { background: #f3d6ac; }
.crate-medium { background: #efc491; }
.crate-large { background: #eab47d; }
.crate h3 { padding-right: 3.5rem; }
.capacity { margin-block: 1rem .4rem; font: 900 clamp(2.7rem, 5.6vw, 4.75rem)/.94 var(--display); letter-spacing: -.075em; }
.capacity span { font-size: .55em; letter-spacing: -.045em; }
.crate ul { display: grid; gap: .3rem; margin-top: .95rem; padding: .75rem 0 0 1.13rem; border-top: 1px dashed #764a26; font-size: .95rem; }

.faq-section { background: var(--blue); border-top: 2px solid var(--line); }
.faq-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 1.5rem 3rem; }
.faq { display: grid; gap: .6rem; }
.faq details { background: var(--panel); border: 2px solid var(--line); border-radius: 5px; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; font-weight: 760; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: .55rem; height: .55rem; flex: none; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-right: .25rem; margin-top: -.25rem; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: .25rem; }
.faq details[open] summary { border-bottom: 1px solid var(--fine-line); }
.faq details p { padding: .75rem 1rem .9rem; color: var(--muted); }

.site-footer { border-top: 2px solid var(--line); background: var(--paper); }
.footer-main { display: grid; grid-template-columns: 1.45fr .75fr .8fr; gap: 1.5rem; padding-block: 2.8rem; }
.footer-main p { max-width: 28ch; color: var(--muted); margin-top: .4rem; }
.footer-main nav { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; }
.footer-main nav a { text-decoration: none; overflow-wrap: anywhere; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-block: .7rem; border-top: 1px solid var(--fine-line); }
.footer-bottom small { font-size: .875rem; }
.footer-theme { display: inline-flex; gap: .5rem; align-items: center; min-height: 2.75rem; background: transparent; border: none; font-weight: 720; }

dialog { width: min(100% - 2rem, 34rem); max-height: calc(100% - 2rem); margin: auto; padding: 1.25rem; border: 2px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--panel); box-shadow: 6px 6px 0 var(--shadow); }
dialog::backdrop { background: #071725b8; }
.dialog-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.dialog-heading h2 { font: 850 clamp(1.4rem, 5vw, 2rem)/1.1 var(--body); letter-spacing: -.04em; overflow-wrap: anywhere; }
#preview-info { color: var(--muted); margin: .55rem 0 1rem; }
#preview-content { background: var(--paper); border: 1px solid var(--fine-line); border-radius: 4px; overflow: hidden; }
#preview-content p { padding: 1rem; white-space: pre-line; }
#preview-content img { width: 100%; height: auto; }

.error-page { min-height: 100vh; display: flex; flex-direction: column; }
.error-page .header-actions { grid-column: -2; }
.error-page main { flex: 1; display: grid; align-items: center; border-bottom: 0; }
.error-page h1 { max-width: 13ch; font-size: clamp(3rem, 5.5vw, 5.1rem); }
.error-page .hero-art { aspect-ratio: 1.24; }

@media (prefers-reduced-motion: no-preference) {
  .warehouse { animation: float-in .75s ease-out both; }
  @keyframes float-in { from { transform: translateY(9px); } to { transform: translateY(0); } }
  .section-heading, .platforms, .faq-layout > div:first-child {
    animation: section-in both linear;
    animation-timeline: view();
    animation-range: entry 0% cover 24%;
  }
  @keyframes section-in { from { transform: translateY(16px); } to { transform: translateY(0); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 62rem) {
  .site-nav { gap: .8rem; }
  .header-inner { gap: .85rem; }
  .hero-inner { gap: 1.75rem; }
  .hero-art { min-height: 0; }
  .hero-break { display: none; }
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .file-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 51rem) {
  .header-inner { grid-template-columns: 1fr auto; }
  .menu-toggle { display: inline-flex; }
  .header-demo { display: none; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; gap: 0; padding-bottom: .65rem; }
  .site-nav a { padding: .56rem .85rem; min-height: 2.75rem; }
  .has-menu .site-nav { display: none; }
  .has-menu .site-nav[data-open] { display: flex; margin-top: -.7rem; }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading > p { justify-self: start; }
  .platforms { grid-template-columns: 1fr; }
}
@media (max-width: 42rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { min-height: 4.35rem; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 2.75rem 3rem; gap: 2rem; }
  .hero-art { width: min(100% - .35rem, 29rem); justify-self: center; }
  .hero-break { display: initial; }
  .hero h1 { font-size: clamp(2.85rem, 10vw, 4.3rem); }
  .manager-body { grid-template-columns: 1fr; }
  .manager-sidebar { border-right: 0; border-bottom: 1px solid var(--line); gap: .65rem; padding: .65rem; }
  .folder-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .storage { padding: .4rem .55rem; }
  .workspace { padding: .75rem .65rem 1rem; min-height: 13rem; }
  .tariff-grid, .faq-layout { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main > div { grid-column: 1 / -1; }
}
@media (max-width: 24rem) {
  .wrap { width: calc(100% - 1.5rem); }
  .header-inner { gap: .4rem; }
  .header-actions { gap: .35rem; }
  .brand { gap: .28rem; font-size: 1.12rem; }
  .brand img { width: 36px; height: 36px; }
  .brand small { padding-inline: .22rem; }
  .hero h1 { font-size: clamp(2.15rem, 10.9vw, 2.65rem); }
  .features-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .toolbar { gap: .38rem; }
  .file-item { padding: .5rem; }
}
@media (forced-colors: active) {
  .view-switch button[aria-pressed="true"], .folder-nav button[aria-current] { outline: 2px solid ButtonText; outline-offset: -3px; }
}
