/* The app's tokens, verbatim from the design file. */
:root {
  --accent: #A24B2A; --accH: #8C3F22;
  --btnBg: #9E6247; --btnH: #8D5439; --btnSh: rgba(60, 42, 28, .22);
  --paper: #F7F2E5; --paper2: #EFE7D5; --card: #FCF9F0;
  --ink: #2E241B; --ink2: #6F5F4B; --mute: #9A8B75;
  --line: #DACEB8; --hair: #EAE0CB; --onAcc: #FBF7EC; --accSoft: #F6EBDF;
  --bezel: #CFC3AC; --notch: #221A13; --barBg: #FBF7EC;
  --yesBg: #EDF0E6; --yesFg: #4A5A32; --yesBd: #C9D3B4;
  /* Also from the design file: the switch/disabled track, the unconscious
     column, and the fill a defined centre takes. Omitting --track is what
     made the disabled call to action render with no background at all. */
  --track: #D8CDB8; --des: #7A6A4F; --desH: #5F5340; --fill: #EFDCCE;
  --wrap: 1140px;
}

* { box-sizing: border-box; }

/* Any class that sets `display` out-specifies the UA rule for [hidden], which
   is how the calculating overlay ended up on screen at page load. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  font-family: "Newsreader", Georgia, serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); }
a:hover { color: var(--accH); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.kicker {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}

/* Buttons — one filled token for every call to action, as in the app. */
.btn {
  display: inline-grid; place-items: center;
  height: 56px; padding: 0 30px;
  border: none; border-radius: 14px;
  background: var(--btnBg); color: var(--onAcc);
  box-shadow: 0 1px 2px var(--btnSh);
  font-family: "Newsreader", Georgia, serif; font-size: 17px;
  text-decoration: none; cursor: pointer;
  transition: background .18s ease, transform .12s ease;
}
.btn:hover { background: var(--btnH); color: var(--onAcc); }
.btn:active { transform: translateY(1px); }
.btn--sm { height: 44px; padding: 0 22px; font-size: 15.5px; border-radius: 12px; }
.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); box-shadow: none;
}
.btn--ghost:hover { background: transparent; border-color: var(--ink); color: var(--ink); }

