/* ============================================================
   Rice — design system
   Cream ink on night water. One green for doing things, harvest gold
   for the keys you press, and the Rice panel's own colours wherever
   the app is drawn. Shared by every page; the homepage adds home.css.
   ============================================================ */

/* Dark first: the night water the brand uses for the moments Rice appears.
   Light is the same paper by day (below). js/theme.js sets data-theme on
   <html> before the page draws: the visitor's choice, else their device's.
   Without it the site stays dark. Every text pair is AA in both themes on
   paper, paper-2, card and surface.
   The second selector keeps night pieces at night when the page is light:
   the footer, the sign-in art and every drawing of a desktop or the Rice
   panel get these colours back, so their greens and creams still read. */
:root,
:where(:root[data-theme=light]) :where(.footer, .auth-art, .instruction-box, .hs-desk, .desk, .rice, .sv-panel, .mini-rice) {
  color-scheme: dark;

  /* paper & ink, at night */
  --paper:     #0b100e;              /* the page */
  --paper-rgb: 11, 16, 14;           /* the same, for see-through bars */
  --paper-2:   #070b0a;              /* wells sink below the page: inputs on a surface, code */
  --card:      #121a16;              /* a sheet lifted above it */
  --card-rgb:  18, 26, 22;
  --surface:   #101714;              /* section tiles and panels */
  --surface-2: #16201b;              /* a step above: table heads, quiet buttons */
  --white:     #1a241f;              /* the brightest surface: focused fields, chosen options */
  --ink:       #ede7da;              /* cream ink */
  --ink-rgb:   237, 231, 218;        /* hairlines and tints drawn in ink */
  --ink-2:     #d3cec1;
  --muted:     #a9ae9f;              /* body copy */
  --faint:     #8e9488;              /* small meta */
  --line:      rgba(var(--ink-rgb), .10);
  --line-soft: rgba(var(--ink-rgb), .06);
  --chrome:    #1a241f;              /* a pretend window's title bar */
  --fibre:     none;
  --glow:      rgba(var(--leaf-rgb), .16);

  /* accents, used sparingly */
  --leaf:      #8fc581;              /* paddy green: actions, emphasis */
  --leaf-rgb:  143, 197, 129;
  --leaf-2:    #b4e0a4;              /* hover goes lighter, not darker */
  --leaf-wash: rgba(var(--leaf-rgb), .12);
  --on-leaf:   #0b100e;              /* words set on a leaf fill */
  --sun:       #d4a13f;              /* harvest gold: keys, highlights */
  --sun-rgb:   212, 161, 63;
  --sun-wash:  rgba(var(--sun-rgb), .12);
  --sun-ink:   #e3c27a;
  --sun-text:  #ecd39c;              /* a gold note: its words, its bold, its icon */
  --sun-bold:  #f6e4bb;
  --sun-icon:  var(--sun);
  --on-sun:    #171b15;              /* words set on a gold fill */
  --rose:      #f08a9c;              /* errors */
  --rose-rgb:  240, 138, 156;
  --ok:        #6cc99b;
  --ok-rgb:    108, 201, 155;

  /* night: below the page, for the footer and code */
  --night:       #070a09;
  --night-2:     #151d1a;
  --night-3:     #1f2824;
  --night-line:  rgba(239, 233, 220, .10);
  --night-ink:   #efe9dc;
  --night-muted: #a9ae9f;

  /* the Rice panel, as the app draws it */
  --rp-bg:     #232624;
  --rp-card:   #2d302e;
  --rp-line:   rgba(255, 255, 255, .08);
  --rp-ink:    #f1efe9;
  --rp-muted:  #a4a69f;
  --rp-bubble: #3a7330;
  --rp-code:   #b9e28a;
  --rp-mark:   #f0a3b6;

  /* older names a few pages still use inline */
  --sage:  #1f2c22;
  --wheat: #352c17;
  --grain: #f4f1ea;

  /* type */
  --font:  'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --mono:  'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* space, shape, depth */
  --pad:  clamp(1rem, 4vw, 2.75rem);
  --maxw: 1200px;
  --nav-h: 64px;
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-md: 0 18px 40px -22px rgba(0, 0, 0, .8), 0 2px 6px rgba(0, 0, 0, .3);
  --shadow-lg: 0 50px 100px -40px rgba(0, 0, 0, .9), 0 18px 36px -20px rgba(0, 0, 0, .6);

  /* motion: one curve for arriving, one for moving between states */
  --ease:    cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --t-fast:  .16s;
  --t:       .32s;
  --t-slow:  .7s;
}

/* Light: ink on rice paper. Night stays night: the footer, code and the
   pretend desktops keep their dark water, the way they did before the site
   went dark. Only colours change here; shape, type and motion are shared. */
:root[data-theme=light] {
  color-scheme: light;

  --paper:     #f5f1e8;              /* rice paper: the page */
  --paper-rgb: 245, 241, 232;
  --paper-2:   #ece6d8;              /* a fold deeper: wells, inputs, code */
  --card:      #fbf9f4;              /* a sheet laid on the page */
  --card-rgb:  251, 249, 244;
  --surface:   #f9f6ef;              /* section tiles and panels */
  --surface-2: #ece6d8;              /* table heads, quiet buttons */
  --white:     #ffffff;              /* focused fields, chosen options */
  --ink:       #171b15;              /* soil */
  --ink-rgb:   23, 27, 21;
  --ink-2:     #2b3027;
  --muted:     #545a4d;              /* body copy */
  --faint:     #5c6155;              /* small meta */
  --line:      rgba(var(--ink-rgb), .14);
  --line-soft: rgba(var(--ink-rgb), .07);
  --chrome:    #efe9dc;
  /* the paper's fibre: soft noise in ink, a 160px tile */
  --fibre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .09 0 0 0 0 .1 0 0 0 0 .08 .09 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --glow:      rgba(var(--leaf-rgb), .10);

  --leaf:      #3d6a37;              /* paddy green */
  --leaf-rgb:  61, 106, 55;
  --leaf-2:    #2d5328;              /* hover goes darker by day */
  --leaf-wash: rgba(var(--leaf-rgb), .09);
  --on-leaf:   #ffffff;
  --sun-wash:  rgba(var(--sun-rgb), .17);
  --sun-ink:   #6f5010;
  --sun-text:  #4d3a0c;
  --sun-bold:  #3b2c07;
  --sun-icon:  #9a7316;
  --rose:      #b8304b;
  --rose-rgb:  184, 48, 75;
  --ok:        #1d7f55;
  --ok-rgb:    29, 127, 85;

  --sage:  #dce7cf;
  --wheat: #f0e3c2;

  --shadow-sm: 0 1px 2px rgba(23, 27, 21, .06), 0 1px 1px rgba(23, 27, 21, .03);
  --shadow-md: 0 14px 30px -16px rgba(23, 27, 21, .24), 0 2px 6px rgba(23, 27, 21, .05);
  --shadow-lg: 0 44px 80px -40px rgba(23, 27, 21, .45), 0 14px 30px -18px rgba(23, 27, 21, .18);
}
/* night pieces by day: their own tokens are back (above), and so is the cream they inherit */
:where(:root[data-theme=light]) :where(.footer, .auth-art, .instruction-box, .hs-desk, .desk, .rice, .sv-panel, .mini-rice) { color: var(--ink); }

