:root {
  color-scheme: dark;
  --bg: #101419;
  --panel: #191f27;
  --line: #2c3541;
  --text: #f1f4f6;
  --muted: #9eabb9;
  --accent: #cbf16b;
  --ink: #17210b;
  --field: #11171e;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
.shell {
  max-width: 960px;
  margin: auto;
  padding: 24px 24px calc(110px + env(safe-area-inset-bottom));
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 36px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 800;
}
.brand small {
  display: block;
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 1.2px;
  margin-top: 4px;
}
.brand-mark {
  background: var(--accent);
  color: var(--ink);
  border-radius: 13px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  letter-spacing: -1px;
  font-size: 17px;
}
.private-label {
  font-size: 12px;
  color: var(--muted);
}
.demo {
  background: #f6d37d;
  color: #362c17;
  text-align: center;
  font-size: 12px;
  padding: 8px;
}
.eyebrow {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 600;
}
h1 {
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: -1.7px;
  line-height: 1.1;
  margin: 12px 0;
}
h2 {
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 17px;
  margin: 0 0 8px;
}
p {
  margin: 8px 0 18px;
}
.lead {
  color: var(--muted);
  font-size: 16px;
  margin: 16px 0 28px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 180px;
  overflow: hidden;
  background: var(--accent);
  color: var(--ink);
  border-radius: 24px;
  padding: 32px;
  min-height: 270px;
}
.tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.8px;
}
.hero h2 {
  font-size: clamp(26px, 4vw, 39px);
  letter-spacing: -1.3px;
  margin: 18px 0 12px;
}
.hero p {
  font-size: 13px;
  opacity: 0.8;
}
.hero .primary {
  background: var(--ink);
  color: #edffd2;
}
.hero-art {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0.8;
}
.hero-art > span {
  font-size: 102px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -7px;
}
.hero-art > small {
  font-size: 8px;
  letter-spacing: 2px;
  margin-top: 18px;
}
.bar {
  width: 130px;
  height: 12px;
  background: var(--ink);
  margin: 24px 0 10px;
  position: relative;
}
.bar:before,
.bar:after {
  content: "";
  position: absolute;
  top: -17px;
  height: 46px;
  width: 16px;
  border: 5px solid var(--ink);
}
.bar:before {
  left: 7px;
}
.bar:after {
  right: 7px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 13px;
}
.primary {
  background: var(--accent);
  color: var(--ink);
}
.secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0 36px;
}
.metric {
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 17px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.metric > span {
  font-size: 11px;
  color: var(--muted);
}
.metric strong {
  font-size: 30px;
  letter-spacing: -1px;
}
.metric small {
  font-size: 10px;
  color: var(--muted);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.section-heading > span {
  font-size: 11px;
  color: var(--muted);
}
.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.action-card {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  background: var(--panel);
}
.action-icon {
  display: block;
  font-size: 26px;
  color: var(--accent);
  margin-bottom: 16px;
}
.action-card p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 0;
}
.panel,
.exercise {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  margin: 16px 0;
}
.panel > h2 {
  margin-top: 0;
}
.panel p {
  color: var(--muted);
  font-size: 13px;
}
.block-title {
  font-size: 17px;
  margin: 28px 0 12px;
}
.prescription {
  font-weight: 600;
  margin-bottom: 8px;
}
.hint {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 0;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 16px;
}
input,
textarea {
  width: 100%;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px;
  color: var(--text);
  min-width: 0;
  font-size: 16px;
}
textarea {
  resize: vertical;
  font-size: 14px;
  line-height: 1.7;
}
form > .button {
  margin-top: 14px;
}
code {
  background: var(--field);
  padding: 2px 5px;
  border-radius: 5px;
  color: var(--text);
}
dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  font-size: 13px;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
  text-align: right;
}
.macro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.macro-grid span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.macro-grid strong {
  font-size: 16px;
  display: block;
  margin-top: 8px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
td {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
td:last-child {
  text-align: right;
  font-weight: 650;
}
.notice {
  padding: 18px;
  border-radius: 14px;
  background: var(--panel);
  color: var(--muted);
  margin: 12px 0 24px;
}
.notice.error {
  border: 1px solid #b46d64;
  color: #f7c0b8;
}
.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 34px;
  font-size: 10px;
  color: var(--muted);
  gap: 10px;
}
footer button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px;
  font-size: 11px;
}
nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  gap: 8px;
}
nav button {
  border: 0;
  background: none;
  color: var(--muted);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 12px;
  min-height: 44px;
}
nav button.active {
  color: var(--accent);
  background: var(--panel);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f7f3;
  --panel: #fff;
  --line: #dfe4dc;
  --text: #1e2820;
  --muted: #647062;
  --field: #f8faf6;
}
html[data-theme="light"] nav button.active {
  color: #42650a;
}
@media (max-width: 560px) {
  .shell {
    padding: 18px 18px calc(105px + env(safe-area-inset-bottom));
  }
  header {
    padding-bottom: 27px;
  }
  .private-label {
    display: none;
  }
  .hero {
    padding: 25px;
    position: relative;
    grid-template-columns: 1fr;
    border-radius: 20px;
    min-height: 260px;
  }
  .hero > div:first-child {
    position: relative;
    z-index: 1;
  }
  .hero-art {
    position: absolute;
    right: 22px;
    top: 30px;
    opacity: 0.14;
    pointer-events: none;
  }
  .hero-art > span {
    font-size: 58px;
    letter-spacing: -4px;
  }
  .hero-art > small {
    display: none;
  }
  .bar {
    width: 66px;
    height: 8px;
  }
  .bar:before,
  .bar:after {
    height: 33px;
    top: -12px;
    width: 9px;
    border-width: 3px;
  }
  .bar:before {
    left: 1px;
  }
  .bar:after {
    right: 1px;
  }
  .tag {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .hero h2 {
    font-size: 29px;
  }
  .hero p {
    max-width: 180px;
    font-size: 11px;
  }
  .hero .button {
    font-size: 12px;
    gap: 12px;
  }
  .metrics {
    gap: 8px;
    margin-bottom: 28px;
  }
  .metric {
    padding: 13px 10px;
    gap: 8px;
  }
  .metric > span {
    min-height: 32px;
    font-size: 10px;
  }
  .metric strong {
    font-size: 25px;
  }
  .metric small {
    font-size: 9px;
  }
  .action-card {
    padding: 18px;
  }
  .action-card h3 {
    font-size: 15px;
  }
  .action-card p {
    font-size: 11px;
  }
  .section-heading h2 {
    font-size: 18px;
  }
  .panel,
  .exercise {
    padding: 20px;
  }
  .macro-grid {
    grid-template-columns: 1fr 1fr;
  }
  nav {
    gap: 0;
  }
  nav button {
    font-size: 11px;
    padding: 12px 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