/* Header */
.site-head {
  max-width: var(--wrap); margin: 0 auto; padding: 26px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
/* The monogram is the mark; it carries its own shape, so no ring around it. */
.brand__mark { flex: none; display: block; color: var(--accent); }
.brand:hover .brand__mark { color: var(--accH); }
.brand__name { font-size: 19px; font-weight: 500; letter-spacing: .01em; }
.site-nav { display: flex; align-items: center; gap: 30px; }
/* :not(.btn) — otherwise this out-specifies .btn and paints the header's
   call to action brown-on-brown. */
.site-nav a:not(.btn) { text-decoration: none; font-size: 15.5px; color: var(--ink2); }
.site-nav a:not(.btn):hover { color: var(--ink); }

/* Hero */
.hero {
  max-width: var(--wrap); margin: 0 auto; padding: 64px 32px 80px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center;
}
.hero h1 { font-size: 62px; font-weight: 400; line-height: 1.08; margin: 0; text-wrap: pretty; }
.hero p { font-size: 19px; line-height: 1.6; color: var(--ink2); margin: 22px 0 0; max-width: 480px; text-wrap: pretty; }
.hero__cta { display: flex; align-items: center; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero__note { font-size: 10.5px; letter-spacing: .06em; color: var(--mute); margin-top: 16px; }

/* The hero artwork: a bodygraph, which is what the app is for. */
.hero-art { display: flex; justify-content: center; }
.hero-art img {
  display: block; width: 100%; max-width: 400px; height: auto;
}

/* Stats strip */
.stats { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); background: var(--paper2); }
.stats__grid {
  max-width: var(--wrap); margin: 0 auto; padding: 26px 32px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stat { text-align: center; }
.stat b { display: block; font-size: 30px; line-height: 1; font-weight: 400; }
.stat span {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink2);
  margin-top: 5px; display: block;
}

/* Sections */
section h2 { font-size: 40px; font-weight: 400; margin: 12px 0 0; line-height: 1.15; text-wrap: pretty; }
.section { max-width: var(--wrap); margin: 0 auto; padding: 88px 32px 40px; }
.section--tight { padding: 64px 32px; }
.section--last { padding: 64px 32px 88px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }

.card { border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 26px 28px; }
.card__k {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.card__t { font-size: 22px; margin-top: 8px; }
.card p { font-size: 15.5px; line-height: 1.6; color: var(--ink2); margin: 8px 0 0; text-wrap: pretty; }

.step { border-top: 2px solid var(--accent); padding: 20px 4px 0; }
.step__n { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; color: var(--accent); }
.step__t { font-size: 21px; margin-top: 8px; }
.step p { font-size: 15px; line-height: 1.6; color: var(--ink2); margin: 8px 0 0; text-wrap: pretty; }

.lib-card {
  text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: 16px; background: var(--card);
  padding: 24px 26px; display: block; transition: border-color .18s ease;
}
.lib-card:hover { border-color: var(--accent); color: var(--ink); }
.lib-card__n { font-size: 30px; line-height: 1; color: var(--accent); }
.lib-card__t { font-size: 21px; margin-top: 10px; }
.lib-card p { font-size: 15px; line-height: 1.55; color: var(--ink2); margin: 6px 0 0; }
.lib-card__go { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; color: var(--accent); margin-top: 14px; }

/* Closing call to action */
.cta { background: var(--ink); }
.cta__inner { max-width: var(--wrap); margin: 0 auto; padding: 80px 32px; text-align: center; }
.cta h2 { font-size: 44px; color: var(--paper); margin: 0; }
.cta p { font-size: 17px; color: #C9BCA4; margin: 16px auto 0; max-width: 440px; line-height: 1.6; }
.cta .btn { margin-top: 30px; }

/* Footer */
.site-foot { border-top: 1px solid var(--hair); }
.site-foot__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 28px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.site-foot__c { font-size: 10.5px; letter-spacing: .06em; color: var(--mute); }
.site-foot__links { display: flex; gap: 24px; flex-wrap: wrap; }
.site-foot__links a:not(.btn) { text-decoration: none; font-size: 14px; color: var(--ink2); }
.site-foot__links a:not(.btn):hover { color: var(--ink); }

/* ---- Library page ---- */
.lib-head { max-width: var(--wrap); margin: 0 auto; padding: 48px 32px 8px; }
.lib-head h1 { font-size: 46px; font-weight: 400; margin: 12px 0 0; line-height: 1.12; text-wrap: pretty; }
.lib-head p { font-size: 18px; line-height: 1.6; color: var(--ink2); margin: 16px 0 0; max-width: 620px; text-wrap: pretty; }
.lib-jump { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.lib-jump a {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; color: var(--ink2);
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 15px;
  transition: border-color .18s ease, color .18s ease;
}
.lib-jump a:hover { border-color: var(--accent); color: var(--accent); }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 30px; }
.tile {
  border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 3px;
}
.tile b { font-size: 21px; font-weight: 400; line-height: 1; }
.tile span { font-size: 14px; line-height: 1.3; color: var(--ink); }
.tile i {
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-style: normal;
  font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin-top: 2px;
}

.rows { margin-top: 30px; border-top: 1px solid var(--hair); }
.row {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: baseline;
  padding: 14px 4px; border-bottom: 1px solid var(--hair);
}
.row__id { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; color: var(--accent); }
.row__name { font-size: 16.5px; }
.row__sub { font-size: 13px; color: var(--ink2); display: block; margin-top: 2px; }
.row__meta {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); text-align: right;
}

/* ---- Responsive. The design frame is desktop-only; most of the people
       who will read this are holding a phone. ---- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding: 44px 24px 64px; }
  .hero h1 { font-size: clamp(38px, 9vw, 56px); }
  .hero p { font-size: 17.5px; max-width: none; }
  .device-col { order: -1; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  section h2 { font-size: clamp(28px, 6.2vw, 40px); }
  .cta h2 { font-size: clamp(30px, 7vw, 44px); }
  .lib-head h1 { font-size: clamp(32px, 7.5vw, 46px); }
}

@media (max-width: 720px) {
  .wrap, .site-head, .hero, .section, .section--tight, .section--last,
  .stats__grid, .cta__inner, .site-foot__inner, .lib-head {
    padding-left: 20px; padding-right: 20px;
  }
  /* Keep the call to action; the section links live in the page below. */
  .site-nav a:not(.btn) { display: none; }
  .site-head { padding-top: 18px; padding-bottom: 18px; }
  .section { padding-top: 56px; }
  .section--tight, .section--last { padding-top: 48px; }
  .cta__inner { padding: 56px 20px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 22px 20px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .hero__cta .btn { width: 100%; }
  .row { grid-template-columns: 58px 1fr; }
  .row__meta { grid-column: 2; text-align: left; }
  .site-foot__inner { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---- Chart page ---- */
.c-card {
  border: 1px solid var(--line); border-radius: 16px; background: var(--card);
  padding: 26px 28px; max-width: 720px;
}
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.f-field--wide { grid-column: 1 / -1; }
.f-label {
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink2);
}
.f-label em { font-style: normal; opacity: .6; text-transform: none; letter-spacing: .04em; }
.f-input {
  font-family: "Newsreader", Georgia, serif; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; width: 100%; min-height: 48px;
}
.f-input:focus { outline: none; border-color: var(--accent); }
select.f-input { appearance: none; background-image: none; }
.f-note { font-size: 13.5px; line-height: 1.55; color: var(--ink2); margin: 18px 0 0; text-wrap: pretty; }
.f-error {
  margin-top: 16px; padding: 13px 15px; border-radius: 12px;
  border: 1px solid #B3401F; background: #FBEDE6; color: #8E3317;
  font-size: 14.5px; line-height: 1.5;
}
.f-go { margin-top: 20px; width: 100%; }
.f-go:disabled { opacity: .55; cursor: default; }

.c-result { max-width: 980px; margin: 0 auto; }
.c-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.c-name { font-size: 34px; font-weight: 400; margin: 0; line-height: 1.15; }
.c-moment { font-size: 11px; color: var(--ink2); margin-top: 6px; }
.c-again {
  border: 1px solid var(--line); background: transparent; color: var(--ink2);
  border-radius: 999px; padding: 9px 16px; font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}
.c-again:hover { border-color: var(--accent); color: var(--accent); }

.c-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.c-chip {
  font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: .06em;
  text-transform: uppercase; padding: 6px 11px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink2);
}
.c-chip--lead { background: var(--accent); border-color: var(--accent); color: var(--onAcc); }

/* The design's chart screen: the two activation columns flank the graph.
   Design on the left is the body you did not choose; Personality on the
   right is the one you are aware of. */
.c-graph { margin: 28px 0 0; overflow: hidden; }

.a-col { flex: none; width: 62px; display: flex; flex-direction: column; gap: 4px; }
.a-col__k {
  font-size: 7.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink2); margin-bottom: 3px; text-align: center;
}
.a-pill {
  display: flex; align-items: center; justify-content: space-between; gap: 4px;
  border-radius: 7px; padding: 5px 6px;
  font-family: "IBM Plex Mono", monospace; font-size: 10px; line-height: 1;
  color: var(--onAcc);
}
.a-pill i { font-style: normal; font-size: 9px; opacity: .85; }
.a-pill b { font-weight: 400; }
.a-pill--des { background: var(--des); }
.a-pill--per { background: var(--accent); }
.c-legend {
  display: flex; gap: 18px; justify-content: center; margin-top: 10px;
  font-size: 10px; color: var(--ink2);
}
.c-legend span { display: inline-flex; align-items: center; gap: 6px; }
.c-sw { width: 10px; height: 10px; border-radius: 2px; border: 1px solid var(--line); background: var(--card); display: inline-block; }
.c-sw.is-on { border-color: var(--accent); background: #EFDCCE; }
.c-sw--des { background: var(--des); border-color: var(--des); }
.c-sw--per { background: var(--accent); border-color: var(--accent); }

/* The calculator's reading, one block per property. */
.c-reading { margin-top: 34px; }
.rd { margin-top: 30px; padding-left: 18px; border-left: 2px solid var(--line); }
.rd:first-child { margin-top: 0; border-left-color: var(--accent); }
.rd__k { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.rd__v { font-size: 24px; font-weight: 400; margin: 6px 0 0; line-height: 1.2; }
.rd p { font-size: 16.5px; line-height: 1.7; color: var(--ink2); margin: 12px 0 0; text-wrap: pretty; }

.c-sec { margin-top: 38px; }
.c-sec h3 { font-size: 26px; font-weight: 400; margin: 10px 0 0; line-height: 1.2; }
.c-rows { margin-top: 18px; border-top: 1px solid var(--hair); }
.c-row {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 4px; border-bottom: 1px solid var(--hair);
}
.c-diamond {
  flex: none; width: 13px; height: 13px; transform: rotate(45deg);
  border: 1px solid var(--line); background: transparent;
}
.c-diamond.is-on { border-color: var(--accent); background: var(--accent); }
.c-row__id { flex: none; width: 62px; font-size: 13px; color: var(--accent); }
.c-row__main { flex: 1; min-width: 0; }
.c-row__name { display: block; font-size: 16.5px; line-height: 1.25; }
.c-row__sub { display: block; font-size: 10px; color: var(--mute); margin-top: 3px; }
.c-row__state { flex: none; font-size: 12.5px; color: var(--ink2); opacity: .7; text-align: right; }
.c-row__state.is-on { color: var(--accent); opacity: 1; }
.c-empty { font-size: 15px; line-height: 1.6; color: var(--ink2); margin: 6px 0 0; text-wrap: pretty; }

.c-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; margin-top: 18px; }
.c-tile {
  border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 3px;
}
.c-tile b { font-size: 20px; font-weight: 400; line-height: 1; color: var(--accent); }
.c-tile span { font-size: 13.5px; line-height: 1.3; }

.c-cross {
  margin-top: 34px; border: 1px solid var(--accent); border-radius: 16px;
  background: var(--accSoft); padding: 22px 24px;
}
.c-cross__name { font-size: 21px; line-height: 1.3; margin-top: 8px; }
.c-cross__gates { font-size: 11px; color: var(--ink2); margin-top: 6px; }

.c-share { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .c-card { padding: 20px 18px; }
  .f-grid { grid-template-columns: 1fr; }
  .c-tiles { grid-template-columns: repeat(2, 1fr); }
  .c-hero { gap: 5px; margin-top: 22px; }
  .a-col { width: 54px; }
  /* "PERSONALITY" does not fit a 48px column at desktop tracking. */
  .a-col__k { font-size: 6.5px; letter-spacing: .02em; }
  .a-pill { font-size: 8.5px; padding: 4px 4px; border-radius: 6px; }
  .a-pill i { font-size: 7.5px; }
  .c-lede { font-size: 17px; padding-left: 13px; }
  .c-legend { flex-wrap: wrap; gap: 12px; }
  .c-name { font-size: 27px; }
  .c-share .btn { width: 100%; }
}

/* ---- Create chart (design: Create Chart.dc.html) ---- */
.cc-wrap {
  max-width: var(--wrap); margin: 0 auto; padding: 36px 32px 96px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start;
}
.cc-h1 { font-size: 44px; font-weight: 400; line-height: 1.1; margin: 12px 0 0; text-wrap: pretty; }
.cc-lede { font-size: 17px; line-height: 1.6; color: var(--ink2); margin: 14px 0 0; max-width: 52ch; text-wrap: pretty; }

.cc-card {
  border: 1px solid var(--line); border-radius: 20px; background: var(--card);
  padding: 30px 32px; margin-top: 32px;
}
.cc-field { display: block; }
.cc-field .f-input { margin-top: 8px; }
.cc-rule { height: 1px; background: var(--hair); margin: 26px 0; }
.cc-rule--wide { margin: 28px 0 24px; }

.cc-date { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 10px; margin-top: 8px; }
.f-input--mid { text-align: center; }
.cc-timehead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 26px; }
.cc-time { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; max-width: 260px; }

.cc-toggle {
  display: flex; align-items: center; gap: 9px; border: none; background: none;
  padding: 4px 0; cursor: pointer; font-family: "IBM Plex Mono", monospace;
  font-size: 11px; color: var(--ink2);
}
.cc-sw {
  width: 36px; height: 20px; border-radius: 20px; background: var(--track);
  border: 1px solid var(--line);
  position: relative; display: inline-block; transition: background .18s ease; flex: none;
}
.cc-sw i {
  position: absolute; top: 1px; left: 1px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--onAcc);
  box-shadow: 0 1px 2px rgba(60, 42, 28, .25);
  transition: left .18s ease; display: block;
}
.cc-toggle.is-on .cc-sw { border-color: var(--accent); }
.cc-toggle.is-on .cc-sw { background: var(--accent); }
.cc-toggle.is-on .cc-sw i { left: 17px; }