/* ---------------- base ---------------- */

* { box-sizing: border-box; }

/* Any `display` declaration beats the UA's [hidden] rule, so an element with
   display:flex stays visible when you set .hidden = true. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  margin: 0;
  background-color: var(--paper);
  /* rice-paper fibre, drawn once and repeated */
  background-image: var(--fibre);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.006em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* height:auto is load-bearing — without it the HTML height attribute wins and
   every screenshot gets stretched vertically. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }

:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { margin: 0; color: var(--ink); }
h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.025em;
  line-height: 1.04;
  text-wrap: balance;
}
h1 em, h2 em { font-style: italic; color: var(--leaf); }
h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
p { text-wrap: pretty; }

kbd, .kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.7em;
  padding: .12em .42em;
  border-radius: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 2px 0 var(--line);
  font: 500 .82em/1.3 var(--mono);
  color: var(--ink);
  vertical-align: .08em;
}

/* which shortcut this visitor's keyboard has (app.js sets data-os) */
:root[data-os=win] .kbd-mac { display: none !important; }
:root:not([data-os=win]) .kbd-win { display: none !important; }

.skip {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 1000;
  padding: .6rem 1rem;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  transition: top var(--t) var(--ease);
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------------- layout ---------------- */

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.sec { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* the old pastel blobs: gone from the design, harmless where pages still have them */
.mesh { display: none; }

.eyebrow, .pill-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font: 500 .72rem/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--leaf);
}
.eyebrow b { font-weight: 500; color: var(--faint); }
.pill-badge {
  padding: .5rem .8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
}
.pill-badge svg, .eyebrow svg { width: 13px; height: 13px; fill: var(--leaf); }

h2.big {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  margin-block: 1rem .9rem;
}

.lede {
  margin: 0;
  max-width: 58ch;
  font-size: clamp(1.02rem, 1.3vw, 1.14rem);
  line-height: 1.6;
  color: var(--muted);
}

