/*
 * laabammail.com — the page for Laabam.site Mail. One stylesheet, no framework, no web font (the system font,
 * like the mail pages themselves). Light by default; dark when the device is.
 *
 * Brand: ONE orange (#f2612d, the sun in the logo), flat, with the INK label on it (#14161d, 5.6:1; white on it is
 * 3.2:1). Orange TEXT is #c2410c on light (5.2:1) and #ff8a5c on dark. No gradients, no glows, no label above a
 * heading. Every colour below is a token.
 */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-2: #f5f6f8;
  --surface: #ffffff;
  --ink: #14161d;
  --ink-2: #3d4350;
  --muted: #5c6372;
  --line: #e2e5ea;
  --line-2: #d1d5dc;
  --accent: #f2612d;
  --accent-hover: #ff7a45;
  --on-accent: #14161d;
  --accent-text: #c2410c;
  --accent-tint: #fff0e8;
  --ok: #166534;
  --ok-tint: #e7f5ec;
  --warn: #92400e;
  --warn-tint: #fdf3e2;
  --bad: #b91c1c;
  --bad-tint: #fdecec;
  --shadow: 0 1px 2px rgba(20, 22, 29, 0.06), 0 10px 28px rgba(20, 22, 29, 0.08);
  --shadow-lg: 0 2px 6px rgba(20, 22, 29, 0.06), 0 24px 60px rgba(20, 22, 29, 0.12);
  /* the drawings of the product */
  --app-bg: #eef0f4;
  --app-panel: #ffffff;
  --bar: #e3e6ec;
  --bar-2: #eef0f3;
  --sel: #ffe5da;
  --biz: #0f766e;
  --on-biz: #ffffff;
  --av-1: #be123c;
  --av-2: #4338ca;
  --av-3: #0f766e;
  --av-4: #92400e;
  --av-5: #475569;
  --on-av: #ffffff;
  --device: #14161d;
  /* the light and dark looks shown side by side: fixed, whatever the page's own theme */
  --mini-l-bg: #eef0f4;
  --mini-l-panel: #ffffff;
  --mini-l-bar: #e3e6ec;
  --mini-l-ink: #14161d;
  --mini-d-bg: #0b0d11;
  --mini-d-panel: #1a1d24;
  --mini-d-bar: #2c313b;
  --mini-d-ink: #eceff5;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --bg-2: #14171d;
    --surface: #1a1d24;
    --ink: #eceff5;
    --ink-2: #b6bdcc;
    --muted: #9098ab;
    --line: #262a33;
    --line-2: #353a46;
    --accent-text: #ff8a5c;
    --accent-tint: #2a1a14;
    --ok: #4ade80;
    --ok-tint: #12261a;
    --warn: #fbbf24;
    --warn-tint: #2a2210;
    --bad: #f87171;
    --bad-tint: #2c1616;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 28px 64px rgba(0, 0, 0, 0.45);
    --app-bg: #0b0d11;
    --app-panel: #1a1d24;
    --bar: #2c313b;
    --bar-2: #232730;
    --sel: #3a2419;
    --biz: #2dd4bf;
    --on-biz: #0b1f1d;
    --device: #2a2f39;
  }
}

/* ── base ─────────────────────────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  interpolate-size: allow-keywords;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

.ico {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* the logo follows the theme: an ink hexagon on light, a white one on dark */
.logo-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .logo-light {
    display: none;
  }
  .logo-dark {
    display: block;
  }
}

/* ── buttons ──────────────────────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 15px/1.2 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-quiet {
  background: var(--bg);
  border-color: var(--line-2);
  color: var(--ink);
}

.btn-quiet:hover {
  background: var(--bg-2);
}

.btn-lg {
  min-height: 52px;
  padding: 14px 26px;
  font-size: 16px;
}

.btn .ico {
  width: 18px;
  height: 18px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}

.link-arrow:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-arrow .ico {
  width: 18px;
  height: 18px;
}

/* ── header ───────────────────────────────────────────────────────────────────────────────── */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.top-in {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 26px;
  height: 30px;
}

.wm-site {
  color: var(--muted);
  font-weight: 600;
}

