/* Frequelle — a quiet, private interface.
   Deliberately low-stimulus: no badges, no streak pressure in red, no
   notification dots. The product asks for honesty, which people give more
   readily to something that feels calm than to something that nags.

   The signed-out pages (landing, sign in, about) are the one place the site
   is allowed to be expansive — that is where a stranger decides whether to
   trust it. Everything for those lives under .lp-* and .mk so the app pages
   stay exactly as calm as they were. */

:root {
  /* Palette set by the site owner. The five given colours are marked; the
     rest are derived from them, and every text/background pair below was
     checked for contrast rather than eyeballed.

       #A43A2D brick   #F0D7C0 tan   #FBF2E2 cream   #612016 maroon   #D2A284 clay

     Clay is decorative only — at 2.05:1 on cream and 2.27:1 under white text
     it cannot legibly carry type, so it fills bars and chips and never sits
     behind a word. */
  --bg: #FBF2E2;             /* given — cream */
  --surface: #FFFFFF;
  --surface-2: #F0D7C0;      /* given — tan */
  --surface-3: #F7E8D6;      /* between cream and tan, for quiet panels */
  --ink: #33170F;            /* 14.9:1 on cream */
  --ink-2: #6B4034;          /* 7.9:1  */
  --ink-3: #8F6151;          /* 4.7:1  — the floor for small print */
  --line: #DEC4A8;
  --line-soft: #EBD9C4;
  --accent: #A43A2D;         /* given — brick. 5.9:1 on cream, white on it 6.5:1 */
  --accent-soft: #FAEAE6;
  --accent-ink: #612016;     /* given — maroon. 10.9:1 on cream */
  --clay: #D2A284;           /* given — decorative fills only */
  --clay-soft: #E9CDB8;
  --good: #2F6B4F;
  --good-soft: #E3EFE7;
  --warn: #8A5A2A;
  --warn-soft: #F7EADA;
  --bad: #7A1F2B;            /* deliberately crimson, so an error never reads
                                as the brick accent */
  --bad-soft: #F7E2E4;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(51, 23, 15, .05), 0 10px 30px rgba(51, 23, 15, .07);
  --shadow-lg: 0 2px 6px rgba(51, 23, 15, .06), 0 30px 60px -20px rgba(51, 23, 15, .25);
  /* Iowan Old Style ships with macOS and iOS, Palatino with both and Windows,
     Charter with Apple devices. Nothing is downloaded and nothing is fetched
     from a third party — the same reason there are no web fonts anywhere. */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Charter,
           "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.18;
                 margin: 0 0 .5rem; letter-spacing: -.012em; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1rem; }
small { font-size: .82rem; }
::selection { background: var(--clay-soft); color: var(--accent-ink); }

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

.shell { max-width: 760px; margin: 0 auto; padding: 0 1rem 6rem; }
.shell.wide { max-width: 1120px; padding-bottom: 0; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 242, 226, .88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-inner {
  max-width: 760px; margin: 0 auto; padding: .7rem 1rem;
  display: flex; align-items: center; gap: 1rem;
}
.topbar.mk .topbar-inner { max-width: 1120px; padding: .8rem 1.25rem; }
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--serif); font-size: 1.02rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent-ink); text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand .mark { width: 26px; height: 26px; flex: none; }
.topbar .spacer { flex: 1; }
.topbar a.mini { color: var(--ink-2); font-size: .85rem; }
.topbar.mk a.mini { font-size: .92rem; }
.topbar.mk .btn { padding: .5rem 1rem; font-size: .9rem; }
@media (max-width: 640px) {
  .topbar.mk .hide-sm { display: none; }
  /* At phone width the wordmark, "Sign in" and the button share one row:
     tighten the mark and never let a label break onto two lines. */
  .topbar.mk .brand { font-size: .88rem; letter-spacing: .14em; gap: .4rem; }
  .topbar.mk .topbar-inner { gap: .7rem; padding: .7rem 1rem; }
  .topbar.mk a.mini, .topbar.mk .btn { white-space: nowrap; }
  .topbar.mk .btn { padding: .48rem .9rem; font-size: .86rem; }
  /* Five text links plus the wordmark do not fit a phone. The mark alone is
     the brand on small screens, and the row can scroll rather than push the
     page wider than the viewport. */
  .topbar:not(.mk) .brand .word { display: none; }
  .topbar:not(.mk) .topbar-inner { gap: .75rem; overflow-x: auto; scrollbar-width: none; }
  .topbar:not(.mk) .topbar-inner::-webkit-scrollbar { display: none; }
  .topbar:not(.mk) a.mini { font-size: .8rem; white-space: nowrap; }
}

.nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  background: rgba(255, 255, 255, .94); border-top: 1px solid var(--line-soft);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; padding: .3rem .2rem calc(.3rem + env(safe-area-inset-bottom));
}
.nav a {
  flex: 1; text-align: center; padding: .45rem .1rem .3rem;
  color: var(--ink-3); font-size: .68rem; letter-spacing: .02em;
  text-decoration: none; border-radius: 10px;
}
.nav a .ico { display: block; font-size: 1.15rem; line-height: 1.3; }
.nav a.on { color: var(--accent); }
.nav a:hover { text-decoration: none; background: var(--surface-3); }

/* -------------------------------------------------------------- cards */

.card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 1.35rem; margin: 0 0 1rem;
  box-shadow: var(--shadow);
}
.card.tight { padding: .9rem 1rem; }
.card.flat { box-shadow: none; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }

.eyebrow {
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 .4rem; font-weight: 600;
}
.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }
.center { text-align: center; }
.stack > * + * { margin-top: .75rem; }
.row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.row.tight { gap: .35rem; }
.grow { flex: 1; }
hr.rule { border: 0; border-top: 1px solid var(--line-soft); margin: 1.25rem 0; }

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

.btn {
  display: inline-block; border: 1px solid var(--accent); background: var(--accent);
  color: #fff; padding: .68rem 1.25rem; border-radius: 999px; font-size: .95rem;
  font-weight: 600; font-family: inherit; cursor: pointer; text-decoration: none;
  text-align: center; transition: transform .15s ease, background .15s ease,
  box-shadow .15s ease;
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink);
             text-decoration: none; color: #fff; transform: translateY(-1px);
             box-shadow: 0 8px 20px -8px rgba(97, 32, 22, .5); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); color: var(--accent-ink);
                   box-shadow: none; }
