/* The Thought Panel rebrand: shared tokens and pieces (Figma: The Thought Panel Rebrand).
   Display face in the design is FAIRE Octave Regular, so headings ask for weight 400. Octave is used when installed on the
   viewer's computer. Everyone else gets "TP Display": Newsreader (OFL, fonts/OFL.txt) fixed at weight 340 and optical size 18,
   which is the cut that sits closest to Octave Regular. It answers to any weight, so 400 never renders heavier than the design. */
@font-face { font-family: "FAIRE Octave"; src: local("FAIRE Octave Trial Variable"), local("FAIRE Octave Variable"), local("FAIRE Octave"); font-weight: 100 900; }
@font-face { font-family: "TP Display"; src: url("/fonts/newsreader-display.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
html { font-optical-sizing: none; }
:root {
  --ink: #181a1d; --ink-70: rgba(24,26,29,.7); --ink-50: rgba(24,26,29,.5);
  --slate: #565f70; --stone: #e1dfd8; --cream: #fffdf7; 
  --blue: #1a52a5; --blue-dark: #164690; --blue-soft: #e8eef7; --dark: #2c3339;
  --paper: #f9f9f9; --hair: #d8dde0; --grey: #767676;
  /* names the older member pages already use */
  --bg: var(--paper); --muted: #6b6f76; --line: var(--hair); --accent: var(--blue); --accent-soft: var(--blue-soft);
  --serif: "FAIRE Octave", "FAIRE Octave Trial Variable", "TP Display", Newsreader, Georgia, serif;
  --sans: Inter, system-ui, -apple-system, sans-serif;
}
.serif { font-family: var(--serif); font-weight: 400; line-height: 1.16; letter-spacing: -.02em; font-variant-numeric: oldstyle-nums; }

/* wordmark: live text in the serif face, as in the Figma nav */
.brand { font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.16; letter-spacing: -.02em; white-space: nowrap; color: inherit; text-decoration: none; }

/* pills */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 7px 14px; border: 0; border-radius: 100px; font: 400 13px/1.36 var(--sans); letter-spacing: -.02em; white-space: nowrap; text-decoration: none; cursor: pointer; color: inherit; background: none; transition: background .2s, color .2s; }
.pill.ghost:hover { background: rgba(127,127,127,.14); }
.pill.blue { background: var(--blue); color: #fff; }
.pill.blue:hover { background: var(--blue-dark); }
.pill.white { background: #fff; color: #000; }
.pill.white:hover { background: #f3f2ee; }
.pill.go { padding-right: 7px; }
.pill.go i { display: grid; place-items: center; width: 20px; height: 20px; transition: transform .2s; }
.pill.go:hover i { transform: translateX(2px); }

/* step dots */
.dots { display: inline-flex; gap: 7.4px; padding: 6.9px; border: 1px solid var(--hair); border-radius: 100px; background: transparent; }
.dots button, .dots i { display: block; width: 12.6px; height: 12.6px; padding: 0; border: 0; border-radius: 50%; background: #dedede; transition: background .3s; }
.dots button { cursor: pointer; }
.dots .on { background: var(--ink); }

/* top bar: brand centred. Signed-out pages put actions in .right; member pages use .bar.member (see member.css). */
.bar { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 56px; padding: 12px 24px; background: #fff; border-bottom: 1px solid rgba(24,26,29,.08); color: var(--ink); }
.bar .left { display: flex; gap: 4px; align-items: center; min-width: 0; }
.bar .right { display: flex; gap: 8px; align-items: center; justify-content: flex-end; min-width: 0; }
@media (max-width: 640px) {
  .bar { padding: 10px 16px; grid-template-columns: auto 1fr; }
  .bar .left:empty { display: none; }
}
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* sign up + log in: the hero photo with one card on it */
.authpage { margin: 0; min-height: 100svh; display: flex; flex-direction: column; background: #525b6a; color: var(--ink); font: 13px/1.36 var(--sans); letter-spacing: -.02em; -webkit-font-smoothing: antialiased; }
.authpage * { box-sizing: border-box; }
.authpage main { position: relative; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 48px 16px; }
/* the hero photo behind one card: she sits at the left, clear of the card */
.authpage main { overflow: hidden; }
.authpage main picture { position: absolute; inset: 0; }  /* out of the layout, so the card is the only thing being centred */
/* The picture keeps its own 3:2 shape and sits along the bottom, with matching sky above it on tall windows, so she and
   the tree are never cropped out. On wide, short windows only the empty wall at the bottom is trimmed. */
.authpage main { min-height: 56vw; grid-template-rows: minmax(min-content, calc(100svh - 152px)); align-content: start; }  /* the card centres in the visible window even when the picture runs taller */
.authpage main img { position: absolute; inset: auto 0 0 0; width: 100%; height: min(100%, 66.65vw); object-fit: cover; object-position: 50% 0; -webkit-mask-image: linear-gradient(transparent, #000 10%); mask-image: linear-gradient(transparent, #000 10%); }
.authcard { position: relative; width: 404px; max-width: 100%; padding: 24px; background: #fff; border-radius: 24px; text-align: center; }
.authcard h1 { margin: 20px 0 10px; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.16; letter-spacing: -.02em; }
.authcard .sub { margin: 0 0 44px; font-size: 14px; color: var(--ink-70); }
.authcard .social { display: grid; gap: 12px; }
.authcard button, .authcard input { width: 100%; height: 44px; border-radius: 100px; font: 400 13px/1.36 var(--sans); letter-spacing: -.02em; }
.authcard .social button { display: flex; align-items: center; justify-content: center; gap: 8px; background: #fff; color: var(--ink); border: 1px solid var(--hair); font-weight: 500; cursor: pointer; transition: background .2s, border-color .2s; }
.authcard .social button:hover { background: var(--paper); border-color: #c3c9cd; }
.authcard .or { margin: 40px 0 14px; font-size: 12px; color: var(--ink-70); }
.authcard input { height: 40px; padding: 0 16px; border: 1px solid #e9ecee; text-align: center; color: var(--ink); background: #fff; }
.authcard input::placeholder { color: #828385; }
.authcard input:focus { outline: 0; border-color: var(--blue); }
.authcard button[type=submit] { height: 42px; margin-top: 12px; border: 0; background: var(--blue); color: #fff; cursor: pointer; transition: background .2s; }
.authcard button[type=submit]:hover { background: var(--blue-dark); }
.authcard button:disabled { opacity: .6; }
.authcard #msg { font-size: 13px; color: #8a2b2b; }
.authcard #msg:not(:empty) { margin-top: 14px; }
.authcard #msg a, .authcard .alt a { color: var(--blue); }
.authcard .alt { margin: 18px 0 0; font-size: 13px; color: var(--ink-70); }
/* phones: sky behind the card, with her and the wall along the bottom of the screen */
@media (max-width: 640px) {
  .authpage main { place-items: start center; padding: 28px 16px 0; min-height: 0; grid-template-rows: auto; }
  .authpage main img { inset: auto 0 0 0; height: auto; aspect-ratio: 800 / 760; object-position: 0 100%; -webkit-mask-image: linear-gradient(transparent, #000 14%); mask-image: linear-gradient(transparent, #000 14%); }
  .authpage main::after { content: ""; display: block; height: 80vw; }
}

/* buttons: blue with white text; anything that can't be pressed is grey */
button:disabled:is([type=submit], .go, .act, .btn, .ann-btn, .pill, #cashout), .fb-row button:disabled, a.pill[aria-disabled=true] { background: #e3e6e8 !important; color: #8a8f96 !important; opacity: 1 !important; cursor: default; box-shadow: none !important; }