.wm-sep {
  width: 1px;
  height: 18px;
  margin-inline: 2px;
  background: var(--line-2);
}

.wm-mail {
  font-weight: 500;
}

.nav {
  display: none;
  gap: 2px;
  margin-left: auto;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 15px;
  text-decoration: none;
}

.nav a:hover {
  background: var(--bg-2);
  color: var(--ink);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

@media (min-width: 1100px) {
  .nav {
    display: flex;
  }
  .nav + .top-actions {
    margin-left: 12px;
  }
}

@media (max-width: 580px) {
  .top .btn-primary {
    display: none;
  }
}

/* ── hero ─────────────────────────────────────────────────────────────────────────────────── */

.hero {
  padding: 56px 0 80px;
}

.hero-in {
  display: grid;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 1.55rem + 3.7vw, 4.1rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.lede {
  max-width: 31em;
  margin-top: 22px;
  color: var(--ink-2);
  font-size: clamp(1.1rem, 1rem + 0.35vw, 1.28rem);
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-note {
  max-width: 31em;
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
}

.hero-art {
  position: relative;
  padding: 64px 0 40px;
}

@media (min-width: 1024px) {
  .hero {
    padding: 88px 0 112px;
  }
  .hero-in {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
    gap: 56px;
  }
}

/* the webmail, drawn */
.win {
  container-type: inline-size;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--app-bg);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.win .ico {
  width: 17px;
  height: 17px;
}

.win-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
}

.win-menu {
  color: var(--ink-2);
}

.win-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
}

.win-brand img {
  width: 16px;
  height: 19px;
}

.win-brand .wm-sep {
  height: 14px;
}

.win-search {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
  max-width: 290px;
  margin-inline: auto;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--app-panel);
  color: var(--muted);
}

.win-me {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 700;
}

.win-body {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 8px;
  min-height: 336px;
  padding: 0 8px 8px;
}

.win-rail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 2px 2px 0;
}

.win-compose {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  margin-bottom: 10px;
  padding: 10px 15px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}

.win-folder {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--ink-2);
}

.win-folder b {
  margin-left: auto;
  font-size: 12px;
}

.win-folder.is-on {
  background: var(--sel);
  color: var(--ink);
  font-weight: 700;
}

.win-list,
.win-read {
  overflow: hidden;
  border-radius: 14px;
  background: var(--app-panel);
}

.win-list-head {
  padding: 12px 14px 8px;
  font-weight: 700;
}

.win-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
}

.win-row.is-sel {
  background: var(--sel);
}

.win-row-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.win-from,
.win-subj {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.win-from {
  font-weight: 500;
}

.win-subj {
  color: var(--ink-2);
  font-size: 12.5px;
}

.is-unread .win-from {
  font-weight: 700;
}

.is-unread .win-subj {
  color: var(--ink);
}

.win-time {
  align-self: flex-start;
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
}

.av {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--on-av);
  font-size: 12px;
  font-weight: 700;
}

.av-1 {
  background: var(--av-1);
}

.av-2 {
  background: var(--av-2);
}

.av-3 {
  background: var(--av-3);
}

.av-4 {
  background: var(--av-4);
}

.av-5 {
  background: var(--av-5);
}

.av-lb {
  background: var(--accent);
  color: var(--on-accent);
}

.win-read-in {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
}

.win-read-subj {
  font-size: 15px;
  font-weight: 700;
}

.win-read-from {
  display: flex;
  align-items: center;
  gap: 10px;
}

.win-read-from small {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
}

.win-read-text {
  color: var(--ink-2);
}

.bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bar {
  display: block;
  height: 8px;
  border-radius: 6px;
  background: var(--bar);
}

.w90 {
  width: 90%;
}

.w75 {
  width: 75%;
}

.w60 {
  width: 60%;
}

.w45 {
  width: 45%;
}

.w30 {
  width: 30%;
}

.win-attach,
.win-reply {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-2);
}

.win-reply {
  border-radius: 999px;
}