.btn.quiet { background: var(--surface-2); border-color: var(--line); color: var(--ink);
             font-weight: 500; }
.btn.quiet:hover { background: var(--line); color: var(--ink); box-shadow: none; }
.btn.danger { background: var(--bad); border-color: var(--bad); }
.btn.danger:hover { background: #6f1a25; border-color: #6f1a25; }
.btn.wide { display: block; width: 100%; }
.btn.sm { padding: .35rem .8rem; font-size: .85rem; }
.btn.lg { padding: .85rem 1.6rem; font-size: 1.04rem; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.light { background: var(--bg); border-color: var(--bg); color: var(--accent-ink); }
.btn.light:hover { background: #fff; border-color: #fff; color: var(--accent-ink); }

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

label { display: block; font-size: .9rem; color: var(--ink-2); margin-bottom: .3rem; }
input[type=text], input[type=email], input[type=password], input[type=number],
textarea, select {
  width: 100%; padding: .68rem .85rem; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 1rem;
  background: var(--surface); color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
input:focus, textarea:focus, select:focus {
  outline: 3px solid var(--accent-soft); border-color: var(--accent);
}
.field { margin-bottom: 1rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .7rem; }
.check input { margin-top: .35rem; flex: none; accent-color: var(--accent); }
.check label { margin: 0; color: var(--ink); font-size: .92rem; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }

/* chips: single- or multi-select via hidden radio/checkbox */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span {
  display: inline-block; padding: .42rem .85rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: .87rem; cursor: pointer; color: var(--ink-2); user-select: none;
  transition: border-color .12s, background .12s;
}
.chip span:hover { border-color: var(--clay); }
.chip input:checked + span {
  background: var(--accent-soft); border-color: var(--accent);
  color: var(--accent-ink); font-weight: 600;
}
.chip input:focus-visible + span { outline: 2px solid var(--accent); }

.chiplink {
  display: inline-block; padding: .42rem .85rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: .87rem; color: var(--ink-2); text-decoration: none;
}
.chiplink:hover { border-color: var(--accent); text-decoration: none; }
.chiplink.on {
  background: var(--accent-soft); border-color: var(--accent);
  color: var(--accent-ink); font-weight: 600;
}

/* 1-10 scale */
.scale { margin: 0 0 1.4rem; }
.scale .q { font-family: var(--serif); font-size: 1.12rem; margin-bottom: .1rem; }
.scale .anchors {
  display: flex; justify-content: space-between; font-size: .75rem;
  color: var(--ink-3); margin-top: .15rem;
}
.scale .val {
  float: right; font-family: var(--serif); font-size: 1.5rem;
  color: var(--accent); line-height: 1; min-width: 1.6em; text-align: right;
}
input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 30px;
  background: transparent; margin: .2rem 0 0;
}
input[type=range]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--clay-soft), var(--accent));
}
input[type=range]::-moz-range-track {
  height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--clay-soft), var(--accent));
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent); margin-top: -10px;
  box-shadow: var(--shadow); cursor: pointer;
}
input[type=range]::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%; background: var(--surface);
  border: 2px solid var(--accent); box-shadow: var(--shadow); cursor: pointer;
}
.scale.untouched input[type=range]::-webkit-slider-thumb { border-color: var(--ink-3); }
.scale.untouched .val { color: var(--ink-3); }

/* ------------------------------------------------------------ badges */

.badge {
  display: inline-block; padding: .14rem .6rem; border-radius: 999px;
  font-size: .7rem; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid transparent; font-weight: 600;
}
.badge.possible { background: var(--surface-2); color: var(--ink-2); border-color: var(--line); }
.badge.emerging { background: var(--warn-soft); color: var(--warn); }
.badge.consistent { background: var(--good-soft); color: var(--good); }
.badge.ok { background: var(--good-soft); color: var(--good); }
.badge.plain { background: var(--surface-2); color: var(--ink-2); }

.flash { border-radius: var(--radius-sm); padding: .75rem .95rem; margin: .8rem 0; font-size: .92rem; }
.flash.ok { background: var(--good-soft); color: var(--good); }
.flash.error { background: var(--bad-soft); color: var(--bad); }

.callout {
  border-left: 3px solid var(--accent); background: var(--accent-soft);
  padding: .8rem 1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 0 0 1rem;
  font-size: .93rem; color: var(--accent-ink);
}
.callout.quiet { border-color: var(--line); background: var(--surface-3); color: var(--ink-2); }

/* ------------------------------------------------------------- lists */

.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: .8rem 0; border-bottom: 1px solid var(--line-soft); }
.list li:last-child { border-bottom: 0; }

.tile {
  display: block; border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 1rem 1.05rem; background: var(--surface); margin-bottom: .7rem;
  color: inherit; text-decoration: none; transition: border-color .12s, transform .12s;
}
.tile:hover { border-color: var(--clay); text-decoration: none; transform: translateY(-1px); }
.tile .t { font-family: var(--serif); font-size: 1.08rem; color: var(--ink); }
.tile .s { font-size: .88rem; color: var(--ink-2); }
.tile .meta { font-size: .75rem; color: var(--ink-3); margin-top: .3rem; }

.insight { border-left: 3px solid var(--line); padding-left: .9rem; margin-bottom: 1.1rem; }
.insight.consistent { border-left-color: var(--good); }
.insight.emerging { border-left-color: var(--warn); }
.insight .statement { font-family: var(--serif); font-size: 1.08rem; }

/* --------------------------------------------------------- pattern map */

.spark { width: 100%; height: 54px; display: block; }
.map-row { padding: .7rem 0; border-bottom: 1px solid var(--line-soft); }
.map-row:last-child { border-bottom: 0; }
.map-head { display: flex; justify-content: space-between; align-items: baseline; }
.map-head .n { font-size: .75rem; color: var(--ink-3); }

.bar { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); }

