/* Tessera — site stylesheet.
 *
 * The palette, radii and content width are lifted from the application's
 * Theme.qml singleton rather than invented here, so the site and the product
 * are recognisably the same thing. Where a value looks arbitrary it is
 * probably a token from that file.
 *
 * No web fonts. The app uses Segoe UI and the site follows it, which also
 * means the page makes zero third-party requests — a claim the privacy policy
 * makes and this file has to keep true.
 */

:root {
  --bg:            #f7f6f3;   /* Theme.colors.background, light */
  --surface:       #ffffff;   /* Theme.colors.surface */
  --surface-alt:   #f1efec;   /* Theme.colors.surfaceAlt */
  --border:        rgba(0,0,0,.10);
  --border-strong: rgba(0,0,0,.18);
  --divider:       rgba(0,0,0,.07);
  --text:          #37352f;   /* Theme.colors.textPrimary, light */
  --text-2:        #73726e;   /* textSecondary */
  --text-3:        #a8a49d;   /* textMuted */
  --accent:        #2f6fd0;
  --accent-ink:    #ffffff;
  --accent-soft:   rgba(59,130,246,.10);

  --ok:    #2c7a51;
  --warn:  #9a6212;
  --fail:  #b03236;
  --ok-bg:   rgba(48,164,108,.10);
  --warn-bg: rgba(247,107,21,.10);
  --fail-bg: rgba(229,72,77,.10);

  --r-sm: 4px;   /* Theme.radius.sm */
  --r-md: 6px;
  --r-lg: 10px;
  --r-xl: 14px;

  --measure: 720px;   /* Theme.metrics.contentMaxWidth */
  --wide:    1080px;

  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:            #191919;  /* Theme.colors.background, dark */
    --surface:       #202020;
    --surface-alt:   #262626;
    --border:        rgba(255,255,255,.09);
    --border-strong: rgba(255,255,255,.17);
    --divider:       rgba(255,255,255,.07);
    --text:          #e9e9e7;
    --text-2:        #9b9a97;
    --text-3:        #6b6b6b;
    --accent:        #6ea8f0;
    --accent-ink:    #10192a;
    --accent-soft:   rgba(110,168,240,.12);

    --ok:   #58c08c;
    --warn: #e0a54a;
    --fail: #eb7377;
  }
}

/* ---------------------------------------------------------------- reset -- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.25; letter-spacing: -.011em; }
p  { margin: 0 0 1.05em; }
ul, ol { margin: 0 0 1.05em; padding-left: 1.35em; }
li { margin: .3em 0; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--divider); margin: 2.5rem 0; }

code, kbd, samp, pre {
  font-family: var(--mono);
  font-size: .875em;
}
code {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: .08em .34em;
  word-break: break-word;
}
pre {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  overflow-x: auto;
  margin: 0 0 1.2em;
  line-height: 1.55;
}
pre code { background: none; border: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--surface); color: var(--text);
  padding: 10px 16px; border: 1px solid var(--border-strong);
  border-radius: var(--r-md); z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* --------------------------------------------------------------- layout -- */