.cc-approx {
  border: 1px solid var(--line); border-radius: 12px; background: var(--accSoft);
  padding: 16px 18px; margin-top: 10px;
}
.cc-approx p { font-size: 15px; line-height: 1.55; color: var(--ink2); margin: 6px 0 0; text-wrap: pretty; }

.cc-place { margin-top: 26px; position: relative; }
.cc-place .f-input { margin-top: 8px; }
.cc-note { font-size: 14px; color: var(--mute); margin-top: 8px; }
.cc-sug {
  position: absolute; left: 0; right: 0; top: 88px; z-index: 5;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  box-shadow: 0 12px 30px rgba(60, 42, 28, .14); overflow: hidden;
}
.cc-sug__row {
  display: flex; width: 100%; align-items: baseline; justify-content: space-between;
  gap: 12px; padding: 13px 16px; border: none; border-bottom: 1px solid var(--hair);
  background: none; cursor: pointer; text-align: left; font-family: inherit;
}
.cc-sug__row:last-child { border-bottom: none; }
.cc-sug__row:hover { background: var(--accSoft); }
.cc-sug__city { font-size: 16px; color: var(--ink); }
.cc-sug__meta { font-size: 10.5px; color: var(--mute); }

.cc-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.cc-chip {
  font-size: 10.5px; letter-spacing: .06em; padding: 6px 11px; border-radius: 20px;
  border: 1px solid var(--line); color: var(--ink2);
}

.cc-go { width: 100%; height: 58px; font-size: 17.5px; }
/* The design keeps --onAcc on the disabled fill, which is near-white on beige
   and unreadable. The label still has to be legible while it is telling you
   what is missing. */
.cc-go:disabled {
  background: var(--track); color: var(--ink2);
  box-shadow: none; cursor: not-allowed;
}
.cc-hint { font-size: 10.5px; letter-spacing: .06em; color: var(--mute); margin-top: 14px; text-align: center; }

.cc-aside { position: sticky; top: 32px; display: flex; flex-direction: column; gap: 14px; }
.cc-side { border: 1px solid var(--line); border-radius: 18px; background: var(--card); padding: 22px 26px; }
.cc-side--lead { background: var(--paper2); padding: 24px 26px; }
.cc-side p { font-size: 14.5px; line-height: 1.6; color: var(--ink2); margin: 8px 0 0; text-wrap: pretty; }
.kicker--quiet { color: var(--ink2); font-size: 10px; }
.cc-side__link { font-size: 11px; text-decoration: none; display: inline-block; margin-top: 12px; }
.cc-perks { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.cc-perk { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; }
.cc-perk__d { width: 8px; height: 8px; margin-top: 8px; background: var(--accent); transform: rotate(45deg); }
.cc-perk__t { font-size: 16.5px; }
.cc-perk__b { font-size: 14.5px; line-height: 1.5; color: var(--ink2); }

.cc-overlay {
  position: fixed; inset: 0; z-index: 40; background: rgba(46, 36, 27, .72);
  display: grid; place-items: center; padding: 32px;
}
.cc-modal {
  width: min(460px, 100%); border: 1px solid var(--line); border-radius: 22px;
  background: var(--card); padding: 34px 36px; box-shadow: 0 30px 80px rgba(30, 22, 14, .4);
}
.cc-modal__head { display: flex; align-items: center; gap: 14px; }
.cc-modal__t { font-size: 23px; }
.cc-spin {
  width: 26px; height: 26px; border: 2px solid var(--track); border-top-color: var(--accent);
  border-radius: 50%; animation: cc-spin 1s linear infinite; flex: none;
}
@keyframes cc-spin { to { transform: rotate(360deg); } }
.cc-steps { display: flex; flex-direction: column; gap: 11px; margin-top: 22px; }
.cc-step { display: flex; align-items: center; gap: 11px; }
.cc-step__m {
  width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--track);
  background: transparent; display: grid; place-items: center; flex: none;
  font-family: "IBM Plex Mono", monospace; font-size: 9px; color: var(--onAcc);
}
.cc-step__t { font-size: 16px; color: var(--mute); }
.cc-step.is-on .cc-step__m { border-color: var(--accent); background: var(--accent); }
.cc-step.is-on .cc-step__m::after { content: "✓"; }
.cc-step.is-on .cc-step__t { color: var(--ink); }
.cc-modal__foot { font-size: 10.5px; letter-spacing: .06em; color: var(--mute); margin-top: 24px; text-align: center; }
.cc-see { width: 100%; height: 54px; }

.c-approx {
  margin-top: 16px; padding: 11px 14px; border-radius: 12px;
  background: var(--accSoft); border: 1px solid var(--line);
  font-size: 11px; line-height: 1.55; color: var(--ink2);
}