table.data { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.data th, table.data td {
  text-align: left; padding: .5rem .55rem; border-bottom: 1px solid var(--line-soft);
}
table.data th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
                color: var(--ink-3); font-weight: 600; }
.scroll-x { overflow-x: auto; }

/* --------------------------------------------------------------- misc */

.hero { padding: 2.5rem 0 1rem; }
.hero h1 { font-size: clamp(2rem, 1.5rem + 2.2vw, 2.6rem); }
.lede { font-size: 1.1rem; color: var(--ink-2); line-height: 1.6; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
@media (max-width: 560px) { .grid3 { grid-template-columns: 1fr 1fr; } }
.stat { text-align: center; padding: .9rem .4rem; background: var(--surface-3);
        border-radius: var(--radius-sm); }
.stat .n { font-family: var(--serif); font-size: 1.8rem; color: var(--accent-ink);
           line-height: 1.1; }
.stat .l { font-size: .72rem; color: var(--ink-3); text-transform: uppercase;
           letter-spacing: .07em; }

.body-text { white-space: pre-wrap; line-height: 1.75; }
.body-text strong { color: var(--accent-ink); }

.share-card { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.link-box {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem;
  background: var(--surface-3); border-radius: 8px; padding: .5rem .6rem;
  word-break: break-all; color: var(--ink-2);
}

footer.foot { text-align: center; color: var(--ink-3); font-size: .78rem;
              padding: 2rem 0 1rem; }
footer.foot a { color: var(--ink-3); }

/* =====================================================================
   Landing page (.lp-*). Wide, visual, and the only place on the site that
   is allowed to raise its voice.
   ===================================================================== */

.lp { --gap: clamp(3rem, 6vw, 6rem); }
.lp section { padding: var(--gap) 0; }
.lp section + section { border-top: 1px solid var(--line-soft); }
.lp .sec-head { max-width: 640px; margin-bottom: 2.2rem; }
.lp .sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lp h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); letter-spacing: -.018em; }
.lp .sec-head p { font-size: 1.08rem; color: var(--ink-2); }

/* ---- hero */
.lp-hero {
  position: relative; overflow: hidden; border-top: 0 !important;
  padding: clamp(2.5rem, 5vw, 5rem) 0 clamp(2rem, 4vw, 4rem) !important;
}
.lp-hero .grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 4vw, 4rem);
  align-items: center; position: relative; z-index: 1;
}
.lp-hero h1 {
  font-size: clamp(2.6rem, 1.6rem + 4.2vw, 4.4rem); line-height: 1.04;
  letter-spacing: -.025em; margin-bottom: 1.1rem; max-width: 12ch;
}
.lp-hero h1 em { font-style: italic; color: var(--accent); }
.lp-hero .lede { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); max-width: 34rem; }
.lp-hero .ctas { display: flex; gap: .7rem; flex-wrap: wrap; margin: 1.6rem 0 1.4rem; }
.lp-hero .trust { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: .84rem;
                  color: var(--ink-3); }
.lp-hero .trust span::before { content: "•"; color: var(--clay); margin-right: .45rem; }
.lp-hero .trust span:first-child::before { content: none; }

/* The aura: three soft radial washes drifting very slowly. Reads as motion
   without being a video, costs nothing to load, and stops entirely for
   anyone who has asked their device for reduced motion. */
.aura { position: absolute; inset: -20% -10%; z-index: 0; pointer-events: none; }
.aura span {
  position: absolute; border-radius: 50%; filter: blur(0);
  background: radial-gradient(closest-side, var(--c) 0%, rgba(255,255,255,0) 72%);
  opacity: .75; will-change: transform;
}
.aura .a1 { --c: #E9C9B4; width: 60vw; height: 60vw; top: -10%; left: -8%;
            animation: drift1 26s ease-in-out infinite alternate; }
.aura .a2 { --c: #F2B9A9; width: 44vw; height: 44vw; top: 25%; right: -6%;
            animation: drift2 32s ease-in-out infinite alternate; }
.aura .a3 { --c: #F6E1C8; width: 52vw; height: 52vw; bottom: -25%; left: 30%;
            animation: drift3 38s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(6vw, 4vw) scale(1.08); } }
@keyframes drift2 { to { transform: translate(-5vw, 6vw) scale(1.12); } }
@keyframes drift3 { to { transform: translate(-6vw, -4vw) scale(1.05); } }

/* ---- phone mockup */
.stage { position: relative; display: flex; justify-content: center; }
.phone {
  width: min(330px, 78vw); aspect-ratio: 9 / 19; border-radius: 44px;
  background: #1c1210; padding: 12px; box-shadow: var(--shadow-lg),
  inset 0 0 0 2px #3a2620; position: relative; z-index: 2;
}
.phone::before { /* notch */
  content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 24px; background: #1c1210; border-radius: 0 0 16px 16px; z-index: 3;
}
.ph-screen {
  background: var(--bg); border-radius: 34px; height: 100%; overflow: hidden;
  padding: 2.6rem 1.05rem 1rem; display: flex; flex-direction: column; gap: .7rem;
  font-size: .8rem;
}
.ph-screen .eyebrow { font-size: .58rem; margin-bottom: .1rem; }
.ph-screen h4 { font-size: 1.32rem; margin: 0 0 .2rem; line-height: 1.15; }
.ph-card { background: var(--surface); border: 1px solid var(--line-soft);
           border-radius: 14px; padding: .7rem .8rem; }
.ph-q { font-family: var(--serif); font-size: .92rem; display: flex;
        justify-content: space-between; align-items: baseline; }
.ph-q b { color: var(--accent); font-size: 1.05rem; font-weight: 600; }
.ph-track { height: 5px; border-radius: 3px; margin: .5rem 0 .25rem;
            background: linear-gradient(90deg, var(--clay-soft), var(--accent)); position: relative; }
.ph-track i { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%;
              background: #fff; border: 2px solid var(--accent); transform: translate(-50%, -50%);
              box-shadow: var(--shadow); left: var(--p); }