.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 24px; }
.hero .wrap { max-width: 1000px; }
.prose { max-width: var(--measure); }
.prose h2 { font-size: 1.32rem; margin: 2.6rem 0 .7rem; }
.prose h3 { font-size: 1.06rem; margin: 1.9rem 0 .5rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose > p:last-child, .prose > ul:last-child { margin-bottom: 0; }

section { padding: 0; }
.band { border-top: 1px solid var(--divider); padding: 68px 0; }
.band-tint { background: var(--surface); }

/* ----------------------------------------------------------------- head -- */

.site-head {
  border-bottom: 1px solid var(--divider);
  background: var(--bg);
  position: sticky; top: 0; z-index: 40;
}
.head-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 60px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-name { font-weight: 600; font-size: 1.02rem; letter-spacing: -.012em; }

.mark .t1 { fill: var(--text); }
.mark .t2 { fill: var(--text); opacity: .58; }
.mark .t3 { fill: var(--text); opacity: .34; }
.mark .t4 { fill: var(--accent); }

.nav { display: flex; align-items: center; gap: 22px; font-size: .93rem; }
.nav a { color: var(--text-2); }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav a.is-current { color: var(--text); font-weight: 600; }

/* ----------------------------------------------------------------- hero -- */

.hero { padding: 84px 0 60px; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0,1fr) 268px;
  gap: 64px; align-items: start; max-width: 920px;
}
.eyebrow {
  font-size: .755rem; font-weight: 600; letter-spacing: .085em;
  text-transform: uppercase; color: var(--text-3);
  margin: 0 0 18px; display: flex; align-items: center; gap: 9px;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 2px;
  background: var(--accent); flex: none;
}
.hero h1 {
  font-size: clamp(2.05rem, 4.2vw, 2.85rem);
  letter-spacing: -.022em; margin: 0 0 20px; max-width: 15ch;
}
.lede { font-size: 1.12rem; color: var(--text-2); max-width: 54ch; margin-bottom: 1.4em; }
.lede strong { color: var(--text); font-weight: 600; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--accent); color: var(--accent-ink);
  border: 1px solid transparent; border-radius: var(--r-md);
  padding: 11px 18px; font-size: .95rem; font-weight: 600;
  font-family: inherit; cursor: pointer;
  transition: filter .14s ease;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn-quiet {
  background: transparent; color: var(--text);
  border-color: var(--border-strong);
}
.btn-quiet:hover { background: var(--surface-alt); filter: none; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.cta-sub { font-size: .85rem; color: var(--text-3); margin: 0; }
.cta-sub code { font-size: .95em; }

/* The hero figure: a mosaic, which is what a tessera is. Deliberately not a
   screenshot — a fake one would be worse than none.
   The three coloured tiles are presence colours from the collaboration
   protocol, which is the palette people actually see in a shared document. */
.hero-fig { margin: 6px 0 0; }
.mosaic { width: 100%; height: auto; display: block; }
.mosaic rect { fill: var(--text); }
.mosaic .m-a { opacity: .20; }
.mosaic .m-b { opacity: .15; }
.mosaic .m-c { opacity: .10; }
.mosaic .m-d { opacity: .07; }
.mosaic .m-1 { fill: #6e56cf; opacity: .85; }
.mosaic .m-2 { fill: #12a594; opacity: .8; }
.mosaic .m-3 { fill: #f76b15; opacity: .75; }
.fig-cap { font-size: .82rem; color: var(--text-3); margin: 14px 0 0; }

/* -------------------------------------------------------------- content -- */

.sec-label {
  font-size: .755rem; font-weight: 600; letter-spacing: .085em;
  text-transform: uppercase; color: var(--text-3); margin: 0 0 14px;
}
.sec-title { font-size: 1.55rem; letter-spacing: -.018em; margin: 0 0 14px; max-width: 22ch; }
.sec-intro { color: var(--text-2); max-width: 62ch; font-size: 1.03rem; }

/* A feature list built from hairlines rather than cards. Cards with icon
   badges are the house style of every generated landing page; rules are what
   a specification sheet uses. */
.rules { margin: 34px 0 0; border-top: 1px solid var(--divider); }
.rule {
  display: grid; grid-template-columns: 210px minmax(0,1fr);
  gap: 32px; padding: 26px 0; border-bottom: 1px solid var(--divider);
}
.rule h3 { font-size: 1rem; margin: 0; letter-spacing: -.008em; }
.rule p { margin: 0; color: var(--text-2); font-size: .965rem; }
.rule p + p { margin-top: .7em; }

.cols { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px 44px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 26px;
}
.panel h3 { font-size: 1rem; margin: 0 0 8px; }
.panel p:last-child { margin-bottom: 0; }

.note {
  border-left: 3px solid var(--border-strong);
  padding: 2px 0 2px 18px;
  color: var(--text-2);
  margin: 1.4em 0;
}
.note strong { color: var(--text); }
.note-warn { border-left-color: var(--warn); }

/* -------------------------------------------------------------- tables --- */

table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .945rem; }
caption { text-align: left; color: var(--text-3); font-size: .85rem; padding-bottom: 8px; }
th, td { text-align: left; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--divider); vertical-align: top; }
th { font-weight: 600; color: var(--text); white-space: nowrap; }
thead th { border-bottom-color: var(--border-strong); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
td { color: var(--text-2); }
td:first-child, th:first-child { padding-left: 0; }
.table-scroll { overflow-x: auto; }

/* ---------------------------------------------------------------- tags --- */

.tag {
  display: inline-block; font-size: .74rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 8px; border-radius: var(--r-sm);
  border: 1px solid var(--border-strong); color: var(--text-2);
  white-space: nowrap;
}
.tag-quiet { border-color: var(--border); color: var(--text-3); }
.tag-ok   { color: var(--ok);   border-color: currentColor; background: var(--ok-bg); }
.tag-warn { color: var(--warn); border-color: currentColor; background: var(--warn-bg); }
.tag-fail { color: var(--fail); border-color: currentColor; background: var(--fail-bg); }

.metaline {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  font-family: var(--mono); font-size: .82rem; color: var(--text-3);
  margin: 0; padding: 0; list-style: none;
}
.metaline li { margin: 0; }
.metaline b { color: var(--text-2); font-weight: 500; }

/* ------------------------------------------------------------- download -- */

.dl-card {
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  background: var(--surface);
  padding: 30px 32px;
  max-width: var(--measure);
}
.dl-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.dl-top h2 { font-size: 1.2rem; margin: 0; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 22px; font-size: .9rem; color: var(--text-2); }
.dl-meta span { white-space: nowrap; }

.hash {
  display: block; font-family: var(--mono); font-size: .82rem;
  background: var(--surface-alt); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 10px 12px;
  word-break: break-all; color: var(--text-2); line-height: 1.5;
  user-select: all;
}

/* --------------------------------------------------------------- check --- */

.check-form { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; max-width: var(--measure); }
.check-form input[type=url], .check-form input[type=text] {
  flex: 1 1 320px; min-width: 0;
  font-family: var(--mono); font-size: .9rem;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--r-md);
  padding: 10px 13px;
}
.check-form input::placeholder { color: var(--text-3); }

.check-out { margin-top: 26px; max-width: var(--measure); }
.check-out[hidden] { display: none; }

.findings { list-style: none; margin: 18px 0 0; padding: 0; }
.finding {
  display: grid; grid-template-columns: 62px minmax(0,1fr);
  gap: 16px; padding: 14px 0; border-top: 1px solid var(--divider);
}
.finding h4 { margin: 0 0 3px; font-size: .95rem; font-weight: 600; }
.finding p { margin: 0; font-size: .92rem; color: var(--text-2); }

.kv { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: 6px 20px; margin: 0; font-size: .93rem; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; color: var(--text); font-family: var(--mono); font-size: .88rem; word-break: break-word; }

.status-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.status-head h3 { margin: 0; font-size: 1.05rem; }

/* ----------------------------------------------------------------- auth -- */

.nav-cta {
  border: 1px solid var(--border-strong); border-radius: var(--r-md);
  padding: 5px 12px; color: var(--text) !important;
}
.nav-cta:hover { background: var(--surface-alt); }

.auth { max-width: 460px; margin: 0 auto; padding: 64px 0 88px; }
.auth-wide { max-width: var(--measure); }
.auth-h1 { font-size: 1.8rem; letter-spacing: -.02em; margin: 0 0 12px; }
.auth-sub { color: var(--text-2); margin-bottom: 2rem; }
.auth-alt { font-size: .93rem; color: var(--text-2); margin-top: 1.6rem; }
.auth-note { margin-top: 2.4rem; }
.auth-note p { font-size: .9rem; }
.account-kv { margin: 0 0 2.4rem; }
.account-h2 { font-size: 1.2rem; margin: 2.8rem 0 .5rem; }

.form { margin: 0; }
.field { margin-bottom: 20px; }
.field label {
  display: block; font-size: .9rem; font-weight: 600;
  margin-bottom: 6px; color: var(--text);
}
.field .opt { font-weight: 400; color: var(--text-3); font-size: .85em; }
.field input {
  width: 100%; font-family: inherit; font-size: 1rem;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--r-md);
  padding: 10px 13px;
}
.field input:focus-visible { border-color: var(--accent); }
.field-narrow input { max-width: 180px; font-family: var(--mono); font-size: .92rem; }
.hint { font-size: .85rem; color: var(--text-3); margin: 6px 0 0; }
.form-legal { margin-top: 16px; }
.btn-block { width: 100%; justify-content: center; margin-top: 4px; }

.form-inline { margin-bottom: 1rem; }
.signout { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--divider); }
.signout .hint { margin-top: 10px; }

