/* TrueFriends — concierge healthcare */

@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #172033;
  --body: #243044;
  --soft: #3e4c60;
  --bronze: #5e4b2e;
  --gold: #a58858;
  --gold-bright: #e0c99a;
  --sage: #3d5642;
  --sage-dot: #5d7264;
  --navy: #121b2c;
  --ivory: #f3efe7;
  --stone: #e7e1d6;
  --paper: #fbf8f3;
  --white: #fffcf8;
  --line: rgba(23, 32, 51, 0.14);
  --danger: #8d3f3a;
  --danger-soft: #f8ecea;
  --serif: Fraunces, "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: Outfit, "Avenir Next", "Segoe UI", sans-serif;
  --nav-h: 76px;
  --wrap: 1180px;
  --shadow: 0 24px 50px rgba(18, 27, 44, 0.12);
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--body);
  background: var(--ivory);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 380;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  color-scheme: light;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 92% 8%, rgba(165, 136, 88, 0.11), transparent 68%),
    radial-gradient(680px 460px at -8% 92%, rgba(61, 86, 66, 0.07), transparent 70%);
}

body > * { position: relative; z-index: 1; }

img, svg { max-width: 100%; }

h1, h2, h3, p { text-wrap: pretty; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 520;
  font-optical-sizing: auto;
  letter-spacing: -0.034em;
  line-height: 1.02;
  color: var(--ink);
  text-wrap: balance;
}

h1 { margin: 0; font-size: clamp(2.7rem, 6.4vw, 5.15rem); }
h2 { margin: 0; font-size: clamp(2.15rem, 4vw, 3.35rem); }
h3 { margin: 0; color: var(--ink); font-family: var(--serif); font-weight: 520; letter-spacing: -0.03em; }

p { margin: 0; }

a { color: inherit; }

::selection { background: #e5d3b0; color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 40;
  background: var(--navy);
  color: var(--ivory);
  padding: 0.6rem 0.9rem;
  text-decoration: none;
}

.skip:focus { top: 12px; }

.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;
}

.visually-offscreen {
  position: fixed;
  left: -9999px;
  top: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

.kicker {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--navy);
  border-radius: 4px;
  background: var(--navy);
  color: #f4f0e8;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn:hover { background: #1c2940; }

.btn:focus-visible { outline-color: var(--gold-bright); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover { background: rgba(23, 32, 51, 0.05); }

.btn:disabled { opacity: 0.7; cursor: progress; }

.mail-link,
.contact-email {
  color: var(--ink);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(165, 136, 88, 0.9);
  overflow-wrap: anywhere;
}

.mail-link:hover,
.contact-email:hover { text-decoration-color: var(--ink); }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.25rem;
}

/* Navigation */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(243, 239, 231, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--gold);
}

.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: block;
  flex: none;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 520;
  letter-spacing: -0.03em;
  line-height: 1;
}

.nav-check {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .when-closed,
.nav-toggle .when-open {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.nav-toggle .when-open { display: none; }
.nav-check:checked + .nav-toggle .when-closed { display: none; }
.nav-check:checked + .nav-toggle .when-open { display: block; }
.icon-close { display: none; }
.nav-check:focus-visible + .nav-toggle { outline: 2px solid var(--bronze); outline-offset: 3px; }
.nav-check:checked + .nav-toggle .icon-open { display: none; }
.nav-check:checked + .nav-toggle .icon-close { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 450;
}

.nav-links a[aria-current="true"] {
  box-shadow: inset 0 -2px 0 var(--gold);
}

/* Hero */

.hero {
  padding: 2.5rem 0 4.5rem;
}

.hero h1 { margin-bottom: 1.75rem; }
.hero h1 .line { display: block; }

.lede {
  max-width: 38rem;
  padding-left: 1rem;
  border-left: 2px solid var(--gold);
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.65;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.6rem;
}

/* Product preview */

.preview { margin: 0; }

.preview figcaption {
  margin: 0.9rem auto 0;
  max-width: 46rem;
  color: var(--soft);
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: center;
}

.devices {
  display: grid;
  gap: 1.25rem;
  justify-items: center;
}

.shell {
  position: relative;
  height: 100%;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.22), transparent 26%),
    linear-gradient(180deg, #465168 0%, #1a2333 22%, #101722 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 22px 44px rgba(18, 27, 44, 0.16);
}

.screen {
  height: 100%;
  overflow: hidden;
  background: linear-gradient(180deg, var(--white), var(--paper));
  color: var(--ink);
}

.camera {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0c121c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  z-index: 2;
}

.phone { width: min(280px, 88%); }

.phone-shell {
  border-radius: 32px;
  padding: 10px;
  aspect-ratio: 9 / 18.4;
}

.phone-shell .camera { top: 14px; left: 50%; transform: translateX(-50%); }

.phone-shell::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 24%;
  width: 3px;
  height: 46px;
  border-radius: 2px;
  background: #2c384c;
}