/* ---------------- nav ---------------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: max(var(--pad), calc(50% - var(--maxw) / 2 + var(--pad)));
  background: rgba(var(--paper-rgb), .86);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease);
}
.nav.stuck { border-bottom-color: var(--line); background: rgba(var(--paper-rgb), .94); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--serif);
  font-size: 1.42rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.mark {
  width: 26px; height: 26px;
  flex: none;
  display: block;
  filter: drop-shadow(0 1.5px 1.5px rgba(0, 0, 0, .45));
  transition: transform var(--t-slow) var(--ease);
}
.brand:hover .mark { transform: rotate(-14deg); }

.nav-links { display: flex; align-items: center; gap: .15rem; font-size: .92rem; }
.nav-links a {
  position: relative;
  padding: .5rem .75rem;
  border-radius: 8px;
  color: var(--ink-2);
  transition: color var(--t-fast);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: .75rem; right: .75rem; bottom: .3rem;
  height: 1.5px;
  background: var(--leaf);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--t) var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current=true]::after { transform: scaleX(1); }
@media (max-width: 900px) { .nav-links { display: none; } }
@media (min-width: 901px) { .nav-narrow { display: none; } }

.nav-right { display: flex; align-items: center; gap: .5rem; }
.nav-right .btn { white-space: nowrap; }
.link-plain { font-size: .92rem; font-weight: 500; padding: .5rem .6rem; border-radius: 8px; transition: color var(--t-fast); }
.link-plain:hover { color: var(--leaf); }

.nav-toggle {
  display: none;
  position: relative;
  width: 40px; height: 40px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
}
.nav-toggle span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform var(--t) var(--ease), top var(--t) var(--ease);
}
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child  { top: 22px; }
.nav-toggle[aria-expanded=true] span:first-child { top: 18.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded=true] span:last-child  { top: 18.5px; transform: rotate(-45deg); }
@media (max-width: 900px) { .nav-toggle { display: block; } }

/* light or dark (js/theme.js puts it in the bar): shows where you'd go, the sun by night, the moon by day */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(var(--ink-rgb), .22);
  color: var(--ink);
  transition: background-color var(--t-fast), border-color var(--t-fast);
}
.theme-toggle:hover { background: rgba(var(--ink-rgb), .06); border-color: rgba(var(--ink-rgb), .4); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .ico-sun { fill: currentColor; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-toggle .ico-moon { fill: currentColor; }
:root[data-theme=light] .theme-toggle .ico-sun,
:root:not([data-theme=light]) .theme-toggle .ico-moon { display: none; }
/* the smallest phones: room for the switch without eating the bar's margin */
@media (max-width: 380px) {
  .nav { gap: .5rem; }
  .nav-right { gap: .25rem; }
  .nav-right .btn.sm { padding-inline: .6rem; }
  .theme-toggle { width: 34px; height: 34px; }
}
@media (max-width: 520px) {
  .nav-right { gap: .35rem; }
  .nav-right .btn.sm { padding-inline: .8rem; }
  .nav-account svg { display: none; }
  /* the phone menu carries the account link */
  .nav:has(.nav-toggle) .nav-account { display: none; }
}
@media (max-width: 370px) { .nav-dl-text { display: none; } }

/* the phone menu: a sheet under the bar, links rising one after another */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 880;
  overflow-y: auto;
  padding: calc(var(--nav-h) + 1.5rem) var(--pad) 2rem;
  background: var(--paper);
  opacity: 0;
  transition: opacity var(--t) var(--ease);
}
.sheet.on { opacity: 1; }
.sheet-inner { display: grid; gap: .1rem; max-width: 520px; margin-inline: auto; }
.sheet-link, .sheet-actions { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.sheet.on .sheet-link, .sheet.on .sheet-actions { opacity: 1; transform: none; }
.sheet-link {
  display: flex;
  align-items: baseline;
  gap: .9rem;
  padding-block: .55rem;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--serif);
  font-size: clamp(1.7rem, 8vw, 2.3rem);
  letter-spacing: -.03em;
}
.sheet-link b { font: 500 .7rem/1 var(--mono); letter-spacing: .1em; color: var(--leaf); }
.sheet.on .sheet-link:nth-child(2) { transition-delay: .04s; }
.sheet.on .sheet-link:nth-child(3) { transition-delay: .08s; }
.sheet.on .sheet-link:nth-child(4) { transition-delay: .12s; }
.sheet.on .sheet-link:nth-child(5) { transition-delay: .16s; }
.sheet.on .sheet-actions { transition-delay: .2s; }
.sheet-actions { display: grid; gap: .6rem; margin-top: 1.6rem; }
.sheet-fine { margin: .4rem 0 0; text-align: center; font-size: .92rem; color: var(--muted); }
.sheet-fine a { color: var(--leaf); font-weight: 600; }
.sheet-open, .sheet-open body { overflow: hidden; }

/* ---------------- buttons ---------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 46px;
  padding: .7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font: 600 .93rem/1.1 var(--font);
  letter-spacing: -0.01em;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast),
              box-shadow var(--t) var(--ease), transform var(--t-fast) var(--ease);
  will-change: transform;
}
/* cream on night, green on hover: the brand's two inks */
.btn:hover { background: var(--leaf); border-color: var(--leaf); color: var(--on-leaf); box-shadow: 0 14px 30px -14px rgba(var(--leaf-rgb), .55); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn svg { width: 15px; height: 15px; flex: none; fill: currentColor; transition: transform var(--t) var(--ease); }
.btn:hover svg.go { transform: translateX(3px); }
.btn:hover svg.dn { transform: translateY(2px); }

.btn.light { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.btn.light:hover { background: #1f2a24; border-color: rgba(var(--ink-rgb), .25); color: var(--ink); box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: rgba(var(--ink-rgb), .22); }
.btn.ghost:hover { background: rgba(var(--ink-rgb), .06); border-color: rgba(var(--ink-rgb), .4); color: var(--ink); box-shadow: none; }
.btn.sm { min-height: 38px; padding: .5rem .95rem; font-size: .86rem; }
.btn.lg { min-height: 52px; padding: .85rem 1.5rem; font-size: 1rem; }
.btn.wide { width: 100%; }
.btn.danger { background: transparent; color: var(--rose); border-color: rgba(var(--rose-rgb), .35); }
.btn.danger:hover { background: rgba(var(--rose-rgb), .1); border-color: rgba(var(--rose-rgb), .5); color: var(--rose); box-shadow: none; }
.btn[disabled], .btn[aria-disabled=true] { opacity: .5; pointer-events: none; }

.text-link, .field-row a {
  font-size: .86rem;
  font-weight: 600;
  color: var(--leaf);
  text-decoration: underline;
  text-decoration-color: rgba(var(--leaf-rgb), .35);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--t-fast);
}
.text-link:hover, .field-row a:hover { text-decoration-color: currentColor; }
.lede .text-link, p .text-link { font-size: inherit; }
.text-link[disabled] { color: var(--faint); cursor: default; text-decoration: none; }

/* ---------------- forms ---------------- */

.field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.field label { font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: .75rem .95rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: .97rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
}
.field textarea { resize: vertical; min-height: 128px; }
.field input:hover, .field textarea:hover { border-color: rgba(var(--ink-rgb), .26); }
.field input:focus, .field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--leaf);
  box-shadow: 0 0 0 4px rgba(var(--leaf-rgb), .14);
}
.field input::placeholder, .field textarea::placeholder { color: #737a6e; }
.field-row { display: flex; justify-content: space-between; align-items: baseline; }

.note { min-height: 1.3rem; margin-top: .4rem; font-size: .9rem; font-weight: 500; }
.note.err { color: var(--rose); }
.note.ok  { color: var(--ok); }

.toggle {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
}
.toggle button {
  min-height: 36px;
  padding: .4rem .95rem;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--muted);
  transition: background-color var(--t) var(--ease), color var(--t-fast), box-shadow var(--t) var(--ease);
}
.toggle button:hover { color: var(--ink); }
.toggle button.on, .toggle button[aria-pressed=true] { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.toggle button[disabled] { opacity: .4; cursor: not-allowed; }

/* ---------------- shared bits ---------------- */

/* app.js feeds --mx/--my from the pointer: a soft light follows it across the card */
.card {
  position: relative;
  padding: 1.6rem;
  border-radius: var(--r-lg);
  background:
    radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgba(var(--leaf-rgb), .07), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  transition: border-color var(--t) var(--ease);
}
.card:hover { border-color: rgba(var(--ink-rgb), .16); }
.card h3 { margin-bottom: .45rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

.feature-list { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: .6rem; text-align: left; }
/* Not flex: a flex li turns every inline <b> into its own flex item. */
.feature-list li { position: relative; padding-left: 1.6rem; font-size: .94rem; line-height: 1.5; color: var(--ink-2); }
.feature-list li b { font-weight: 650; color: var(--ink); }
.feature-list svg { position: absolute; left: 0; top: .3em; width: 16px; height: 16px; fill: var(--leaf); }

.heads-up {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  margin: 1rem 0 0;
  padding: .9rem 1.05rem;
  border-radius: 14px;
  background: var(--sun-wash);
  border: 1px solid rgba(var(--sun-rgb), .3);
  font-size: .9rem;
  line-height: 1.55;
  color: var(--sun-text);
}
.heads-up svg { width: 16px; height: 16px; flex: none; margin-top: .2rem; fill: var(--sun-icon); }
.heads-up b { font-weight: 650; color: var(--sun-bold); }

.pill { display: inline-block; padding: .32rem .75rem; border-radius: 999px; font-size: .76rem; font-weight: 600; }
.pill.pro  { background: var(--sun-wash); color: var(--sun-ink); box-shadow: inset 0 0 0 1px rgba(var(--sun-rgb), .3); }
.pill.free { background: var(--surface-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }

.chip-ok, .chip-off {
  display: inline-block;
  white-space: nowrap;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
}
.chip-ok  { background: rgba(var(--ok-rgb), .12); color: var(--ok); }
.chip-off { background: var(--surface-2); color: var(--muted); }

/* ---------------- faq / accordion (home and help) ---------------- */

.faq { max-width: 800px; margin: 2.5rem auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.2rem;
  list-style: none;
  cursor: pointer;
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  transition: color var(--t-fast);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--leaf); }
.faq summary::after {
  content: '';
  width: 12px; height: 12px;
  flex: none;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  color: var(--leaf);
  transition: transform var(--t) var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details > :not(summary) { margin: 0 0 1.25rem; max-width: 68ch; color: var(--muted); font-size: .98rem; }
.faq details[open] > :not(summary) { animation: fadeUp .4s var(--ease); }
.faq details a:not(.btn) { color: var(--leaf); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- footer ---------------- */

.footer {
  position: relative;
  z-index: 1;
  padding-block: 3.5rem 2.2rem;
  background: var(--night);
  border-top: 1px solid var(--line-soft);
  color: var(--night-muted);
}
.footer .brand { color: var(--night-ink); }
.footer-top { display: flex; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; margin-bottom: 2.6rem; }
.footer-blurb { max-width: 32ch; margin: .9rem 0 0; font-size: .94rem; }
.footer-cols { display: flex; gap: clamp(2rem, 5vw, 4.5rem); flex-wrap: wrap; }
.footer-col { display: grid; gap: .55rem; align-content: start; }
.footer-col b { margin-bottom: .2rem; font: 500 .7rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sun); }
.footer-col a { font-size: .93rem; color: var(--night-ink); opacity: .78; transition: opacity var(--t-fast); }
.footer-col a:hover { opacity: 1; }
.footer-bot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--night-line);
  font-size: .84rem;
}

/* ---------------- entrance motion ---------------- */

h1.mega {
  max-width: 16ch;
  margin: 1.4rem auto 0;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
}
h1.mega .ln { display: block; overflow: hidden; padding-block: .04em .1em; }
h1.mega .ln > span { display: block; transform: translateY(110%); animation: rise 1s var(--ease) forwards; }
h1.mega .ln:nth-child(2) > span { animation-delay: .08s; }
@keyframes rise { to { transform: translateY(0); } }
h1.mega em, .shimmer { font-style: italic; color: var(--leaf); }

.fade-up { opacity: 0; animation: fadeUp .8s var(--ease) forwards; }
.d1 { animation-delay: .2s; } .d2 { animation-delay: .3s; }
.d3 { animation-delay: .4s; } .d4 { animation-delay: .5s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.hero-lede { margin: 1.3rem auto 0; max-width: 46ch; }
.hero-cta { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: 1.9rem; }

[data-rise] { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-rise].in { opacity: 1; transform: none; }

/* ---------------- custom cursor: a rice grain ----------------
   app.js places .cur exactly on the pointer; the grain's tip sits on
   that point. .cur-fx carries shake effects, .cur-body hover and press. */

.cursor-on, .cursor-on * { cursor: none !important; }
.cursor-on input:not([type=button], [type=submit], [type=checkbox], [type=radio]),
.cursor-on textarea,
.cursor-on [contenteditable=""],
.cursor-on [contenteditable=true] { cursor: text !important; }

.cur {
  --fill: var(--ink);
  --edge: #fbf9f4;
  --fold: rgba(251, 249, 244, .16);
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
  pointer-events: none;
  will-change: transform;
  opacity: 0;
  transition: opacity .25s;
}
.cursor-live .cur { opacity: 1; }
.cursor-live .cur.is-text { opacity: 0; transition-duration: .1s; }
.cur[data-skin=paddy]   { --fill: var(--leaf); }
.cur[data-skin=harvest] { --fill: var(--sun);  --edge: var(--ink); --fold: rgba(124, 74, 20, .24); }
.cur[data-skin=rice]    { --fill: #f4f1ea;     --edge: var(--ink); --fold: rgba(124, 106, 76, .3); }
.cur-fx, .cur-body { transform-origin: 0 0; }
.cur-body { filter: drop-shadow(0 2px 3px rgba(23, 27, 21, .32)); transition: transform .35s var(--ease); }
/* the tip is drawn at (2, 2) of a 24-unit box shown at 28px */
.cur-body svg { display: block; margin: -2.33px 0 0 -2.33px; overflow: visible; }
.cur .edge { fill: var(--edge); stroke: var(--edge); stroke-width: 2.4; stroke-linejoin: round; transition: fill .4s, stroke .4s; }
.cur .body { fill: var(--fill); transition: fill .4s; }
.cur .lit  { fill: url(#cur-lit); opacity: 0; transition: opacity .3s; }
.cur .fold { fill: var(--fold); transition: fill .4s; }
.cur.is-hot { --edge: var(--ink); --fold: rgba(124, 106, 76, .34); }
.cur.is-hot .lit { opacity: 1; }
.cur.is-hot .cur-body { transform: scale(1.18) rotate(-6deg); }
.cur.is-down .cur-body { transform: scale(.84); transition-duration: .12s; }
.cur-label {
  position: absolute;
  left: 20px; top: 28px;
  padding: .38rem .6rem;
  border-radius: 100px;
  background: var(--ink);
  border: 1px solid rgba(251, 249, 244, .16);
  font: 500 9.5px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fbf9f4;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .25s, transform .3s var(--ease);
}
.cur-label.on { opacity: 1; transform: none; }
.cur-ripple, .cur-seed { position: fixed; z-index: 9998; pointer-events: none; opacity: 0; }
.cur-ripple {
  translate: -50% -50%;
  border-radius: 50%;
  border: 2px solid rgba(var(--leaf-rgb), .85);
  box-shadow: 0 0 0 1px rgba(251, 249, 244, .55), inset 0 0 0 1px rgba(251, 249, 244, .55);
}
.cur-seed { width: 6px; height: 14px; margin: -7px 0 0 -3px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(23, 27, 21, .4); }
@media (hover: none), (pointer: coarse) {
  .cur, .cur-ripple, .cur-seed { display: none; }
  .cursor-on, .cursor-on * { cursor: auto !important; }
}

/* ============================================================
   Sign in, sign up, verify, forgot, reset
   ============================================================ */

.auth-shell { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 900px) { .auth-shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; } }

/* the art side: night water lit from above, with the panel floating in it */
.auth-art {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.2rem;
  padding: clamp(2rem, 4vw, 3.5rem);
  background:
    radial-gradient(70% 55% at 85% 0%, rgba(var(--leaf-rgb), .2), transparent 65%),
    radial-gradient(55% 45% at 0% 100%, rgba(var(--sun-rgb), .1), transparent 70%),
    linear-gradient(165deg, #121d18, var(--night) 70%);
  box-shadow: inset -1px 0 0 var(--line);
  color: var(--night-ink);
}
/* still water: rings spreading from where the panel floats */
.auth-art::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 60%; top: 62%;
  width: 150%; aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 46px, rgba(239, 233, 220, .045) 46px 47px);
  -webkit-mask-image: radial-gradient(circle, #000 0 26%, transparent 60%);
  mask-image: radial-gradient(circle, #000 0 26%, transparent 60%);
  pointer-events: none;
}
.auth-art .brand { color: var(--night-ink); }
.auth-copy { display: grid; gap: 1.1rem; max-width: 44ch; }
.auth-art h2 { max-width: 14ch; font-size: clamp(2.3rem, 3.8vw, 3.5rem); color: var(--night-ink); }
.auth-art h2 em { color: var(--leaf); }
.auth-art .quote { max-width: 40ch; margin: 0; color: var(--night-muted); font-size: .98rem; line-height: 1.65; }
.auth-art .feature-list { margin: 0; max-width: 36ch; }
.auth-art .feature-list li { color: var(--night-ink); }
.auth-art .feature-list svg { fill: var(--leaf); }
.auth-fine { margin: 0; font: 500 .72rem/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.auth-fine b { font-weight: 500; color: var(--ink-2); }

/* a drawing of the Rice panel: what you're signing in for */
.auth-demo {
  width: min(100%, 360px);
  display: grid;
  gap: .65rem;
  padding: .95rem;
  border-radius: 18px;
  background: rgba(35, 38, 36, .94);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 36px 70px -30px rgba(0, 0, 0, .85), 0 0 0 5px rgba(var(--leaf-rgb), .06);
  color: var(--rp-ink);
  font-size: .86rem;
  animation: fadeUp .9s var(--ease) both .15s;
}
.ad-head { display: flex; align-items: center; gap: .5rem; padding-bottom: .6rem; border-bottom: 1px solid var(--rp-line); font-weight: 600; }
.ad-head img { width: 18px; height: 18px; }
.ad-models { margin-left: auto; display: flex; gap: .3rem; }
.ad-models .mdot { width: 9px; height: 9px; }
.ad-q { justify-self: end; max-width: 88%; margin: 0; padding: .5rem .75rem; border-radius: 12px 12px 4px 12px; background: var(--rp-bubble); color: #fff; line-height: 1.4; }
.ad-a { display: grid; gap: .45rem; padding: .75rem .8rem; border-radius: 12px; background: var(--rp-card); border: 1px solid var(--rp-line); }
.ad-a b { display: flex; align-items: center; gap: .35rem; color: var(--rp-muted); font-size: .76rem; font-weight: 600; }
.ad-a i { display: block; height: 7px; border-radius: 4px; background: #4a4e4b; }
.ad-a i.s { width: 58%; }
.ad-a i.m { width: 82%; }
.ad-input { display: flex; align-items: center; gap: .5rem; padding: .45rem .5rem .45rem .85rem; border-radius: 99px; background: rgba(0, 0, 0, .28); border: 1px solid var(--rp-line); color: var(--rp-muted); font-size: .8rem; }
.ad-input span { flex: 1; }
.ad-input kbd { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .12); box-shadow: none; color: var(--rp-ink); }

/* the four model colours, as the panel's picker shows them */
.mdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.mdot.claude { background: #d97757; } .mdot.chatgpt { background: #e8e6df; } .mdot.gemini { background: linear-gradient(135deg, #4f8df5, #b56ef0); } .mdot.deepseek { background: #4d6bfe; }

@media (max-width: 900px) {
  .auth-art { padding: 1.1rem var(--pad); background: var(--paper); box-shadow: inset 0 -1px 0 var(--line); }
  .auth-art::before { display: none; }
  .auth-art > :not(.brand) { display: none; }
}

.auth-form-side { position: relative; display: grid; place-items: center; padding: clamp(3.5rem, 6vw, 4.5rem) var(--pad) clamp(2rem, 5vw, 3.5rem); }
.auth-corner { position: absolute; top: 1.3rem; right: var(--pad); display: flex; gap: .3rem; font-size: .88rem; }
.auth-corner a { padding: .35rem .6rem; border-radius: 8px; color: var(--muted); transition: color var(--t-fast), background-color var(--t-fast); }
.auth-corner a:hover { color: var(--ink); background: rgba(var(--ink-rgb), .05); }
/* phones: the links join the brand bar */
@media (max-width: 900px) {
  .auth-shell { position: relative; }
  .auth-form-side { position: static; padding-top: 2.2rem; }
  .auth-corner { top: .85rem; }
}
.auth-box { width: 100%; max-width: 400px; animation: fadeUp .7s var(--ease) both; }
.auth-box h1 { font-size: clamp(2.1rem, 4vw, 2.8rem); margin-bottom: .6rem; letter-spacing: -.03em; }
.auth-box h1 em { font-style: italic; color: var(--leaf); }
.auth-box .sub { margin: 0 0 1.8rem; color: var(--muted); font-size: .98rem; }
.auth-box .btn { margin-top: .4rem; }
.auth-alt { margin-top: 1.5rem; text-align: center; font-size: .94rem; color: var(--muted); }
.auth-alt a { color: var(--leaf); font-weight: 600; }
.auth-alt a:hover { text-decoration: underline; text-underline-offset: 3px; }
.alt-actions { display: grid; gap: .5rem; justify-items: center; margin-top: 1rem; }

.auth-help {
  display: grid;
  gap: .7rem;
  margin-top: 1.8rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: var(--leaf-wash);
  border: 1px solid rgba(var(--leaf-rgb), .22);
}
.auth-help p { margin: 0; font-size: .88rem; line-height: 1.55; color: var(--muted); }
.auth-help b { color: var(--ink); }
.auth-help a { color: var(--leaf); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.auth-steps { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.4rem; padding: 0; }
.auth-steps li {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .32rem .7rem .32rem .38rem;
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  font-size: .78rem;
  font-weight: 600;
  color: var(--faint);
}
.auth-steps b { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: rgba(var(--ink-rgb), .06); font-size: .66rem; }
.auth-steps li.on { background: var(--ink); color: var(--paper); }
.auth-steps li.on b { background: var(--sun); color: var(--on-sun); }

.oauth-list { display: grid; gap: .6rem; margin-bottom: 1.2rem; }
.oauth-list:empty { display: none; }
.oauth-list .note { margin: 0; }
.oauth-list .note:empty { display: none; }
.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  width: 100%;
  min-height: 46px;
  padding: .7rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font: 600 .94rem var(--font);
  transition: border-color var(--t-fast), box-shadow var(--t) var(--ease), transform var(--t-fast) var(--ease);
}
.oauth-btn:hover { border-color: rgba(var(--ink-rgb), .26); background: var(--surface-2); }
.oauth-btn:active { transform: scale(.985); }
.oauth-btn svg { width: 18px; height: 18px; flex: none; }

.or-rule { display: flex; align-items: center; gap: .8rem; margin: 0 0 1.2rem; color: var(--faint); font-size: .8rem; font-weight: 500; }
.or-rule::before, .or-rule::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: .55rem; margin: .4rem 0 1rem; }
.otp input {
  width: 100%;
  aspect-ratio: 5 / 6;
  text-align: center;
  font: 600 1.6rem var(--mono);
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  caret-color: var(--leaf);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t) var(--ease);
}
.otp input:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(var(--leaf-rgb), .14); transform: translateY(-2px); }
.otp input.filled { background: var(--white); }
.otp.good input { border-color: var(--ok); box-shadow: 0 0 0 4px rgba(var(--ok-rgb), .14); }
.otp.bad { animation: shake .45s var(--ease-io); }
.otp.bad input { border-color: var(--rose); }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.sent-to { font-weight: 650; color: var(--ink); }

/* ============================================================
   Checkout
   ============================================================ */

/* two columns: what you're buying on the left, how you pay on the right */
.co-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 900px) { .co-grid { grid-template-columns: 1fr; } }
.co-summary h1 { margin: 1rem 0 .9rem; font-size: clamp(2.5rem, 5.4vw, 4rem); letter-spacing: -.035em; }
.co-summary .lede { max-width: 44ch; }
.co-summary .feature-list { margin: 1.8rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line-soft); }
.co-soon {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  margin: 1.8rem 0 0;
  padding: .95rem 1.05rem;
  border-radius: 14px;
  background: rgba(var(--sun-rgb), .07);
  border: 1px solid rgba(var(--sun-rgb), .22);
  color: var(--sun-text);
  font-size: .9rem;
  line-height: 1.55;
}
.co-soon b { color: var(--sun-bold); font-weight: 650; }
.co-soon svg { width: 16px; height: 16px; flex: none; margin-top: .2rem; fill: var(--sun); }
.co-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 1.4rem 0 0; padding: 0; list-style: none; color: var(--faint); font-size: .86rem; }
.co-trust li { display: inline-flex; align-items: center; gap: .45rem; }
.co-trust svg { width: 15px; height: 15px; fill: var(--leaf); }

.price-card {
  position: relative;
  max-width: 460px;
  margin: 2.6rem auto 0;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  border-radius: var(--r-lg);
  background: radial-gradient(90% 55% at 50% 0%, rgba(var(--leaf-rgb), .1), transparent 70%), var(--surface);
  border: 1px solid rgba(var(--leaf-rgb), .32);
  box-shadow: 0 0 0 1px rgba(var(--leaf-rgb), .08), var(--shadow-lg);
  text-align: center;
}
.co-grid .price-card { margin: 0; max-width: none; position: sticky; top: calc(var(--nav-h) + 1.5rem); }
/* phones: the heading, then the price and the button, then the details */
@media (max-width: 900px) {
  .co-grid { gap: 0; }
  .co-summary { display: contents; }
  .co-summary > * { order: 2; }
  .co-summary > .pill-badge, .co-summary > h1, .co-summary > .lede { order: 0; }
  .co-summary > .pill-badge { justify-self: start; }
  .co-grid .price-card { order: 1; position: relative; top: auto; margin-top: 1.8rem; }
}
.price-card .toggle { display: flex; }
.price-card .toggle button { flex: 1; }
.price-card .btn.wide { margin-top: 1.4rem; }
.price-amount {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: .1rem;
  margin-block: 1.5rem .35rem;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.04em;
}
.price-amount .sym { font-size: 1.9rem; margin-top: .55rem; color: var(--ink-2); }
.price-amount .num { font-size: clamp(3.8rem, 10vw, 5.2rem); line-height: 1; font-variant-numeric: tabular-nums; }
.price-amount .per { align-self: flex-end; margin: 0 0 .55rem .3rem; font-family: var(--font); font-size: 1rem; letter-spacing: 0; color: var(--faint); }
.price-card #who { margin: 0 0 1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line-soft); font-size: .84rem; }
.price-card #who:empty { display: none; }

/* the dashboard's monthly-plan strip */
.sub-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem;
  margin: 0 0 2.2rem; padding: 1.05rem 1.25rem;
  border: 1px solid var(--line); border-left: 3px solid var(--leaf);
  border-radius: var(--r); background: var(--surface);
}
.sub-box[data-state=on_hold] { border-left-color: var(--rose); }
.sub-box[data-state=ended], .sub-box[data-state=cancelling] { border-left-color: var(--sun); }
.sub-text { flex: 1 1 22rem; }
.sub-text b { display: block; font-size: 1rem; color: var(--ink); }
.sub-text p { margin: .2rem 0 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.sub-actions { display: flex; gap: .5rem; }
.sub-box .note { flex-basis: 100%; margin: 0; }
.sub-box .note:empty { display: none; }
.price-note { margin: 0 0 1.6rem; color: var(--faint); font-size: .88rem; }
.price-strike { text-decoration: line-through; margin-right: .45rem; }

.plan-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .35rem;
  padding: 4px;
  border-radius: 16px;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  margin-bottom: 1rem;
}
.plan-picker button { padding: .7rem .4rem; border-radius: 12px; text-align: center; transition: background-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.plan-picker button b { display: block; font-size: .92rem; font-weight: 650; color: var(--muted); }
.plan-picker button small { display: block; margin-top: .1rem; font-size: .76rem; color: var(--faint); }
.plan-picker button:hover b { color: var(--ink); }
.plan-picker button.on { background: var(--white); box-shadow: var(--shadow-sm); }
.plan-picker button.on b { color: var(--ink); }
.plan-picker button.on small { color: var(--leaf); }
.plan-picker button[disabled] { opacity: .55; cursor: not-allowed; }

.gw-status {
  display: grid;
  gap: .4rem;
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line-soft);
  font-size: .84rem;
  color: var(--muted);
  text-align: left;
}
.gw-row { display: flex; align-items: center; gap: .5rem; }
.gw-row i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--faint); }
.gw-row.ok i  { background: var(--ok); box-shadow: 0 0 0 3px rgba(var(--ok-rgb), .16); }
.gw-row.bad i { background: var(--rose); box-shadow: 0 0 0 3px rgba(var(--rose-rgb), .16); }
.gw-status [style*="d6335c"] { color: var(--rose) !important; }
.gw-row b { font-weight: 650; color: var(--ink); }
.gw-row span.tag-mode {
  padding: .25rem .45rem;
  border-radius: 5px;
  background: var(--paper-2);
  color: var(--muted);
  font: 500 .64rem/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ============================================================
   Downloads (home and dashboard)
   ============================================================ */

.builds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1rem;
  max-width: 840px;
  margin: 2.5rem auto 0;
}
.build {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: 1.6rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.build-top { display: flex; align-items: center; gap: .9rem; }
.build-top h3 { font-size: 1.25rem; }
.build .os { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--ink); }
.build .os svg { width: 21px; height: 21px; fill: var(--paper); }
.build-meta { margin: .2rem 0 0; font: 500 .8rem/1.4 var(--mono); color: var(--faint); }
.build-req { margin: 0; padding-bottom: .3rem; font-size: .9rem; color: var(--muted); }
.build .btn { margin-top: auto; }
.build-note { margin: 0; font-size: .84rem; color: var(--faint); text-align: center; }
/* Only when the app's release tooling verified the file being served (server/downloads.js). */
.build-trust { display: flex; align-items: center; gap: .4rem; margin: 0; font-size: .84rem; font-weight: 600; color: var(--ok); }
.build-trust svg { width: 16px; height: 16px; flex: none; fill: currentColor; }
.build-install { font-size: .84rem; color: var(--muted); }
.build-install summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.build-install ol { margin: .5rem 0 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
/* Install with the command line, shown in full, and the .dmg as the other way (app.js RiceInstall). */
.cli-install { margin-top: auto; display: grid; gap: .65rem; }
.cli-prefer { display: flex; align-items: flex-start; gap: .45rem; margin: 0; font-size: .9rem; font-weight: 600; color: var(--ok); }
.cli-prefer svg { width: 16px; height: 16px; flex: none; margin-top: .2rem; fill: currentColor; }
.cli-line { display: flex; align-items: center; gap: .6rem; padding: .6rem .6rem .6rem .85rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.cli-line code { flex: 1; min-width: 0; font: 500 .8rem/1.5 var(--mono); color: var(--ink); word-break: break-all; user-select: all; }
.build .cli-install .btn { margin-top: 0; }
.cli-line .btn { flex: none; }
.cli-how { margin: 0; font-size: .84rem; line-height: 1.55; color: var(--muted); }
.cli-how kbd { font-size: .78rem; }
.build-rec {
  display: none;
  position: absolute;
  top: -11px; left: 50%;
  translate: -50% 0;
  padding: .32rem .75rem;
  border-radius: 999px;
  background: var(--leaf);
  color: var(--on-leaf);
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
}
.build.mine { order: -1; border-color: rgba(var(--leaf-rgb), .45); box-shadow: var(--shadow-md); }
.build.mine .build-rec { display: block; }

/* ============================================================
   Inner pages: checkout, dashboard, help, success, 404
   ============================================================ */

/* the page itself, with one soft light from above where the nav sits */
.page {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  padding: calc(var(--nav-h) + clamp(2.5rem, 6vw, 4.5rem)) 0 clamp(4rem, 8vw, 6rem);
}
.page::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: min(720px, 90vh);
  background:
    radial-gradient(55% 60% at 75% 0%, var(--glow), transparent 70%),
    radial-gradient(35% 45% at 10% 0%, rgba(var(--sun-rgb), .06), transparent 70%);
  pointer-events: none;
}
.page.short { min-height: auto; }

/* ============================================================
   Dashboard
   ============================================================ */

.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.2rem 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.8rem;
  margin-bottom: 2.2rem;
  border-bottom: 1px solid var(--line);
}
.dash-who { display: flex; align-items: center; gap: 1.1rem; min-width: 0; }
.dash-avatar {
  width: 56px; height: 56px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(var(--leaf-rgb), .3), transparent 70%), var(--surface-2);
  box-shadow: inset 0 0 0 1px rgba(var(--leaf-rgb), .3);
}
.dash-avatar img { width: 26px; height: 26px; }
.dash-head h1 { margin: .55rem 0 0; font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -.03em; overflow-wrap: anywhere; }
.dash-head .lede { margin-top: .35rem; font-size: .95rem; overflow-wrap: anywhere; }
.dash-head .pill { flex: none; }
@media (max-width: 520px) { .dash-avatar { display: none; } }

