:root {
  --paper: #f3f5f7;
  --card: #ffffff;
  --ink: #0f1a2b;
  --muted: #566277;
  --line: #d9dfe7;
  --teal: #0b7a85;
  --teal-ink: #ffffff;
  --teal-soft: #e0f1f3;
  --folder: #eadfc4;
  --folder-ink: #4a3f22;
  --amber: #e8a317;
  --danger: #b3261e;
  --danger-soft: #fbeae8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c131d;
    --card: #121b28;
    --ink: #e9eef5;
    --muted: #93a0b3;
    --line: #233043;
    --teal: #3cc1ce;
    --teal-ink: #06242a;
    --teal-soft: #11303a;
    --folder: #2b2819;
    --folder-ink: #e6d9b3;
    --amber: #f0b84a;
    --danger: #ff8a80;
    --danger-soft: #3a1b19;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
h1, h2, h3, .serif {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); color: var(--ink); padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* header */
.hdr { border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-size: 1.35rem; font-weight: 600; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 22px; flex: 1; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--amber); }
.hdr-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 7px; padding: 8px 12px; font: inherit; cursor: pointer; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 7px; border: 1px solid transparent; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn-primary { background: var(--teal); color: var(--teal-ink); }
.btn-primary:hover { filter: brightness(1.08); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); text-decoration: none; }
.btn-sm { padding: 7px 13px; font-size: .94rem; }

/* hero */
.hero { padding: 64px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); line-height: 1.06; margin: 0 0 18px; }
.hero p.lead { font-size: 1.12rem; color: var(--muted); max-width: 30em; margin: 0 0 26px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .fine { margin: 16px 0 0; font-size: .92rem; color: var(--muted); }

/* file window */
.win { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 28px 50px -30px rgba(15, 26, 43, .45); }
.win-tabs { display: flex; gap: 3px; padding: 10px 12px 0; background: var(--folder); }
.win-tab { background: transparent; border: 0; color: var(--folder-ink); font: inherit; font-size: .92rem; padding: 8px 16px; border-radius: 8px 8px 0 0; cursor: pointer; opacity: .8; }
.win-tab:hover { opacity: 1; }
.win-tab[aria-selected="true"] { background: var(--card); color: var(--ink); opacity: 1; font-weight: 600; }
.win-path { padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: .86rem; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.rows { list-style: none; margin: 0; padding: 4px 0; min-height: 232px; }
.row { display: grid; grid-template-columns: 22px minmax(0, 1fr) 84px 72px; gap: 12px; align-items: center; padding: 9px 16px; cursor: pointer; border-left: 3px solid transparent; }
.row:hover { background: var(--paper); }
.row[aria-selected="true"] { background: var(--teal-soft); border-left-color: var(--teal); }
.row .ico { width: 20px; height: 20px; }
.row .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.row .sz, .row .wh { font-size: .84rem; color: var(--muted); white-space: nowrap; }
.detail { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--paper); border-top: 1px solid var(--line); font-size: .9rem; min-height: 54px; }
.detail span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop { margin: 14px 16px 16px; border: 1.5px dashed var(--line); border-radius: 9px; padding: 18px; text-align: center; color: var(--muted); font-size: .94rem; cursor: pointer; }
.drop:hover, .drop.drag { border-color: var(--teal); background: var(--teal-soft); color: var(--ink); }
.drop button { background: none; border: 0; color: var(--teal); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0; }
.ups { list-style: none; margin: 0 16px 14px; padding: 0; }
.up { display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 4px 12px; font-size: .88rem; padding: 6px 0; }
.up .bar { grid-column: 1 / -1; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.up .bar i { display: block; height: 100%; width: 0; background: var(--teal); transition: width .9s ease-out; }
.up .st { text-align: right; color: var(--muted); }
.note { margin: 0 16px 16px; padding: 10px 12px; border-radius: 8px; background: var(--teal-soft); font-size: .9rem; }

/* sections */
.sec { padding: 64px 0; border-top: 1px solid var(--line); }
.sec h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.15; margin: 0 0 12px; }
.sec .sub { color: var(--muted); max-width: 36em; margin: 0 0 36px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: s; position: relative; }
.steps li { counter-increment: s; position: relative; padding-top: 52px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--amber); color: #20180a; display: grid; place-items: center; font-weight: 700; z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 17px; left: 44px; right: -20px; height: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { margin: 0 0 6px; font-size: 1.15rem; }
.steps p { margin: 0; color: var(--muted); }
dl.spec { margin: 0; }
dl.spec > div { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); }
dl.spec > div:last-child { border-bottom: 1px solid var(--line); }
dl.spec dt { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-weight: 600; font-size: 1.1rem; }
dl.spec dd { margin: 0; color: var(--muted); max-width: 40em; }