.phone-screen {
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  padding: 12px 12px 14px;
}

.tablet { width: min(100%, 560px); }

.tablet-shell {
  border-radius: 26px;
  padding: 12px;
}

.tablet-shell .camera { top: 50%; left: 8px; transform: translateY(-50%); }

.tablet-screen {
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--soft);
  padding: 2px 4px 6px;
}

.status-glyphs { display: inline-flex; align-items: center; gap: 5px; }

.bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 9px;
}

.bars::before,
.bars::after {
  content: "";
  width: 2px;
  background: var(--soft);
  border-radius: 1px;
}

.bars::before { height: 5px; box-shadow: 3.5px 2px 0 var(--soft), 7px -2px 0 var(--soft); }
.bars::after { height: 9px; margin-left: 7px; }

.battery {
  width: 16px;
  height: 8px;
  border: 1px solid var(--soft);
  border-radius: 2px;
  position: relative;
}

.battery::before {
  content: "";
  position: absolute;
  inset: 1px 3px 1px 1px;
  background: var(--sage);
  border-radius: 1px;
}

.battery::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 2px;
  width: 1px;
  height: 3px;
  background: var(--soft);
}

.thread-head { padding: 2px 4px 8px; border-bottom: 1px solid var(--line); }

.mini-kicker {
  margin: 0;
  font-size: 10px;
  font-weight: 550;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
}

.thread-name {
  margin-top: 2px;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 520;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.thread-sub { color: var(--soft); font-size: 12px; }

.thread {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
}

.bubble {
  max-width: 92%;
  padding: 8px 10px 6px;
  border-radius: 14px;
}

.bubble p { font-size: 13px; line-height: 1.35; }
.bubble time { display: block; margin-top: 4px; font-size: 10px; color: var(--soft); }

.bubble.in {
  align-self: flex-start;
  background: #efe8dc;
  border-bottom-left-radius: 5px;
}

.bubble.out {
  align-self: flex-end;
  background: var(--navy);
  color: #f4f0e8;
  border-bottom-right-radius: 5px;
}

.bubble.out time { color: rgba(244, 240, 232, 0.72); }

.bubble.is-inbound {
  background: var(--white);
  border: 1px solid var(--gold);
}

.tag {
  display: inline-block;
  margin-bottom: 3px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
}

.tab-bar,
.tab-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
}

.tab-bar { border-bottom: 1px solid var(--line); }

.tab-id {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0.04em;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage-dot);
  box-shadow: 0 0 0 0 rgba(93, 114, 100, 0.45);
  animation: pulse 2.8s ease-out infinite;
}

