/* ------------------------------------------------------------------
   Scheduler — "the timetable, in daylight"
   Ink indigo on morning-sky paper; amber is the clock hand.
   Prose is set in Schibsted Grotesk; every clock time, date and
   timezone renders in Spline Sans Mono — mono means "the timetable".
------------------------------------------------------------------- */

:root {
  --ink: #1b2141;
  --ink-soft: #555e82;
  --ink-hover: #2a3468;
  --paper: #f3f5fb;
  --card: #ffffff;
  --line: #dbe1f0;
  --line-strong: #b9c2dd;
  --meridian: #e8850c;
  --meridian-soft: #fdf1e2;
  --link: #3a47c4;
  --ok: #1a7f52;
  --ok-soft: #e4f5ec;
  --err: #c03434;
  --err-soft: #fbeaea;
  --display: "Gabarito", "Avenir Next", sans-serif;
  --body: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "Spline Sans Mono", "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

/* clip, not hidden: full-bleed bands overflow by the scrollbar width,
   and clip avoids creating a scroll container that would break sticky. */
html { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.25rem; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--meridian);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Machine time: every clock reading, date chip, tz name, offset. */
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--meridian);
  margin: 0 0 0.5rem;
}

/* --- Chrome ------------------------------------------------------ */

.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--display); font-weight: 700; font-size: 1.12rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brandmark {
  width: 22px; height: 22px; flex: none;
  border-radius: 6px;
  background: var(--ink);
  position: relative;
}
.brandmark::before, .brandmark::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  transform-origin: 0 50%;
  border-radius: 2px;
}
.brandmark::before { /* hour hand */
  width: 6px; height: 2px; background: #fff;
  transform: rotate(-90deg);
}
.brandmark::after { /* minute hand, amber */
  width: 8px; height: 2px; background: var(--meridian);
  transform: rotate(35deg);
}
.topbar nav { display: flex; gap: 1.05rem; align-items: center; flex-wrap: wrap; }
.topbar nav a { color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; }
.topbar nav a:hover { color: var(--ink); text-decoration: none; }
/* Buttons in the topbar keep button text color despite the nav link rules. */
.topbar nav a.btn, .topbar nav a.btn:hover { color: #fff; }

.inline-form { display: inline; }
.linklike {
  background: none; border: none; padding: 0; cursor: pointer;
  font: inherit; font-weight: 500; color: var(--link);
}
.topbar .linklike { color: var(--ink-soft); font-size: 0.95rem; }
.topbar .linklike:hover { color: var(--ink); }
.linklike:hover { text-decoration: underline; text-underline-offset: 3px; }

.container { max-width: 880px; margin: 2.2rem auto 0; padding: 0 1.25rem; }
.container.wide { max-width: 1080px; }

.footer {
  text-align: center;
  font-family: var(--mono); font-size: 0.75rem;
  color: var(--ink-soft);
  padding: 3rem 1rem 2rem;
}
.footer-links {
  display: flex; gap: 1.1rem; justify-content: center;
  font-family: var(--body); font-size: 0.8rem; font-weight: 500;
  margin: 0 0 0.6rem;
}
.footer-links a { color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }

/* Legal / content pages */
.prose { max-width: 680px; margin: 1.5rem auto 3rem; }
.prose h1 { font-size: 2.1rem; margin-bottom: 0.3rem; }
.prose h2 { font-size: 1.2rem; margin: 1.6rem 0 0.4rem; }
.prose p { color: var(--ink-soft); line-height: 1.6; margin: 0 0 0.8rem; }

/* --- App shell (logged-in pages): white sidebar per meridian.pen --- */
.appshell { display: flex; min-height: 100vh; align-items: stretch; }
.sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--card); border-right: 1px solid var(--line);
  padding: 24px 16px;
  display: flex; flex-direction: column; gap: 28px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar .brand { padding: 0 8px; }