.alert {
  border: 1px solid var(--border-strong); border-left-width: 3px;
  border-radius: var(--r-md); padding: 14px 18px; margin: 0 0 1.6rem;
}
.alert p { margin: 0 0 .5em; font-size: .93rem; }
.alert p:last-child { margin-bottom: 0; }
.alert-ok   { border-left-color: var(--ok);   background: var(--ok-bg); }
.alert-warn { border-left-color: var(--warn); background: var(--warn-bg); }
.alert-fail { border-left-color: var(--fail); background: var(--fail-bg); }

/* ---------------------------------------------------------------- legal -- */

.legal { max-width: var(--measure); padding: 64px 0 88px; }
.legal h1 { font-size: 1.95rem; letter-spacing: -.02em; margin-bottom: 8px; }
.legal .updated { color: var(--text-3); font-size: .9rem; margin-bottom: 2.2rem; }
.legal h2 { font-size: 1.14rem; margin: 2.4rem 0 .6rem; }
.legal h3 { font-size: .99rem; margin: 1.6rem 0 .4rem; }
.legal p, .legal li { font-size: .975rem; }
.legal ul { padding-left: 1.25em; }
.legal .toc { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 22px; background: var(--surface); margin-bottom: 2.4rem; }
.legal .toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 32px; font-size: .93rem; }
.legal .toc li { margin: .18em 0; break-inside: avoid; }

