/* foldoy mail: the shared ground for sign-up, log-in and the inbox.
   The identity of test.foldoy.com (directions15/site/style.css): near-black, warm off-white, mint used sparingly,
   Geist, pill buttons, dark rounded plates. App screens run denser than the landing; nothing else changes. */

@font-face { font-family: "Geist"; src: url("fonts/Geist-var.a147f99cd533.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #07080C; --plate: #0F1116; --plate-2: #15181F; --plate-3: #1C1F27;
  --ink: #F3F1EC; --ink-2: #CFCAC1; --mute: #8D9099;
  --ring: rgba(243, 241, 236, .3); --ring-2: rgba(243, 241, 236, .52); --hair: rgba(243, 241, 236, .08);
  --mint: #93E6C8; --warn: #FFB4A2; --accent: var(--mint); --ink-rgb: 243, 241, 236;
  --gut: clamp(20px, 5.6vw, 81px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark; background: var(--bg);
}
html, body { margin: 0; background: var(--bg); }
body { color: var(--ink); font: 500 16px/1.45 "Geist", ui-sans-serif, system-ui, sans-serif; letter-spacing: -.012em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; }
:where(h1, h2, h3, p, ul, ol, figure) { margin: 0; }
:where(ul, ol) { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
b, strong { font-weight: 600; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; margin: 0; padding: 0; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.word { font-size: 22px; font-weight: 650; letter-spacing: -.045em; }
.mint { color: var(--mint); }
.mute { color: var(--mute); }

/* pills, as on the landing */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: 16px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap;
  transition: background-color .2s, box-shadow .2s, color .2s, opacity .2s, transform .25s var(--ease); }
.pill:active:not(:disabled) { transform: scale(.98); }
.pill.light { background: var(--ink); color: var(--bg); }
.pill.light:hover:not(:disabled) { background: #fff; }
.pill.line { box-shadow: inset 0 0 0 1px var(--ring); color: var(--ink); }
.pill.line:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--ring-2); }
.pill.soft { background: var(--plate-2); color: var(--ink); }
.pill.soft:hover:not(:disabled) { background: var(--plate-3); }
.pill.danger { box-shadow: inset 0 0 0 1px rgba(255, 180, 162, .4); color: var(--warn); }
.pill.danger:hover:not(:disabled) { box-shadow: inset 0 0 0 1px rgba(255, 180, 162, .7); }
.pill.sm { height: 38px; padding: 0 16px; font-size: 15px; }
.pill.md { height: 44px; padding: 0 20px; font-size: 15px; }
.pill:disabled { opacity: .45; }
.pill.wide { width: 100%; }
.pill[aria-busy="true"] { pointer-events: none; }

/* fields: a pill-shaped well, the landing's address field */
.field { position: relative; display: flex; align-items: center; height: 56px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--ring);
  background: var(--bg); font-size: 16px; transition: box-shadow .2s; }
.field:hover { box-shadow: inset 0 0 0 1px var(--ring-2); }
.field:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink); }
.field.bad { box-shadow: inset 0 0 0 1.5px var(--warn); }
.field > input { flex: 1; min-width: 0; height: 100%; padding: 0 24px; font-weight: 500; }
.field > input:focus-visible, .field textarea:focus-visible { outline: none; }
.field input::placeholder, textarea::placeholder { color: var(--mute); opacity: 1; }
.field .end { flex: none; margin-right: 8px; height: 40px; padding: 0 14px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.field .end:hover { color: var(--ink); background: var(--plate-2); }
.label { display: block; margin: 0 0 10px 4px; font-size: 16px; font-weight: 600; color: var(--ink); }
.label span { font-weight: 500; color: var(--ink-2); }
.say:empty { display: none; }
.say { margin: 10px 4px 0; min-height: 22px; font-size: 15px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.say.ok { color: var(--mint); }
.say.bad { color: var(--warn); }
.say .ck { display: inline-block; vertical-align: -3px; margin-right: 6px; }

/* the switch */
.sw { position: relative; flex: none; width: 52px; height: 32px; border-radius: 999px; background: var(--plate-3); box-shadow: inset 0 0 0 1px var(--ring);
  transition: background-color .2s, box-shadow .2s; }
.sw::after { content: ""; position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink-2);
  transition: transform .25s var(--ease), background-color .2s; }
.sw[aria-checked="true"] { background: var(--mint); box-shadow: none; }
.sw[aria-checked="true"]::after { transform: translateX(20px); background: var(--bg); }
.sw:focus-visible { outline-offset: 3px; border-radius: 999px; }

/* the check box */
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 16px; line-height: 1.4; }
.check input { appearance: none; flex: none; width: 24px; height: 24px; margin: -1px 0 0; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--ring-2);
  display: grid; place-items: center; cursor: pointer; transition: background-color .15s; }