.dash-sec { margin-top: 3rem; }
.dash-sec > h3, .dash-title { display: flex; align-items: baseline; gap: .6rem; margin-bottom: 1rem; font-size: 1.15rem; }
h2.dash-title { font-size: clamp(1.45rem, 2.6vw, 1.7rem); letter-spacing: -.02em; line-height: 1.15; }
.dash-builds { margin: 0; max-width: none; }
.dash-empty { max-width: 560px; }
.dash-empty .btn { margin-top: 1.2rem; }
.dash-title small { font: 500 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.dash-fine { margin: .8rem 0 0; color: var(--faint); font-size: .88rem; line-height: 1.6; }
.dash-fine .text-link { margin-left: .3rem; }

/* the first thing a new customer sees: what to do next, in order */
.setup-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin: 0 0 2.4rem;
  padding: 0;
  counter-reset: s;
}
@media (max-width: 900px) { .setup-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .setup-steps { grid-template-columns: 1fr; } }
.setup-steps li {
  position: relative;
  padding: 1.1rem 1.1rem 1.1rem 3.1rem;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: .9rem;
  color: var(--muted);
  counter-increment: s;
}
.setup-steps li::before {
  content: counter(s);
  position: absolute;
  left: 1rem; top: 1rem;
  width: 24px; height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(var(--leaf-rgb), .45);
  color: var(--leaf);
  font: 600 .74rem/1 var(--mono);
}
.setup-steps b { display: block; margin-bottom: .15rem; color: var(--ink); font-size: .95rem; }
.setup-steps a { color: var(--leaf); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.key-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1rem 1rem 1.15rem;
  border-radius: 14px;
  border: 1px dashed rgba(var(--leaf-rgb), .45);
  background: var(--leaf-wash);
  font: 500 .95rem var(--mono);
  color: var(--leaf-2);
}
.key-box > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.key-actions { display: flex; gap: .4rem; }