.ph-anch { display: flex; justify-content: space-between; font-size: .6rem; color: var(--ink-3); }
.ph-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.ph-chips span { border: 1px solid var(--line); border-radius: 999px; padding: .2rem .55rem;
                 font-size: .68rem; color: var(--ink-2); background: #fff; }
.ph-chips span.on { background: var(--accent-soft); border-color: var(--accent);
                    color: var(--accent-ink); font-weight: 600; }
.ph-btn { margin-top: auto; background: var(--accent); color: #fff; text-align: center;
          border-radius: 999px; padding: .6rem; font-weight: 600; font-size: .85rem; }

.float-card {
  position: absolute; z-index: 3; background: var(--surface); border-radius: 14px;
  padding: .8rem .95rem; box-shadow: var(--shadow-lg); border: 1px solid var(--line-soft);
  width: min(260px, 70vw); font-size: .84rem; line-height: 1.45;
}
.float-card .badge { margin-bottom: .35rem; }
.float-card.fc1 { right: -10%; top: 21%; width: min(230px, 66vw); animation: floaty 7s ease-in-out infinite; }
.float-card.fc2 { left: -6%; bottom: 14%; animation: floaty 9s ease-in-out infinite reverse; }
.float-card .fc-line { display: flex; align-items: center; gap: .5rem; color: var(--ink-2); }
@keyframes floaty { 50% { transform: translateY(-8px); } }

/* ---- proof strip */
.strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 1.4rem 1.6rem; box-shadow: var(--shadow); margin-top: -1rem; position: relative; z-index: 2;
}
.strip div { padding: 0 .4rem; }
.strip .k { font-family: var(--serif); font-size: 1.35rem; color: var(--accent-ink);
            line-height: 1.15; margin-bottom: .2rem; }
.strip .v { font-size: .86rem; color: var(--ink-2); }

/* ---- how it works loop */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 34px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--clay) 0 8px, transparent 8px 16px);
}
.step { position: relative; text-align: center; padding: 0 .3rem; }
.step .ico {
  width: 68px; height: 68px; border-radius: 50%; margin: 0 auto .9rem;
  background: var(--surface); border: 1px solid var(--line-soft); box-shadow: var(--shadow);
  display: grid; place-items: center; position: relative; z-index: 1;
}
.step .ico svg { width: 30px; height: 30px; }
.step .n { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
           color: var(--ink-3); font-weight: 600; }
.step h3 { margin: .15rem 0 .3rem; font-size: 1.15rem; }
.step p { font-size: .9rem; color: var(--ink-2); margin: 0; }
.loop-note { text-align: center; margin-top: 2rem; color: var(--ink-2); font-size: .95rem; }
.loop-note b { color: var(--accent-ink); }

/* ---- feature panels */
.panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 4rem);
  align-items: center; padding: 1.2rem 0;
}
.panel + .panel { margin-top: clamp(2rem, 5vw, 4rem); }
.panel.flip .p-text { order: 2; }
.panel .p-text h3 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); letter-spacing: -.015em;
                    margin-bottom: .7rem; }
.panel .p-text p { color: var(--ink-2); font-size: 1.02rem; }
.panel .p-text ul { margin: .8rem 0 0; padding: 0; list-style: none; }
.panel .p-text li { padding: .45rem 0 .45rem 1.6rem; position: relative; color: var(--ink-2); }
.panel .p-text li::before {
  content: ""; position: absolute; left: 0; top: .78rem; width: 10px; height: 10px;
  border-radius: 50%; background: var(--clay);
}
.viz {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.2rem; overflow: hidden;
}
.viz svg { width: 100%; height: auto; display: block; }
.viz .cap { display: flex; justify-content: space-between; font-size: .78rem;
            color: var(--ink-3); margin-top: .6rem; }

/* a report card, as it appears in the app */
.report { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
          box-shadow: var(--shadow); padding: 1.4rem 1.5rem; }
.report .opening { font-family: var(--serif); font-size: 1.28rem; line-height: 1.35;
                   color: var(--ink); margin: .2rem 0 1rem; }
.report .sec { padding: .8rem 0; border-top: 1px solid var(--line-soft); font-size: .92rem;
               color: var(--ink-2); }
.report .sec b { display: block; color: var(--ink); font-family: var(--serif); font-size: 1rem;
                 margin-bottom: .15rem; }
.report .focus { margin-top: .6rem; padding: .8rem .9rem; background: var(--accent-soft);
                 border-radius: var(--radius-sm); color: var(--accent-ink); font-size: .92rem; }

/* practice tiles */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.tiles .tile { margin: 0; }

/* ---- eight dimensions */
.dims { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
/* .dimcard, not .dim — .dim is the site-wide "quiet text" utility, and naming
   the card after it turned every small grey label on every page into a card. */
.dimcard {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 1.1rem 1.1rem 1rem; box-shadow: var(--shadow);
}
.dimcard svg { width: 28px; height: 28px; margin-bottom: .6rem; }
.dimcard b { display: block; font-family: var(--serif); font-size: 1.08rem; margin-bottom: .2rem; }
.dimcard span { font-size: .8rem; color: var(--ink-3); }

/* ---- needs cloud */
.needs { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; max-width: 780px;
         margin: 0 auto; }
.needs span {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: .55rem 1.05rem; font-family: var(--serif); font-size: 1.02rem; color: var(--ink);
  box-shadow: var(--shadow);
}
.needs span.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.needs-note { text-align: center; color: var(--ink-2); max-width: 560px; margin: 1.6rem auto 0; }

/* ---- journeys */
.journeys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.jcard {
  border-radius: var(--radius); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line-soft); box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.jcard .art { height: 150px; position: relative; overflow: hidden;
              background: linear-gradient(135deg, var(--g1), var(--g2)); }
.jcard .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
                  display: block; }
.jcard .art img + svg { opacity: .6; mix-blend-mode: soft-light; }
.jcard .art::after { content: ""; position: absolute; inset: 0;
                     background: linear-gradient(180deg, rgba(97,32,22,0) 40%, rgba(97,32,22,.28)); }
.jcard .art svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; z-index: 1; }

/* editorial banners: a photo the page draws a line of type over */
.banner { position: relative; margin: 2.4rem 0 0; border-radius: var(--radius); overflow: hidden;
          box-shadow: var(--shadow-lg); aspect-ratio: 21 / 9; background: var(--surface-2); }