@container (max-width: 640px) {
  .win-body {
    grid-template-columns: 50px minmax(0, 1fr) minmax(0, 1fr);
  }
  .win-compose {
    padding: 10px;
  }
  .win-rail .lbl,
  .win-folder b {
    display: none;
  }
  .win-folder {
    justify-content: center;
    padding: 8px;
  }
}

@container (max-width: 480px) {
  .win-body {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .win-rail,
  .win-read,
  .win-search {
    display: none;
  }
  .win-me {
    margin-left: auto;
  }
}

/* small cards that float over a drawing */
.chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 16px);
  padding: 9px 14px 9px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
}

.chip b {
  display: block;
  font-weight: 700;
}

.chip small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.chip .ico {
  color: var(--ok);
}

.chip-a {
  top: 0;
  right: 10px;
}

.chip-b {
  bottom: 0;
  left: 10px;
}

@media (min-width: 1280px) {
  .chip-a {
    right: -16px;
  }
  .chip-b {
    left: -16px;
  }
}

/* ── sections ─────────────────────────────────────────────────────────────────────────────── */

.sec {
  padding: 96px 0;
}

.sec-alt {
  background: var(--bg-2);
}

.sec-head {
  max-width: 46rem;
  margin: 0 auto 60px;
  text-align: center;
}

.sec-head h2 {
  font-size: clamp(2rem, 1.35rem + 2.3vw, 2.95rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.sec-head p {
  max-width: 34em;
  margin: 18px auto 0;
  color: var(--ink-2);
  font-size: 1.15rem;
}

@media (max-width: 700px) {
  .sec {
    padding: 72px 0;
  }
  .sec-head {
    margin-bottom: 44px;
  }
}

/* a list of features beside a drawing of the one that is open */
.show {
  display: grid;
  gap: 40px;
  align-items: center;
}

.show-art {
  order: -1;
  display: grid;
  min-height: 320px;
  place-items: center;
}

@media (min-width: 960px) {
  .show {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 72px;
  }
  .show-art {
    order: 1;
    min-height: 400px;
  }
  .show-rev {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }
  .show-rev .show-art {
    order: -1;
  }
}

.feat {
  border-left: 2px solid var(--line-2);
  padding-left: 22px;
}

.feat + .feat {
  margin-top: 10px;
}

.feat[open] {
  border-left-color: var(--accent);
}

.feat summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 0;
  cursor: pointer;
  list-style: none;
}

.feat summary::-webkit-details-marker {
  display: none;
}

.feat summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin: 0 6px 4px auto;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.feat[open] summary::after {
  margin-bottom: -4px;
  transform: rotate(-135deg);
}

.feat h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-2);
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.feat h3 .ico {
  width: 22px;
  height: 22px;
  color: var(--muted);
}

.feat[open] h3 {
  color: var(--ink);
}

.feat[open] h3 .ico {
  color: var(--accent-text);
}

.feat-body {
  padding: 2px 0 14px 34px;
}

.feat-body p {
  max-width: 30em;
  color: var(--ink-2);
}

.feat::details-content {
  height: 0;
  overflow: clip;
  transition: height 0.25s ease, content-visibility 0.25s ease allow-discrete;
}

.feat[open]::details-content {
  height: auto;
}

/* ── the drawings beside each list ────────────────────────────────────────────────────────── */

.art {
  display: none;
  position: relative;
  width: 100%;
  max-width: 520px;
  padding: 18px 0;
}

.art.is-on {
  display: block;
  animation: art-in 0.3s ease both;
}

@keyframes art-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.mock {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
}

.mock .ico {
  width: 18px;
  height: 18px;
}

.mock-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.mock-head b {
  font-size: 15px;
}

.mock-head span {
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bar-2);
  color: var(--ink-2);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  white-space: nowrap;
}

.mock-head .tag {
  margin-left: auto;
}

.tag-ok {
  background: var(--ok-tint);
  color: var(--ok);
}

.tag-warn {
  background: var(--warn-tint);
  color: var(--warn);
}

.tag-bad {
  background: var(--bad-tint);
  color: var(--bad);
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
}

.mock-head + .mock-row {
  border-top: 0;
}

