/* plume.hercstack.com — technical-manual aesthetic. Shares the app's palette
   tokens and monospace voice so site and app read as one instrument. No
   gradients, no glow, structure drawn with hairlines. */

:root {
  --bg: #0e1116;
  --panel: #151a22;
  --panel-2: #1a202b;
  --rule: #242c3a;
  --rule-strong: #313c4f;
  --text: #d7dde8;
  --muted: #7d879b;
  --accent: #7aa2f7;
  --green: #6fbf8f;
  --amber: #d9a552;
  --red: #e0687a;

  --mono: Menlo, Monaco, Consolas, "Droid Sans Mono", "Courier New", monospace;
  --display: "Archivo Expanded", "Archivo", sans-serif;
  --sans: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 56px);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f5f8;
    --panel: #ffffff;
    --panel-2: #eef0f5;
    --rule: #d9dde6;
    --rule-strong: #c3c9d4;
    --text: #1c2230;
    --muted: #5c6675;
    --accent: #3b63c4;
    --green: #1a7f4b;
    --amber: #9a6b12;
    --red: #c02942;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.mono { font-family: var(--mono); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

/* small tracked mono labels, used as section indices and figure captions */
.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.label .i { color: var(--accent); }

/* ---- masthead ---- */
.masthead {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.masthead .row {
  display: flex; align-items: center; gap: 20px;
  height: 60px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.01em; font-size: 18px; }
.brand svg { color: var(--accent); }
.brand .rev { font-family: var(--mono); font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: 0.06em; }
.masthead nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.masthead nav a {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); padding: 8px 12px; border: 1px solid transparent;
}
.masthead nav a:hover { color: var(--text); }
.masthead nav a.cta { color: var(--text); border-color: var(--rule); }
.masthead nav a.cta:hover { border-color: var(--accent); color: var(--accent); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 13px 20px; border: 1px solid var(--rule); border-radius: 2px; color: var(--text);
  background: transparent; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #0b1020; font-weight: 600; }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); color: #0b1020; }

/* ---- section scaffold: index column + body ---- */
section { border-bottom: 1px solid var(--rule); }
.sec {
  display: grid; grid-template-columns: 200px 1fr; gap: clamp(24px, 5vw, 64px);
  padding-block: clamp(64px, 9vw, 128px);
}
.sec > .idx { position: sticky; top: 92px; align-self: start; }
.sec > .idx .n { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.1em; }
.sec > .idx .t { font-family: var(--mono); font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 6px; }
@media (max-width: 860px) {
  .sec { grid-template-columns: 1fr; gap: 28px; padding-block: clamp(52px, 12vw, 80px); }
  .sec > .idx { position: static; display: flex; gap: 10px; align-items: baseline; }
  .sec > .idx .t { margin-top: 0; }
}

h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.04; }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -0.01em; }
p { color: var(--text); }
.lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); max-width: 62ch; }