.sample-pill {
  margin: 0;
  padding: 3px 7px;
  border: 1px solid rgba(94, 75, 46, 0.35);
  border-radius: 999px;
  color: var(--bronze);
  font-size: 10px;
  font-weight: 550;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tab-body { padding: 12px; }

.inbound-pane blockquote {
  margin: 6px 0 8px;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.who { font-size: 13px; font-weight: 500; }
.who span { color: var(--soft); font-weight: 400; }
.who span::before { content: "·"; margin: 0 0.35rem; color: var(--gold); }

.earlier-label {
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
  font-weight: 550;
}

.earlier { margin-top: 4px; font-size: 13px; color: var(--soft); }

.context-intro {
  margin: 2px 0 8px;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.ctx + .ctx { margin-top: 8px; }

.ctx h3 {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 550;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
}

.ctx ul { list-style: none; margin: 2px 0 0; padding: 0; }
.ctx li { font-size: 13px; line-height: 1.35; color: var(--ink); }
.ctx li span { color: var(--soft); margin-right: 0.35rem; }

.tab-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 11px;
  letter-spacing: 0.01em;
}

/* Value */

.value {
  background: var(--stone);
  padding: 5.5rem 0;
}

.value h2 { max-width: 16ch; margin-bottom: 2.5rem; }

.value-grid {
  display: grid;
  gap: 2rem;
}

.value-col h3 { font-size: clamp(1.7rem, 2.4vw, 2.15rem); margin-bottom: 0.75rem; }
.value-col p { max-width: 38rem; color: var(--body); }

.points {
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.points li {
  position: relative;
  padding-left: 1rem;
  margin-top: 0.45rem;
  color: var(--ink);
}

.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bronze);
}

/* How it works */

.how { padding: 5.5rem 0; }

.how h2 { max-width: 16ch; margin-bottom: 2.75rem; }

.steps {
  list-style: none;
  margin: 0;
  padding: 2rem 0 0;
  display: grid;
  gap: 2rem;
  position: relative;
}

.step-num {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-bottom: 0.8rem;
  padding-right: 0.65rem;
  background: var(--ivory);
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--bronze);
}

.steps h3 { font-size: 1.55rem; margin-bottom: 0.55rem; }
.steps p { color: var(--body); max-width: 34rem; }

/* Contact */

.contact {
  background: var(--stone);
  padding: 5.5rem 0;
}

.contact-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.contact-intro p { max-width: 32rem; margin-bottom: 1.25rem; }

.contact-email {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.1rem;
}

.contact-card {
  background: var(--paper);
  border: 1px solid rgba(23, 32, 51, 0.1);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1.4rem 1.2rem 1.3rem;
}

.form-note { color: var(--soft); font-size: 0.92rem; margin-bottom: 1rem; }

.form-errors {
  margin-bottom: 1rem;
  padding: 0.75rem 0.85rem;
  background: var(--danger-soft);
  color: var(--danger);
  border-radius: 6px;
  font-size: 0.95rem;
}

.field { margin-bottom: 0.95rem; }

.field label,
.roles legend {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--bronze);
  font-size: 0.78rem;
  font-weight: 550;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.optional {
  margin-left: 0.35rem;
  color: var(--soft);
  letter-spacing: 0.08em;
  text-transform: none;
  font-weight: 450;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  border: 1px solid rgba(23, 32, 51, 0.18);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.45;
  padding: 0.75rem 0.8rem;
}

textarea { resize: vertical; min-height: 140px; }

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
  background: #fff8f7;
}

.field-error { margin-top: 0.35rem; color: var(--danger); font-size: 0.92rem; }

.hint { margin-top: 0.35rem; color: var(--soft); font-size: 0.9rem; }

.roles { margin: 0 0 0.95rem; padding: 0; border: 0; min-inline-size: 0; }

.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }

.role-grid label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  margin: 0;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(23, 32, 51, 0.16);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.98rem;
  font-weight: 450;
  cursor: pointer;
}

.role-grid label:has(input:checked) {
  border-color: var(--ink);
  background: #f6f1e6;
}

.roles.is-invalid .role-grid label { border-color: #d7a9a5; }

.role-grid input {
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1.5px solid #7d7468;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--white);
}

.role-grid input:checked { border-color: var(--ink); }
.role-grid input:checked::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
}

.role-grid input:focus-visible { outline: 2px solid var(--bronze); outline-offset: 2px; }

.form-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 0.4rem;
}
.send-hint { margin: 0; max-width: 36rem; }

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-panel h3 {
  font-size: 1.85rem;
  margin-bottom: 0.6rem;
}

.form-panel h3:focus { outline: none; }

.panel-lead { margin-bottom: 0.9rem; }

.confirm-text {
  width: 100%;
  min-height: 180px;
  margin-bottom: 0.9rem;
  border: 1px solid rgba(23, 32, 51, 0.16);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 0.8rem;
  resize: vertical;
}

