:root {
  color-scheme: light;
  --page: #fffdf7;
  --paper: #ffffff;
  --paper-soft: #f0f7ff;
  --ink: #13231f;
  --ink-soft: #556963;
  --line: #d5e2dc;
  --green: #2367aa;
  --green-dark: #174d80;
  --mint: #e0f0ff;
  --lime: #ffd66b;
  --blue: #2f63ef;
  --navy: #102e27;
  --amber: #a66500;
  --danger: #b13d3d;
  --shadow: 0 18px 60px rgba(24, 68, 53, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
[hidden] { display: none !important; }

.site-header,
.hero,
.section,
.plain-summary,
.closing-section,
footer {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  position: relative;
  z-index: 10;
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; letter-spacing: -.035em; }
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 10px 10px 10px 3px;
  font-size: 1rem;
  font-weight: 900;
}
.site-nav { display: flex; justify-content: center; gap: 30px; color: var(--ink-soft); font-size: .92rem; font-weight: 650; }
.site-nav a:hover { color: var(--green); }
.header-account-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 750;
}
.member-chip { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hero {
  min-height: 700px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  align-items: center;
  gap: 64px;
  padding: 82px 0 96px;
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(3.25rem, 6vw, 5.75rem);
  line-height: .99;
  letter-spacing: -.07em;
}
h1 span { color: var(--green); }
.lead {
  max-width: 650px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.75;
}
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 36px; }
.primary-link {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  color: #fff;
  background: var(--green);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(8, 121, 88, .18);
  font-weight: 800;
}
.primary-link:hover { background: var(--green-dark); transform: translateY(-1px); }
.text-link { color: var(--green-dark); font-weight: 750; }
.text-link span { margin-left: 5px; }
.trial-note { margin: 18px 0 0; color: var(--ink-soft); font-size: .86rem; }

.hero-demo {
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
  position: relative;
  overflow: hidden;
  background: var(--navy);
  border-radius: 36px 36px 36px 10px;
  box-shadow: 0 28px 80px rgba(16, 46, 39, .2);
}
.hero-demo::before,
.hero-demo::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-demo::before { width: 260px; height: 260px; top: -130px; right: -80px; background: rgba(184, 239, 82, .16); }
.hero-demo::after { width: 220px; height: 220px; bottom: -150px; left: -60px; background: rgba(47, 99, 239, .2); }
.demo-question,
.demo-answer {
  width: min(340px, 100%);
  margin-inline: auto;
  padding: 17px 20px;
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .14);
}
.demo-question span,
.demo-answer small { display: block; color: var(--ink-soft); font-size: .76rem; }
.demo-question strong,
.demo-answer strong { display: block; margin-top: 2px; font-size: 1rem; }
.demo-path { height: 56px; display: flex; justify-content: center; gap: 54px; position: relative; z-index: 1; }
.demo-path span { width: 1px; background: linear-gradient(var(--mint), rgba(201, 244, 223, .15)); transform: rotate(18deg); }
.demo-path span:nth-child(2) { transform: none; }
.demo-path span:nth-child(3) { transform: rotate(-18deg); }
.demo-path-up span { background: linear-gradient(rgba(201, 244, 223, .15), var(--lime)); }
.demo-tasks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: relative; z-index: 1; }
.demo-answer { display: flex; align-items: center; gap: 13px; background: var(--lime); }
.answer-check { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: var(--green); border-radius: 50%; font-weight: 900; }

.plain-summary { margin-bottom: 28px; padding: 24px 30px; background: var(--mint); border-radius: 16px; }
.plain-summary p { margin: 0; font-size: 1.04rem; }
.plain-summary strong { margin-right: 12px; color: var(--green-dark); }

