:root {
  color-scheme: light;
  --page: #eaf2ff;
  --paper: #fff;
  --ink: #10172e;
  --muted: #5c6477;
  --line: #d9dfec;
  --blue: #065bff;
  --selected: #edf4ff;
  --green: #159b69;
  font:
    16px/1.5 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--page);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.52;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #7b9dff;
  outline-offset: 3px;
}
.app {
  max-width: 520px;
  min-height: 100dvh;
  margin: auto;
  background: #fcfdff;
  display: flex;
  flex-direction: column;
}
header {
  text-align: center;
  padding: 15px 22px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
header span {
  font-size: 14px;
  color: var(--muted);
}
main {
  padding: 24px 20px 28px;
  flex: 1;
}
section {
  scroll-margin-top: 16px;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: clamp(30px, 8vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 760;
  margin-bottom: 18px;
  max-width: 420px;
}
h2 {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
p {
  color: var(--muted);
  margin: 10px 0 16px;
  font-size: 15px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 13px;
  margin: 0 0 14px;
}
.card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  margin-top: 18px;
}
.card h2 {
  margin-top: 4px;
}
.card small,
.choice small {
  display: block;
  color: var(--muted);
  font-size: 14px;
}
.plan-name {
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -0.03em;
}
.badge {
  background: #e4efff;
  color: #064bef;
  font-size: 13px;
  border-radius: 8px;
  padding: 5px 9px;
}
.split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 18px;
}
.stats > div + div {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}
.stats strong {
  font-size: 27px;
  line-height: 1.2;
}
.stats small {
  line-height: 1.35;
  margin-top: 5px;
}
.primary,
.secondary,
.text-button,
.link-card {
  display: block;
  width: 100%;
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
  font-weight: 650;
  text-decoration: none;
}
.primary {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  margin-top: 18px;
}
.secondary {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--blue);
  margin-top: 12px;
}
.text-button {
  color: var(--blue);
  background: none;
  border: 0;
  font-weight: 500;
  margin-top: 12px;
}
.link-card {
  border: 1px solid var(--line);
  margin-top: 16px;
  color: var(--ink);
  text-align: left;
  background: white;
}
.link-card small {
  display: block;
  color: var(--muted);
  font-weight: 400;
}
.dot {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #9298a3;
  vertical-align: middle;
  margin-left: 8px;
}
.dot.active {
  background: var(--green);
}
fieldset {
  border: 0;
  padding: 0;
  margin: 24px 0 0;
}
legend {
  font-size: 23px;
  font-weight: 700;
  margin-bottom: 12px;
}
.choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 16px;
  margin-top: 12px;
  background: #fff;
  cursor: pointer;
}
.choice:has(input:checked) {
  border-color: var(--blue);
  background: var(--selected);
  box-shadow: inset 0 0 0 1px var(--blue);
}
.choice strong {
  font-size: 19px;
}
.choice input {
  accent-color: var(--blue);
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
nav {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #ffffffef;
  border-top: 1px solid var(--line);
  padding: 6px 6px max(8px, env(safe-area-inset-bottom));
  backdrop-filter: blur(12px);
}
nav button {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  padding: 4px;
}
nav button span {
  display: block;
  font-size: 26px;
  line-height: 1.25;
}
nav [aria-current] {
  color: var(--blue);
}
input:not([type="radio"]),
select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  margin: 6px 0 12px;
}
label {
  font-size: 14px;
}
.callout,
#notice {
  padding: 14px;
  border-radius: 12px;
  background: #edf3ff;
  color: #263b69;
  font-size: 14px;
  margin: 16px 0;
}
#notice.error {
  background: #fff0ed;
  color: #8b3025;
}
.demo {
  padding: 10px 16px;
  background: #e2edff;
  font-size: 12px;
  color: #344d7c;
}
.demo button {
  border: 0;
  background: transparent;
  color: var(--blue);
  text-decoration: underline;
}
.state {
  font-size: 13px;
  color: var(--muted);
}
.instructions {
  padding-left: 22px;
  color: var(--muted);
}
.instructions li {
  margin: 12px 0;
}
.device {
  overflow-wrap: anywhere;
}
.danger {
  color: #a13030;
}
.device-actions {
  margin-top: 16px;
}
#operation:empty {
  display: none;
}
@media (min-width: 600px) {
  .app {
    margin: 28px auto;
    border: 1px solid var(--line);
    border-radius: 28px;
    overflow: clip;
    min-height: calc(100dvh - 56px);
    box-shadow: 0 12px 48px #1b386012;
  }
  main {
    padding: 26px;
  }
  header {
    padding: 18px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition:
      background 0.15s,
      opacity 0.15s;
  }
}