@media (max-width: 980px) {
  .cc-wrap { grid-template-columns: 1fr; gap: 34px; padding: 28px 24px 72px; }
  .cc-aside { position: static; }
  .cc-h1 { font-size: clamp(30px, 7vw, 44px); }
}
@media (max-width: 720px) {
  .cc-wrap { padding: 22px 20px 64px; }
  .cc-card { padding: 22px 20px; border-radius: 16px; }
  .cc-side, .cc-side--lead { padding: 20px 20px; }
  .cc-modal { padding: 26px 22px; }
  .cc-time { max-width: none; }
}

/* ---- Detail sheet ---- */
.sh-scrim {
  position: fixed; inset: 0; z-index: 50; background: rgba(46, 36, 27, .55);
  display: grid; place-items: end center; padding: 0;
}
.sh-card {
  position: relative; width: min(640px, 100%);
  max-height: 82vh; overflow-y: auto;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 22px 22px 0 0; padding: 30px 32px 36px;
  box-shadow: 0 -20px 60px rgba(30, 22, 14, .3);
}
.sh-x {
  position: absolute; top: 18px; right: 18px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper);
  color: var(--ink2); font-size: 14px; line-height: 1; cursor: pointer;
}
.sh-x:hover { border-color: var(--accent); color: var(--accent); }
.sh-t { font-size: 26px; font-weight: 400; margin: 10px 0 0; line-height: 1.2; padding-right: 40px; }
.sh-b { margin-top: 14px; }
.sh-b p { font-size: 16px; line-height: 1.65; color: var(--ink2); margin: 0 0 12px; text-wrap: pretty; }
.sh-b p:last-child { margin-bottom: 0; }
.sh-wait { font-style: italic; opacity: .7; }

/* Anything that opens a reading says so. */
.is-tappable { cursor: pointer; }
.c-row.is-tappable:hover { background: var(--accSoft); }
.c-tile.is-tappable:hover { border-color: var(--accent); }
#graph g[id$="_Center"], #graph g[id^="Channel"] { cursor: pointer; }

@media (min-width: 721px) {
  .sh-scrim { place-items: center; padding: 32px; }
  .sh-card { border-radius: 22px; box-shadow: 0 30px 80px rgba(30, 22, 14, .4); }
}
@media (max-width: 720px) {
  .sh-card { padding: 24px 20px 30px; }
  .sh-t { font-size: 22px; }
}

/* ---- App Store ---- */
.store-band {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center;
  border: 1px solid var(--line); border-radius: 20px; background: var(--card);
  padding: 40px 44px; margin-top: 12px;
}
.store-lede { font-size: 16.5px; line-height: 1.6; color: var(--ink2); margin: 14px 0 0; max-width: 54ch; text-wrap: pretty; }
.store-row { margin-top: 26px; }
.store-facts { font-size: 10.5px; letter-spacing: .06em; color: var(--mute); margin-top: 14px; }
.store-art { display: flex; justify-content: center; }
.store-art img { width: 100%; max-width: 210px; height: auto; opacity: .9; }