.check input:checked { background: var(--ink); box-shadow: none; }
.check input:checked::after { content: ""; width: 14px; height: 14px; background: var(--bg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.check input:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.check a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ring-2); }

/* the domain menu (the landing's picker) */
.pick-field { padding-left: 0; }
.pick-field > input { flex: 0 1 auto; width: 4ch; min-width: 3ch; max-width: 60%; padding: 0 0 0 24px; box-sizing: content-box; font-weight: 600; text-overflow: ellipsis; }
.pick-field .mirror { position: absolute; visibility: hidden; white-space: pre; pointer-events: none; font-weight: 600; }
.dom { flex: 1; margin-left: -2px; display: flex; align-items: center; justify-content: space-between; height: 100%; padding: 0 9px 0 0; border-radius: 0 999px 999px 0;
  text-align: left; white-space: nowrap; font-weight: 600; }
.dom:focus-visible { outline-offset: -3px; border-radius: 999px; }
.chev { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(243, 241, 236, .08);
  transition: background-color .2s, transform .3s var(--ease); }
.chev svg { width: 14px; height: 14px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dom:hover .chev { background: rgba(243, 241, 236, .14); }
.dom[aria-expanded="true"] .chev { transform: rotate(180deg); }
.menu { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 10px); padding: 8px; border-radius: 28px; background: #14161C;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), inset 0 0 0 1px var(--hair);
  opacity: 0; transform-origin: 50% 0; transform: translateY(-6px) scale(.985); transition: opacity .18s, transform .22s var(--ease); }
.menu.open { opacity: 1; transform: none; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 54px; padding: 0 20px; border-radius: 999px;
  cursor: pointer; outline: 0; transition: background-color .15s; }
.opt b { font-weight: 600; }
.opt span { color: var(--ink-2); }
.opt:hover, .opt:focus-visible { background: rgba(243, 241, 236, .07); }
.opt[aria-selected="true"] { background: rgba(243, 241, 236, .11); }
.opt[aria-selected="true"] span { color: var(--ink); }
.opt .plus { color: var(--mint); }
.menu .note { margin: 8px 20px 10px; font-size: 15px; line-height: 1.4; color: var(--ink-2); }

/* rows with right-aligned values (the info page's .rows) */
.kv { display: flex; flex-direction: column; gap: 4px; }
.kv li { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 10px 18px; border-radius: 14px; background: var(--plate); }
.kv li > span:first-child { color: var(--ink-2); }
.kv li > b, .kv li > span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }

/* plates and the drawings on them */
.plate { position: relative; border-radius: 28px; background: var(--plate); }
.art { display: block; width: 100%; height: auto; }

/* a short-lived note at the bottom */
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 12px); opacity: 0;
  display: flex; align-items: center; gap: 14px; width: max-content; max-width: min(520px, calc(100vw - 32px)); padding: 14px 22px; min-height: 52px; height: auto;
  border-radius: 26px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 15px; line-height: 1.35; box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
  transition: opacity .2s, transform .25s var(--ease); pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast:has(button) { padding: 7px 7px 7px 22px; }
.toast button { flex: none; height: 38px; padding: 0 14px; border-radius: 999px; font-weight: 600; }
.toast button:hover { background: rgba(7, 8, 12, .08); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
}
/* the stand-in (demo data, only on this machine) marks every page it answers for */
.demo-mark { position: fixed; z-index: 90; right: 300px; top: 18px; padding: 6px 12px; border-radius: 999px; background: #FFB4A2; color: #07080C; font: 600 13px/1.2 "Geist", system-ui, sans-serif; pointer-events: none; }
/* it sits in the top bar's empty middle, never over a control; on phones at the top right of the list, and away while reading */
@media (max-width: 1023px) { .demo-mark { right: 84px; } }
@media (max-width: 760px) { .demo-mark { top: 20px; right: 16px; } .app[data-depth="pane"] ~ .demo-mark, .app.rail-open ~ .demo-mark { display: none; } }
/* a domain that opens later: shown, not pickable */
.opt.off { cursor: default; }
.opt.off b { color: var(--ink-2); }
.opt.off:hover { background: none; }
.menu .note.hl { color: var(--ink); }
/* a long name: the domain goes under it, inside the same field */
.pick-field.two { flex-wrap: wrap; height: auto; min-height: 56px; padding: 8px 0 4px; border-radius: 28px; }
.pick-field.two > input { max-width: calc(100% - 48px); height: 40px; }
.pick-field.two .dom { flex: 1 0 100%; height: 44px; margin-left: 0; padding-left: 24px; border-radius: 0 0 28px 28px; }
