/* WiFi form, request status and owner dashboard, in the landing page's look (landing.css):
   ink and navy, Lethela red, glass panels and fine film grain. */
:root {
  --navy: #080b27;
  --ink: #03060d;
  --red: #b5001b;
  /* Lethela's lifted red for text on navy: #b5001b is too dark to read there. */
  --red-bright: #ff4d5e;
  --red-soft: #ff8792;
  --ok: #3ddc97;
  --warn: #ffc566;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --muted: rgba(255, 255, 255, 0.7);
  --faint: rgba(255, 255, 255, 0.52);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
  --pad: 20px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--ink);
  color: #fff;
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* A red glow low on the left, navy light top right, and film grain over both */
body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
}
body::before {
  z-index: -2;
  background:
    radial-gradient(70% 55% at 0% 100%, rgba(181, 0, 27, 0.2), rgba(181, 0, 27, 0) 70%),
    radial-gradient(80% 60% at 100% 0%, rgba(30, 36, 110, 0.42), rgba(8, 11, 39, 0) 70%);
}
body::after {
  z-index: -1;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

a { color: inherit; }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.link {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
}
.link:hover { text-decoration-color: #fff; }

/* Type */
h1 {
  margin: 0;
  font-size: clamp(38px, 10.6vw, 50px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
/* Instrument Serif italic sits smaller than Outfit, so it is set a touch larger */
h1 em {
  display: block;
  width: fit-content;
  padding: 0 0.08em 0.04em 0;
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-size: 1.14em;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--red-bright);
  background: linear-gradient(100deg, #ff8792 0%, #ff4d5e 45%, #e3173a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
h1.inline em { display: inline; }
h2 { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; }
h3 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }
.lead {
  margin-top: 14px;
  max-width: 32em;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}
.lead b, .lead strong { color: #fff; font-weight: 600; }
.small { font-size: 14px; color: var(--muted); }
.note { margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: var(--faint); text-wrap: pretty; }
.note b { color: rgba(255, 255, 255, 0.82); font-weight: 600; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.84);
}
.pulse { position: relative; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--red-bright); }
.pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid var(--red-bright);
  border-radius: 50%;
  animation: ping 2.4s var(--ease) infinite;
}
.pulse.ok, .pulse.ok::after { background-color: var(--ok); border-color: var(--ok); }
.pulse.ok::after { background: none; }
.pulse.wait, .pulse.wait::after { background-color: var(--warn); border-color: var(--warn); }
.pulse.wait::after { background: none; }

/* Guest pages: the campaign photo on top (on the right on big screens) under a glass panel */
.shell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}
.visual {
  position: relative;
  height: clamp(210px, 31svh, 330px);
  margin: 0;
  overflow: hidden;
}
.visual img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 67% 12%;
  animation: settle 2.4s var(--ease) both;
}
.visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 6, 13, 0.6) 0%, rgba(3, 6, 13, 0) 30%, rgba(3, 6, 13, 0.2) 62%, var(--ink) 100%);
}
.visual-tag { display: none; }

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(16px, env(safe-area-inset-top)) var(--pad) 0;
  animation: fade 1.2s var(--ease) 0.1s both;
}
.logo { display: block; line-height: 0; }
.logo img { width: 112px; height: auto; }
.back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 11, 39, 0.42);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.back:hover { border-color: rgba(255, 255, 255, 0.32); background: rgba(8, 11, 39, 0.6); }
.back svg { width: 15px; height: 15px; }

.panel {
  position: relative;
  z-index: 1;
  margin: -78px 10px 0;
  padding: 26px 20px 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(16, 20, 50, 0.84), rgba(5, 8, 20, 0.92));
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 30px 70px rgba(0, 0, 0, 0.5);
  animation: rise 0.9s var(--ease) 0.05s both;
}

.foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: auto;
  padding: 26px var(--pad) max(24px, env(safe-area-inset-bottom));
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}
.foot::before, .foot::after { content: ''; width: 28px; height: 1px; background: rgba(255, 255, 255, 0.14); }