/* The lockup: Apple's two-line convention, in this site's type. */
.store {
  display: inline-flex; align-items: center; gap: 12px;
  height: 58px; padding: 0 22px 0 20px;
  background: var(--ink); color: var(--paper);
  border-radius: 13px; text-decoration: none;
  transition: background .18s ease, transform .12s ease;
}
.store:hover { background: #1F1811; color: var(--paper); }
.store:active { transform: translateY(1px); }
.store__mark { width: 26px; height: 26px; flex: none; }
.store__txt { display: flex; flex-direction: column; line-height: 1; }
.store__small { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.store__big { font-size: 21px; margin-top: 3px; }

@media (max-width: 980px) {
  .store-band { grid-template-columns: 1fr; gap: 30px; padding: 32px 28px; }
  .store-art { order: -1; }
  .store-art img { max-width: 170px; }
}
@media (max-width: 720px) {
  .store-band { padding: 26px 20px; border-radius: 16px; }
  .store { width: 100%; justify-content: center; }
}

/* ---- Prose pages (privacy, support) ---- */
/* Constrain the measure, not the section — otherwise the section centres its
   720px inside 1140px and the text sits indented from its own heading. */
.prose h2, .prose p { max-width: 720px; }
.prose h2 { font-size: 24px; font-weight: 400; margin: 34px 0 0; line-height: 1.25; }
.prose h2:first-child { margin-top: 6px; }
.prose p { font-size: 16.5px; line-height: 1.7; color: var(--ink2); margin: 12px 0 0; text-wrap: pretty; }

/* ---------------------------------------------------------------- editor */

@font-face { font-family: 'Judson'; font-weight: 400; src: url(/fonts/Judson-Regular.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: 'Judson'; font-weight: 700; src: url(/fonts/Judson-Bold.ttf) format('truetype'); font-display: swap; }

.ed-wrap { max-width: 1320px; margin: 0 auto; padding: 24px 32px 64px; }

.ed-error { margin: 0; color: var(--accent); font-size: 15px; }
.btn:disabled { background: var(--track); cursor: default; }
.btn--ghost:disabled { background: transparent; color: var(--mute); border-color: var(--hair); }

.ed { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.ed-stage { position: sticky; top: 16px; display: grid; gap: 12px; }
.ed-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ed-tools__end { display: flex; gap: 6px; }
.ed-canvas {
  display: grid; place-items: center; padding: 18px;
  background: var(--paper2); border: 1px solid var(--hair); border-radius: 18px;
}
.ed-canvas.is-clear .ed-art, .ed-thumb .ed-art {
  background: repeating-conic-gradient(#E4DAC5 0 25%, #FCF9F0 0 50%) 0 0 / 18px 18px;
}
.ed-art {
  display: block; width: auto; height: auto;
  max-width: 100%; max-height: calc(100vh - 190px);
  box-shadow: 0 1px 2px rgba(60, 42, 28, .12), 0 12px 32px rgba(60, 42, 28, .12);
}
.ed-describe { display: grid; gap: 10px; }
.ed-describe__in { height: auto; min-height: 84px; padding: 12px 14px; resize: vertical; font: 16px/1.4 "Newsreader", Georgia, serif; }
.ed-describe .btn { justify-self: end; }
.ed-examples { display: grid; gap: 6px; }
.ed-example {
  border: 0; padding: 6px 10px; border-radius: 8px; background: var(--paper); text-align: left;
  font: italic 14.5px "Newsreader", Georgia, serif; color: var(--ink2); cursor: pointer;
}
.ed-example:hover { color: var(--ink); }
.ed-warn { color: var(--accent); }
.ed-font { display: grid; gap: 6px; }
.ed-font__btn { display: flex; align-items: center; justify-content: space-between; text-align: left; font-size: 19px; cursor: pointer; }
.ed-font__btn.is-open { border-color: var(--accent); }
.ed-font__chev { font-family: "IBM Plex Mono", monospace; color: var(--ink2); }
.ed-font__panel { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.ed-font__filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ed-chip--xs { height: 28px; padding: 0 10px; font-size: 13.5px; }
.ed-check--xs { font-size: 14px; margin-left: 4px; }
.ed-check--xs input { margin-top: 1px; }
.ed-font__list { display: grid; max-height: 300px; overflow: auto; margin: 0 -4px; padding: 0 4px; }
.ed-font__opt {
  min-height: 42px; padding: 4px 10px; border: 0; border-radius: 8px; background: transparent;
  text-align: left; font-size: 20px; color: var(--ink); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ed-font__opt:hover { background: var(--paper); }
.ed-font__opt.is-on { background: var(--accSoft); }
.ed-order-gate { display: grid; gap: 10px; }
.ed-order-gate h3 { margin: 0; }
.ed-order-gate__row { display: flex; gap: 8px; justify-content: flex-end; }
.ed-export__sub { margin-top: 6px; }
.ed-export__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ed-export__row .btn { width: 100%; }
.ed-offscreen { position: absolute; left: -10000px; top: 0; width: 400px; visibility: hidden; pointer-events: none; }
.ed-designbar { display: grid; gap: 4px; }
.ed-designbar__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer;
  font: 500 17px "Newsreader", Georgia, serif; color: var(--ink); text-align: left;
}
.ed-designbar__btn .mono { font-size: 12px; color: var(--ink2); white-space: nowrap; }
.ed-designs { display: grid; gap: 12px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.ed-designs h3 { margin: 0; font: 500 12px "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.ed-designs__head { display: flex; justify-content: space-between; align-items: center; }
.ed-designs__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ed-designs__actions .btn { width: 100%; padding: 0 10px; }
.ed-designs__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 340px; overflow: auto; }
.ed-design { display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; border: 1px solid transparent; }
.ed-design.is-on { border-color: var(--line); background: var(--paper); }
.ed-design__thumb { width: 46px; height: 60px; display: grid; place-items: center; padding: 0; border: 1px solid var(--hair); border-radius: 8px; cursor: pointer;
  background: repeating-conic-gradient(#EFE7D5 0 25%, #FCF9F0 0 50%) 0 0 / 10px 10px; }
.ed-design__meta { display: grid; gap: 2px; min-width: 0; }
.ed-design__name { border: 0; background: transparent; padding: 2px 0; font: 500 16px "Newsreader", Georgia, serif; color: var(--ink); width: 100%; }
.ed-design__name:focus { outline: none; border-bottom: 1px solid var(--accent); }
.ed-design__meta .mono { font-size: 11px; color: var(--mute); }
.ed-design__btns { display: flex; gap: 10px; font-size: 14px; }
.ed-design .ed-confirm { grid-column: 1 / -1; }
.ed-link--danger { color: #B3261E; }
.ed-designs__reset { justify-self: start; font-size: 14.5px; }
.ed-confirm { display: grid; gap: 8px; padding: 12px; border: 1px solid #E5B8B3; border-radius: 10px; background: #FBEDEB; }
.ed-confirm p { margin: 0; font-size: 15px; color: var(--ink); }
.ed-confirm__row { display: flex; gap: 8px; justify-content: flex-end; }
.btn.ed-danger { background: #B3261E; }
.btn.ed-danger:hover { background: #8E1E18; }
.ed-thumb {
  display: grid; place-items: center; padding: 12px; border-radius: 10px;
  background: repeating-conic-gradient(#EFE7D5 0 25%, #FCF9F0 0 50%) 0 0 / 16px 16px;
}
.ed-art--graph { max-height: 300px; box-shadow: none; }
.ed-stage__hint { margin: 0; text-align: center; }

.ed-side { display: grid; gap: 16px; }
.ed-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; background: var(--paper2); border-radius: 12px; }
.ed-tab {
  height: 38px; border: 0; border-radius: 9px; background: transparent; cursor: pointer;
  font: 15px "Newsreader", Georgia, serif; color: var(--ink2);
}
.ed-tab.is-on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px var(--btnSh); }

.ed-panel { display: grid; gap: 14px; }
.ed-panel section {
  display: grid; gap: 10px; padding: 16px;
  background: var(--card); border: 1px solid var(--hair); border-radius: 14px;
}
.ed-panel h3 { margin: 0; font: 500 12px "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.ed-note { margin: 0; color: var(--ink2); font-size: 14.5px; line-height: 1.45; }

.ed-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--paper2); border-radius: 12px; }
.ed-seg__b {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px;
  border: 0; border-radius: 9px; background: transparent; cursor: pointer;
  font: 14.5px "Newsreader", Georgia, serif; color: var(--ink2);
}
.ed-seg__b.is-on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px var(--btnSh), inset 0 0 0 1.5px var(--ink); }
.ed-seg__b:hover:not(.is-on) { color: var(--ink); }
.ed-seg__b:focus { outline: none; }
.ed-seg__b:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ed-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }

.ed-icon {
  width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--card);
  display: grid; place-items: center; color: var(--ink); cursor: pointer;
}
.ed-icon:disabled { color: var(--mute); border-color: var(--hair); cursor: default; }

.ed-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ed-chip {
  height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px;
  background: transparent; cursor: pointer; font: 14.5px "Newsreader", Georgia, serif; color: var(--ink);
}
.ed-chip:hover { border-color: var(--ink2); }
.ed-chip.is-on { background: var(--btnBg); border-color: var(--btnBg); color: var(--onAcc); }
.ed-chip--ghost { color: var(--ink2); border-style: dashed; }

.ed-channels { display: grid; gap: 2px; max-height: 46vh; overflow: auto; margin: 0 -6px; padding: 0 6px; }
.ed-ch {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 10px;
  min-height: 40px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent;
  cursor: pointer; text-align: left; font: 15px "Newsreader", Georgia, serif; color: var(--ink2);
}
.ed-ch:hover { background: var(--paper); }
.ed-ch.is-on { background: var(--accSoft); color: var(--ink); }
.ed-ch__id { font-size: 13px; color: var(--ink2); }
.ed-ch__sides { display: flex; gap: 4px; }

.ed-palettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.ed-pal {
  display: grid; gap: 6px; padding: 8px; border: 1px solid var(--hair); border-radius: 12px;
  background: transparent; cursor: pointer; font: 14px "Newsreader", Georgia, serif; color: var(--ink);
}
.ed-pal.is-on { border-color: var(--ink); }
.ed-pal__sw { display: flex; gap: 4px; justify-content: center; padding: 10px 0; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.ed-pal__sw i { width: 14px; height: 14px; border-radius: 50%; }

.ed-color { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.ed-color input {
  width: 34px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 8px;
  background: none; cursor: pointer;
}
.ed-color input::-webkit-color-swatch-wrapper { padding: 2px; }
.ed-color input::-webkit-color-swatch { border: 0; border-radius: 5px; }
.ed-color code { font: 12px "IBM Plex Mono", ui-monospace, monospace; color: var(--mute); }
.ed-range { display: grid; gap: 6px; font-size: 15px; }
.ed-range input { accent-color: var(--btnBg); }

.ed-check { display: flex; align-items: flex-start; gap: 10px; font-size: 15.5px; line-height: 1.35; cursor: pointer; }
.ed-check--sub { padding-left: 27px; font-size: 14.5px; color: var(--ink2); }
.ed-check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--btnBg); flex: none; }

.ed-export { gap: 10px; }
.ed-export .btn { width: 100%; }

.ed-order { margin: 0; text-align: center; font-size: 12px; color: var(--mute); }
.ed-link { border: 0; padding: 0; background: none; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; }

@media (max-width: 980px) {
  .ed { grid-template-columns: 1fr; }
  .ed-stage { position: static; }
  .ed-art { max-height: 70vh; }
}
@media (max-width: 720px) {
  .ed-wrap { padding: 16px 16px 48px; }
  .ed-canvas { padding: 10px; border-radius: 14px; }
  .ed-seg__b { padding: 0 10px; }
  .ed-channels { max-height: none; }
}

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

.ac-wrap { max-width: 860px; }
.ac-loading { text-align: center; padding: 60px 0; }
.ac-signin { width: min(460px, 100%); margin: 40px auto; display: grid; gap: 12px; }
.ac-h { margin: 0; font-weight: 500; font-size: 30px; line-height: 1.15; }
.ac-p { margin: 0; color: var(--ink2); font-size: 16px; line-height: 1.5; }
.ac-small { margin: 0; font-size: 13px; color: var(--mute); }
.ac-provider { width: 100%; }
.ac { display: grid; gap: 18px; }
.ac-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.ac-tabs { grid-template-columns: repeat(3, 1fr); }
.ac-panel { display: grid; gap: 12px; padding: 16px; background: var(--card); border: 1px solid var(--hair); border-radius: 14px; }
.ac-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ac-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ac-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; }
.ac-row:hover { background: var(--paper); }
.ac-row--design { grid-template-columns: 46px 1fr auto; }
.ac-row__main { display: grid; gap: 2px; min-width: 0; }
.ac-row__name { font-size: 17px; font-weight: 500; color: var(--ink); text-decoration: none; }
.ac-row__name:hover { color: var(--accent); }
.ac-row__sub { font-size: 14.5px; color: var(--ink2); }
.ac-row__meta { font-size: 11.5px; color: var(--mute); }
.ac-row__btns { display: flex; gap: 12px; font-size: 14.5px; }
.ac-confirm { grid-column: 1 / -1; }
.ac-add { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.ed-signin-note { margin: 0; font-size: 13px; color: var(--ink2); }

/* ------------------------------------------------------------ illustrations
   Drawn at build time by src/art.mjs from the app's own sources. Hairlines in
   currentColor; motion stops under prefers-reduced-motion. */

.art { display: block; overflow: visible; }
.art-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: art-draw 1.6s cubic-bezier(.5, 0, .2, 1) var(--d, 0s) forwards; }
.art-draw--late { animation-duration: 1.2s; }
@keyframes art-draw { to { stroke-dashoffset: 0; } }
.art-spin { animation: art-spin 360s linear infinite; }
@keyframes art-spin { to { transform: rotate(360deg); } }
.art-orbit { animation: art-orbit var(--t, 300s) linear infinite; transform: rotate(var(--s, 0deg)); }
@keyframes art-orbit { from { transform: rotate(var(--s, 0deg)); } to { transform: rotate(calc(var(--s, 0deg) + 360deg)); } }
.art-twinkle { animation: art-twinkle 4.5s ease-in-out var(--d, 0s) infinite; }
@keyframes art-twinkle { 0%, 100% { opacity: .25; } 50% { opacity: .9; } }
@media (prefers-reduced-motion: reduce) {
  .art-draw { animation: none; stroke-dashoffset: 0; }
  .art-spin, .art-orbit, .art-twinkle { animation: none; }
}

/* A phone: the frame is CSS, the screen an app screenshot. */
.phone {
  position: relative; margin: 0; width: 100%; max-width: 280px; aspect-ratio: 600 / 1304;
  padding: 10px; border-radius: 46px; background: #1C1611;
  box-shadow: 0 0 0 1.5px #8E8475, 0 0 0 3px #3B342C, 0 30px 60px -20px rgba(46, 36, 27, .45), 0 12px 24px -12px rgba(46, 36, 27, .3);
}
.phone__screen { width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: var(--paper); }
.phone__screen img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------------ home */

.h-sky { position: absolute; inset: 0; color: var(--ink2); pointer-events: none; }
.h-sky .art { width: 100%; height: 100%; }

.h-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--hair);
  background: radial-gradient(1200px 600px at 75% 40%, #FBF6EA 0%, var(--paper) 60%); }
.h-hero__inner { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 72px 32px 80px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.h-hero__copy h1 { font-size: 62px; font-weight: 400; line-height: 1.06; margin: 14px 0 0; text-wrap: balance; }
.h-hero__copy p { font-size: 19px; line-height: 1.6; color: var(--ink2); margin: 22px 0 0; max-width: 500px; text-wrap: pretty; }
.h-planets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 34px; color: var(--ink2); }
.h-planet { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--hair); border-radius: 50%; background: rgba(252, 249, 240, .7); }
.h-hero__art { position: relative; display: grid; place-items: center; min-height: 600px; }
.h-hero__wheel { position: absolute; width: min(640px, 112%); aspect-ratio: 1; color: var(--accent); opacity: .22; }
.h-hero__wheel .art { width: 100%; height: 100%; }
.h-hero__graph { position: relative; width: min(330px, 70%); color: var(--ink); }
.h-hero__graph .art-draw:nth-child(-n+40) { color: var(--accent); }

.stat .stat__art { width: 40px; height: 40px; margin: 0 auto 12px; color: var(--accent); }
.stat .art-bodygraph.stat__art { height: 44px; width: auto; }

.h-features { display: grid; gap: 40px; margin-top: 40px; }
.h-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 32px; background: var(--card); border: 1px solid var(--hair); border-radius: 28px; overflow: hidden; }
.h-feature--flip .h-feature__art { order: 2; }
.h-feature__art { position: relative; display: grid; place-items: center; min-height: 520px; }
.h-feature__sky { position: absolute; inset: -10%; display: grid; place-items: center; color: var(--accent); opacity: .28; }
.h-feature__sky .art { width: 100%; max-height: 100%; }
.h-feature__sky .art-moons { width: 92%; }
.h-feature .phone { width: 240px; }
.h-feature__copy h3 { font-size: 34px; font-weight: 400; line-height: 1.15; margin: 10px 0 0; }
.h-feature__copy p { font-size: 17px; line-height: 1.65; color: var(--ink2); margin: 16px 0 0; max-width: 440px; }
.h-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.h-chips span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--ink2); background: var(--paper); }

.h-lede { font-size: 17px; line-height: 1.6; color: var(--ink2); max-width: 560px; margin: 12px 0 0; }
.h-types { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 32px; }
.h-type { display: grid; gap: 6px; padding: 18px 16px 20px; border: 1px solid var(--hair); border-radius: 20px; background: var(--card);
  text-decoration: none; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.h-type:hover { transform: translateY(-3px); border-color: var(--line); box-shadow: 0 14px 30px -18px rgba(46, 36, 27, .35); color: var(--ink); }
.h-type__art { width: 100%; height: 150px; margin-bottom: 8px; color: var(--ink2); }
.h-type:hover .h-type__art { color: var(--accent); }
.h-type__pct { font-size: 12px; color: var(--accent); }
.h-type__name { font-size: 19px; line-height: 1.2; }
.h-type__line { display: grid; font-size: 14px; color: var(--ink2); line-height: 1.35; }
.h-type__line .mono { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }

.h-step__art { height: 120px; display: grid; place-items: center start; color: var(--accent); margin-bottom: 16px; }
.h-step__art .art { max-height: 120px; width: auto; max-width: 100%; }
.h-step__art .art-orbits { width: 120px; height: 120px; opacity: .8; }
.h-step__art .art-moons { width: 220px; }

.h-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 48px;
  border-radius: 28px; background: linear-gradient(135deg, #F6EBDF, #EFE7D5); border: 1px solid var(--hair); }
.h-editor__copy h2 { margin: 10px 0 0; }
.h-editor__copy p { font-size: 17px; line-height: 1.65; color: var(--ink2); margin: 16px 0 0; }
.h-editor__copy .btn { margin-top: 26px; }
.h-editor__art { position: relative; height: 380px; }
.h-swatch { position: absolute; width: 190px; padding: 16px; border-radius: 18px; box-shadow: 0 20px 40px -24px rgba(46, 36, 27, .5); }
.h-swatch .art { width: 100%; height: auto; }
.h-swatch--a { left: 0; top: 30px; background: #FCF9F0; color: #8B7355; transform: rotate(-6deg); }
.h-swatch--b { left: 30%; top: 0; background: #15110D; color: #E2C690; z-index: 2; }
.h-swatch--c { right: 0; top: 50px; background: #EEF1E8; color: #6F8F5E; transform: rotate(6deg); }

.h-lib { position: relative; }
.h-lib__sky { position: absolute; inset: 20px 0 0; color: var(--ink2); opacity: .2; pointer-events: none; }
.h-lib__sky .art { width: 100%; height: 100%; }
.h-lib > *:not(.h-lib__sky) { position: relative; }

.h-store { align-items: center; }
.h-store__phones { position: relative; height: 470px; }
.h-store__phones .phone { position: absolute; width: 200px; }
.phone--back { right: 150px; top: 30px; transform: rotate(-7deg); }
.phone--front { right: 10px; top: 0; transform: rotate(5deg); }

.h-night { position: relative; overflow: hidden; }
.h-night .h-sky { color: #E9DCC4; opacity: .7; }
.h-night__wheel { position: absolute; width: 560px; aspect-ratio: 1; right: -140px; top: -160px; color: #D2A86A; opacity: .25; }
.h-night__wheel .art { width: 100%; height: 100%; }
.h-night .cta__inner { position: relative; }

@media (max-width: 980px) {
  .h-hero__inner { grid-template-columns: 1fr; padding-top: 48px; }
  .h-hero__copy h1 { font-size: 48px; }
  .h-hero__art { min-height: 460px; }
  .h-feature, .h-editor { grid-template-columns: 1fr; gap: 28px; }
  .h-feature--flip .h-feature__art { order: 0; }
  .h-feature__art { min-height: 440px; }
  .h-types { grid-template-columns: repeat(3, 1fr); }
  .h-store__phones { height: 420px; }
}
@media (max-width: 720px) {
  .h-hero__inner { padding: 36px 16px 48px; gap: 24px; }
  .h-hero__copy h1 { font-size: 40px; }
  .h-hero__art { min-height: 380px; }
  .h-hero__graph { width: 230px; }
  .h-feature { padding: 20px; border-radius: 22px; }
  .h-feature__art { min-height: 400px; }
  .h-feature .phone { width: 200px; }
  .h-feature__copy h3 { font-size: 28px; }
  .h-types { grid-template-columns: repeat(2, 1fr); }
  .h-types .h-type:last-child { grid-column: 1 / -1; }
  .h-editor { padding: 24px; }
  .h-editor__art { height: 300px; }
  .h-swatch { width: 140px; }
  .h-store__phones { height: 360px; }
  .h-store__phones .phone { width: 160px; }
  .phone--back { right: 120px; }
  .h-night__wheel { width: 380px; right: -160px; }
}

/* ------------------------------------------------------------- page heads */

.pg-head { position: relative; overflow: hidden; border-bottom: 1px solid var(--hair);
  background: radial-gradient(900px 420px at 85% 30%, #FBF6EA 0%, var(--paper) 70%); }
.pg-head .lib-head { position: relative; padding-bottom: 48px; }
.pg-head__sky { position: absolute; inset: 0; color: var(--ink2); opacity: .22; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, transparent 40%, #000 75%); mask-image: linear-gradient(to right, transparent 0, transparent 40%, #000 75%); }
.pg-head__sky .art { width: 100%; height: 100%; }
.pg-head__art { position: absolute; right: max(32px, calc(50% - var(--wrap) / 2 + 32px)); top: 24px; bottom: 24px; display: grid; place-items: center; }
.pg-head__graph { height: 100%; max-height: 300px; width: auto; color: var(--accent); }
.pg-head__wheel { position: absolute; width: 440px; aspect-ratio: 1; right: -90px; top: -150px; color: var(--accent); opacity: .18; }
.pg-head__wheel .art { width: 100%; height: 100%; }
.pg-head--prose .lib-head { padding-top: 64px; padding-bottom: 56px; }
.pg-head--prose .pg-head__sky { opacity: .45; }

/* A row with a small bodygraph pointing at its centre or channel. */
.row--art { grid-template-columns: 52px 76px 1fr auto; align-items: center; }
.row__art { width: 44px; height: 68px; color: var(--mute); }
.mini__on { fill: var(--accent); fill-opacity: .35; stroke: var(--accent); }
.mini__line { color: var(--accent); stroke: var(--accent); }
.row--art:hover .row__art { color: var(--ink); }

.cc-sky { position: absolute; left: 0; right: 0; top: 64px; height: 720px; display: grid; justify-items: end; overflow: hidden;
  color: var(--accent); opacity: .16; pointer-events: none; z-index: 0; }
.cc-sky .art { width: 900px; height: 900px; margin-right: -220px; }
.cc-wrap { position: relative; z-index: 1; }
.cc-side__graph { width: 120px; height: auto; margin: 0 auto 14px; color: var(--accent); }

.ac-sky { position: absolute; left: 0; right: 0; top: 64px; height: 640px; overflow: hidden; color: var(--ink2); opacity: .35; pointer-events: none; z-index: 0; }
.ac-sky > .art { width: 100%; height: 100%; }
.ac-sky__wheel { position: absolute; width: 620px; aspect-ratio: 1; left: 50%; top: 10px; margin-left: -310px; color: var(--accent); opacity: .45; }
.ac-sky__wheel .art { width: 100%; height: 100%; }
.ac-wrap { position: relative; z-index: 1; }

@media (max-width: 980px) {
  .pg-head__art { display: none; }
}
@media (max-width: 720px) {
  .row--art { grid-template-columns: 34px 1fr; }
  .row--art .row__id { grid-column: 2; }
  .row--art > div:not(.row__id) { grid-column: 2; }
  .row--art .row__art { grid-row: span 3; width: 30px; height: 46px; align-self: start; }
  .pg-head__wheel { width: 300px; right: -120px; top: -110px; }
  .cc-sky .art { width: 600px; height: 600px; margin-right: -300px; }
}

.ac-or { display: flex; align-items: center; gap: 12px; margin: 4px 0; font-size: 13px; color: var(--mute); }
.ac-or::before, .ac-or::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.ac-form { display: grid; gap: 10px; }
.ac-info { margin: 0; font-size: 15px; color: var(--yesFg); }
.ac-links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: 14.5px; }

/* --------------------------------------------------------- account, signed in */

body.is-signed-in .ac-sky { display: none; }
.ac { gap: 20px; }
.ac-hero { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; overflow: hidden;
  padding: 26px 28px; border-radius: 24px; border: 1px solid var(--hair);
  background: radial-gradient(500px 220px at 90% 0%, #F3E2D2 0%, transparent 70%), linear-gradient(135deg, #FCF9F0, #F3EBDC); }
.ac-avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--onAcc); font-size: 28px; box-shadow: 0 0 0 5px rgba(162, 75, 42, .12); }
.ac-hero__who .ac-h { font-size: 30px; margin-top: 4px; }
.ac-hero__who .ac-small { margin-top: 4px; }
.ac-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ac-tile { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; text-align: left;
  padding: 16px 18px; border-radius: 18px; border: 1px solid var(--hair); background: var(--card); cursor: pointer;
  font-family: "Newsreader", Georgia, serif; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.ac-tile:hover { border-color: var(--line); transform: translateY(-1px); }
.ac-tile.is-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, 0 10px 24px -18px rgba(162, 75, 42, .6); }
.ac-tile:focus { outline: none; }
.ac-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ac-tile__art { grid-row: span 2; width: 56px; height: 56px; display: grid; place-items: center; }
.ac-tile__art .ac-thumb { width: 44px; height: 62px; padding: 0; background: transparent !important; }
.ac-tile__n { font-size: 28px; line-height: 1; }
.ac-tile__label { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); }
.ac-tile__swatches { display: flex; }
.ac-tile__swatches i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--card); margin-left: -6px; }
.ac-tile__receipt { width: 40px; height: 48px; border-radius: 6px; border: 1.5px solid var(--accent); color: var(--accent);
  display: grid; place-items: center; font: 600 18px "IBM Plex Mono", monospace; background: var(--accSoft); }
.ac-panel { padding: 20px; }
.ac-error { margin: 0; }
.ac-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ac-grid--designs { grid-template-columns: repeat(3, 1fr); }
.ac-card { position: relative; display: grid; grid-template-columns: 88px 1fr; gap: 14px; padding: 12px; border-radius: 16px;
  border: 1px solid var(--hair); background: var(--paper); transition: border-color .15s ease; }
.ac-card:hover { border-color: var(--line); }
.ac-card--design { grid-template-columns: 1fr; }
.ac-card__thumb { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--hair); }
.ac-thumb { aspect-ratio: 574 / 882; width: 100%; padding: 6px; }
.ac-card--design .ac-thumb { aspect-ratio: 4 / 5; padding: 14px; }
.ac-card--design .ac-thumb svg { height: 100%; }
.ac-card__body { display: grid; align-content: start; gap: 3px; min-width: 0; }
.ac-card__name { font-size: 18px; color: var(--ink); text-decoration: none; }
.ac-card__name:hover { color: var(--accent); }
.ac-card__type { font-size: 15px; color: var(--accent); }
.ac-card__sub { font-size: 14px; color: var(--ink2); }
.ac-card__meta { font-size: 11.5px; color: var(--mute); }
.ac-card__btns { display: flex; gap: 14px; margin-top: 8px; font-size: 14.5px; }
.ac-card .ac-confirm { grid-column: 1 / -1; }
.ac-empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 26px 10px; }
.ac-empty__art { width: 90px; height: 130px; }
.ac-empty__art .ac-thumb { background: transparent !important; }
.ac-empty h3 { margin: 6px 0 0; font-weight: 400; font-size: 22px; }
.ac-empty p { margin: 0 0 8px; color: var(--ink2); max-width: 380px; }
.ac-orders { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ac-orders li { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 12px 14px;
  border: 1px solid var(--hair); border-radius: 12px; background: var(--paper); }
.ac-orders__mark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--yesBg); color: var(--yesFg); font-size: 13px; }
@media (max-width: 720px) {
  .ac-hero { grid-template-columns: auto 1fr; padding: 20px; }
  .ac-signout { grid-column: 1 / -1; justify-self: start; }
  .ac-tiles { grid-template-columns: 1fr; }
  .ac-grid, .ac-grid--designs { grid-template-columns: 1fr; }
  .ac-orders li { grid-template-columns: auto 1fr; }
}
.ed-gate { display: grid; gap: 10px; padding: 16px; border-radius: 14px; background: var(--accSoft); border: 1px solid #EAD3C3; }
.ed-gate h3 { margin: 0; }
.ed-gate .btn { justify-self: start; }

.ac-invite { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--yesBg); border: 1px solid var(--yesBd); color: var(--yesFg); font-size: 15px; }
.ac-invite--bad { background: #FBEDEB; border-color: #E5B8B3; color: #8E1E18; }
.ac-access { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.ac-access h3 { margin: 0 0 6px; font-weight: 400; font-size: 22px; }
.ac-access .btn { margin-top: 12px; }
.ac-access__mark { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--yesBg); color: var(--yesFg); font-size: 22px; }
.ac-claim { justify-items: center; text-align: center; }
.ac-tile__receipt--big { width: 70px; height: 84px; font-size: 30px; }

/* ------------------------------------------------------------------ admin */
.adm-form { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 12px; align-items: end; }
.adm-made { display: grid; gap: 10px; margin-top: 16px; padding: 16px; border-radius: 14px; background: var(--yesBg); border: 1px solid var(--yesBd); }
.adm-made__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.adm-made__btns { display: flex; gap: 8px; }
.adm-link { display: block; padding: 10px 12px; border-radius: 10px; background: var(--card); font-size: 13px; word-break: break-all; }
.adm-msg { margin: 0; padding: 12px; border-radius: 10px; background: var(--card); font: 14px/1.5 "Newsreader", Georgia, serif; white-space: pre-wrap; color: var(--ink2); }
.adm-h { margin: 0 0 6px; font: 500 12px "IBM Plex Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.adm-table { display: grid; gap: 6px; }
.adm-row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--hair); background: var(--paper); }
.adm-row__main { display: grid; gap: 2px; min-width: 0; }
.adm-row__main .mono { font-size: 11.5px; color: var(--mute); }
.adm-row__who { font-size: 14px; color: var(--ink2); }
.adm-row__btns { display: flex; gap: 10px; align-items: center; }
.adm-row--expired, .adm-row--withdrawn { opacity: .6; }
.adm-pill { padding: 3px 10px; border-radius: 999px; font: 11px "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.adm-pill--open { background: var(--yesBg); color: var(--yesFg); }
.adm-pill--used { background: var(--accSoft); color: var(--accent); }
.adm-pill--expired, .adm-pill--withdrawn { background: var(--paper2); color: var(--mute); }
@media (max-width: 720px) {
  .adm-form { grid-template-columns: 1fr; }
  .adm-row { grid-template-columns: 1fr auto; }
  .adm-row__btns { grid-column: 1 / -1; }
}

/* Sign in with Apple / Google: each in its own brand's button style. */
.ac-brand { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 52px;
  border-radius: 12px; font: 500 17px -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; text-decoration: none;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease; }
.ac-brand:active { transform: translateY(1px); }
.ac-brand__logo { width: 20px; height: 20px; flex: none; }
.ac-brand--apple { background: #000; color: #fff; }
.ac-brand--apple:hover { background: #1d1d1f; color: #fff; }
.ac-brand--apple .ac-brand__logo { width: 19px; height: 19px; margin-top: -3px; }
.ac-brand--google { background: #fff; color: #1F1F1F; border: 1px solid #747775; font-family: Roboto, Arial, sans-serif; font-weight: 500; }
.ac-brand--google:hover { background: #F8F9FA; color: #1F1F1F; box-shadow: 0 1px 3px rgba(60, 64, 67, .2); }