.sidenav { display: flex; flex-direction: column; gap: 4px; }
.sidenav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px;
  color: var(--ink-soft); font-weight: 500; font-size: 0.9rem;
}
.sidenav a svg { width: 16px; height: 16px; flex-shrink: 0; }
.sidenav a:hover { color: var(--ink); text-decoration: none; background: var(--paper); }
.sidenav a.active { color: var(--ink); font-weight: 600; background: var(--paper); }
.sidebar-spacer { flex: 1; }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 8px; }
.avatar {
  width: 32px; height: 32px; border-radius: 999px; flex-shrink: 0;
  background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 600;
}
.sidebar-user-col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sidebar-username { font-size: 0.85rem; font-weight: 600; }
.appmain { flex: 1; min-width: 0; padding: 40px 48px; max-width: 1200px; }

/* Pagehead metrics (dashboard) */
.metricgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 1.5rem; }
.metric {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px; display: flex; flex-direction: column; gap: 6px;
}
.metric p { margin: 0; }
.metric-label {
  font-size: 0.69rem; font-weight: 600; letter-spacing: 1px;
  color: var(--ink-soft);
}
.metric-value { font-family: var(--display); font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.metric-sub { font-size: 0.75rem; }

/* Two-column settings layout (availability) */
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }

@media (max-width: 980px) {
  .appshell { flex-direction: column; }
  .sidebar {
    width: auto; height: auto; position: static;
    flex-direction: row; align-items: center; gap: 16px;
    padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--line);
  }
  .sidebar .brand { padding: 0; }
  .sidenav { flex-direction: row; overflow-x: auto; }
  .sidenav a { padding: 7px 10px; white-space: nowrap; }
  .sidebar-spacer { display: none; }
  .sidebar-user { margin-left: auto; padding: 0; }
  .sidebar-user-col { display: none; }
  .appmain { padding: 20px 16px; }
  .metricgrid { grid-template-columns: 1fr; }
  .twocol { grid-template-columns: 1fr; }
}

/* --- Surfaces ----------------------------------------------------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.25rem;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }

.card-danger { border-color: var(--err); }
.card-danger h2 { color: var(--err); }
.danger-row { display: flex; gap: 0.75rem; align-items: center; margin-top: 0.4rem; flex-wrap: wrap; }
.danger-row input { max-width: 320px; margin: 0; }

/* --- Actions ------------------------------------------------------ */