.panel-actions { display: flex; flex-wrap: wrap; gap: 0.6rem 0.75rem; align-items: center; }

.text-btn {
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--gold);
  cursor: pointer;
  min-height: 44px;
  padding: 0 0.2rem;
}

/* Footer */

.footer {
  background: var(--navy);
  color: #f4f0e8;
  padding: 2.4rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.footer .brand { color: #f4f0e8; }

.footer .brand-mark {
  background: var(--ivory);
  color: var(--ink);
  border-radius: 50%;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer a {
  color: #f4f0e8;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(224, 201, 154, 0.85);
}

.footer :focus-visible { outline-color: var(--gold-bright); }

/* Missing page */

.miss { padding: 5.5rem 0 6rem; }
.miss h1 { margin-bottom: 0.8rem; }
.miss-inner { max-width: 36rem; margin-inline: auto; }
.miss .actions { margin-top: 1.5rem; }

/* Layout shifts upward */

@media (min-width: 800px) {
  .value-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .value-grid .value-col + .value-col {
    padding-left: 3rem;
    border-left: 1px solid rgba(23, 32, 51, 0.14);
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .steps::before {
    content: "";
    position: absolute;
    top: 0.95rem;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold) 8%, var(--gold) 92%, transparent);
  }
  .contact-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.1fr);
    gap: 3.5rem;
    align-items: center;
  }
  .contact-card { padding: 1.7rem 1.5rem 1.5rem; }
}

@media (min-width: 1100px) {
  .hero { padding: 2.4rem 0 3.6rem; }
  .hero-grid {
    grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
    gap: 2.25rem;
    align-items: center;
  }
  .devices {
    position: relative;
    display: grid;
    grid-template-columns: 196px minmax(0, 1fr);
    align-items: end;
    width: 100%;
    max-width: 700px;
    margin-left: auto;
    aspect-ratio: auto;
  }
  .phone {
    position: relative;
    z-index: 2;
    width: calc(100% + 26px);
    left: auto;
    top: auto;
    margin: 0 -26px 10px 0;
  }
  .tablet {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    right: auto;
    top: auto;
  }
  .tablet-shell,
  .tablet-screen { height: auto; }
  .tab-body {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 0 14px;
    padding: 12px 14px 10px;
  }
  .context-pane {
    border-left: 1px solid var(--line);
    padding-left: 14px;
  }
  .inbound-pane blockquote { font-size: 1.15rem; }
  .ctx li, .earlier, .who { font-size: 12.5px; line-height: 1.35; }
  .bubble p { font-size: 12.5px; }
  .context-intro { font-size: 1rem; }
  .devices::after {
    content: "";
    position: absolute;
    z-index: 0;
    left: 6%;
    right: 4%;
    bottom: 0;
    height: 26px;
    background: radial-gradient(ellipse at center, rgba(18, 27, 44, 0.18), transparent 70%);
    pointer-events: none;
  }
}

@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.35rem 1.25rem 0.9rem;
    background: #f3efe7;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 36px rgba(18, 27, 44, 0.08);
  }
  .nav-check:checked ~ .nav-links { display: flex; }
  .nav-links a {
    border-top: 1px solid var(--line);
    padding: 0.55rem 0 0.55rem 0.9rem;
  }
  .nav-links a[aria-current="true"] {
    box-shadow: inset 3px 0 0 var(--gold);
  }
  .wrap { width: min(var(--wrap), calc(100% - 32px)); }
  .hero { padding-top: 1.6rem; }
  .value, .how, .contact { padding: 4rem 0; }
  .role-grid { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  h1 { font-size: 2.45rem; }
}

@media (forced-colors: active) {
  .btn, .shell, .contact-card, .role-grid label { border: 1px solid ButtonText; }
  .live-dot, .points li::before { background: ButtonText; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(93, 114, 100, 0.45); }
  100% { box-shadow: 0 0 0 8px rgba(93, 114, 100, 0); }
}

@media print {
  .nav, .nav-toggle, .preview { display: none; }
  body { background: white; }
  .value, .contact, .footer { background: white; color: black; }
  .footer { border-top: 1px solid #000; }
}