.instruction-box { overflow: hidden; border-radius: var(--r-lg); background: var(--night); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.instruction-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--night-line);
}
.instruction-head .ilabel { font: 500 .7rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sun); }
.instruction-head .btn.light { background: rgba(239, 233, 220, .06); color: var(--night-ink); border-color: var(--night-line); box-shadow: none; }
.instruction-head .btn.light:hover { background: var(--night-ink); color: var(--night); }
.instruction-box pre {
  margin: 0;
  max-height: 420px;
  overflow: auto;
  padding: 1.25rem;
  font: .84rem/1.7 var(--mono);
  color: rgba(239, 233, 220, .9);
  white-space: pre-wrap;
  word-break: break-word;
}

.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.panel {
  min-width: 0;
  padding: 1.4rem 1.5rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.panel h3 { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .9rem; font-size: 1.04rem; }
.panel h3 small { color: var(--faint); font-weight: 600; }
.panel .muted { margin: 0; color: var(--muted); font-size: .9rem; }
.panel .muted + .muted { margin-top: .5rem; }
.panel > .btn { margin-top: .9rem; }
/* minmax(0, 1fr): an auto track would grow to fit a long Mac name before its ellipsis applies */
.row-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: .1rem; }
.row-item { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--line-soft); }
.row-item:last-child { border-bottom: 0; }
.row-item .ico { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--leaf-wash); }
.row-item .ico svg { width: 15px; height: 15px; fill: var(--leaf); }
.row-item .grow { flex: 1; min-width: 0; }
.row-item b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .94rem; font-weight: 600; }
.row-item small { display: block; color: var(--faint); font-size: .8rem; line-height: 1.55; }
.row-item > .text-link, .row-item > .chip-ok, .row-item > .chip-off { flex: none; }
.row-item small .chip-ok, .row-item small .chip-off { padding: .05rem .45rem; margin-right: .35rem; }
.inline-form { display: grid; gap: .6rem; margin-top: .4rem; }
.inline-form .field input { background: var(--paper-2); }