.mock-row .grow {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-row small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-row .muted {
  color: var(--muted);
  white-space: nowrap;
}

.mock-row > .ico {
  color: var(--ink-2);
}

.mock-row > .ico.ok,
.mock-foot .ico {
  color: var(--ok);
}

.mock-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.mock-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}

.mock-btn .ico {
  width: 16px;
  height: 16px;
}

.mono {
  font-family: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
  font-size: 12.5px;
}

/* how mail travels, drawn */
.flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 26px 16px 22px;
}

.node,
.link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.node .ico,
.link .ico {
  box-sizing: content-box;
  width: 22px;
  height: 22px;
  padding: 12px;
}

.node .ico {
  border-radius: 16px;
  background: var(--bar-2);
  color: var(--ink);
}

.node b {
  font-size: 12.5px;
  font-weight: 600;
}

.node small {
  margin-top: -6px;
  color: var(--muted);
  font-size: 11.5px;
}

.link {
  position: relative;
  color: var(--ok);
  font-size: 12px;
  font-weight: 600;
}

.link::before {
  content: "";
  position: absolute;
  top: 23px;
  left: -12px;
  right: -12px;
  border-top: 2px dashed var(--line-2);
}

.link .ico {
  position: relative;
  border-radius: 50%;
  background: var(--ok-tint);
  color: var(--ok);
}

/* the sign-in page, drawn */
.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bar-2);
}

.dots {
  display: flex;
  gap: 6px;
}

.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bar);
}

.url {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 6px;
  max-width: 300px;
  margin-inline: auto;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12.5px;
}

.url .ico {
  width: 14px;
  height: 14px;
  color: var(--ok);
}

.signin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 30px 26px 26px;
  text-align: center;
}

.biz-logo {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 4px;
  border-radius: 16px;
  background: var(--biz);
  color: var(--on-biz);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.signin-h {
  font-size: 20px;
  font-weight: 700;
}

.signin-sub {
  color: var(--muted);
}

.field {
  display: block;
  width: 100%;
  max-width: 300px;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  color: var(--muted);
  text-align: left;
}

.signin .field:first-of-type {
  margin-top: 8px;
}

.signin-btn {
  width: 100%;
  max-width: 300px;
  margin-top: 4px;
  padding: 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}

.signin-foot {
  padding: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* a week of a calendar, drawn */
.cal {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 14px;
}

.cal-day {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 190px;
}

.cal-day > b {
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.cal-day.is-today > b {
  color: var(--accent-text);
}

.ev {
  padding: 6px 7px;
  border-radius: 8px;
  background: var(--bar-2);
  color: var(--ink);
  font-size: 11.5px;
  line-height: 1.3;
}

.ev small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.ev-a {
  background: var(--accent-tint);
}

.ev-b {
  background: var(--ok-tint);
}

.ev-gap {
  flex: 1;
}

/* light and dark, side by side */
.themes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.mini {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.mini-light {
  --m-bg: var(--mini-l-bg);
  --m-panel: var(--mini-l-panel);
  --m-bar: var(--mini-l-bar);
  --m-ink: var(--mini-l-ink);
  background: var(--m-bg);
}

.mini-dark {
  --m-bg: var(--mini-d-bg);
  --m-panel: var(--mini-d-panel);
  --m-bar: var(--mini-d-bar);
  --m-ink: var(--mini-d-ink);
  background: var(--m-bg);
}

.mini-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: var(--m-ink);
  font-size: 12px;
  font-weight: 700;
}

.mini-top i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--accent);
}

.mini-body {
  display: grid;
  grid-template-columns: 34% 1fr;
  gap: 6px;
  padding: 0 8px 8px;
}

.mini-rail {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 4px;
}

.mini-rail span {
  height: 7px;
  border-radius: 5px;
  background: var(--m-bar);
}

.mini-rail span:first-child {
  height: 16px;
  border-radius: 8px;
  background: var(--accent);
}

.mini-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 150px;
  padding: 10px;
  border-radius: 10px;
  background: var(--m-panel);
}

.mini-list span {
  height: 7px;
  border-radius: 5px;
  background: var(--m-bar);
}

.seg-show {
  display: flex;
  gap: 4px;
  width: max-content;
  margin: 18px auto 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 13px;
}