.banner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; display: block; }
.banner.low img { object-position: 50% 92%; }  /* the subject sits at the bottom of the frame */
.banner figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1.6rem;
                     color: #fff; font-family: var(--serif); font-size: clamp(1.05rem, 1rem + .6vw, 1.4rem);
                     line-height: 1.3; background: linear-gradient(180deg, rgba(51,23,15,0), rgba(51,23,15,.62)); }
.banner figcaption .eyebrow { display: block; color: rgba(255,255,255,.8); margin-bottom: .3rem; }
@media (max-width: 640px) { .banner { aspect-ratio: 4 / 3; } .banner figcaption { padding: 1rem 1.1rem; } }
.jcard .body { padding: 1rem 1.1rem 1.15rem; }
.jcard b { font-family: var(--serif); font-size: 1.12rem; display: block; margin-bottom: .2rem; }
.jcard span { font-size: .86rem; color: var(--ink-2); }
.jcard .days { font-size: .72rem; color: var(--ink-3); letter-spacing: .1em; text-transform: uppercase;
               margin-top: .6rem; font-weight: 600; }

/* ---- trust */
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.tcard { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
         padding: 1.3rem 1.35rem; box-shadow: var(--shadow); display: flex; gap: 1rem; }
.tcard svg { width: 30px; height: 30px; flex: none; margin-top: .15rem; }
.tcard b { display: block; font-family: var(--serif); font-size: 1.12rem; margin-bottom: .25rem; }
.tcard p { margin: 0; font-size: .93rem; color: var(--ink-2); }
.honest { margin-top: 1.4rem; padding: 1.2rem 1.35rem; border-radius: var(--radius);
          background: var(--surface-3); border: 1px solid var(--line-soft); color: var(--ink-2);
          font-size: .95rem; }
.honest b { color: var(--ink); }

/* ---- timeline */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6%; right: 6%; top: 11px; height: 2px;
                    background: var(--line); }
.tl { position: relative; padding-top: 1.6rem; }
.tl::before { content: ""; position: absolute; top: 4px; left: 0; width: 16px; height: 16px;
              border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.tl b { font-family: var(--serif); font-size: 1.25rem; display: block; color: var(--accent-ink); }
.tl span { font-size: .92rem; color: var(--ink-2); }

/* ---- founder quote */
.quote { max-width: 760px; margin: 0 auto; text-align: center; }
.quote blockquote { font-family: var(--serif); font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.9rem);
                    line-height: 1.35; color: var(--ink); margin: 0 0 1.2rem; letter-spacing: -.01em; }
.quote blockquote::before { content: "“"; color: var(--clay); }
.quote blockquote::after { content: "”"; color: var(--clay); }
.quote cite { font-style: normal; color: var(--ink-3); font-size: .9rem; }

/* ---- faq */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--line-soft); padding: .3rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line-soft); }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 2.2rem 1rem 0; position: relative;
               font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: .85rem; color: var(--accent);
                      font-size: 1.5rem; line-height: 1; font-family: var(--sans); }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 0 1.1rem; color: var(--ink-2); max-width: 64ch; }

/* ---- final cta + footer */
.cta-band {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-ink) 100%);
  color: #fff; border-radius: 28px; padding: clamp(2.4rem, 5vw, 4.5rem) clamp(1.4rem, 4vw, 4rem);
  text-align: center; position: relative; overflow: hidden;
}
.cta-band::after { content: ""; position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%;
                   right: -20%; top: -40%; background: radial-gradient(closest-side, rgba(255,255,255,.14), transparent 70%); }