.placeholder {
  background: var(--warn-bg); color: var(--warn);
  border: 1px dashed currentColor; border-radius: var(--r-sm);
  padding: 0 5px; font-family: var(--mono); font-size: .85em; font-style: normal;
}

/* ----------------------------------------------------------------- foot -- */

.site-foot { border-top: 1px solid var(--divider); padding: 52px 0 44px; margin-top: 40px; color: var(--text-2); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.foot-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); margin: 0 0 12px; font-weight: 600; }
.foot-note { font-size: .9rem; margin: 0 0 .7em; max-width: 34ch; }
.foot-list { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.foot-list li { margin: .32em 0; }
.foot-list a { color: var(--text-2); }
.foot-list a:hover { color: var(--text); }
.foot-legal { font-size: .84rem; color: var(--text-3); margin: 40px 0 0; padding-top: 22px; border-top: 1px solid var(--divider); }

/* -------------------------------------------------------------- narrow --- */

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0,1fr); gap: 40px; }
  .hero-fig { max-width: 260px; }
  .rule { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .cols { grid-template-columns: minmax(0,1fr); }
  .foot-grid { grid-template-columns: minmax(0,1fr) 1fr; }
  .legal .toc ol { columns: 1; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero { padding: 52px 0 40px; }
  .band { padding: 48px 0; }
  .nav { gap: 14px; font-size: .88rem; }
  .brand-name { display: none; }
  .dl-card { padding: 22px 20px; }
  .finding { grid-template-columns: minmax(0,1fr); gap: 6px; }
  .foot-grid { grid-template-columns: minmax(0,1fr); }
}

/* ----------------------------------------------------- alpha access form -- */

/* The honeypot. Off-screen rather than display:none, because some bots skip
   what is display:none and this should catch them. aria-hidden and tabindex=-1
   keep it away from anybody using a keyboard or a screen reader. */
.hp {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

.hero-access {
  margin-top: 30px; padding: 22px 24px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
}
.hero-access-h { font-size: .95rem; color: var(--text-2); margin: 0 0 16px; }
.hero-access-h strong { color: var(--text); }

.access-card {
  max-width: var(--measure); padding: 28px 30px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
}
.access-form { margin: 0; }
.access-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.access-form .btn { margin-top: 4px; }

.check-line { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 10px; align-items: start; }
.check-line input { width: auto; margin-top: 3px; }
.check-line label { font-weight: 400; font-size: .88rem; color: var(--text-2); line-height: 1.5; }

/* ------------------------------------------------------------- pricing --- */

.billing-toggle {
  display: inline-flex; border: 1px solid var(--border-strong);
  border-radius: var(--r-md); overflow: hidden; margin: 0 0 32px;
}
.toggle-opt {
  padding: 8px 18px; font-size: .9rem; color: var(--text-2);
  border-right: 1px solid var(--border-strong);
}
.toggle-opt:last-child { border-right: 0; }
.toggle-opt:hover { background: var(--surface-alt); text-decoration: none; }
.toggle-opt.is-on { background: var(--text); color: var(--bg); font-weight: 600; }

.plans {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 20px; align-items: start;
}
.plan {
  position: relative;
  border: 1px solid var(--border); border-radius: var(--r-xl);
  background: var(--surface); padding: 26px 24px 28px;
  display: flex; flex-direction: column;
}
.plan-featured { border-color: var(--accent); }
.plan-badge {
  position: absolute; top: -10px; left: 24px;
  background: var(--accent); color: var(--accent-ink);
  font-size: .7rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 9px; border-radius: var(--r-sm);
}
.plan-name { font-size: 1.15rem; margin: 0 0 4px; }
.plan-tagline { font-size: .88rem; color: var(--text-3); margin: 0 0 18px; }
.plan-price { margin: 0 0 2px; display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.plan-amount { font-size: 1.85rem; font-weight: 600; letter-spacing: -.02em; }
.plan-unit { font-size: .82rem; color: var(--text-3); }
.plan-saving { font-size: .8rem; color: var(--ok); margin: 0 0 12px; font-weight: 600; }
.plan-blurb { font-size: .9rem; color: var(--text-2); margin: 14px 0 20px; flex: 1 0 auto; }
.plan .btn-block { margin-bottom: 20px; }
.plan-list { list-style: none; margin: 0; padding: 0; font-size: .88rem; }
.plan-list li {
  position: relative; padding-left: 20px; margin: .5em 0; color: var(--text-2); line-height: 1.45;
}
.plan-list li::before { position: absolute; left: 0; top: 0; font-weight: 600; }
.plan-list li.yes::before { content: "✓"; color: var(--ok); }
.plan-list li.no::before { content: "—"; color: var(--text-3); }
.plan-ents {
  font-size: .76rem; color: var(--text-3); margin: 18px 0 0;
  padding-top: 14px; border-top: 1px solid var(--divider);
}
.plan-ents code { font-size: .95em; background: none; border: 0; padding: 0; }

/* ------------------------------------------------------------- checkout -- */

.order {
  border: 1px solid var(--border-strong); border-radius: var(--r-lg);
  background: var(--surface); padding: 22px 24px; margin: 0 0 2rem;
}
.order-h { font-size: 1.05rem; margin: 2.2rem 0 .8rem; }
.order-h:first-child { margin-top: 0; }
.order-lines { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: 10px 24px; margin: 0; }
.order-lines dt { color: var(--text-3); font-size: .9rem; }
.order-lines dd { margin: 0; font-size: .93rem; }
.order-total { font-size: 1.15rem; font-weight: 600; }
.order .hint { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--divider); }

.pay-note { margin-bottom: 16px; }
.pay-form { margin: 0; }
.pay-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.pay-btn { min-width: 190px; justify-content: center; }
.pay-btn:nth-child(2) { background: transparent; color: var(--text); border-color: var(--border-strong); }
.pay-btn:nth-child(2):hover { background: var(--surface-alt); filter: none; }

/* -------------------------------------------------------- account admin -- */

.account-nav {
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  font-size: .9rem; padding: 14px 0; margin: 0 0 1rem;
  border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider);
}
.account-nav a { color: var(--text-2); }
.account-nav a:hover { color: var(--text); }

.acct { padding: 2.4rem 0 0; }
.acct-h { font-size: 1.25rem; margin: 0 0 .5rem; }
.acct-sub { color: var(--text-2); font-size: .93rem; margin: 0 0 1.2rem; max-width: 60ch; }
.acct-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 0; }