.seg-show span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--ink-2);
}

.seg-show .is-on {
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
}

.seg-show .ico {
  width: 16px;
  height: 16px;
}

/* search, drawn */
.search-big {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 18px 6px;
  padding: 11px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink);
}

.search-big .ico {
  color: var(--muted);
}

.search-big .caret {
  width: 1px;
  height: 16px;
  margin-left: -6px;
  background: var(--accent-text);
}

/* the backups, drawn */
.nights {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  padding: 18px;
}

.night {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-radius: 12px;
  background: var(--bar-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.night .ico {
  width: 18px;
  height: 18px;
  color: var(--ok);
}

.night.is-last {
  background: var(--ok-tint);
  color: var(--ok);
}

/* ── apps ─────────────────────────────────────────────────────────────────────────────────── */

.apps {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .apps {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 80px;
  }
}

.phone-art {
  position: relative;
  display: grid;
  place-items: center;
  padding: 10px 0;
}

.phone {
  width: 268px;
  overflow: hidden;
  border: 9px solid var(--device);
  border-radius: 40px;
  background: var(--app-panel);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.phone-notch {
  width: 86px;
  height: 22px;
  margin: 0 auto 2px;
  border-radius: 0 0 14px 14px;
  background: var(--device);
}

.phone-head {
  padding: 8px 16px 10px;
}

.phone-head b {
  display: block;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.phone-head small {
  color: var(--muted);
  font-size: 12px;
}

.phone .win-row {
  padding: 10px 14px;
}

.phone-foot {
  height: 26px;
}

.settings h3 {
  font-size: 1.35rem;
  font-weight: 650;
}

.settings dl {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.settings dl > div {
  display: grid;
  grid-template-columns: minmax(0, 12em) minmax(0, 1fr);
  gap: 4px 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.settings dt {
  color: var(--ink-2);
  font-weight: 600;
}

.settings dd {
  color: var(--ink);
}

.settings dd .mono {
  font-size: 14.5px;
}

.settings-note {
  max-width: 34em;
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 560px) {
  .settings dl > div {
    grid-template-columns: 1fr;
  }
}

.facts {
  display: grid;
  gap: 36px;
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

@media (min-width: 820px) {
  .facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
}

.facts h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.15rem;
  font-weight: 650;
}

.facts h3 .ico {
  width: 22px;
  height: 22px;
  color: var(--accent-text);
}

.facts p {
  max-width: 26em;
  margin-top: 10px;
  color: var(--ink-2);
}

/* ── pricing ──────────────────────────────────────────────────────────────────────────────── */

.price-card {
  display: grid;
  overflow: hidden;
  max-width: 1000px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

@media (min-width: 860px) {
  .price-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.price-main,
.price-est {
  padding: 36px;
}

@media (max-width: 560px) {
  .price-main,
  .price-est {
    padding: 26px 22px;
  }
}

.price-est {
  border-top: 1px solid var(--line);
}

@media (min-width: 860px) {
  .price-est {
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

.price-big {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}

.price-big b {
  font-size: 4rem;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.03em;
}

.price-big span {
  color: var(--ink-2);
  font-size: 1.1rem;
}

.ticks {
  display: grid;
  gap: 10px;
  margin: 26px 0 30px;
}

.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ticks .ico {
  margin-top: 3px;
  color: var(--ok);
}

.price-est h3 {
  font-size: 1.25rem;
  font-weight: 650;
}

.est {
  display: grid;
  gap: 22px;
  margin-top: 20px;
}

.est-row {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.est-row > label,
.est-row legend {
  padding: 0;
  color: var(--ink-2);
  font-weight: 600;
}

.stepper {
  display: inline-flex;
  align-items: stretch;
  width: max-content;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}

.stepper button {
  width: 48px;
  min-height: 46px;
  border: 0;
  background: var(--bg-2);
  color: var(--ink);
  font: 600 20px/1 var(--font);
  cursor: pointer;
}

.stepper button:hover {
  background: var(--line);
}

.stepper input {
  width: 74px;
  border: 0;
  border-inline: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  font: 600 18px/1 var(--font);
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.seg {
  display: inline-flex;
  width: max-content;
  padding: 4px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}

.seg label {
  position: relative;
}

.seg input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.seg span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 600;
}

.seg input:checked + span {
  background: var(--ink);
  color: var(--bg);
}

.seg input:focus-visible + span {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}

.est-out {
  display: block;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.est-total {
  display: block;
  font-size: 2.4rem;
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.est-detail {
  display: block;
  margin-top: 6px;
  color: var(--ink-2);
}

.price-notes {
  display: grid;
  gap: 12px;
  max-width: 1000px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 15px;
}

.price-notes p {
  max-width: 38em;
}

.price-notes a {
  color: var(--accent-text);
  font-weight: 600;
  text-underline-offset: 3px;
}

/* ── steps ────────────────────────────────────────────────────────────────────────────────── */

.steps {
  display: grid;
  gap: 36px;
  counter-reset: step;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
  }
}

.steps li {
  counter-increment: step;
}

.steps h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.15rem;
  font-weight: 650;
}

.steps h3::before {
  content: counter(step);
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-size: 15px;
  font-weight: 700;
}

.steps p {
  max-width: 24em;
  margin-top: 10px;
  padding-left: 46px;
  color: var(--ink-2);
}

.steps-more {
  margin-top: 44px;
  text-align: center;
}

/* ── questions ────────────────────────────────────────────────────────────────────────────── */

.faq {
  display: grid;
  gap: 40px;
  align-items: start;
}

@media (min-width: 960px) {
  .faq {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 64px;
  }
}

.qa {
  border-bottom: 1px solid var(--line);
}

.qa:first-child {
  border-top: 1px solid var(--line);
}

.qa summary {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin: 0 8px 4px auto;
  border-right: 2px solid var(--accent-text);
  border-bottom: 2px solid var(--accent-text);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.qa[open] summary::after {
  margin-bottom: -4px;
  transform: rotate(-135deg);
}

.qa h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.qa-a {
  padding: 0 0 22px;
}

.qa-a p {
  max-width: 36em;
  color: var(--ink-2);
}

.qa::details-content {
  height: 0;
  overflow: clip;
  transition: height 0.25s ease, content-visibility 0.25s ease allow-discrete;
}

.qa[open]::details-content {
  height: auto;
}

.help {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.help h3 {
  font-size: 1.25rem;
  font-weight: 650;
}

.help p {
  margin: 12px 0 22px;
  color: var(--ink-2);
}

/* ── the last word ────────────────────────────────────────────────────────────────────────── */

.end {
  padding: 104px 0;
  text-align: center;
}

.end img {
  width: 52px;
  height: 60px;
  margin: 0 auto 30px;
}

.end h1,
.end h2 {
  max-width: 18em;
  margin-inline: auto;
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.end p {
  max-width: 30em;
  margin: 16px auto 0;
  color: var(--ink-2);
  font-size: 1.15rem;
}

.end .hero-cta {
  justify-content: center;
}

/* ── footer ───────────────────────────────────────────────────────────────────────────────── */

.foot {
  padding: 64px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink-2);
  font-size: 15px;
}

.foot-in {
  display: grid;
  gap: 40px;
}

@media (min-width: 860px) {
  .foot-in {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  }
}

.foot-brand p {
  max-width: 22em;
  margin-top: 12px;
}

.foot h2 {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.foot ul {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.foot ul a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--ink-2);
  text-decoration: none;
}

.foot ul a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

/* ── phones: every tap target at least 44px, a little less air ────────────────────────────── */

@media (pointer: coarse) {
  .foot ul a,
  .nav a {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding-inline: 16px;
  }
  body {
    font-size: 16.5px;
  }
  .brand {
    font-size: 17px;
  }
  .hero {
    padding-top: 40px;
  }
  .hero-cta .btn {
    flex: 1 1 auto;
  }
  .show-art {
    min-height: 0;
  }
  .cal {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cal-day:nth-child(n + 4) {
    display: none;
  }
  .nights {
    gap: 5px;
    padding: 14px;
  }
}

/* ── motion only for those who want it ────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