/* A preference that's on or off (dashboard: emails about new versions) */
.pref-row { display: flex; align-items: center; gap: .9rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); cursor: pointer; }
.pref-row .grow { flex: 1; min-width: 0; }
.pref-row b { display: block; font-size: .94rem; font-weight: 600; }
.pref-row small { display: block; color: var(--faint); font-size: .8rem; line-height: 1.5; margin-top: .1rem; }
.switch { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 42px; height: 24px; margin: 0;
  border-radius: 999px; background: rgba(var(--ink-rgb), .2); cursor: pointer; transition: background .2s var(--ease); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); transition: transform .2s var(--ease); }
.switch:checked { background: var(--leaf); }
.switch:checked::after { transform: translateX(18px); }
.switch:focus-visible { outline: 2px solid var(--leaf); outline-offset: 2px; }
.switch:disabled { opacity: .6; cursor: progress; }
.inline-form .field { margin: 0; }

table.orders { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .93rem; }
table.orders th { padding: .85rem 1.1rem; background: var(--surface-2); border-bottom: 1px solid var(--line); text-align: left; font: 500 .7rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
table.orders td { padding: .9rem 1.1rem; border-bottom: 1px solid var(--line-soft); color: var(--muted); }
table.orders tbody tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }
.table-card { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }

/* ============================================================
   Help
   ============================================================ */

.doc-hero { position: relative; isolation: isolate; padding-top: calc(var(--nav-h) + clamp(3rem, 7vw, 5rem)); padding-bottom: 1rem; }
.doc-hero::before {
  content: ''; position: absolute; z-index: -1; inset: 0 0 -40%;
  background: radial-gradient(50% 60% at 78% 0%, var(--glow), transparent 70%),
              radial-gradient(35% 45% at 5% 0%, rgba(var(--sun-rgb), .06), transparent 70%);
  pointer-events: none;
}
.doc-hero h1 { max-width: 18ch; font-size: clamp(2.5rem, 6vw, 4.4rem); margin-top: 1rem; letter-spacing: -.035em; }
.doc-hero .lede { margin-top: 1.1rem; }
.doc-search { position: relative; max-width: 520px; margin-top: 1.8rem; }
.doc-search input {
  width: 100%;
  min-height: 52px;
  padding: .8rem 1rem .8rem 2.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.doc-search input::placeholder { color: #737a6e; }
.doc-search input:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(var(--leaf-rgb), .14); }
.doc-search svg { position: absolute; left: 1rem; top: 50%; translate: 0 -50%; width: 17px; height: 17px; fill: var(--faint); }
.doc-count { margin: .7rem 0 0 1rem; font-size: .86rem; color: var(--faint); min-height: 1.3rem; }

.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .doc-layout { grid-template-columns: 1fr; } }
.doc-toc { position: sticky; top: calc(var(--nav-h) + 1.5rem); display: grid; gap: .2rem; font-size: .92rem; }
.doc-toc b { margin-bottom: .4rem; font: 500 .7rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.doc-toc a { padding: .35rem .7rem; border-left: 2px solid var(--line); color: var(--muted); transition: color var(--t-fast), border-color var(--t-fast); }
.doc-toc a:hover, .doc-toc a.on { color: var(--ink); border-left-color: var(--leaf); }
@media (max-width: 860px) { .doc-toc { position: static; grid-auto-flow: column; overflow-x: auto; } .doc-toc b { display: none; } .doc-toc a { white-space: nowrap; border-left: 0; border-bottom: 2px solid var(--line); } }

.doc-body { padding-top: 2.5rem; }
.doc-sec { padding-bottom: 3.5rem; }
.doc-faq { margin: 1rem 0 0; max-width: none; }
.doc-cta { justify-content: flex-start; }
.doc-sec > h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin: .8rem 0 1.2rem; }
.doc-sec > p { color: var(--muted); max-width: 64ch; }