.section { padding: 110px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-heading { max-width: 690px; margin-bottom: 46px; }
.section-heading h2,
.account-intro h2,
.safety-copy h2,
.closing-section h2 {
  margin: 0;
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -.055em;
}
.section-heading > p:last-child,
.account-intro > p,
.safety-copy > p:last-child { margin: 20px 0 0; color: var(--ink-soft); font-size: 1.05rem; }
.compact-heading { margin-bottom: 34px; }

.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.step-grid li { min-height: 330px; padding: 28px; position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.step-number { color: var(--green); font-size: .8rem; font-weight: 900; }
.step-icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 46px 0 28px; color: var(--green-dark); background: var(--mint); border-radius: 18px; font-size: 1.7rem; font-weight: 900; }
.step-grid h3 { margin: 0; font-size: 1.5rem; letter-spacing: -.035em; }
.step-grid p { margin: 12px 0 0; color: var(--ink-soft); }

.example-section { width: min(1240px, calc(100% - 48px)); padding-inline: 40px; background: var(--navy); border-radius: 32px; color: #fff; }
.example-section .eyebrow { color: var(--lime); }
.example-card { display: grid; justify-items: center; }
.example-prompt { width: min(620px, 100%); padding: 24px 28px; color: var(--ink); background: #fff; border-radius: 18px; }
.example-prompt span, .example-result span { color: var(--ink-soft); font-size: .78rem; font-weight: 750; }
.example-prompt p { margin: 6px 0 0; font-size: 1.15rem; font-weight: 800; }
.example-arrow { padding: 20px; color: #9fc6ba; font-size: .78rem; font-weight: 750; }
.example-leaves { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.example-leaves div { min-height: 112px; display: flex; flex-direction: column; justify-content: space-between; padding: 17px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; }
.example-leaves span { color: var(--lime); font-size: .72rem; font-weight: 850; }
.example-result { min-width: 290px; display: flex; align-items: center; gap: 14px; padding: 18px 22px; color: var(--ink); background: var(--lime); border-radius: 16px; }
.example-result strong { display: block; }
.result-dot { width: 14px; height: 14px; flex: 0 0 auto; background: var(--green); border: 4px solid rgba(255, 255, 255, .55); border-radius: 50%; }

.use-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.use-card { min-height: 390px; padding: 34px; overflow: hidden; position: relative; border-radius: 24px; }
.ask-card { background: #e8efff; }
.share-card { background: var(--mint); }
.use-label { color: var(--blue); font-size: .78rem; font-weight: 850; }
.share-card .use-label { color: var(--green); }
.use-card h3 { max-width: 470px; margin: 20px 0 0; font-size: clamp(1.65rem, 3vw, 2.3rem); line-height: 1.15; letter-spacing: -.04em; }
.use-card > p { max-width: 520px; margin: 16px 0 30px; color: var(--ink-soft); }
.mini-chat { display: grid; gap: 10px; padding: 22px; background: #fff; border-radius: 17px; box-shadow: 0 14px 40px rgba(47, 99, 239, .1); }
.mini-chat span { width: fit-content; max-width: 90%; padding: 10px 13px; background: #eef2f6; border-radius: 12px 12px 12px 3px; font-size: .82rem; }
.mini-chat span:first-child { margin-left: auto; color: #fff; background: var(--blue); border-radius: 12px 12px 3px 12px; }
.device-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 20px; background: #fff; border-radius: 17px; box-shadow: 0 14px 40px rgba(8, 121, 88, .1); }
.device-light { width: 11px; height: 11px; background: #28bd75; border-radius: 50%; box-shadow: 0 0 0 5px rgba(40, 189, 117, .13); }
.device-row strong, .device-row small { display: block; }
.device-row small { margin-top: 2px; color: var(--ink-soft); }
.device-toggle { padding: 5px 10px; color: var(--green-dark); background: var(--mint); border-radius: 999px; font-size: .72rem; font-weight: 850; }
.platform-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.platform-row span { padding: 7px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; font-weight: 750; }
.platform-row small { margin-left: auto; color: var(--ink-soft); }

.safety-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; }
.safety-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.safety-list li { display: grid; grid-template-columns: auto 1fr; gap: 15px; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 15px; }
.safety-list li > span { width: 32px; height: 32px; display: grid; place-items: center; color: #fff; background: var(--green); border-radius: 50%; font-weight: 900; }
.safety-list strong { font-size: 1.05rem; }
.safety-list p { margin: 2px 0 0; color: var(--ink-soft); font-size: .9rem; }

.network-heading { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.network-note { max-width: 440px; margin: 0 !important; text-align: right; }
.network-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; }
.network-stats > div { padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.network-stats dt { color: var(--ink-soft); font-size: .88rem; }
.network-stats dd { margin: 7px 0 0; color: var(--green); font-size: 2.45rem; line-height: 1.1; font-weight: 900; letter-spacing: -.05em; }
.network-stats small { color: var(--ink-soft); font-size: .72rem; }
.network-details { margin-top: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.network-details summary { padding: 17px 20px; color: var(--green-dark); font-weight: 750; cursor: pointer; }
.detail-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0 20px 20px; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: 10px; }
.detail-stats div { padding: 16px; background: var(--page); }
.detail-stats dt { color: var(--ink-soft); font-size: .78rem; }
.detail-stats dd { margin: 3px 0 0; font-weight: 850; }
.provider-profiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; padding: 0 20px 20px; }
.provider-profile { padding: 18px; background: var(--page); border: 1px solid var(--line); border-radius: 12px; }
.provider-profile h3 { margin: 0 0 8px; font-size: 1rem; }
.provider-profile p { margin: 4px 0 0; color: var(--ink-soft); font-size: .78rem; }

.account { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(520px, 1.28fr); align-items: start; gap: 70px; }
.account-intro { position: sticky; top: 28px; }
.account-intro ul { display: grid; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--ink-soft); }
.account-intro li::before { content: "✓"; margin-right: 10px; color: var(--green); font-weight: 900; }
.account-surface { min-width: 0; padding: 8px; background: #e7f1ec; border-radius: 22px; }
.auth-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 4px; }
.auth-tabs button { min-height: 44px; padding: 6px 10px; color: var(--ink-soft); background: transparent; border: 0; border-radius: 11px; font-size: .82rem; font-weight: 750; }
.auth-tabs button[aria-selected="true"] { color: var(--ink); background: #fff; box-shadow: 0 4px 14px rgba(24, 68, 53, .08); }
.account-card { padding: 26px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.auth-panel { border: 0; }
.account-card h3 { margin: 0; font-size: 1.25rem; letter-spacing: -.025em; }
.account-card > p { margin: 8px 0 18px; color: var(--ink-soft); font-size: .88rem; }
.account-card label { display: block; margin: 14px 0 6px; color: var(--ink-soft); font-size: .84rem; font-weight: 650; }
.account-card label small { font-weight: 500; }
.account-card input,
.account-card select,
.request-form input,
.request-form select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #bfd0c8;
  border-radius: 10px;
  outline: none;
}
.account-card button,
.request-form button,
.cancel-request {
  min-height: 46px;
  padding: 0 18px;
  color: #fff;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 10px;
  font-weight: 800;
}
.auth-panel > button { width: 100%; margin-top: 20px; }
.status-message { min-height: 1.5em; margin: 12px 10px 4px; color: var(--ink-soft); font-size: .86rem; }
.member-dashboard { display: grid; gap: 8px; }
.member-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.member-summary p { margin: 3px 0 0; }
.member-overline { color: var(--green); font-size: .72rem; font-weight: 800; }
.member-summary .secondary-button { width: auto; color: var(--ink); background: transparent; border-color: var(--line); }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dashboard-grid > *:first-child { grid-row: span 2; }
.member-list { display: grid; gap: 8px; color: var(--ink-soft); font-size: .8rem; }
.member-list article, .member-list a { display: grid; gap: 2px; padding: 11px; background: var(--page); border: 1px solid var(--line); border-radius: 9px; }
.member-list strong { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-list span { font-size: .72rem; }
.member-list .session-current { color: var(--green); }
.member-list .device-offline { color: var(--amber); }
.account-card .member-list button { width: auto; min-height: 32px; margin: 6px 0 0; padding: 0 10px; justify-self: start; font-size: .7rem; }
.device-control-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.account-card .member-list .control-button { color: var(--green-dark); background: var(--mint); border-color: #9bd9bd; }
.account-card .member-list .danger-button,
.account-card .member-list .disconnect-button { color: var(--danger); background: #fff; border-color: #e5b9b9; }
.device-link-code { display: block; min-height: 1.5em; margin-top: 14px; color: var(--green); white-space: pre-wrap; overflow-wrap: anywhere; font-family: ui-monospace, monospace; font-size: .78rem; }

.workspace { padding-top: 20px; }
.workspace-details { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
.workspace-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; cursor: pointer; }
.workspace-details summary small, .workspace-details summary strong { display: block; }
.workspace-details summary small { color: var(--green); font-size: .72rem; font-weight: 800; }
.workspace-details summary strong { font-size: 1.12rem; }
.workspace-body { padding: 0 26px 26px; }
.workspace-body > p { color: var(--ink-soft); }
.request-form { padding: 24px; background: var(--page); border: 1px solid var(--line); border-radius: 15px; }
.request-form > label { display: block; margin-bottom: 8px; font-weight: 750; }
textarea { width: 100%; min-height: 145px; resize: vertical; padding: 15px; color: var(--ink); background: #fff; border: 1px solid #bfd0c8; border-radius: 10px; outline: none; }
.grounding-context { min-height: 110px; }
.grounding-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.grounding-controls label, .request-limits label, .form-actions label { display: block; margin-bottom: 5px; color: var(--ink-soft); font-size: .82rem; font-weight: 650; }
.request-limits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.form-actions { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 12px; margin-top: 14px; }
.form-actions button { white-space: nowrap; }

.plan { padding-top: 70px; }
.plan-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.plan-controls { display: flex; align-items: center; gap: 12px; }
.plan-state { color: var(--amber); font-weight: 750; }
.cancel-request { min-height: 40px; color: var(--danger); background: transparent; border-color: #d9a0a0; }
.plan-prompt { margin: 24px 0 34px; color: var(--ink-soft); font-size: 1.08rem; }
.execution-flow { margin-bottom: 34px; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
.flow-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.flow-heading h3 { margin: 0; font-size: 1.32rem; }
.flow-heading > p { max-width: 480px; margin: 0; color: var(--ink-soft); font-size: .84rem; text-align: right; }
.request-flow-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin: 20px 0 14px; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: 12px; }
.request-flow-stats div { padding: 14px; background: var(--page); }
.request-flow-stats dt { color: var(--ink-soft); font-size: .72rem; }
.request-flow-stats dd { margin: 4px 0 0; font-size: 1.1rem; font-weight: 850; }
.provider-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.provider-flow-card { --provider-accent: var(--green); padding: 16px; background: var(--page); border: 1px solid color-mix(in srgb, var(--provider-accent) 42%, var(--line)); border-radius: 14px; }
.provider-apple { --provider-accent: #3986d7; }
.provider-nvidia { --provider-accent: #52a82d; }
.provider-flow-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.provider-flow-top h4 { margin: 0; }
.flow-activity { padding: 3px 8px; color: var(--ink-soft); background: #fff; border-radius: 999px; font-size: .7rem; }
.flow-activity.is-running { color: var(--provider-accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--provider-accent) 50%, transparent); }
.flow-hardware, .flow-usage, .flow-waiting { margin: 7px 0 0; color: var(--ink-soft); font-size: .76rem; }
.flow-meter { height: 5px; margin-top: 13px; overflow: hidden; background: #dce6e1; border-radius: 999px; }
.flow-meter span { display: block; height: 100%; background: var(--provider-accent); border-radius: inherit; transition: width .3s ease; }
.lease-events { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.lease-events h4 { margin: 0 0 8px; font-size: .84rem; }
.lease-events ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lease-event { --provider-accent: var(--amber); display: flex; gap: 8px; padding: 7px 10px; background: var(--page); border: 1px solid color-mix(in srgb, var(--provider-accent) 35%, var(--line)); border-radius: 999px; color: var(--ink-soft); font-size: .72rem; }
.lease-event-status { color: var(--provider-accent); font-weight: 800; }
.lease-stable { margin: 0; color: var(--ink-soft); font-size: .76rem; }
.pyramid { display: flex; flex-direction: column; gap: 8px; }
.pyramid-stage { display: grid; gap: 9px; }
.pyramid-stage-label { margin: 0; color: var(--ink-soft); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.flow-connector { display: flex; flex-direction: column; align-items: center; padding: 2px 0; color: var(--green); }
.flow-connector span { font-size: 1.15rem; line-height: 1; }
.flow-connector small { color: var(--ink-soft); font-size: .68rem; }
.pyramid-level { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; justify-content: center; }
.level-0 { grid-template-columns: minmax(260px, 480px); }
.task { --provider-accent: var(--line); min-height: 128px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.task.provider-apple, .task.provider-nvidia { border-color: color-mix(in srgb, var(--provider-accent) 42%, var(--line)); }
.task-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.task-provider, .task-retry { padding: 2px 7px; border-radius: 999px; font-size: .64rem; font-weight: 750; }
.task-provider { color: var(--provider-accent); background: color-mix(in srgb, var(--provider-accent) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--provider-accent) 34%, transparent); }
.task-retry { color: var(--amber); background: #fff7df; box-shadow: inset 0 0 0 1px #ead39a; }
.task h3 { margin: 9px 0; font-size: 1rem; line-height: 1.35; }
.task-status { margin: 0; color: var(--ink-soft); font-size: .84rem; }
.task-compute { margin: 12px 0 0; color: var(--ink-soft); font-size: .72rem; }
.task-lineage { margin: 8px 0 0; color: #748881; font-size: .68rem; }
.task-awaiting_provider { border-color: #dfbd6d; }
.task-awaiting_provider .task-status { color: var(--amber); }
.task-leased, .task-running { border-color: #72c7a6; box-shadow: 0 8px 24px rgba(8, 121, 88, .08); }
.task-succeeded { border-color: #a3d7c2; }
.planning-placeholder { padding: 32px; text-align: center; color: var(--amber); border: 1px dashed #d2a746; border-radius: 14px; }
.result-panel { margin-top: 36px; padding: 28px; background: var(--mint); border: 1px solid #87cca9; border-radius: 16px; }
.result-panel h3 { margin: 0 0 18px; font-size: 1.4rem; }
.final-answer { white-space: pre-wrap; line-height: 1.75; }
.final-hash { margin: 20px 0 0; color: var(--ink-soft); font-family: ui-monospace, monospace; font-size: .72rem; overflow-wrap: anywhere; }

.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 22px 4px; font-size: 1.05rem; font-weight: 800; cursor: pointer; }
.faq-list p { max-width: 800px; margin: -8px 0 24px; color: var(--ink-soft); }

.closing-section { min-height: 340px; display: flex; align-items: center; justify-content: space-between; gap: 50px; padding: 60px; color: #fff; background: var(--green); border-radius: 30px; }
.closing-section .eyebrow { color: var(--lime); }
.closing-section h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.light-link { flex: 0 0 auto; color: var(--ink); background: #fff; box-shadow: none; }
.light-link:hover { background: var(--lime); }

footer { min-height: 150px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 30px; color: var(--ink-soft); font-size: .84rem; }
.footer-brand { color: var(--ink); }
footer p { margin: 0; }

input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(47, 99, 239, .25);
  outline-offset: 2px;
  border-color: var(--blue);
}

@media (max-width: 920px) {
  .site-nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 54px; }
  .hero-copy { max-width: 760px; }
  .hero-demo { width: min(620px, 100%); min-height: 500px; margin-inline: auto; }
  .step-grid { grid-template-columns: 1fr; }
  .step-grid li { min-height: auto; }
  .step-icon { margin: 30px 0 20px; }
  .example-leaves { grid-template-columns: repeat(2, 1fr); }
  .account { grid-template-columns: 1fr; gap: 36px; }
  .account-intro { position: static; }
  .safety-section { gap: 36px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-grid > *:first-child { grid-row: auto; }
}

@media (max-width: 680px) {
  .site-header, .hero, .section, .plain-summary, .closing-section, footer { width: min(100% - 28px, 1160px); }
  .site-header { min-height: 66px; }
  .brand { font-size: .94rem; }
  .brand-mark { width: 30px; height: 30px; }
  .member-chip { max-width: 120px; }
  .header-account-link { min-height: 38px; padding: 0 14px; }
  .hero { gap: 42px; padding: 46px 0 64px; }
  h1 { font-size: clamp(2.7rem, 14vw, 4.2rem); }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 14px; }
  .primary-link { width: 100%; }
  .text-link { text-align: center; }
  .hero-demo { min-height: 460px; padding: 24px; border-radius: 26px 26px 26px 8px; }
  .demo-path { gap: 32px; }
  .plain-summary { padding: 20px; }
  .plain-summary strong { display: block; margin: 0 0 4px; }
  .section { padding: 78px 0; }
  .section-heading h2, .account-intro h2, .safety-copy h2, .closing-section h2 { font-size: clamp(2.05rem, 11vw, 3rem); }
  .example-section { width: min(100% - 20px, 1240px); padding: 72px 18px; border-radius: 22px; }
  .example-leaves { grid-template-columns: 1fr 1fr; }
  .use-grid, .safety-section { grid-template-columns: 1fr; }
  .use-card { min-height: auto; padding: 25px; }
  .platform-row small { width: 100%; margin-left: 0; }
  .network-heading { align-items: flex-start; flex-direction: column; }
  .network-note { text-align: left; }
  .network-stats, .detail-stats { grid-template-columns: 1fr; }
  .auth-tabs { grid-template-columns: 1fr; }
  .account-card { padding: 20px; }
  .grounding-controls, .request-limits, .form-actions { grid-template-columns: 1fr; }
  .form-actions button { width: 100%; }
  .plan-heading, .flow-heading { align-items: flex-start; flex-direction: column; }
  .flow-heading > p { text-align: left; }
  .request-flow-stats { grid-template-columns: repeat(2, 1fr); }
  .closing-section { align-items: flex-start; flex-direction: column; min-height: auto; padding: 38px 26px; }
  footer { grid-template-columns: 1fr; gap: 10px; padding: 40px 0; }
}

@media (max-width: 520px) {
  .demo-tasks, .example-leaves { grid-template-columns: 1fr 1fr; }
  .example-leaves div { min-height: 100px; }
  .device-row { grid-template-columns: auto 1fr; }
  .device-toggle { grid-column: 2; justify-self: start; }
  .request-flow-stats, .pyramid-level:not(.level-0) { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Connected computers and the dedicated member page. */
.hero h1 { font-size: clamp(2.9rem, 4.8vw, 4.8rem); line-height: 1.16; }
.connection-label { position: relative; z-index: 1; margin: 20px 0 0; color: #c9f4df; text-align: center; font-size: .85rem; font-weight: 700; }
.computer-node { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; padding: 18px 8px; border: 1px solid #507268; border-radius: 16px; background: #23473c; color: white; text-align: center; }
.computer-node small { color: #c9f4df; }
.computer-icon { display: block; width: 44px; height: 30px; border: 2px solid var(--lime); border-radius: 4px; margin-bottom: 8px; position: relative; }
.computer-icon::after { content: ""; position: absolute; width: 24px; height: 2px; background: var(--lime); left: 8px; bottom: -8px; }
.computer-icon.laptop::after { width: 52px; left: -6px; bottom: -5px; }
.computer-icon.server { width: 30px; height: 36px; background: repeating-linear-gradient(0deg, transparent 0 8px, #507268 8px 10px); }
.computer-icon.server::after { display: none; }
.diagram-note { position: relative; margin: 20px 0 0; color: #afc7be; font-size: .75rem; text-align: center; }
.account-page { padding-block: 50px; }
.account-page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.2; }
.account-page .section-heading { margin-bottom: 24px; }
.account-page .member-summary { margin-bottom: 24px; }
.account-page .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.account-page .dashboard-grid > *:first-child { grid-row: auto; }
.account-page [id$="-title"] { scroll-margin-top: 24px; }
body[data-page="account"] .workspace { padding-top: 10px; }
@media (max-width: 680px) {
  .account-page .dashboard-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.5rem, 10vw, 3.8rem); }
  .computer-node { padding: 14px 6px; font-size: .9rem; }
}

/* Member navigation: one selected view at a time. */
.account-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 32px; align-items: start; }
.account-sidebar { position: sticky; top: 24px; border: 1px solid var(--line); background: var(--paper); border-radius: 20px; padding: 20px; }
.account-identity { padding: 4px 8px 20px; border-bottom: 1px solid var(--line); }
.account-identity h2 { margin: 8px 0 0; font-size: 1.15rem; }
.account-identity p { margin: 4px 0 0; color: var(--ink-soft); font-size: .8rem; overflow-wrap: anywhere; }
.account-menu { display: grid; gap: 6px; margin: 16px 0; }
.account-menu a { display: grid; gap: 2px; padding: 12px; border-radius: 10px; }
.account-menu a:hover { background: var(--paper-soft); }
.account-menu a[aria-current="page"] { background: var(--green); color: #fff; }
.account-menu strong { font-size: .95rem; }
.account-menu small { font-size: .75rem; opacity: .8; }
.account-sidebar > button { width: 100%; min-height: 42px; margin-top: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--paper-soft); font-size: .88rem; font-weight: 700; }
.account-content { min-width: 0; min-height: 480px; }
.account-view > .account-card { margin: 0; padding: 30px; }
.account-view > form.account-card { max-width: 720px; }
#reset-code-details { margin-top: 16px; }
#reset-code-details > summary { cursor: pointer; line-height: 1.6; }
#reset-code-details #password-reset-form { padding: 20px 0 0; border: 0; box-shadow: none; }
.account-view .section { width: 100%; margin: 0; padding: 0; }
.account-view #plan-section { margin-top: 32px; }
.account-view .workspace-body { padding: 24px; }
body[data-page="account"] .account-page { padding-top: 36px; }
@media (max-width: 920px) {
  .account-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 20px; }
  .account-sidebar { padding: 14px; }
}
@media (max-width: 680px) {
  .account-layout { grid-template-columns: 1fr; gap: 20px; }
  .account-sidebar { position: static; }
  .account-identity { padding-bottom: 12px; }
  .account-menu { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .account-menu a { padding: 10px 4px; text-align: center; }
  .account-menu strong { font-size: .85rem; }
  .account-menu small { display: none; }
  .account-sidebar > button { width: auto; margin: 0; padding: 6px 14px; }
  .account-view > .account-card { padding: 22px; }
  .account-content { min-height: 280px; }
}

.request-timing { margin-top: 1.5rem; }
.request-timing summary { cursor: pointer; font-weight: 700; }
.request-timing p { color: var(--muted, #687180); line-height: 1.6; }
.request-timing-scroll { overflow-x: auto; }
.request-timing table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.request-timing th, .request-timing td { padding: .75rem; text-align: left; border-bottom: 1px solid #d5dae0; }
.request-timing td { white-space: nowrap; }
.request-timing caption { text-align: left; padding: .5rem 0; }

.brand-mark:has(img) {background:transparent;overflow:hidden;}
.brand-mark img {display:block;width:100%;height:100%;object-fit:contain;}

/* Moa: the shared-computer diagram follows the app's light sky-blue palette. */
.hero-demo {background:var(--paper-soft);border:1px solid #c8def2;box-shadow:0 24px 64px rgba(35,103,170,.12);}
.hero-demo::before {background:rgba(255,214,107,.24);}
.hero-demo::after {background:rgba(118,185,237,.18);}
.connection-label {color:var(--green-dark);}
.computer-node {background:var(--paper);border-color:#c8def2;color:var(--ink);}
.computer-node small,.diagram-note {color:var(--ink-soft);}
.computer-icon {border-color:var(--green);}
.computer-icon::after {background:var(--green);}
.computer-icon.server {background:repeating-linear-gradient(0deg,transparent 0 8px,#c8def2 8px 10px);}
.demo-path span {background:linear-gradient(#76b9ed,#c8def2);}
.demo-path-up span {background:linear-gradient(#c8def2,#76b9ed);}
