:root {
  color-scheme: light;
  --page: #fcf7ed;
  --paper: #fffcf7;
  --ink: #36271e;
  --muted: #68594c;
  --line: #e8dac8;
  --brand: #77503b;
  --brand-strong: #573626;
  --green: #e7ead8;
  --green-ink: #3f5136;
  --focus: #8d5e37;
  --error: #902c23;
  --shadow: 0 12px 36px #6d462410;
  --radius: 22px;
  font-family: Inter, "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--page); color: var(--ink); }
img { max-width: 100%; display: block; }
a { color: var(--brand-strong); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .62; cursor: wait; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.4rem, 3vw, 2.05rem); letter-spacing: -.026em; }
h3 { font-size: 1.16rem; }
p { color: var(--muted); }
.wrap { width: min(1120px, calc(100% - 56px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.nav, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.nav { min-height: 76px; }
.brand { display: inline-flex; gap: 11px; align-items: center; color: var(--ink); font-size: 1.05rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.brand img { border-radius: 12px; }
nav { display: flex; gap: clamp(14px, 2.7vw, 32px); align-items: center; }
nav a, .nav-action { font-weight: 700; color: var(--ink); text-decoration: none; font-size: .89rem; }
nav a:hover { color: var(--brand); }
.nav-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #d6bd9f;
  background: var(--paper);
  border-radius: 100px;
  padding: 8px 15px;
  white-space: nowrap;
}
.nav-action:hover { background: #f2e5d5; }
.eyebrow { color: var(--brand); font-size: .8rem; font-weight: 800; letter-spacing: .15em; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 9px 18px;
  border: 1px solid var(--brand);
  border-radius: 12px;
  background: var(--brand);
  color: #fffdf9;
  font-weight: 750;
  text-decoration: none;
}
.button:hover { border-color: var(--brand-strong); background: var(--brand-strong); }
.button.secondary { color: var(--brand-strong); background: var(--paper); border-color: #d4bda4; }
.button.secondary:hover { background: #f2e5d5; }
.text-link, .text-button { color: var(--brand-strong); font-weight: 750; text-underline-offset: 4px; }
.text-link { text-decoration: underline; }
.text-link:hover, .text-button:hover { color: #a04721; }
.text-button { background: none; border: 0; padding: 4px; text-decoration: underline; }
.hero { display: grid; grid-template-columns: .96fr 1.04fr; gap: 44px; align-items: center; padding-block: 58px 52px; }
.hero h1 { margin-block: 14px 18px; }
.hero-intro { max-width: 390px; margin-bottom: 27px; font-size: 1.02rem; }
.hero-meta { margin-top: 15px; font-size: .83rem; }
.hero-scene {
  display: grid;
  place-items: center;
  isolation: isolate;
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid #dfe1cd;
  background: linear-gradient(140deg, #edf0df, #e1e5cc 60%, #eff0db);
}
.hero-scene img {
  width: min(72%, 355px);
  height: auto;
  filter: drop-shadow(0 14px 11px #5736262b);
  transform: translateY(7px);
}
.hero-orbit {
  z-index: -1;
  position: absolute;
  width: 79%;
  max-width: 410px;
  aspect-ratio: 1;
  border: 1px solid #fdf7e8aa;
  border-radius: 50%;
  background: radial-gradient(circle, #f9f4e1b8, #f9f4e150 64%, transparent 65%);
  box-shadow: 0 0 0 28px #fcf6e139, 0 0 0 54px #fcf6e122;
}
.feature-section { padding-block: 28px 56px; }
.section-heading { display: grid; gap: 8px; margin-bottom: 22px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature { overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-image { display: grid; place-items: center; height: clamp(136px, 17vw, 218px); overflow: hidden; }
.feature-image img { width: 100%; height: 100%; object-fit: cover; }
.feature-image.keyboard { background: #eee0ce; }
.feature-image.keyboard img { width: auto; height: 94%; object-fit: contain; }
.feature-image.house img { object-position: 50% 38%; }
.feature-image.travel img { object-position: 50% 40%; }
.feature-copy { padding: 20px 19px 22px; }
.feature-copy p { font-size: .92rem; margin-top: 7px; }
.download-panel {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 24px;
  align-items: start;
  padding: clamp(24px, 4.7vw, 50px);
  background: var(--green);
  border: 1px solid #d8dec5;
  border-radius: 30px;
}
.download-panel h2 { margin-block: 9px; }
.download-panel .eyebrow { color: var(--green-ink); }
.download-details { align-self: center; min-width: 0; }
.release-summary { color: var(--green-ink); font-size: .89rem; margin-bottom: 10px; font-weight: 750; }
.release-details { margin-top: 11px; }
.release-details p { margin-top: 7px; font-size: .83rem; }
.multiline { white-space: pre-line; }
.wrap-anywhere { overflow-wrap: anywhere; }
.mono { font-family: "IBM Plex Mono", "Cascadia Mono", ui-monospace, monospace; }
.faq-section { max-width: 800px; margin: 64px auto 70px; }
details > summary { cursor: pointer; color: var(--ink); font-weight: 750; }
.faq details, details.faq { border-top: 1px solid var(--line); padding-block: 15px; }
.faq p { margin-top: 10px; font-size: .92rem; }
.faq p a { display: inline-block; margin-left: 6px; text-underline-offset: 4px; }
.site-footer { background: #f5ecde; border-top: 1px solid var(--line); }
.footer-inner { min-height: 78px; }
.footer-inner .brand { font-size: .9rem; }
.footer-inner nav a { font-size: .85rem; }

.activation-page, .admin-page { padding-block: 42px 64px; }
.page-heading { margin-bottom: 26px; }
.page-heading h1, .sign-in h1 { margin-block: 9px; font-size: clamp(2.15rem, 4.6vw, 3.35rem); }
.activation-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(245px, 310px); gap: 20px; }
.panel {
  min-width: 0;
  padding: clamp(19px, 3vw, 34px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel h2 { margin-bottom: 9px; }
.panel h2 + p { margin-bottom: 17px; }
.steps { display: grid; gap: 10px; padding-inline-start: 24px; margin-block: 18px 23px; }
.steps li { padding-left: 4px; }
.steps li::marker { color: var(--brand); font-weight: 800; }
.steps li span { display: block; color: var(--muted); font-size: .91rem; }
.activation-sidebar { min-width: 0; }
.plans { background: var(--green); border-color: #dce0cb; box-shadow: none; }
.plans h2 { font-size: 1.23rem; }
.plans > p { margin-top: 12px; font-size: .86rem; }
.plan { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-block: 12px; border-bottom: 1px solid #cdd4bb; }
.plan p { font-size: .82rem; }
.plan span { white-space: nowrap; color: var(--green-ink); }
.plan span b { font-size: 1.67rem; }
.support { margin-top: 18px; }
.status {
  padding: 9px 12px;
  background: #eef1e6;
  border-radius: 9px;
  color: #3e4f38;
  font-size: .89rem;
  overflow-wrap: anywhere;
}
.status.error { background: #fae9e4; color: var(--error); }
form { display: grid; gap: 13px; align-items: start; }
form > .button { justify-self: start; }
label { display: grid; gap: 5px; color: var(--ink); font-size: .9rem; font-weight: 750; min-width: 0; }
input, select, textarea {
  min-width: 0;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #d6c4ad;
  border-radius: 9px;
  color: var(--ink);
  background: #fffefa;
  font-weight: 400;
  font-size: max(1rem, 16px);
}
textarea { resize: vertical; }
input::placeholder { color: #746758; }
input:hover, select:hover, textarea:hover { border-color: #9b7d61; }
.record-list { display: grid; gap: 7px; margin-block: 20px; }
.record-list div { display: grid; grid-template-columns: minmax(75px, .3fr) 1fr; gap: 8px; padding-block: 9px; border-bottom: 1px solid var(--line); }
.record-list dt { color: var(--muted); font-size: .9rem; }
.record-list dd { margin: 0; font-size: .93rem; min-width: 0; }
.result .eyebrow { margin-bottom: 7px; }
.result .text-link { display: inline-block; margin-top: 19px; }
.result .status, .result label { margin-top: 11px; }

.sign-in { max-width: 480px; margin: 18px auto; }
.sign-in form { margin-top: 19px; }
.admin-heading { display: flex; justify-content: space-between; align-items: end; gap: 14px; }
.search-form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-bottom: 12px; }
.search-form label { width: min(340px, 70%); }
.search-form .status { width: 100%; }
.admin-grid { display: grid; grid-template-columns: 135px minmax(0, 1fr); gap: 18px; margin-top: 15px; }
.admin-nav { position: sticky; top: 20px; align-self: start; display: grid; gap: 7px; align-items: stretch; }
.admin-nav a { padding: 9px 11px; border-radius: 9px; }
.admin-nav a:hover { background: #f0e5d7; }
.admin-content { display: grid; gap: 15px; }
.admin-content .panel { padding: clamp(16px, 2vw, 26px); }
.fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fields > .full { grid-column: 1 / -1; }
.fields > .full .status { margin-top: 9px; }
.inset { margin-top: 16px; padding: 15px; border: 1px solid #d8dfc8; border-radius: 12px; background: #f0f2e7; }
.inset p { margin-block: 8px; }
.inset .actions { margin-top: 9px; }
.table-heading { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin-top: 22px; margin-bottom: 9px; }
.table-heading.first { margin-top: 0; }
.table-heading input { min-width: min(240px, 100%); }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .83rem; }
th, td { padding: 9px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { white-space: nowrap; background: #f7f1e6; }
td { min-width: 78px; max-width: 235px; overflow-wrap: anywhere; }
td small { display: block; margin-top: 3px; color: var(--muted); font-size: .76rem; }
td.empty { color: var(--muted); }
.row-actions { display: flex; flex-wrap: wrap; }
.row-actions button { white-space: nowrap; }
.pill { display: inline-block; padding: 2px 7px; border-radius: 30px; background: var(--green); color: var(--green-ink); white-space: nowrap; }
.pill.inactive { background: #f2e8df; color: var(--muted); }
dialog { width: min(475px, calc(100% - 32px)); max-height: calc(100% - 24px); border: 1px solid var(--line); border-radius: 18px; padding: 21px; background: var(--paper); color: var(--ink); box-shadow: 0 20px 50px #39251a42; }
dialog::backdrop { background: #30201668; }
dialog > p { margin-block: 9px 14px; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

@media (max-width: 820px) {
  .hero { gap: 24px; padding-block: 40px; }
  .hero-scene { min-height: 310px; }
  .activation-grid { grid-template-columns: minmax(0, 1fr) minmax(190px, 245px); }
  .admin-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-nav { position: static; display: flex; flex-wrap: wrap; gap: 3px; border-bottom: 1px solid var(--line); padding-bottom: 7px; }
}

@media (max-width: 630px) {
  .wrap { width: calc(100% - 32px); }
  .nav { min-height: 62px; gap: 12px; }
  .nav .brand { gap: 6px; font-size: .94rem; }
  .nav .brand img { width: 32px; height: 32px; border-radius: 9px; }
  .nav nav { gap: 9px; }
  .nav nav a, .nav-action { font-size: .78rem; }
  .nav a[href="#features"] { display: none; }
  .nav-action { padding: 5px 9px; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding-block: 30px 20px; }
  .hero h1 { margin-block: 9px 12px; }
  .hero-intro { margin-bottom: 17px; }
  .hero-scene { min-height: 0; aspect-ratio: 1.45; border-radius: 23px; }
  .hero-scene img { width: min(59%, 260px); }
  .feature-section { padding-block: 24px 36px; }
  .feature-grid, .download-panel, .activation-grid { grid-template-columns: 1fr; }
  .feature { display: grid; grid-template-columns: 41% 1fr; }
  .feature-image { height: 100%; min-height: 122px; }
  .feature-copy { padding: 13px 12px; }
  .feature-copy p { font-size: .85rem; }
  .download-panel { gap: 15px; border-radius: 22px; }
  .faq-section { margin-block: 36px; }
  .footer-inner { min-height: 67px; gap: 9px; }
  .footer-inner nav { gap: 10px; }
  .footer-inner nav a { font-size: .76rem; }
  .activation-page, .admin-page { padding-block: 27px 39px; }
  .table-heading { align-items: stretch; flex-direction: column; gap: 9px; }
  .table-heading input { min-width: 0; }
}

@media (max-width: 375px) {
  .footer-inner nav { flex-direction: column; align-items: start; gap: 1px; }
  .fields { grid-template-columns: minmax(0, 1fr); }
}