/* ---- hero ---- */
.hero { border-bottom: 1px solid var(--rule); }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center;
  padding-block: clamp(56px, 8vw, 104px);
}
.hero h1 { font-size: clamp(40px, 6.6vw, 82px); }
.hero .claim-2 { color: var(--accent); }
.hero .lead { margin-top: 22px; }
.hero .actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .spec-inline { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hero .spec-inline div { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.hero .spec-inline b { color: var(--text); font-weight: 600; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---- figure frame ---- */
figure { border: 1px solid var(--rule); background: var(--panel); border-radius: 3px; overflow: hidden; }
figure img { width: 100%; height: auto; display: block; border-bottom: 1px solid var(--rule); }
figure figcaption {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); padding: 9px 14px; display: flex; justify-content: space-between; gap: 12px;
}
figure figcaption .fno { color: var(--accent); }

/* ---- capabilities register (ruled rows, not cards) ---- */
.register { border-top: 1px solid var(--rule); }
.register .cap {
  display: grid; grid-template-columns: 200px 1fr; gap: clamp(16px, 3vw, 40px);
  padding-block: 22px; border-bottom: 1px solid var(--rule); align-items: baseline;
}
.register .cap h3 { }
.register .cap .k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.register .cap p { color: var(--muted); font-size: 15px; max-width: 68ch; }
@media (max-width: 640px) { .register .cap { grid-template-columns: 1fr; gap: 8px; } }

/* ---- spec + pricing + downloads tables ---- */
table.sheet { width: 100%; border-collapse: collapse; font-size: 15px; }
table.sheet th, table.sheet td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
table.sheet th { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
table.sheet td.num, table.sheet th.num { font-family: var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
table.sheet tr:last-child td { border-bottom: none; }

/* pricing tariff: hairline rules only, paid tiers tinted, no accent grid */
.tariff { width: 100%; border-collapse: collapse; }
.tariff th, .tariff td { padding: 15px 18px; border: 1px solid var(--rule); vertical-align: middle; text-align: center; }
.tariff th:first-child, .tariff td:first-child { text-align: left; }
.tariff thead th { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); background: var(--panel); }
.tariff .plan { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.tariff .price { font-family: var(--mono); font-size: 24px; color: var(--text); white-space: nowrap; }
.tariff .price small { font-size: 12px; color: var(--muted); }
.tariff .feat { color: var(--muted); font-size: 14px; }
.tariff .mark { color: var(--green); font-family: var(--mono); }
.tariff td.pro { background: color-mix(in srgb, var(--panel) 60%, transparent); }
.tariff .btn { padding: 10px 16px; white-space: nowrap; }

/* downloads parts list */
.parts { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.parts a.part {
  display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center;
  padding: 15px 4px; border-bottom: 1px solid var(--rule); transition: background .12s;
}
.parts a.part:hover { background: var(--panel); }
.parts .os { font-weight: 700; }
.parts .kind { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.parts .go { font-family: var(--mono); font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.parts a.part[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ---- footer ---- */
footer.foot { padding-block: 40px; }
footer.foot .row { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
footer.foot .row .sp { margin-left: auto; }
footer.foot a { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
footer.foot a:hover { color: var(--text); }
footer.foot .note { color: var(--muted); font-size: 12.5px; font-family: var(--mono); }

/* ---- entrance (single, reduced-motion aware) ---- */
@media (prefers-reduced-motion: no-preference) {
  .anim { opacity: 0; transform: translateY(4px); animation: rise .4s .05s ease-out forwards; }
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---- portal (product register): auth + account ---- */
.portal { max-width: 460px; margin: 0 auto; padding: clamp(48px, 9vw, 96px) var(--pad); }
.portal.wide { max-width: 760px; }
.portal h1 { font-size: clamp(26px, 4vw, 34px); }
.portal .sub { color: var(--muted); margin-top: 8px; }
.card { border: 1px solid var(--rule); background: var(--panel); border-radius: 3px; padding: clamp(20px, 3vw, 30px); margin-top: 26px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.field input {
  width: 100%; padding: 11px 13px; background: var(--bg); color: var(--text);
  border: 1px solid var(--rule); border-radius: 2px; font-family: var(--sans); font-size: 15px;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent); }
.btn.block { width: 100%; justify-content: center; }
.form-err { color: var(--red); font-size: 13px; margin-top: 4px; }
.form-note { color: var(--muted); font-size: 13px; margin-top: 14px; text-align: center; }
.form-note a { color: var(--accent); }
.flash { border: 1px solid var(--rule); border-left: 2px solid var(--green); background: var(--panel); padding: 12px 14px; border-radius: 2px; margin-bottom: 18px; font-size: 14px; }
.checkline { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 16px; }

/* account status */
.status-row { display: flex; flex-wrap: wrap; gap: 14px; }
.status-box { flex: 1; min-width: 180px; border: 1px solid var(--rule); border-radius: 3px; padding: 16px 18px; background: var(--panel); }
.status-box .k { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.status-box .v { font-size: 22px; font-weight: 800; font-family: var(--display); margin-top: 6px; }
.badge { display: inline-block; font-family: var(--mono); font-size: 12px; padding: 3px 9px; border-radius: 2px; letter-spacing: 0.04em; text-transform: uppercase; }
.badge.pro { background: color-mix(in srgb, var(--green) 20%, transparent); color: var(--green); }
.badge.trial { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.badge.expired { background: color-mix(in srgb, var(--red) 18%, transparent); color: var(--red); }

/* register: account type toggle */
.seg { display: flex; gap: 8px; }
.seg-opt { flex: 1; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt span {
  display: block; text-align: center; padding: 10px 12px; cursor: pointer;
  border: 1px solid var(--rule); border-radius: 2px; background: var(--bg);
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.03em; color: var(--muted);
}
.seg-opt input:checked + span { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* ---- dashboard (signed-in portal) ---- */
.dash { display: grid; grid-template-columns: 210px 1fr; gap: clamp(24px, 4vw, 56px); padding-top: 42px; padding-bottom: 80px; min-height: 60vh; }
.dash-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 90px; align-self: start; }
.dash-who { display: flex; align-items: center; gap: 10px; padding: 4px 10px 16px; }
.dash-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #0b1020; font-weight: 700; font-size: 15px;
}
.dash-id { min-width: 0; }
.dash-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-team { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-nav > a {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted); padding: 9px 10px; border-left: 2px solid transparent; border-radius: 0 2px 2px 0;
}
.dash-nav > a:hover { color: var(--text); background: var(--panel); }
.dash-nav > a.on { color: var(--accent); border-left-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.dash-nav-foot { margin-top: 18px; padding: 14px 10px 0; border-top: 1px solid var(--rule); }
.dash-nav-foot a { font-size: 13px; color: var(--muted); }
.dash-nav-foot a:hover { color: var(--accent); }
.dash-main { min-width: 0; }
.dash-h1 { font-size: clamp(24px, 3.4vw, 30px); }
.dash-main .card h3 { font-size: 17px; }
.dash-sub-h { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 24px 0 10px; }
.nav-user { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-right: 6px; }
.nav-signout {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted); background: none; border: none; cursor: pointer; padding: 6px 0;
}
.nav-signout:hover { color: var(--red); }

.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th {
  font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule);
}
.dash-table td { padding: 12px; border-bottom: 1px solid color-mix(in srgb, var(--rule) 55%, transparent); font-size: 14px; vertical-align: middle; }
.dash-table tr:last-child td { border-bottom: none; }
.dash-table .mono { font-family: var(--mono); font-size: 13px; }
.dash-table .muted, .muted { color: var(--muted); }
.dash-table form { display: inline; }

.dash-form { margin-top: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 18px; }
.field select {
  width: 100%; padding: 11px 34px 11px 13px; background: var(--bg); color: var(--text);
  border: 1px solid var(--rule); border-radius: 2px; font-family: var(--sans); font-size: 15px;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%237d879b' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.field select:focus { outline: none; border-color: var(--accent); }

.invite-form { display: flex; gap: 10px; flex-wrap: wrap; }
.invite-form input, .invite-form select {
  padding: 10px 13px; background: var(--bg); color: var(--text);
  border: 1px solid var(--rule); border-radius: 2px; font-family: var(--sans); font-size: 14px;
}
.invite-form select {
  flex: 0 0 auto; padding-right: 34px;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%237d879b' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.invite-form input { flex: 1; min-width: 220px; }
.invite-form input:focus, .invite-form select:focus { outline: none; border-color: var(--accent); }

.copy-input {
  width: 100%; margin-top: 12px; font-family: var(--mono); font-size: 13px; padding: 11px 13px;
  background: var(--bg); color: var(--text); border: 1px solid var(--rule); border-radius: 2px;
}
.card.accent { border-left: 2px solid var(--accent); }

.bill-plan { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 12px; }
.bill-price { font-family: var(--mono); font-size: 30px; }
.bill-price small { font-size: 13px; color: var(--muted); }
.bill-actions { display: flex; align-items: center; gap: 12px; }

.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.danger:hover { border-color: var(--red); color: var(--red); }
.flash.err { border-left-color: var(--red); }

@media (max-width: 760px) {
  .dash { grid-template-columns: 1fr; }
  .dash-nav { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .dash-who { padding: 0 10px 0 0; }
  .dash-nav > a { border-left: none; border-bottom: 2px solid transparent; }
  .dash-nav > a.on { border-left: none; border-bottom-color: var(--accent); }
  .dash-nav-foot { display: none; }
}
.hint { font-size: 13px; color: var(--muted); line-height: 1.55; }
select option { background: var(--panel); color: var(--text); }