.btn {
  display: inline-block;
  background: var(--ink); color: #fff;
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 0.55rem 1.15rem;
  font-family: var(--body); font-size: 0.95rem; font-weight: 600;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.btn:hover { background: var(--ink-hover); border-color: var(--ink-hover); text-decoration: none; }
.btn-sm { padding: 0.35rem 0.8rem; font-size: 0.85rem; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-danger { background: var(--err); border-color: var(--err); }
.btn-danger:hover { background: #a52a2a; border-color: #a52a2a; }

/* --- Messages ----------------------------------------------------- */

.flash {
  padding: 0.7rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.1rem;
  font-size: 0.95rem;
  border: 1px solid var(--line);
}
.flash-success { background: var(--ok-soft); color: var(--ok); border-color: #bfe5d0; }
.flash-error { background: var(--err-soft); color: var(--err); border-color: #f0c4c4; }
.flash-info { background: var(--meridian-soft); color: #9c5a08; border-color: #f2d4ac; }

/* --- Forms -------------------------------------------------------- */

form p { margin: 0 0 1.05rem; }
label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.3rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="time"],
input[type="number"], input[type="url"], input[type="date"], select, textarea {
  width: 100%;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font: inherit; font-size: 0.95rem;
  color: var(--ink);
  background: var(--card);
  transition: border-color 120ms ease;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--meridian); outline-offset: 0; border-color: var(--meridian);
}
input[type="time"] { font-family: var(--mono); }
.helptext { display: block; color: var(--ink-soft); font-size: 0.8rem; margin-top: 0.25rem; }

/* "Describe your week" onboarding card (availability page) */
.describe-card { border-left: 3px solid var(--meridian); }
.describe-card form { display: flex; flex-direction: column; gap: 0.7rem; align-items: flex-start; }
.describe-summary {
  margin: 0.9rem 0 0; padding: 0.6rem 0.8rem;
  background: var(--meridian-soft); border-radius: 8px;
}
.errorlist {
  color: var(--err); list-style: none;
  padding: 0; margin: 0.2rem 0; font-size: 0.85rem;
}

/* --- Tables ------------------------------------------------------- */

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.6rem 0.65rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th:first-child, td:first-child { width: 34%; }
td.mono { white-space: nowrap; }
tr:last-child td { border-bottom: none; }
th {
  font-family: var(--mono); font-weight: 600;
  color: var(--ink-soft); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.1em;
}
td.mono, .mono td { font-size: 0.9rem; }

.muted { color: var(--ink-soft); }
.small { font-size: 0.85rem; }
.mt { margin-top: 1rem; }

.badge {
  display: inline-block; padding: 0.12rem 0.6rem;
  border-radius: 999px;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.badge-on { background: var(--ok-soft); color: var(--ok); }
.badge-off { background: #eceef5; color: var(--ink-soft); }

/* --- Landing hero: copy left, product vignette right --------------- */

.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem;
  align-items: center;
  padding: 3.4rem 0 3rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.05;
  margin: 0.4rem 0 1rem;
}
.hero-sub {
  color: var(--ink-soft); font-size: 1.08rem;
  max-width: 30rem; margin: 0 0 1.6rem;
}
.hero-ctas { display: flex; gap: 0.7rem; flex-wrap: wrap; }

/* Inline icon (lucide-style sprite) */
.ic {
  width: 16px; height: 16px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.muted-ic { color: var(--ink-soft); }

/* Hero vignette: booking mini card + confirmation toast + day strip */
.viz { position: relative; display: flex; flex-direction: column; gap: 1rem; }
.viz > .card { box-shadow: 0 16px 40px #1b214118; }
.vizbook { padding: 1.1rem 1.2rem; }
.vizbook-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.8rem; }
.vizbook-cols { display: grid; grid-template-columns: 1.45fr 1fr; gap: 1.1rem; }
.minical { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.3rem; justify-items: center; }
.mc-w { font-size: 0.6rem; color: var(--ink-soft); }
.mc-d {
  width: 1.9rem; height: 1.9rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; font-size: 0.72rem; color: var(--ink-soft);
}
.mc-d.av { background: var(--meridian-soft); color: var(--ink); font-weight: 600; }
.mc-d.sel { background: var(--ink); color: #fff; font-weight: 600; }
.mc-d.out { opacity: 0.35; }
.minislots { display: flex; flex-direction: column; gap: 0.45rem; }
.ms-head {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.ms-slot {
  display: block; flex: 1; text-align: center; padding: 0.5rem 0;
  border: 1px solid var(--line-strong); border-radius: 8px;
  font-size: 0.8rem; font-weight: 600; color: var(--ink);
}
.ms-armed { display: flex; gap: 0.4rem; }
.ms-armed .ms-slot { border-color: var(--ink); }
.ms-next {
  display: inline-flex; align-items: center; padding: 0 0.8rem;
  background: var(--ink); color: #fff; border-radius: 8px;
  font-size: 0.78rem; font-weight: 600;
}
.viztoast {
  position: absolute; right: -0.8rem; top: 54%;
  display: flex; gap: 0.6rem; align-items: center;
  padding: 0.7rem 0.95rem; line-height: 1.25;
}
.viz-check {
  width: 22px; height: 22px; border-radius: 999px; flex-shrink: 0;
  background: var(--ok-soft); color: var(--ok);
  display: inline-flex; align-items: center; justify-content: center;
}
.viz-check .ic { width: 12px; height: 12px; }
.vizstrip { padding: 0.9rem 1.1rem; display: flex; flex-direction: column; gap: 0.55rem; }

/* Day strip bars (hero + Focus Guard section) */
.vs-bar { position: relative; height: 26px; }
.vs-track {
  position: absolute; left: 0; right: 0; top: 10px; height: 6px;
  border-radius: 3px; background: var(--paper);
}
.vs-m {
  position: absolute; top: 2px; width: 9%; height: 22px;
  border-radius: 5px; background: var(--ink);
  left: var(--to, 0);
}
.vs-m.smart { background: transparent; border: 2px dashed var(--meridian); }
.vs-focus {
  position: absolute; top: 2px; height: 22px; left: 52%; width: 44%;
  border-radius: 5px; border: 1px solid var(--meridian);
  background: repeating-linear-gradient(
    -45deg, var(--meridian-soft), var(--meridian-soft) 5px, #f8dcb8 5px, #f8dcb8 10px
  );
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 2.2rem; padding-top: 2.2rem; }
  .viztoast { right: 0; }
}

/* --- Page header (title + description + primary action) ----------- */

.pagehead {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.4rem;
}
.pagehead h1 { margin-bottom: 0.25rem; }
.pagehead p { margin: 0; }

.chip {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.12rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--mono); font-size: 0.78rem; font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* --- Public booking page: info | calendar | slots ------------------ */

.bookcard { padding: 0; overflow: hidden; }
.bookgrid { display: grid; grid-template-columns: 1fr 1.35fr 1fr; }
.bookgrid > * { padding: 1.5rem 1.6rem; min-width: 0; }
.bookgrid > * + * { border-left: 1px solid var(--line); }
@media (max-width: 860px) {
  .bookgrid { grid-template-columns: 1fr; }
  .bookgrid > * + * { border-left: none; border-top: 1px solid var(--line); }
}
.bookinfo h1 { font-size: 1.55rem; }
.bookcal h2, .bookslots h2 { font-size: 1rem; margin-bottom: 0.9rem; }

.tzline { font-size: 0.82rem; color: var(--ink-soft); margin-top: 1.4rem; }
.tzline strong { display: block; margin: 0.15rem 0 0.35rem; font-size: 0.85rem; }
.tzline select {
  width: 100%;
  font-family: var(--mono); font-size: 0.8rem;
  padding: 0.35rem 0.5rem;
}

/* Design-audit alignment: full-width auth buttons, when panels, ok circle */
.btn-block { display: block; width: 100%; }
.whenpanel {
  display: inline-block;
  background: var(--meridian-soft);
  border: 1px solid #f2d4ac; border-radius: 8px;
  padding: 0.7rem 1.2rem;
}
.whenpanel-quiet { background: var(--paper); border-color: var(--line); }
.okcircle {
  width: 56px; height: 56px; border-radius: 999px;
  background: var(--ok-soft); color: var(--ok);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700;
  margin-bottom: 0.4rem;
}

/* Public profile header (photo, bio, links) */
.profilecard { text-align: center; }
.profilecard .etlist { text-align: left; }
.profile-photo {
  width: 72px; height: 72px; border-radius: 999px; object-fit: cover;
  display: block; margin: 0 auto 0.9rem;
  border: 1px solid var(--line);
}
.avatar-lg {
  width: 72px; height: 72px; font-size: 1.5rem;
  margin: 0 auto 0.9rem; display: flex;
}
.profile-bio { max-width: 26rem; margin: 0 auto 0.6rem; }
.profile-links {
  display: flex; gap: 1.2rem; justify-content: center;
  margin: 0 0 0.4rem;
  font-size: 0.9rem; font-weight: 500;
}

/* Natural-language slot search (public booking page) */
.nlsearch { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.nlsearch label { font-size: 0.82rem; color: var(--ink-soft); font-weight: 500; }
.nlsearch form { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
.nlsearch input[type="text"] { font-size: 0.85rem; }
.nl-error { color: var(--err); margin: 0.6rem 0 0; }
.nl-results { margin-top: 0.8rem; display: flex; flex-direction: column; gap: 0.4rem; }
.nl-results p { margin: 0; }
.nl-slot {
  display: block; text-align: center;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line-strong); border-radius: 8px;
  font-size: 0.8rem; font-weight: 600; color: var(--ink);
}
.nl-slot:hover { border-color: var(--meridian); text-decoration: none; background: var(--meridian-soft); }

/* Month calendar */
.calhead {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.7rem;
}
.callabel { font-family: var(--display); font-weight: 600; font-size: 0.98rem; }
.calnav {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem;
  border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink); font-size: 1.1rem; line-height: 1;
  background: var(--card);
}
.calnav:hover { text-decoration: none; border-color: var(--ink); }
.calnav.disabled { color: var(--line-strong); border-color: var(--line); cursor: default; }

.calgrid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem; justify-items: center;
}
.calw {
  font-family: var(--mono); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.08em; color: var(--ink-soft);
  padding: 0.3rem 0;
}
.cald {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.35rem; height: 2.35rem;
  border-radius: 50%;
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
  color: var(--line-strong);
}
.cald.out { visibility: hidden; }
.cald.avail {
  background: var(--meridian-soft);
  color: var(--ink); font-weight: 600;
  transition: background-color 120ms ease, color 120ms ease;
}
.cald.avail:hover { background: var(--meridian); color: #fff; text-decoration: none; }
.cald.sel { background: var(--ink); color: #fff; font-weight: 600; }
.cald.avail.sel { background: var(--ink); color: #fff; }

/* Slot column with click-to-confirm split */
.slotdate { font-family: var(--display); }
.slotcol {
  display: flex; flex-direction: column; gap: 0.55rem;
  max-height: 26rem; overflow-y: auto;
  padding-right: 0.25rem;
}
.slotrow { display: flex; gap: 0.45rem; }
.slotrow .slot {
  flex: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem; font-weight: 600;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink); background: var(--card);
  padding: 0.55rem 0.5rem;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}
.slotrow .slot:hover { border-color: var(--ink); text-decoration: none; }
.slotrow .slotconfirm { display: none; flex: 1; text-align: center; padding: 0.55rem 0.5rem; }
.slotrow.armed .slot { background: var(--ink-soft); border-color: var(--ink-soft); color: #fff; }
.slotrow.armed .slotconfirm { display: inline-block; }

/* Smart picks line above the slot column */
.smartline {
  display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem;
  margin: -0.4rem 0 0.7rem;
}
.smartpick {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--meridian);
}

/* Focus Guard settings */
.fgcheck { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.fgcheck input { width: auto; }
.fgfield { margin-bottom: 1rem; }
.fggrid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem;
  margin-top: 0.4rem;
}
@media (max-width: 700px) { .fggrid { grid-template-columns: 1fr; } }
.fgfield .errorlist { margin-top: 0.2rem; }
h3 { font-family: var(--display); font-size: 1rem; margin: 0 0 0.4rem; }

/* --- Event type rows (dashboard) ----------------------------------- */

.etrow {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.etrow:last-child { border-bottom: none; }
.etrow .etname { font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--ink); }
.etrow .etslug {
  display: block;
  font-family: var(--mono); font-size: 0.78rem; color: var(--ink-soft);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.etrow .etchips { margin-top: 0.3rem; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.etactions { white-space: nowrap; }

/* Event-type list on the public profile */
.etlist { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1.1rem; }
.etlist a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  color: var(--ink);
  transition: border-color 120ms ease, background-color 120ms ease;
}
.etlist a:hover { text-decoration: none; border-color: var(--ink); }
.etlist .etname { font-family: var(--display); font-weight: 600; font-size: 1.02rem; }
.etlist .etmeta { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-soft); white-space: nowrap; }
.etlist .etdesc { color: var(--ink-soft); font-size: 0.85rem; margin: 0.15rem 0 0; }

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

.availability-row {
  display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 0.35rem;
}
.availability-row select, .availability-row input { width: auto; }

/* --- Marketing page ------------------------------------------------ */

.section { margin: 4.5rem 0; }
.section-head { text-align: center; max-width: 38rem; margin: 0 auto 2rem; }
.section-head h2 { font-size: 1.7rem; }
.section-head p { margin: 0.3rem 0 0; }

/* Feature rows: visual | copy, alternating */
.feat {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: center;
  padding: 3.8rem 0;
}
.feat-copy h2 { font-size: 1.9rem; letter-spacing: -0.01em; margin: 0.9rem 0 0.7rem; }
.feat-copy > p { color: var(--ink-soft); margin: 0 0 1.1rem; max-width: 30rem; }
.icon-chip {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--meridian-soft); color: var(--meridian);
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-chip .ic { width: 19px; height: 19px; }
.bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.bullets li { display: flex; gap: 0.6rem; align-items: center; font-size: 0.92rem; }
.bullets .ic { color: var(--meridian); }

/* Full-bleed paper band behind a feature row */
.bleed {
  margin-inline: calc(50% - 50vw);
  padding-inline: calc(50vw - 50%);
  background: var(--paper);
}

/* Feature visuals */
.feat-viz { box-shadow: 0 12px 32px #1b214114; }
.profile-mini { display: flex; flex-direction: column; gap: 0.8rem; padding: 1.4rem; }
.link-pill {
  display: inline-flex; align-items: center; gap: 0.5rem; align-self: flex-start;
  padding: 0.45rem 0.9rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.8rem; color: var(--ink);
}
.link-pill .ic { width: 13px; height: 13px; color: var(--ink-soft); }
.pm-row {
  display: flex; justify-content: space-between; align-items: center;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 0.85rem 1rem;
}
.pm-row .chip { margin-top: 0.35rem; }
.fgcard2 { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; }
.fg2-row { display: flex; flex-direction: column; gap: 0.4rem; }
.fglegend {
  display: flex; gap: 1.4rem;
  font-size: 0.72rem; color: var(--ink-soft); margin: 0.2rem 0 0;
}
.fglegend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.sw { display: inline-block; width: 0.85rem; height: 0.85rem; border-radius: 3px; }
.sw-ink { background: var(--ink); }
.sw-smart { border: 2px dashed var(--meridian); }
.sw-focus { background: var(--meridian-soft); border: 1px solid var(--meridian); }
.rs-mini { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.55rem; align-items: flex-start; }
.rs-mini p { margin: 0; }
.rs-old { text-decoration: line-through; font-size: 0.85rem; }
.rs-new { font-size: 1rem; }
.rs-mini .btn-static { margin-top: 0.4rem; pointer-events: none; }
.rs-tz { display: flex; gap: 0.45rem; align-items: center; margin-top: 0.4rem; }
.rs-tz .ic { width: 13px; height: 13px; }

/* How it works */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 1.2rem 1.3rem;
}
.step-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.7rem; }
.icon-chip-sm { width: 34px; height: 34px; border-radius: 9px; }
.icon-chip-sm .ic { width: 17px; height: 17px; }
.stepnum {
  font-family: var(--mono); font-size: 0.75rem; font-weight: 600;
  color: var(--line-strong); letter-spacing: 0.1em;
}
.step h3 { margin: 0.35rem 0 0.3rem; }
.step p { margin: 0; font-size: 0.88rem; color: var(--ink-soft); }

@media (max-width: 900px) {
  .feat { grid-template-columns: 1fr; gap: 2rem; padding: 2.6rem 0; }
  .feat-viz { order: 2; }
  .feat-copy { order: 1; }
}

/* Scroll-triggered reveals: applied only when JS adds html.anim, so the
   page is fully visible without JS and under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  html.anim [data-reveal] {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  }
  html.anim [data-reveal].inview { opacity: 1; transform: none; }
  html.anim #how .step {
    opacity: 0; transform: translateY(16px);
    transition: opacity 0.6s ease calc(var(--d, 0) * 110ms),
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--d, 0) * 110ms);
  }
  html.anim #how.inview .step { opacity: 1; transform: none; }
  html.anim .anim-m { left: var(--from); transition: left 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s; }
  html.anim .fgcard2.inview .anim-m { left: var(--to); }
  html.anim .anim-f { width: 0; opacity: 0; transition: width 0.7s ease 0.85s, opacity 0.5s ease 0.85s; }
  html.anim .fgcard2.inview .anim-f { width: 44%; opacity: 1; }
  html.anim .viz > .card { animation: vizrise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
  html.anim .viz > .card:nth-child(2) { animation-delay: 0.45s; }
  html.anim .viz > .card:nth-child(3) { animation-delay: 0.25s; }
}
@keyframes vizrise {
  from { opacity: 0; transform: translateY(18px); }
}

/* --- 404 page ------------------------------------------------------ */

.notfound { text-align: center; padding: 4.5rem 1rem 3rem; }
.notfound .nfcode {
  font-family: var(--mono);
  font-size: 5.5rem; font-weight: 600; line-height: 1;
  color: var(--line-strong);
  margin: 0 0 1rem;
}
.notfound h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.notfound p { color: var(--ink-soft); margin: 0 0 0.9rem; }
.notfound .btn { margin-top: 0.6rem; }

/* Closing CTA band */
.ctaband {
  background: var(--ink); color: #fff;
  border-radius: 12px;
  text-align: center;
  padding: 3rem 1.5rem;
  margin: 4.5rem 0 1rem;
}
.ctaband h2 { color: #fff; font-size: 1.8rem; margin-bottom: 0.3rem; }
.ctaband p { color: #b9c2dd; margin: 0 0 1.4rem; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--meridian-soft); border-color: var(--meridian-soft); color: var(--ink); }

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