/* Form */
.field { margin-top: 18px; }
.field:first-child { margin-top: 0; }
.label, .field > label {
  display: block;
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
input[type='text'], input[type='tel'], select {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: #fff;
  font: inherit;
  font-size: 17px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
input::placeholder { color: rgba(255, 255, 255, 0.34); }
input:hover, select:hover { border-color: var(--line-strong); }
input:focus, select:focus {
  border-color: rgba(255, 77, 94, 0.75);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 4px rgba(255, 77, 94, 0.16);
}
/* Browser autofill keeps the dark field instead of turning it pale yellow or blue */
input:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 100px #0c1030 inset;
  caret-color: #fff;
}
input.mono { font-family: var(--mono); font-size: 16.5px; letter-spacing: 0.06em; text-transform: uppercase; }
input.mono::placeholder { letter-spacing: 0.06em; }
input.bad { border-color: var(--red-bright); }
select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-opacity='.7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  cursor: pointer;
}
option { background: #0c1030; color: #fff; }
.field-msg { min-height: 1.3em; margin-top: 8px; font-size: 13.5px; line-height: 1.4; color: var(--faint); }
.field-msg + .box { margin-top: 4px; }
.field-msg.bad { color: var(--red-soft); }
.field-msg.good { color: var(--ok); }

.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--muted); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--red); }

