/* DST-Port site. Paper-white page, ink type, one maple accent; the product itself carries the colour.
   Shared by product pages, the account centre and the admin console. */
:root {
  --bg: #fbfaf8;
  --bg-2: #f4f1ed;
  --surface: #ffffff;
  --ink: #1b1714;
  --ink-2: #4a433d;
  --muted: #7a726b;
  --line: #e9e4de;
  --line-2: #ddd6ce;
  --accent: #c2441f;
  --accent-soft: #fbe9e1;
  --ok: #2f8a57;
  --ok-soft: #e4f3ea;
  --inverse-bg: #1b1714;
  --inverse-fg: #f6efe5;
  --inverse-muted: #a89d92;
  --inverse-line: #3a332d;
  --shadow: 0 1px 2px rgba(40, 25, 15, .06), 0 8px 24px -8px rgba(40, 25, 15, .12);
  --shadow-lg: 0 2px 6px rgba(40, 25, 15, .08), 0 40px 80px -24px rgba(40, 25, 15, .35);

  --sans: -apple-system, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;

  --t-xs: .8125rem;
  --t-sm: .9375rem;
  --t-md: 1.0625rem;
  --t-lg: 1.25rem;
  --t-xl: clamp(1.75rem, 1.25rem + 1.9vw, 2.625rem);
  --t-hero: clamp(2.375rem, 1.4rem + 4.1vw, 4.5rem);

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141110; --bg-2: #1b1816; --surface: #201c19;
    --ink: #f3ece3; --ink-2: #cfc5ba; --muted: #968b80;
    --line: #2b2622; --line-2: #3a332e;
    --accent: #f08257; --accent-soft: #3a1f15;
    --ok: #78c597; --ok-soft: #1d3326;
    --inverse-bg: #f3ece3; --inverse-fg: #1b1714; --inverse-muted: #6f655c; --inverse-line: #ddd3c7;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -8px rgba(0,0,0,.5);
    --shadow-lg: 0 2px 6px rgba(0,0,0,.4), 0 40px 80px -24px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141110; --bg-2: #1b1816; --surface: #201c19;
  --ink: #f3ece3; --ink-2: #cfc5ba; --muted: #968b80;
  --line: #2b2622; --line-2: #3a332e;
  --accent: #f08257; --accent-soft: #3a1f15;
  --ok: #78c597; --ok-soft: #1d3326;
  --inverse-bg: #f3ece3; --inverse-fg: #1b1714; --inverse-muted: #6f655c; --inverse-line: #ddd3c7;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -8px rgba(0,0,0,.5);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.4), 0 40px 80px -24px rgba(0,0,0,.7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--t-md)/1.7 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; letter-spacing: -.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.nw { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* buttons: quiet, solid ink; no glow */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding-inline: 22px; border-radius: 10px; border: 1px solid transparent;
  font: 500 var(--t-sm)/1 var(--sans); white-space: nowrap; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--ink-2); }
.btn-line { border-color: var(--line-2); background: var(--surface); color: var(--ink); }
.btn-line:hover { border-color: var(--muted); }
.btn-sm { height: 36px; padding-inline: 14px; border-radius: 8px; font-size: .875rem; }
.btn svg { width: 16px; height: 16px; flex: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: var(--t-sm); color: var(--ink); }
.link-arrow span { transition: transform .2s; }
.link-arrow:hover span { transform: translateX(3px); }

/* nav */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; height: 64px; gap: 40px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1rem; letter-spacing: -.01em; }
.brand img { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 30px; font-size: .875rem; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: .875rem; }
.nav-right .login { color: var(--muted); }
.nav-right .login:hover { color: var(--ink); }

/* hero */
.hero { padding-block: clamp(64px, 10vw, 120px) 0; text-align: center; }
.hero .wrap { display: grid; justify-items: center; gap: 26px; }
.release {
  display: inline-flex; align-items: center; gap: 10px; font-size: var(--t-xs); color: var(--muted);
  padding: 5px 12px 5px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.release b { font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; }
.release:hover { border-color: var(--line-2); color: var(--ink); }
.hero h1 { font-size: var(--t-hero); line-height: 1.1; letter-spacing: -.035em; font-weight: 650; max-width: 13em; }
.hero .lede { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--muted); max-width: 32em; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 26px; margin-top: 6px; }
.hero-note { font-size: var(--t-xs); color: var(--muted); }
.hero-note a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.hero-note a:hover { color: var(--ink); }