.ctrl {
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 20px 22px; margin: 0 0 16px; background: var(--surface);
}
.ctrl-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ctrl-head h3 { font-size: 1rem; margin: 0; }
/* A control with no backend is visibly a control with no backend. A disabled
   button that looks live is worse than no button. */
.ctrl-pending { background: none; border-style: dashed; }
.ctrl-pending .field label,
.ctrl-pending .acct-sub { color: var(--text-3); }
.pending-note {
  font-size: .84rem; color: var(--text-3); margin: 14px 0 0;
  padding-top: 12px; border-top: 1px solid var(--divider); max-width: 68ch;
}

.field input:disabled {
  background: var(--surface-alt); color: var(--text-3); cursor: not-allowed;
}
.acct-danger .ctrl { border-color: color-mix(in srgb, var(--fail) 40%, transparent); }
.btn-danger { background: var(--fail); color: #fff; }
.btn-danger:hover { filter: brightness(1.08); }
.btn-danger[disabled] { opacity: .5; }

@media (max-width: 1000px) {
  .plans { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .plans { grid-template-columns: minmax(0,1fr); }
  .access-row { grid-template-columns: minmax(0,1fr); }
  .hero-access { padding: 18px 16px; }
  .access-card { padding: 20px 18px; }
  .pay-btn { min-width: 0; width: 100%; }
}