/* Hidden field for bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, opacity 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn svg { flex: none; width: 18px; height: 18px; }
.btn.primary {
  border-color: rgba(255, 135, 146, 0.38);
  background: linear-gradient(150deg, #d8132f 0%, #b5001b 48%, #7a0012 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 14px 36px rgba(181, 0, 27, 0.42);
}
.btn.primary:hover { border-color: rgba(255, 170, 178, 0.6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 20px 44px rgba(181, 0, 27, 0.55); }
/* The same sheen as the landing page's red tile */
.btn.primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.2) 48%, rgba(255, 255, 255, 0) 66%);
  transform: translateX(-120%);
  pointer-events: none;
}
.btn.primary:hover::after { transform: translateX(120%); transition: transform 0.9s var(--ease); }
.btn.ghost { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.05); }
.btn.ghost:hover { border-color: rgba(255, 255, 255, 0.36); background: rgba(255, 255, 255, 0.09); }
.btn.light { background: #fff; color: var(--ink); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3); }
.btn.light:hover { background: #f1f2f7; }
.btn.quiet { min-height: 40px; padding: 8px 4px; color: var(--muted); }
.btn.quiet:hover { color: #fff; transform: none; }
.btn.block { display: flex; width: 100%; }
.btn.lg { min-height: 56px; font-size: 17px; }
.btn.sm { min-height: 38px; padding: 8px 15px; font-size: 14.5px; }
.btn[disabled] { opacity: 0.45; cursor: default; transform: none; }

/* Alerts */
.alert {
  margin-top: 18px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 14.5px;
  line-height: 1.45;
}
.alert.bad { border-color: rgba(255, 77, 94, 0.42); background: rgba(255, 77, 94, 0.1); color: #ffd6da; }
.alert.ok { border-color: rgba(61, 220, 151, 0.35); background: rgba(61, 220, 151, 0.08); color: #cdf7e4; }
.alert.warn { border-color: rgba(255, 197, 102, 0.35); background: rgba(255, 197, 102, 0.08); color: #ffe8c2; }
.alert a { color: #fff; font-weight: 600; text-underline-offset: 3px; }

/* Device picker and numbered steps */
.box {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
}
.box-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 14.5px; font-weight: 600; }
.box-head svg { flex: none; width: 18px; height: 18px; color: var(--red-bright); }
.seg {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
}
.seg-btn {
  min-height: 34px;
  padding: 6px 4px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.seg-btn:hover { color: #fff; }
.seg-btn[aria-pressed='true'] { background: #fff; color: var(--ink); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); }
.steps { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  position: relative;
  min-height: 26px;
  padding-left: 38px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  counter-increment: step;
  text-wrap: pretty;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: -1px;
  left: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 77, 94, 0.42);
  border-radius: 50%;
  background: rgba(255, 77, 94, 0.12);
  color: var(--red-soft);
  font-size: 12.5px;
  font-weight: 600;
}
.steps b { color: #fff; font-weight: 600; }

/* Request status */
.orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  border-radius: 50%;
}
.orb svg { width: 26px; height: 26px; }
.orb.wait { background: rgba(255, 197, 102, 0.08); color: var(--warn); }
.orb.wait::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 197, 102, 0.18);
  border-top-color: var(--warn);
  border-radius: 50%;
  animation: spin 1.3s linear infinite;
}
.orb.ok {
  background: radial-gradient(closest-side, rgba(61, 220, 151, 0.24), rgba(61, 220, 151, 0.06));
  color: var(--ok);
  box-shadow: 0 0 0 1px rgba(61, 220, 151, 0.38), 0 0 44px rgba(61, 220, 151, 0.28);
}
.orb.no { background: rgba(255, 77, 94, 0.1); color: var(--red-bright); box-shadow: 0 0 0 1px rgba(255, 77, 94, 0.38); }

.track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 24px 0 0; padding: 0; list-style: none; }
.track li {
  position: relative;
  padding: 22px 8px 0 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.track li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 12px;
  height: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--ink);
}
.track li::after { content: ''; position: absolute; top: 6px; left: 12px; right: 0; height: 1px; background: var(--line); }
.track li:last-child::after { display: none; }
.track li.done { color: rgba(255, 255, 255, 0.86); }
.track li.done::before { border-color: var(--ok); background: var(--ok); }
.track li.done::after { background: linear-gradient(90deg, var(--ok), rgba(61, 220, 151, 0.25)); }
.track li.now { color: #fff; }
.track li.now::before { border-color: var(--red-bright); background: var(--red-bright); box-shadow: 0 0 0 4px rgba(255, 77, 94, 0.22); animation: glow 1.6s ease-in-out infinite alternate; }

.facts {
  margin: 22px 0 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}
.fact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}
.fact:first-child { border-top: 0; }
.fact > span:first-child { color: var(--faint); }
.fact > :last-child { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; font-weight: 600; text-align: right; }

.part { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.part .lead { margin-top: 8px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.chip svg { width: 14px; height: 14px; color: var(--red-bright); }
.chip.pending, .chip.approved, .chip.rejected, .chip.removed, .chip.expired, .chip.off, .chip.on { padding-left: 9px; }
.chip.pending::before, .chip.approved::before, .chip.rejected::before, .chip.removed::before, .chip.expired::before, .chip.off::before, .chip.on::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.chip.pending { border-color: rgba(255, 197, 102, 0.3); background: rgba(255, 197, 102, 0.08); color: var(--warn); }
.chip.approved, .chip.on { border-color: rgba(61, 220, 151, 0.3); background: rgba(61, 220, 151, 0.08); color: var(--ok); }
.chip.rejected, .chip.removed, .chip.expired { border-color: rgba(255, 77, 94, 0.3); background: rgba(255, 77, 94, 0.08); color: var(--red-soft); }
.chip.off { color: var(--faint); }

.mac {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-family: var(--mono);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.mac.wrap { white-space: normal; overflow-wrap: anywhere; }

.loading { padding: 30px 0; text-align: center; color: var(--muted); }

/* Owner dashboard */
.app-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 6, 13, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}
.app-bar-in {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1120px;
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) 16px 12px;
}
.app-bar .logo img { width: 104px; }
.app-name {
  white-space: nowrap;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.app-bar .btn { margin-left: auto; padding-left: 12px; padding-right: 12px; }
.wide-only { display: none; }
.app { max-width: 1120px; margin: 0 auto; padding: 26px 16px 40px; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }
.stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}
.stat:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.24); }
.stat b { font-size: 30px; font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.stat span { font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.stat.hot {
  border-color: rgba(255, 135, 146, 0.38);
  background: linear-gradient(150deg, #d8132f 0%, #b5001b 48%, #7a0012 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 14px 36px rgba(181, 0, 27, 0.4);
}
.stat.hot span { color: rgba(255, 255, 255, 0.82); }
.stat.warm b { color: var(--warn); }

.section { margin-top: 36px; scroll-margin-top: 84px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-size: 22px; }
.section-head .count { margin-left: 8px; font-size: 15px; font-weight: 500; color: var(--faint); }

.card {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.card.accent {
  border-color: rgba(255, 135, 146, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 60px rgba(181, 0, 27, 0.2);
}
.card > .lead:first-child { margin-top: 0; font-size: 15px; }
.grid { display: grid; gap: 12px; }

.req-top { display: flex; align-items: flex-start; gap: 12px; }
.avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 135, 146, 0.38);
  border-radius: 50%;
  background: linear-gradient(150deg, rgba(216, 19, 47, 0.5), rgba(122, 0, 18, 0.5));
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
}
.who { flex: 1; min-width: 0; }
.who h3 { overflow-wrap: anywhere; }
.meta { margin-top: 3px; font-size: 14px; color: var(--faint); }
.req-rows { display: grid; gap: 10px; margin-top: 16px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14.5px; color: var(--muted); }
.row a { color: #fff; font-weight: 500; }
.row svg { flex: none; width: 16px; height: 16px; color: var(--faint); }
.req-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.req-actions select { width: auto; min-height: 38px; padding: 7px 38px 7px 14px; border-radius: 999px; font-size: 14.5px; background-position: right 12px center; background-size: 16px; }

details.more { margin-top: 12px; }
details.more > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  list-style: none;
  cursor: pointer;
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: '+'; color: var(--red-bright); font-size: 16px; line-height: 1; }
details.more[open] > summary::after { content: '−'; }
details.more > summary:hover { color: #fff; }
.more-body { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }

.todo { display: grid; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.todo:first-of-type { border-top: 0; }
.todo-what { font-size: 15.5px; color: var(--muted); }
.todo-what b { color: #fff; font-weight: 600; }
.todo-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ok-line { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, 0.03); font-size: 15px; color: var(--muted); }
.ok-line b { color: #fff; font-weight: 600; }
.ok-line svg { flex: none; width: 20px; height: 20px; color: var(--ok); }

.setup { display: grid; margin: 8px 0 0; padding: 0; list-style: none; }
.setup > li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.setup > li:first-child { border-top: 0; }
.setup .num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 77, 94, 0.42);
  border-radius: 50%;
  background: rgba(255, 77, 94, 0.12);
  color: var(--red-soft);
  font-size: 14px;
  font-weight: 600;
}
.setup h3 { margin-top: 5px; font-size: 16px; }
.setup p { margin-top: 4px; font-size: 14.5px; color: var(--muted); text-wrap: pretty; }
.setup .steps { margin-top: 12px; }
.setup .steps li { font-size: 14.5px; }
.setup .actions { margin-top: 12px; }

.tabs {
  display: flex;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 14px;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}
.tab {
  padding: 8px 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.tab:hover { color: #fff; }
.tab[aria-selected='true'] { background: #fff; color: var(--ink); }
.tab .count { margin-left: 6px; font-weight: 500; opacity: 0.6; }

.empty {
  padding: 26px 18px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}
.add-form { display: grid; gap: 14px; margin-top: 16px; }
.add-form .field { margin: 0; }
.app-foot { margin-top: 40px; font-size: 14px; color: var(--faint); text-align: center; }
.app-foot .tag { display: block; margin-top: 10px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: rgba(255, 255, 255, 0.34); }

.toast {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 50;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(12, 16, 40, 0.94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 14.5px;
  font-weight: 500;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.25s ease, transform 0.35s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes settle { from { transform: scale(1.08); opacity: 0.4; } to { transform: scale(1); opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ping { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(1.9); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes glow { from { box-shadow: 0 0 0 3px rgba(255, 77, 94, 0.18); } to { box-shadow: 0 0 0 7px rgba(255, 77, 94, 0.06); } }

/* Tablets and wide phones */
@media (min-width: 640px) {
  :root { --pad: 32px; }
  .logo img { width: 132px; }
  .visual { height: clamp(260px, 36svh, 380px); }
  .panel { width: calc(100% - 64px); max-width: 600px; margin: -110px auto 0; padding: 36px 36px 32px; }
  .lead { font-size: 17px; }
  .app-bar-in, .app { padding-left: 28px; padding-right: 28px; }
  .app-bar .btn { padding-left: 15px; padding-right: 15px; }
  .wide-only { display: inline; }
  .app-bar .logo img { width: 120px; }
  .stats { gap: 12px; }
  .stat { padding: 18px; }
  .stat b { font-size: 36px; }
  .card { padding: 22px; }
  .add-form { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
  .add-form .wide { grid-column: 1 / -1; }
}

@media (min-width: 860px) {
  .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .todo { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
}

/* Desktop: the page in a frame like the landing page, words on the left and the photo on the right */
@media (min-width: 980px) {
  :root { --pad: clamp(40px, 4.4vw, 72px); }
  body.guest { padding: 12px; }
  .shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    min-height: calc(100vh - 24px);
    min-height: calc(100svh - 24px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
  }
  .topbar { position: relative; grid-column: 1; grid-row: 1; padding: 32px var(--pad) 0; }
  .logo img { width: 150px; }
  .panel {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
    width: 100%;
    max-width: calc(540px + 2 * var(--pad));
    margin: 0;
    padding: 36px var(--pad);
    border: 0;
    border-radius: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
  }
  .foot { display: none; }
  .visual {
    grid-column: 2;
    grid-row: 1 / -1;
    height: auto;
    margin: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
  }
  .visual img { object-position: 76% 50%; }
  .visual::after { background: linear-gradient(0deg, rgba(3, 6, 13, 0.72) 0%, rgba(3, 6, 13, 0) 34%), linear-gradient(90deg, rgba(3, 6, 13, 0.35) 0%, rgba(3, 6, 13, 0) 30%); }
  .visual-tag {
    position: absolute;
    left: 30px;
    bottom: 26px;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.6);
    animation: fade 1.6s var(--ease) 0.6s both;
  }
  .visual-tag::before { content: ''; width: 44px; height: 1px; background: rgba(255, 255, 255, 0.3); }
  h1 { font-size: clamp(50px, 4.6vw, 76px); }
  .lead { font-size: 17.5px; }
  .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app h1 { font-size: clamp(46px, 4vw, 60px); }
}

/* Phones on their side: a slimmer photo band leaves room for the form */
@media (max-width: 979px) and (max-height: 520px) and (orientation: landscape) {
  .visual { height: 150px; }
  .panel { margin-top: -56px; }
}

/* Short laptop screens: a tighter rhythm keeps more of the form in view */
@media (min-width: 980px) and (max-height: 820px) {
  .topbar { padding-top: 24px; }
  .panel { padding-top: 22px; padding-bottom: 26px; }
  .eyebrow { margin-bottom: 14px; }
  h1 { font-size: clamp(44px, 4vw, 62px); }
  .lead { font-size: 16.5px; }
}

/* Last, so it also stills the animations set inside the layouts above */
@media (prefers-reduced-motion: reduce) {
  .visual img, .topbar, .panel, .pulse::after, .orb.wait::before, .track li.now::before, .visual-tag { animation: none; }
  .btn, .btn.primary:hover::after, .stat, .toast, .seg-btn, .tab { transition: none; }
}