.cta-band h2 { color: #fff; margin-bottom: .6rem; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 46rem; margin: 0 auto 1.6rem; font-size: 1.05rem; }
.cta-band .btn.light { font-size: 1.02rem; padding: .85rem 1.6rem; }
.cta-band small { display: block; margin-top: 1rem; color: rgba(255,255,255,.7); }

.lp-foot { padding: 2.5rem 0 3rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem;
           align-items: center; color: var(--ink-3); font-size: .84rem; }
.lp-foot .brand { font-size: .9rem; }
.lp-foot a { color: var(--ink-2); }
.lp-foot .spacer { flex: 1; }

/* ---- responsive */
@media (max-width: 960px) {
  .strip, .dims { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem; }
  .steps::before { display: none; }
  .journeys { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { display: none; }
}
@media (max-width: 800px) {
  .lp-hero .grid { grid-template-columns: 1fr; }
  .lp-hero h1 { max-width: none; }
  .stage { margin-top: 1rem; }
  .float-card.fc1 { right: 0; top: 19%; }
  .float-card.fc2 { left: 0; bottom: 6%; }
  .panel, .panel.flip { grid-template-columns: 1fr; }
  .panel.flip .p-text { order: 0; }
  .trust-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .strip { grid-template-columns: 1fr; gap: .8rem; padding: 1.2rem; }
  .strip div { border-bottom: 1px solid var(--line-soft); padding-bottom: .8rem; }
  .strip div:last-child { border-bottom: 0; padding-bottom: 0; }
  .steps, .journeys, .dims, .tiles { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .float-card { width: 62vw; font-size: .78rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aura span, .float-card { animation: none !important; }
  .btn, .tile { transition: none; }
}

/* =====================================================================
   Studio and coaching
   ===================================================================== */

.player { width: 100%; display: block; margin-top: .5rem; }
audio.player { height: 40px; }
video.player { border-radius: var(--radius-sm); background: #000; aspect-ratio: 16 / 9; }
.track { padding: .8rem 0; border-bottom: 1px solid var(--line-soft); }
.track:last-child { border-bottom: 0; }
.track-head { display: flex; align-items: center; gap: .8rem; }
.track-head > .dim { margin-left: auto; font-size: .82rem; white-space: nowrap; }
.step-n {
  width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink); font-family: var(--serif); font-weight: 600;
}
.affirm {
  margin: .6rem 0; padding: 1.2rem 1.4rem; border-radius: var(--radius); background: var(--accent-soft);
  color: var(--accent-ink); font-family: var(--serif); font-size: 1.28rem; line-height: 1.4;
  border-left: 3px solid var(--accent);
}
.affirm footer { font-family: var(--sans); font-size: .82rem; color: var(--ink-3); margin-top: .5rem; }
.serieslink .t { font-size: 1.2rem; }

/* landing: listen + coaching */
.listen { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1rem; }
.listen-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
               padding: 1.4rem 1.5rem; box-shadow: var(--shadow); }
.listen-card.feature { background: linear-gradient(160deg, var(--surface) 0%, var(--accent-soft) 100%); }
.listen-card h3 { font-size: 1.4rem; margin: .2rem 0 .8rem; }
.listen-card ul { margin: 0; padding: 0; list-style: none; }
.listen-card li { padding: .45rem 0; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); font-size: .95rem; }
.listen-card li:last-child { border-bottom: 0; }
.listen-card li b { color: var(--ink); }
.parts { margin: 0; padding: 0; list-style: none; counter-reset: p; }
.parts li { display: flex; gap: .7rem; align-items: baseline; padding: .5rem 0; border-bottom: 1px solid var(--line-soft); }
.parts li::before { counter-increment: p; content: counter(p); width: 24px; height: 24px; border-radius: 50%;
                    background: var(--accent); color: #fff; font-size: .75rem; display: grid; place-items: center;
                    flex: none; font-weight: 600; }
.parts li span:last-child { margin-left: auto; font-size: .82rem; }
.coach { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.coach-points { margin: 0; padding: 0; list-style: none; }
.coach-points li { padding: .45rem 0 .45rem 1.6rem; position: relative; color: var(--ink-2); }
.coach-points li::before { content: ""; position: absolute; left: 0; top: .78rem; width: 10px; height: 10px;
                           border-radius: 50%; background: var(--clay); }
.coach-art svg { width: min(360px, 80%); display: block; margin: 0 auto; filter: drop-shadow(var(--shadow-lg)); }
@media (max-width: 800px) { .listen, .coach { grid-template-columns: 1fr; } .coach-art { order: -1; } .coach-art svg { width: 55%; } }

/* =====================================================================
   2026-10-20: multi-select check-in, measure help, reading themes,
   journal/library grids, the noticing card, six-item nav
   ===================================================================== */

/* the "i" beside each measure */
.scale .q { display: flex; align-items: baseline; gap: .45rem; }
button.help {
  flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-3); font: 600 .72rem/1 var(--serif);
  font-style: italic; cursor: pointer; padding: 0; position: relative; top: -1px;
}
button.help:hover, button.help[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.scale .tip { margin: .2rem 0 .4rem; font-size: .88rem; color: var(--ink-2); line-height: 1.45;
              padding: .55rem .75rem; background: var(--surface-3); border-radius: var(--radius-sm); }

/* affect groups */
.grp { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
       margin: 0 0 .4rem; color: var(--ink-3); }
.grp.difficult { color: var(--bad); }
.grp.positive { color: var(--good); }
.chip.positive input:checked + span { background: var(--good-soft); border-color: var(--good); color: var(--good); }
.chip.difficult input:checked + span { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }

/* the noticing */
.card.discover { background: linear-gradient(160deg, var(--surface) 0%, var(--accent-soft) 100%);
                 border-color: transparent; }
.card.discover.quiet { background: var(--surface-3); }
.card.discover .statement { font-family: var(--serif); font-size: 1.22rem; line-height: 1.35;
                            color: var(--ink); margin: 0 0 .4rem; }
.card.discover .watch { margin: .7rem 0 0; font-size: .86rem; color: var(--ink-3);
                        padding-left: .8rem; border-left: 2px solid var(--clay); }

/* reading themes: one shelf at a time */
.theme-tabs { gap: .35rem; }
.theme-tabs .chiplink { cursor: pointer; font-family: inherit; }
.theme-tabs .chiplink .dim { font-size: .74rem; margin-left: .3rem; }
.theme-tabs .chiplink.on .dim { color: var(--accent-ink); }
@media (max-width: 560px) {
  .theme-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: none; }
  .theme-tabs::-webkit-scrollbar { display: none; }
  .theme-tabs .chiplink { white-space: nowrap; flex: none; }
}

/* journal + library grids */
.prompt-grid, .lib-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.prompt-grid .tile, .lib-grid .tile { margin: 0; }
@media (max-width: 480px) { .prompt-grid, .lib-grid { grid-template-columns: 1fr; } }
details.more { margin-top: .8rem; }
details.more > summary { cursor: pointer; list-style: none; color: var(--accent); font-size: .92rem; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "+ "; }
details.more[open] > summary::before { content: "– "; }

/* six items in the bottom nav on a phone */
@media (max-width: 420px) { .nav a { font-size: .62rem; padding: .45rem 0 .3rem; } .nav a .ico { font-size: 1.05rem; } }

/* =====================================================================
   v2 screens (2026-10-20): to the owner's mockups
   ===================================================================== */

/* app top bar: brand centred, sections underneath */
.topbar.app .topbar-inner { justify-content: center; padding: .7rem 1rem .25rem; }
.topbar.app .brand { flex-direction: column; gap: .3rem; font-size: .92rem; letter-spacing: .28em; }
.topbar.app .brand .mark { width: 34px; height: 34px; }
.topbar.app .brand .word { display: inline !important; }
.toplinks { display: flex; justify-content: center; gap: 1.4rem; padding: .25rem 1rem .55rem;
            overflow-x: auto; scrollbar-width: none; }
.toplinks::-webkit-scrollbar { display: none; }
.toplinks a.mini { color: var(--ink-2); font-size: .9rem; white-space: nowrap; padding-bottom: .3rem;
                   border-bottom: 2px solid transparent; }
.toplinks a.mini.on { color: var(--accent); border-bottom-color: var(--accent); }
.toplinks a.mini:hover { text-decoration: none; color: var(--accent); }
@media (max-width: 560px) { .toplinks { justify-content: flex-start; gap: 1.1rem; } }

/* wizard */
.wizard { margin-top: 1rem; }
.wiz-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .45rem; }
.wiz-back, .wiz-skip { background: none; border: 0; color: var(--ink-2); cursor: pointer; padding: .2rem .3rem;
                       font: inherit; font-size: .92rem; }
.wiz-step { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.wiz-step b { color: var(--ink-2); }
.wiz-bar { height: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-bottom: 1.4rem; }
.wiz-bar span { display: block; height: 100%; background: var(--accent-ink); border-radius: 3px; transition: width .3s ease; }
.wizard:not(.js) .wiz-head, .wizard:not(.js) .wiz-bar, .wizard:not(.js) [data-next] { display: none; }
.wizard:not(.js) .wiz-pane { margin-bottom: 2rem; }
.wiz-title { text-align: center; font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.2rem); margin: 0 0 .3rem; }
.wiz-sub { text-align: center; color: var(--ink-2); margin: 0 0 1.3rem; }
.wiz-title.left, .wiz-sub.left { text-align: left; }
.wiz-next { margin-top: 1.4rem; }
.wiz-warn { color: var(--bad); font-size: .9rem; text-align: center; margin: .8rem 0 0; }
.btn .ico { vertical-align: -4px; margin-left: .25rem; }

/* picture tiles (contexts, needs) */
.ptiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.ptile { position: relative; cursor: pointer; margin: 0; }
.ptile input { position: absolute; opacity: 0; pointer-events: none; }
.pimg { display: block; aspect-ratio: 4 / 3; border-radius: 12px 12px 0 0; overflow: hidden; position: relative;
        border: 1px solid var(--line-soft); border-bottom: 0; }
.pimg .art, .pimg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.plab { display: block; background: var(--surface); border: 1px solid var(--line-soft); border-top: 0;
        border-radius: 0 0 12px 12px; text-align: center; font-size: .8rem; line-height: 1.25;
        padding: .45rem .3rem .5rem; color: var(--ink); min-height: 2.9em; }
.tick { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%;
        background: var(--accent); color: #fff; font-style: normal; font-size: .75rem; display: none;
        place-items: center; }
.ptile input:checked ~ .pimg { outline: 3px solid var(--accent); outline-offset: -3px; }
.ptile input:checked ~ .pimg .tick { display: grid; }
.ptile input:checked ~ .plab { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.ptile input:focus-visible ~ .pimg { outline: 3px solid var(--accent); }
@media (max-width: 420px) { .ptiles { gap: .4rem; } .plab { font-size: .7rem; } .agroup { padding: .7rem .55rem; } .atiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; } }

/* icon tiles (affects) */
.agroup { border-radius: 16px; padding: .9rem; margin-bottom: .8rem; }
.agroup.difficult { background: #F8E7E3; }
.agroup.positive { background: #E7EFE6; }
.agroup.neutral { background: #EFEBE8; }
.agroup-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.agroup-head span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--ink); }
.agroup-head em { font-style: normal; font-size: .76rem; color: var(--ink-3); display: flex; gap: .3rem; align-items: center; }
.atiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; }
.atile { margin: 0; cursor: pointer; }
.atile input { position: absolute; opacity: 0; pointer-events: none; }
.atile > span { display: flex; flex-direction: column; align-items: center; gap: .35rem; text-align: center;
                background: rgba(255,255,255,.75); border: 1px solid rgba(0,0,0,.05); border-radius: 12px;
                padding: .7rem .3rem .55rem; color: var(--ink-2); height: 100%; transition: background .12s; }
.atile small { font-size: .72rem; line-height: 1.2; color: var(--ink); }
.atile input:checked + span { background: #fff; border-color: currentColor; box-shadow: 0 0 0 2px currentColor inset; }
.difficult .atile input:checked + span { color: var(--bad); }
.positive .atile input:checked + span { color: var(--good); }
.neutral .atile input:checked + span { color: var(--ink-2); }
.atile input:focus-visible + span { outline: 2px solid var(--accent); }

/* slider rows */
.srows { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: .5rem 1rem; }
.srow { display: grid; grid-template-columns: 30px minmax(0, 1.1fr) minmax(0, 1.4fr) 28px; align-items: center;
        gap: .6rem; padding: .55rem 0; border-bottom: 1px solid var(--line-soft); }
.srow:last-child { border-bottom: 0; }
.sico { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; color: var(--ink-2); }
.slab { margin: 0; color: var(--ink); font-size: .95rem; display: flex; align-items: center; gap: .35rem; }
.srow input[type=range] { margin: 0; }
.sval { font-family: var(--serif); font-size: 1.15rem; color: var(--accent); text-align: right; }
.srow.untouched .sval { color: var(--ink-3); }
.srow.untouched input[type=range]::-webkit-slider-thumb { border-color: var(--ink-3); }
.srow .tip { grid-column: 2 / -1; margin: 0; font-size: .86rem; color: var(--ink-2); background: var(--surface-3);
             padding: .5rem .7rem; border-radius: 10px; }
@media (max-width: 480px) {
  .srow { grid-template-columns: 28px 1fr 28px; }
  .srow input[type=range] { grid-column: 1 / -1; }
  .srow .sval { grid-row: 1; grid-column: 3; }
}
/* hover bubble for the "i" on devices with a pointer */
button.help { position: relative; }
@media (hover: hover) {
  button.help:hover::after {
    content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
    width: 240px; background: var(--ink); color: var(--bg); font: 400 .82rem/1.4 var(--sans); font-style: normal;
    text-align: left; padding: .55rem .7rem; border-radius: 10px; z-index: 20; box-shadow: var(--shadow-lg);
  }
}

details.else { margin-top: .8rem; background: var(--surface-3); border-radius: 14px; padding: .75rem 1rem; }
details.else > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: .5rem;
                         justify-content: center; color: var(--ink-2); }
details.else > summary::-webkit-details-marker { display: none; }

/* "I need..." */
.pills3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.pill { margin: 0; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: block; text-align: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
             padding: .7rem .4rem; color: var(--ink); font-size: .92rem; }
.pill input:checked + span { background: #C9796A; border-color: #C9796A; color: #fff; }
.rows { display: grid; gap: .45rem; }
.rowpick { margin: 0; cursor: pointer; }
.rowpick input { position: absolute; opacity: 0; pointer-events: none; }
.rowpick span { display: flex; align-items: center; gap: .9rem; border: 1px solid var(--line); border-radius: 14px;
                background: var(--surface); padding: .7rem 1rem; color: var(--ink); }
.rowpick span .ico { color: var(--accent); }
.rowpick input:checked + span { background: var(--accent-soft); border-color: var(--accent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1.2rem; }
.nums { display: grid; grid-template-columns: repeat(10, 1fr); gap: .3rem; }
.num { margin: 0; cursor: pointer; }
.num input { position: absolute; opacity: 0; pointer-events: none; }
.num span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line);
            background: var(--surface); color: var(--ink); font-size: .95rem; }
.num input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.wizard .anchors { display: flex; justify-content: space-between; font-size: .8rem; color: var(--ink-3); margin: .4rem 0 1.2rem; }
.encourage { text-align: center; background: var(--accent-soft); border-radius: 18px; padding: 1.3rem 1rem; margin-bottom: 1.2rem; color: var(--accent); }
.encourage .big { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); margin: .4rem 0 .5rem; line-height: 1.3; }
.encourage .small { font-size: .9rem; color: var(--ink-2); margin: 0; border-top: 1px solid var(--line); padding-top: .6rem; display: inline-block; }