.guide { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0; counter-reset: g; }
.guide > li { position: relative; display: grid; gap: .35rem; padding: 1.2rem 0 1.2rem 3.4rem; border-top: 1px solid var(--line); counter-increment: g; }
.guide > li::before {
  content: counter(g);
  position: absolute;
  left: 0; top: 1.15rem;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(var(--leaf-rgb), .4);
  background: var(--surface);
  color: var(--leaf);
  font-family: var(--serif);
  font-size: 1.05rem;
}
.guide > li > b { font-size: 1.04rem; }
.guide > li p { margin: 0; color: var(--muted); max-width: 64ch; }
.guide > li a:not(.btn) { color: var(--leaf); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.guide .os-split { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: .5rem; }
@media (max-width: 620px) { .guide .os-split { grid-template-columns: 1fr; } }
.guide .os-split div { padding: .85rem 1rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-soft); font-size: .92rem; color: var(--muted); }
.guide .os-split div b { display: block; color: var(--ink); margin-bottom: .2rem; }

.tip {
  display: flex;
  gap: .8rem;
  margin-top: 1.4rem;
  padding: 1rem 1.15rem;
  border-radius: var(--r);
  background: var(--leaf-wash);
  border: 1px solid rgba(var(--leaf-rgb), .22);
  font-size: .95rem;
  color: var(--ink-2);
}
.tip svg { width: 18px; height: 18px; flex: none; margin-top: .15rem; fill: var(--leaf); }

.doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem; margin-top: 1.4rem; }
.doc-grid .card { padding: 1.3rem; }
.doc-grid .card h3 { font-size: 1.02rem; }
.doc-grid .card p { font-size: .92rem; }

.doc-sec .faq summary { font-size: 1.02rem; }
.doc-empty { padding: 1.4rem; border-radius: var(--r); background: var(--surface); border: 1px dashed var(--line); color: var(--muted); }

/* ============================================================
   Small pages: payment received, copy your code, unsubscribe, 404
   ============================================================ */

.solo {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 2rem) 0 4rem;
  text-align: center;
}
.solo::before {
  content: ''; position: absolute; z-index: -1; inset: 0;
  background: radial-gradient(45% 50% at 50% 30%, var(--glow), transparent 70%);
  pointer-events: none;
}
.solo.bare { padding-top: 2rem; }
.solo h1 { margin: 1.2rem auto 0; max-width: 16ch; font-size: clamp(2.4rem, 7vw, 4.6rem); letter-spacing: -.035em; }
.solo .lede { margin: 1.2rem auto 0; max-width: 48ch; }
.solo .hero-cta { margin-top: 2rem; }
.solo .eyebrow { justify-content: center; }

/* the grain, arriving */
.big-mark {
  display: block;
  width: 84px; height: 84px;
  margin: 0 auto 1.6rem;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .55)) drop-shadow(0 0 30px rgba(var(--leaf-rgb), .22));
  animation: grainIn .8s var(--ease) both;
}
@keyframes grainIn {
  0%   { opacity: 0; transform: scale(.4) rotate(-20deg); }
  60%  { transform: scale(1.12) rotate(6deg); }
  100% { opacity: 1; transform: none; }
}

/* what happens after paying, in order */
.next-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  max-width: 820px;
  margin: 2.8rem auto 0;
  padding: 0;
  list-style: none;
  counter-reset: n;
  text-align: left;
}
@media (max-width: 720px) { .next-steps { grid-template-columns: 1fr; } }
.next-steps li { counter-increment: n; padding: 1.1rem 1.2rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: .9rem; line-height: 1.55; }
.next-steps li::before { content: counter(n, decimal-leading-zero); display: block; margin-bottom: .6rem; font: 500 .72rem/1 var(--mono); letter-spacing: .12em; color: var(--leaf); }
.next-steps b { display: block; margin-bottom: .2rem; color: var(--ink); font-size: .98rem; }

/* one card in the middle of the page: copy a code, stop emails */
.solo-card {
  position: relative;
  width: min(440px, 100%);
  margin-inline: auto;
  padding: 2.2rem 1.7rem 1.9rem;
  border-radius: var(--r-lg);
  background: radial-gradient(90% 60% at 50% 0%, rgba(var(--leaf-rgb), .08), transparent 70%), var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: fadeUp .6s var(--ease) both;
}
.solo-card .grain { display: block; width: 52px; height: 52px; margin: 0 auto 1.1rem; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .5)); }
.solo-card h1 { margin: 0 0 .45rem; font-size: clamp(1.7rem, 5vw, 2.1rem); letter-spacing: -.03em; }
.solo-card .sub { margin: 0 0 1.5rem; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.solo-card .btn { width: 100%; }
.solo-card .note { margin: .9rem 0 0; }
.solo-card .note:empty { display: none; }
.solo-card .fine { margin: 1.2rem 0 0; color: var(--faint); font-size: .84rem; line-height: 1.5; }
.solo-card .fine a { color: var(--leaf); font-weight: 600; }
.solo-brand { position: absolute; top: 1.3rem; left: 50%; translate: -50% 0; }

.code {
  padding: 1.05rem 0 1.05rem .32em;
  border-radius: 16px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  font: 600 2.1rem/1 var(--mono);
  letter-spacing: .32em;
  color: var(--ink);
  user-select: all;
  -webkit-user-select: all;
  cursor: text;
}
.state { display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 1.5rem; margin: 1rem 0 1.3rem; font-weight: 650; font-size: .92rem; color: var(--leaf); }
.state svg { width: 18px; height: 18px; }
.state .tick { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; }
.state.done .tick { animation: draw .45s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.state.wait { color: var(--muted); }
.solo-card .btn.pulse { animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: scale(1.03); } }

/* ============================================================
   The few places tokens alone don't reach
   ============================================================ */

/* by night the grain cursor is cream, so its rim goes dark to stay visible over cream buttons;
   by day it's ink with a cream rim */
.cur { --fold: rgba(11, 16, 14, .18); }
:root[data-theme=light] .cur { --fold: rgba(251, 249, 244, .16); }
.cur, .cur[data-skin], .cur.is-hot { --edge: var(--paper); }
.cur-label { color: var(--paper); border-color: var(--line); }
.adm .adm-on { color: var(--ok); }

/* ============================================================
   Slow devices and reduced motion
   ============================================================ */

/* app.js adds .lite when a device can't keep up (or says it's low on memory
   or data): blurs behind the bar go, and so does motion nobody asked for. */
.lite *, .lite *::before, .lite *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.lite .nav { background: rgba(var(--paper-rgb), .98); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-rise], .fade-up { opacity: 1 !important; transform: none !important; }
  h1.mega .ln > span { transform: none !important; }
  html { scroll-behavior: auto; }
}