.stage {
  margin-top: clamp(56px, 8vw, 88px);
  position: relative; border-radius: 28px; overflow: hidden;
  padding: clamp(28px, 6vw, 72px) clamp(16px, 6vw, 72px) 0;
  background:
    radial-gradient(120% 90% at 50% 120%, rgba(255, 205, 140, .55), transparent 60%),
    linear-gradient(170deg, #e98a5c 0%, #c2441f 45%, #6d2412 100%);
}
.stage::after { /* faint arcs echoing the icon's broadcast lines */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 50% 108%, transparent 0 38%, rgba(255, 241, 216, .10) 38% 38.3%, transparent 38.3%),
    radial-gradient(circle at 50% 108%, transparent 0 56%, rgba(255, 241, 216, .07) 56% 56.25%, transparent 56.25%),
    radial-gradient(circle at 50% 108%, transparent 0 74%, rgba(255, 241, 216, .05) 74% 74.2%, transparent 74.2%);
}
.stage img {
  position: relative; z-index: 1; margin-inline: auto; width: min(780px, 100%);
  border-radius: 14px 14px 0 0; box-shadow: 0 -1px 0 rgba(255,255,255,.4), var(--shadow-lg);
}

/* section scaffolding */
section { padding-block: clamp(80px, 11vw, 140px); }
.eyebrow { font-size: var(--t-xs); font-weight: 600; color: var(--accent); letter-spacing: .02em; }
.head { display: grid; gap: 14px; max-width: 36em; }
.head.center { margin-inline: auto; text-align: center; justify-items: center; }
.head h2 { font-size: var(--t-xl); line-height: 1.2; }
.head p { color: var(--muted); font-size: var(--t-md); }

/* how: a real sequence */
.how-steps { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how-step { display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 1px solid var(--line-2); min-width: 0; }
.how-step .n { font-size: var(--t-xs); color: var(--muted); }
.how-step h3 { font-size: var(--t-lg); }
.how-step p { color: var(--muted); font-size: var(--t-sm); }
code { font-family: var(--mono); font-size: .86em; padding: 1px 6px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink); }

/* feature rows */
.rows { display: grid; gap: clamp(88px, 11vw, 140px); }
.row { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.row.flip .copy { order: 2; }
.row .copy { display: grid; gap: 16px; max-width: 30em; min-width: 0; }
.row h3 { font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.125rem); line-height: 1.25; letter-spacing: -.025em; }
.row .copy > p { color: var(--muted); }
.ticks { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; font-size: var(--t-sm); color: var(--ink-2); }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { width: 16px; height: 16px; flex: none; margin-top: 5px; color: var(--accent); }

.visual {
  position: relative; min-width: 0; border-radius: 22px; background: var(--bg-2);
  padding: clamp(20px, 4vw, 44px); display: grid; place-items: center; overflow: hidden;
  border: 1px solid var(--line);
}
.card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }

/* mock: progress */
.progress { padding: 22px 24px; display: grid; gap: 16px; }
.progress-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pulse i { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.progress h4 { font-size: 1.375rem; }
.progress small { color: var(--muted); font-size: var(--t-xs); }
.track { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 0; }
.track li { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; font-size: var(--t-sm); padding-block: 9px; border-top: 1px solid var(--line); }
.track li span:last-child { font-size: var(--t-xs); color: var(--muted); }
.dot { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; }
.dot svg { width: 11px; height: 11px; }
.track li.live .dot { background: var(--ok); }

/* mock: room + chart */
.room { padding: 18px 20px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); }
.room .avatar { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; }
.room .avatar img { width: 26px; height: 26px; }
.room b { display: block; font-weight: 600; font-size: var(--t-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room small { display: block; color: var(--muted); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room > div { min-width: 0; }
.chart { padding: 16px 20px 18px; display: grid; gap: 10px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: var(--t-xs); color: var(--muted); flex-wrap: wrap; }
.legend { display: flex; gap: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; }
.legend b { color: var(--ink); font-weight: 500; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.copyline { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.copyline code { font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* mock: files */
.files { padding: 8px 0; font-size: var(--t-xs); }
.files .f { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: center; padding: 10px 20px; }
.files .f + .f { border-top: 1px solid var(--line); }
.files .f.sub { padding-left: 44px; }
.files svg { width: 16px; height: 16px; color: var(--muted); }
.files .name { font-family: var(--mono); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.files .st { font-size: .72rem; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.st.keep { background: var(--ok-soft); color: var(--ok); }
.st.edit { background: var(--accent-soft); color: var(--accent); }
.files .group { padding: 12px 20px 4px; font-size: .72rem; color: var(--muted); letter-spacing: .04em; }

/* mock: tray + dialog */
.stack { width: 100%; max-width: 440px; display: grid; gap: 16px; }
.toast { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 14px 16px; align-items: start; }
.toast img { width: 32px; height: 32px; }
.toast b { font-size: var(--t-sm); font-weight: 600; display: block; }
.toast p { font-size: var(--t-xs); color: var(--muted); }
.toast .app { font-size: .72rem; color: var(--muted); }
.dialog { padding: 22px 22px 18px; display: grid; gap: 14px; }
.dialog h4 { font-size: 1.0625rem; }
.dialog p { font-size: var(--t-xs); color: var(--muted); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; font-size: var(--t-xs); text-align: center; }
.choice.on { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.check { display: flex; align-items: center; gap: 8px; font-size: var(--t-xs); color: var(--muted); }
.check i { width: 14px; height: 14px; border-radius: 4px; background: var(--ink); display: grid; place-items: center; color: var(--bg); }
.check i svg { width: 9px; height: 9px; }

/* small features */
.minis { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 40px; }
.mini { display: grid; gap: 8px; align-content: start; min-width: 0; }
.mini svg { width: 22px; height: 22px; color: var(--ink); margin-bottom: 6px; }
.mini h4 { font-size: var(--t-md); }
.mini p { color: var(--muted); font-size: var(--t-sm); }

/* pricing */
#pricing { background: var(--bg-2); border-block: 1px solid var(--line); }
.plans { margin: 56px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 880px; }
.plan { border-radius: 20px; padding: clamp(26px, 4vw, 38px); display: grid; gap: 26px; align-content: start; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.plan.pro { background: var(--inverse-bg); color: var(--inverse-fg); border-color: var(--inverse-bg); }
.plan-head { display: grid; gap: 6px; }
.plan-name { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: var(--t-md); font-weight: 600; }
.plan-name em { font-style: normal; font-size: .75rem; font-weight: 500; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--inverse-line); color: var(--inverse-muted); }
.plan-desc { font-size: var(--t-sm); color: var(--muted); }
.pro .plan-desc { color: var(--inverse-muted); }
.price { display: flex; align-items: baseline; gap: 4px; }
.price .c { font-size: 1.25rem; font-weight: 500; }
.price .a { font-size: 3.25rem; font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.price .p { color: var(--muted); font-size: var(--t-sm); margin-left: 4px; }
.pro .price .p { color: var(--inverse-muted); }
.rate { display: grid; gap: 10px; padding-block: 18px; border-block: 1px solid var(--line); }
.pro .rate { border-color: var(--inverse-line); }
.rate-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.rate-top span { font-size: var(--t-xs); color: var(--muted); }
.pro .rate-top span { color: var(--inverse-muted); }
.rate-top b { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rate-top b small { font-size: .6em; font-weight: 500; margin-left: 2px; }
.meter { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.pro .meter { background: var(--inverse-line); }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.rate small.eq { font-size: .75rem; color: var(--muted); }
.pro .rate small.eq { color: var(--inverse-muted); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: var(--t-sm); }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { width: 16px; height: 16px; flex: none; margin-top: 5px; color: var(--muted); }
.pro li svg { color: var(--inverse-muted); }
.plan .btn { width: 100%; }
.pro .btn-primary { background: var(--inverse-fg); color: var(--inverse-bg); }
.pro .btn-primary:hover { opacity: .9; }
.plans-note { max-width: 880px; margin: 22px auto 0; font-size: var(--t-xs); color: var(--muted); text-align: center; }

/* faq */
.faq { max-width: 760px; margin: 48px auto 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 36px 22px 0; position: relative; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 12px; height: 1.5px; background: var(--muted); transition: transform .25s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { padding: 0 36px 24px 0; color: var(--muted); font-size: var(--t-sm); }

/* closing */
.closing { text-align: center; padding-block: clamp(88px, 12vw, 150px); }
.closing .wrap { display: grid; justify-items: center; gap: 22px; }
.closing img { width: 64px; height: 64px; }
.closing h2 { font-size: var(--t-xl); line-height: 1.2; }
.closing p { color: var(--muted); }
.closing .acts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* footer */
footer { border-top: 1px solid var(--line); padding-block: 56px calc(40px + env(safe-area-inset-bottom, 0px)); font-size: var(--t-xs); color: var(--muted); }
.foot { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.foot .brand { color: var(--ink); margin-bottom: 10px; }
.foot h5 { margin: 0 0 12px; font-size: var(--t-xs); font-weight: 600; color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a:hover { color: var(--ink); }
.legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }

@media (prefers-reduced-motion: no-preference) {
  .fade { animation: fade .8s cubic-bezier(.2, .7, .2, 1) both; }
  .fade.d1 { animation-delay: .06s; } .fade.d2 { animation-delay: .12s; } .fade.d3 { animation-delay: .18s; } .fade.d4 { animation-delay: .3s; }
  @keyframes fade { from { opacity: .001; transform: translateY(10px); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse i { animation: none; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .row, .row.flip { grid-template-columns: 1fr; }
  .row.flip .copy { order: 0; }
  .minis { grid-template-columns: repeat(2, 1fr); }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .how-steps { grid-template-columns: 1fr; gap: 28px; }
  .plans { grid-template-columns: 1fr; }
  .minis { grid-template-columns: 1fr; gap: 32px; }
  .stage { border-radius: 18px; }
  .nav-right .login { display: none; }
  .hero-actions .btn { width: 100%; }
  .hero-actions { width: 100%; flex-direction: column; }
}