/* journal */
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.ppill { display: flex; align-items: center; gap: .8rem; border: 1px solid var(--line); border-radius: 999px;
         background: var(--surface); padding: .55rem 1rem .55rem .55rem; color: var(--ink); line-height: 1.3; font-size: .95rem; }
.ppill:hover { border-color: var(--accent); text-decoration: none; }
.ppill .pic { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink);
              display: grid; place-items: center; }
.ppill.tall { border-radius: 18px; align-items: flex-start; padding: .8rem; }
.ppill.tall b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.02rem; }
.ppill.tall small { display: block; color: var(--ink-3); font-size: .82rem; margin-top: .15rem; }
@media (max-width: 480px) { .pgrid { grid-template-columns: 1fr; } }
.entry { display: grid; grid-template-columns: 62px minmax(0, 1fr) 20px; align-items: center; gap: .8rem; padding: .85rem 0;
         border-bottom: 1px solid var(--line-soft); color: var(--ink); }
.entry:last-of-type { border-bottom: 0; }
.entry:hover { text-decoration: none; }
.edate { font-size: .74rem; letter-spacing: .08em; color: var(--ink-2); border-right: 1px solid var(--line-soft); line-height: 1.5; }
.edate small { font-size: .74rem; color: var(--ink-3); }
.etext b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.08rem; }
.etext small { display: block; color: var(--ink-3); font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry .ico { color: var(--ink-3); }

/* library + reading */
.foryou { display: grid; grid-template-columns: 1.4fr 1fr; border-radius: var(--radius); overflow: hidden;
          background: linear-gradient(135deg, #F7E3DA, #F0D2C3); color: var(--ink); box-shadow: var(--shadow); }
.foryou.link:hover { text-decoration: none; }
.fy-text { padding: 1.2rem 1.3rem; }
.fy-text h2 { font-size: 1.5rem; margin: .1rem 0 .4rem; }
.fy-img img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 160px; }
.intents { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.intent { display: flex; align-items: center; gap: .8rem; border: 1px solid var(--line); border-radius: 999px;
          padding: .6rem 1rem; background: var(--surface); color: var(--ink); }
.intent .ico { color: var(--accent); }
.intent.on { background: var(--accent-soft); border-color: var(--accent); }
.intent:hover { text-decoration: none; border-color: var(--accent); }
.lrow { display: grid; grid-template-columns: 64px minmax(0, 1fr) 20px; gap: .9rem; align-items: center; padding: .75rem 0;
        border-bottom: 1px solid var(--line-soft); color: var(--ink); }
.lrow:last-child { border-bottom: 0; }
.lrow:hover { text-decoration: none; }
.lrow img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; display: block; }
.lrow.big { grid-template-columns: 96px minmax(0, 1fr) 20px; }
.lrow.big img { width: 96px; height: 84px; }
.ltext b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.06rem; line-height: 1.25; }
.ltext small { display: block; color: var(--ink-2); font-size: .86rem; line-height: 1.35; margin-top: .1rem; }
.ltext small.src { color: var(--ink-3); }
.ltext em { display: block; font-style: normal; color: var(--ink-3); font-size: .78rem; margin-top: .2rem; }
.lrow .ico { color: var(--ink-3); }
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.ttile { display: flex; gap: .7rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line-soft);
         border-radius: 14px; padding: .85rem .75rem; color: var(--ink); box-shadow: var(--shadow); }