/* plans */
.plans { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.plan { display: grid; grid-template-columns: 1.2fr 1.3fr 1fr 150px; gap: 20px; align-items: center; padding: 20px 24px; border-top: 1px solid var(--line); border-left: 4px solid transparent; }
.plan:first-child { border-top: 0; }
.plan.rec { border-left-color: var(--amber); background: var(--teal-soft); }
.plan h3 { margin: 0; font-size: 1.25rem; }
.plan .tag { font-size: .85rem; color: var(--muted); }
.plan .stor { font-weight: 600; }
.plan .price b { font-size: 1.5rem; font-family: "Iowan Old Style", Palatino, Georgia, serif; }
.plan .price span { color: var(--muted); font-size: .88rem; display: block; }
.tools { display: flex; flex-wrap: wrap; gap: 28px; align-items: end; margin-bottom: 24px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { background: transparent; color: var(--muted); border: 0; font: inherit; padding: 8px 16px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.slider label { display: block; font-size: .92rem; color: var(--muted); margin-bottom: 6px; }
.slider input { width: min(360px, 80vw); accent-color: var(--teal); }
.slider output { font-weight: 700; margin-left: 10px; }

/* tabs (features) */
.tabbar { display: flex; gap: 3px; background: var(--folder); padding: 10px 12px 0; border-radius: 12px 12px 0 0; }
.tabpanel { border: 1px solid var(--line); border-top: 0; background: var(--card); border-radius: 0 0 12px 12px; padding: 28px; }
.tabpanel h3 { margin: 0 0 8px; font-size: 1.4rem; }
.tabpanel ul { margin: 14px 0 0; padding-left: 1.2em; color: var(--muted); }
.tabpanel li { margin: 6px 0; }

/* faq */
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 10px 0 0; color: var(--muted); max-width: 44em; }
.search { width: 100%; max-width: 420px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: inherit; margin-bottom: 24px; }

/* page + forms */
.page { padding: 56px 0 72px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 10px; line-height: 1.1; }
.page .lead { color: var(--muted); max-width: 38em; margin: 0 0 32px; }
.prose { max-width: 42em; }
.prose h2 { font-size: 1.4rem; margin: 32px 0 8px; }
.prose p, .prose li { color: var(--muted); }
.formbox { max-width: 420px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.formbox h1 { font-size: 1.8rem; margin: 0 0 18px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .94rem; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--ink); font: inherit; }
.field textarea { min-height: 120px; resize: vertical; }
.err { display: none; margin: 0 0 16px; padding: 10px 12px; border-radius: 8px; background: var(--danger-soft); color: var(--danger); font-size: .92rem; }
.err.on { display: block; }
.formbox .alt { margin-top: 18px; font-size: .94rem; color: var(--muted); }
.apps { max-width: 760px; }
.app { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.app:last-child { border-bottom: 1px solid var(--line); }
.app b { font-family: "Iowan Old Style", Palatino, Georgia, serif; font-size: 1.15rem; }
.app small { display: block; color: var(--muted); }
dialog { border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); padding: 26px; max-width: 420px; }
dialog::backdrop { background: rgba(8, 14, 24, .55); }
dialog h3 { margin: 0 0 8px; }
dialog p { color: var(--muted); margin: 0 0 18px; }
dialog .btns { display: flex; gap: 10px; justify-content: flex-end; }

/* footer */
.ftr { border-top: 1px solid var(--line); padding: 44px 0 36px; margin-top: 0; color: var(--muted); font-size: .94rem; }
.ftr .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.ftr h4 { margin: 0 0 10px; color: var(--ink); font-size: .95rem; }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { margin: 6px 0; }
.ftr a { color: var(--muted); text-decoration: none; }
.ftr a:hover { color: var(--ink); text-decoration: underline; }
.ftr .copy { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li::after { display: none; }
  dl.spec > div { grid-template-columns: 1fr; gap: 6px; }
  .plan { grid-template-columns: 1fr auto; }
  .plan .stor, .plan .price { grid-column: 1 / 2; }
  .plan .btn { grid-column: 2; grid-row: 1 / 3; }
  .ftr .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .menu-btn { display: inline-block; margin-left: auto; }
  .nav, .hdr-actions { display: none; }
  .hdr.open .wrap { height: auto; flex-wrap: wrap; padding-bottom: 16px; }
  .hdr.open .nav, .hdr.open .hdr-actions { display: flex; width: 100%; }
  .hdr.open .nav { flex-direction: column; gap: 4px; order: 3; }
  .hdr.open .hdr-actions { order: 4; }
  .row { grid-template-columns: 22px minmax(0, 1fr) 70px; }
  .row .wh { display: none; }
}
@media (prefers-reduced-motion: reduce) { .up .bar i { transition: none; } }
