/* SoundSense quote demo landing page.
   Tokens follow the SoundSense website (sswebsite/site/shared/site.css):
   Instrument Sans, brand blue #2d55f2, ink #0e1116, paper #f6f8fb, midnight
   #0b0e14. Blue is kept for the send action and the mailbox address only. */

@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f6f8fb;
  --card: #ffffff;
  --ink: #0e1116;
  --ink-2: #5a6472;
  --line: #dde1e8;
  --blue: #2d55f2;
  --blue-600: #1e42d8;
  --blue-text: #2d55f2;
  --tint: #e4eafe;
  --tint-ink: #1e42d8;
  --on-blue: #ffffff;
  --shadow: 0 1px 2px rgba(14, 17, 22, 0.06), 0 12px 32px rgba(14, 17, 22, 0.07);
  --send-shadow: 0 10px 26px rgba(45, 85, 242, 0.28);
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b0e14;
    --card: #11151e;
    --ink: #f2f5ff;
    --ink-2: #a9b2c0;
    --line: #252b38;
    --blue: #2d55f2;
    --blue-600: #3f64f4;
    --blue-text: #8aa2f9;
    --tint: #18203a;
    --tint-ink: #c3d0fc;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
    --send-shadow: 0 10px 26px rgba(45, 85, 242, 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--blue);
}
::selection { background: var(--blue); color: var(--on-blue); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue-text); outline-offset: 3px; border-radius: 6px; }

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px max(28px, env(safe-area-inset-bottom));
}

/* ---- header ---- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 0 8px;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 19px; letter-spacing: -0.02em; text-decoration: none;
}
.brand svg { width: 24px; height: 24px; flex: none; }
.brand .ring { stroke: var(--blue); }
.brand .chev { stroke: var(--ink); }
.brand b { color: var(--blue-text); }
.event { margin: 0; font-size: 13px; line-height: 1.35; color: var(--ink-2); text-align: right; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- intro ---- */
.intro { padding: 22px 0 0; }
.eyebrow {
  display: flex; align-items: center; gap: 10px; margin: 0;
  font-size: 15px; font-weight: 500; color: var(--ink-2);
}
.eyebrow::before { content: ""; width: 20px; height: 2px; background: var(--blue); border-radius: 2px; flex: none; }
h1 {
  margin: 12px 0 0;
  font-size: clamp(36px, 10.4vw, 44px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700;
}
h1 span { display: block; text-wrap: balance; }
.lead { margin: 14px 0 0; color: var(--ink-2); max-width: 36em; text-wrap: pretty; }

/* ---- the email ---- */
.mail { padding: 22px 0 0; }
.card {
  margin: 28px 0 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); overflow: hidden;
}
.fields { margin: 0; }
/* Header rows sit inline, "To" then the value, as a phone mail app shows them. */
.field {
  display: flex; align-items: baseline; gap: 10px;
  padding: 12px 14px 12px 16px; border-bottom: 1px solid var(--line);
}
.field dt { flex: none; font-size: 14px; color: var(--ink-2); }
.field dd { flex: 1; min-width: 0; margin: 0; font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.to { display: flex; align-items: center; justify-content: space-between; gap: 8px 10px; flex-wrap: wrap; }
.addr { color: var(--blue-text); font-weight: 600; font-size: 16.5px; user-select: all; -webkit-user-select: all; }
.copy {
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink);
  background: transparent; border: 1.5px solid var(--line); border-radius: 999px;
  min-height: 36px; padding: 4px 13px; cursor: pointer;
}
.copy[data-state="done"] { border-color: var(--blue); color: var(--blue-text); }
.copy:active { transform: scale(0.97); }
.body {
  margin: 0; padding: 14px 16px 16px;
  font-family: var(--mono); font-size: 14px; line-height: 1.5; color: var(--ink);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.madeup {
  margin: 0; padding: 12px 16px; border-radius: 14px; background: var(--tint); color: var(--tint-ink);
  font-size: 16px; line-height: 1.45; text-wrap: pretty;
}
.card-label {
  padding: 10px 16px; border-bottom: 1px solid var(--line);
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2);
}
.hint { margin: 10px 4px 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); text-align: center; }

.send {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 12px; min-height: 60px; padding: 16px 24px; border-radius: 999px;
  background: var(--blue); color: var(--on-blue); box-shadow: var(--send-shadow);
  font-size: 18px; font-weight: 600; text-decoration: none;
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.send svg { width: 22px; height: 22px; flex: none; }
.send:active { transform: scale(0.985); }
.send:focus-visible { outline-offset: 4px; border-radius: 999px; }
.fallback { margin: 12px 4px 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.addr-inline { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }

@media (hover: hover) {
  .send:hover { background: var(--blue-600); }
  .copy:hover { border-color: var(--ink); }
  .brand:hover b, .foot a:hover { color: var(--blue-text); }
}

/* ---- what happens next ---- */
.next { padding: 44px 0 0; }
.next h2, .small h2 { margin: 0; font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
.steps { list-style: none; margin: 14px 0 0; padding: 0; }
.steps li {
  display: grid; grid-template-columns: 5.4em minmax(0, 1fr); gap: 12px;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.when { font-size: 14px; font-weight: 600; color: var(--ink-2); padding-top: 2px; }
.steps h3 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; }
.steps p { margin: 4px 0 0; color: var(--ink-2); font-size: 16px; }

/* ---- demo and data ---- */
.small { padding: 40px 0 0; display: grid; gap: 24px; }
.note { max-width: 40em; }
.note h2 { font-size: 18px; }
.note p { margin: 6px 0 0; font-size: 16px; color: var(--ink-2); }

.again { margin: 32px 0 0; }
@media (pointer: coarse) { .copy { min-height: 44px; } }

/* ---- footer ---- */
.foot {
  margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 15px; color: var(--ink-2);
}
.foot p { margin: 0; }
.foot-base { margin-top: 6px !important; }
.foot a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---- wider screens: headline and steps left, the email right ---- */
@media (min-width: 900px) {
  body { font-size: 18px; }
  .page { max-width: 1200px; padding: 0 40px 40px; }
  .top { padding: 28px 0 12px; }
  .event { font-size: 14px; }
  .br-phone { display: none; }
  main {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 430px);
    grid-template-areas: "intro mail" "next mail" "small mail";
    grid-template-rows: auto auto 1fr;
    column-gap: 72px;
  }
  .again { display: none; }
  .intro { grid-area: intro; padding-top: 56px; }
  .mail { grid-area: mail; padding-top: 56px; align-self: start; position: sticky; top: 24px; }
  .next { grid-area: next; padding-top: 48px; }
  .small { grid-area: small; grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 40px; align-self: start; }
  h1 { font-size: 58px; }
  .lead { font-size: 19px; }
  .steps p, .note p { font-size: 17px; }
  .foot { display: flex; justify-content: space-between; margin-top: 64px; }
  .foot-base { margin-top: 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .send:active, .copy:active { transform: none; }
}