.ttile:hover { text-decoration: none; border-color: var(--clay); }
.tico { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink);
        display: grid; place-items: center; }
.ttile b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.04rem; }
.ttile small { display: block; color: var(--ink-3); font-size: .78rem; line-height: 1.3; }
@media (max-width: 560px) { .tgrid { grid-template-columns: 1fr 1fr; } .foryou { grid-template-columns: 1fr 120px; } .fy-text h2 { font-size: 1.25rem; } }
.theme-hero { position: relative; }
.theme-badge { position: absolute; right: 0; top: 2.6rem; width: 58px; height: 58px; border-radius: 50%;
               background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; }

/* share */
.share-wrap { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 1.6rem; align-items: start; margin-bottom: 1rem; }
.share-preview svg { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: var(--shadow-lg); }
.stmts { display: grid; gap: .4rem; }
.stmt { display: block; border: 1px solid var(--line); border-radius: 12px; padding: .6rem .85rem; background: var(--surface);
        color: var(--ink); font-family: var(--serif); font-size: 1.05rem; }
.stmt.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.stmt:hover { text-decoration: none; border-color: var(--accent); }
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1.4rem; }
.feats > div { display: flex; gap: .6rem; color: var(--accent-ink); }
.feats span { color: var(--ink-2); font-size: .82rem; line-height: 1.35; }
.feats b { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .9rem; }
.share-card svg { display: block; width: 100%; height: auto; border-radius: 14px; }
@media (max-width: 640px) { .share-wrap { grid-template-columns: 1fr; } .share-preview { max-width: 300px; margin: 0 auto; } }
