/* ezWhiteBoard — ezwhiteboard.io
   Pearl identity. One family (Instrument Sans): slender width for display, normal for reading. */
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/InstrumentSans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --pearl: #f5f8fa;
  --mist: #dce4eb;
  --graphite: #253746;
  --slate: #566673;
  --teal: #257681;
  --smoke: #131c26;
  --page: var(--pearl);
  --ink: var(--graphite);
  --quiet: var(--slate);
  --rule: rgba(37, 55, 70, 0.14);
  --link: var(--teal);
  --glass-ink: #eef2f8;
  --glass-quiet: #c9d3e0;
  --glass-alpha: 0.70;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0f1720;
    --ink: #e8edf3;
    --quiet: #a9b6c4;
    --rule: rgba(232, 237, 243, 0.14);
    --link: #7fd6df;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--page); padding: 0.6rem 0.9rem; border-radius: 8px; z-index: 10; }
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }

/* ---------- header ---------- */
.site-header { padding-block: 1.4rem; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: inherit; text-decoration: none; }
.brand img { width: 2.5rem; height: 2.5rem; filter: drop-shadow(0 1px 2px rgba(19, 28, 38, 0.18)); }
.brand-name { font-weight: 600; font-size: 1.125rem; letter-spacing: -0.005em; line-height: 1.15; display: block; }
.brand-by { color: var(--quiet); font-size: 0.8125rem; line-height: 1.2; display: block; }
.site-nav { display: flex; gap: 1.4rem; font-size: 0.9375rem; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; }

/* ---------- hero ---------- */
.hero { padding-block: 1rem 4.5rem; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-copy { padding-bottom: 0; }
.lede { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.125rem); line-height: 1.24; max-width: 22ch; font-weight: 500; letter-spacing: -0.008em; margin: 0 0 2.2rem; font-stretch: 88%; }
.lede span { display: block; color: var(--quiet); font-weight: 400; letter-spacing: 0; font-size: 0.56em; line-height: 1.5; margin-top: 0.9rem; max-width: 40ch; font-stretch: 100%; }

.availability { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); max-width: 30rem; }
.availability li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding-block: 0.85rem; border-bottom: 1px solid var(--rule); font-size: 0.9688rem; align-items: baseline; }
.availability strong { font-weight: 600; }
.availability span { color: var(--quiet); }
.get { display: inline-block; background: var(--ink); color: var(--page); text-decoration: none; font-weight: 600; padding: 0.55rem 1rem; border-radius: 999px; }
.get:hover { background: var(--teal); color: #fff; }

/* The wallpaper the board floats over. A board needs something behind it to be glass. */
.desk {
  position: relative;
  border-radius: 28px;
  padding: 0 clamp(1.25rem, 4vw, 3.25rem) clamp(1.75rem, 4vw, 3.25rem);
  min-height: 39rem;
  display: flex; justify-content: flex-end; align-items: flex-start;
  overflow: hidden;
  background:
    radial-gradient(65% 50% at 15% 90%, rgba(240, 168, 96, 0.78), transparent 70%),
    radial-gradient(60% 55% at 88% 10%, rgba(74, 186, 198, 0.85), transparent 72%),
    radial-gradient(70% 60% at 28% 22%, rgba(122, 104, 190, 0.85), transparent 75%),
    linear-gradient(160deg, #2c5263 0%, #44487e 55%, #6a4668 100%);
}
.desk::before { /* far hills: just enough shape for the blur to have something to soften */
  content: ""; position: absolute; inset: auto -10% -18% -10%; height: 55%;
  background:
    radial-gradient(50% 100% at 25% 100%, rgba(15, 26, 36, 0.9), transparent 70%),
    radial-gradient(45% 80% at 75% 100%, rgba(15, 26, 36, 0.75), transparent 70%);
}

.board {
  position: relative;
  width: min(100%, 22.5rem);
  aspect-ratio: 360 / 640;
  border-radius: 0 0 20px 20px;
  color: var(--glass-ink);
  background: rgba(19, 28, 38, var(--glass-alpha));
  -webkit-backdrop-filter: blur(26px) saturate(1.25);
  backdrop-filter: blur(26px) saturate(1.25);
  box-shadow: 0 30px 60px -20px rgba(6, 10, 16, 0.65), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  padding: 1.1rem 1.35rem 1.35rem;
  display: flex; flex-direction: column;
  animation: untuck 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 150ms both;
}
.board::before { /* the illuminated top edge, as in the app */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, rgba(90, 220, 235, 0.75), rgba(255, 255, 255, 0.4), rgba(168, 120, 235, 0.5), rgba(240, 170, 90, 0.3));
}
.board-mark { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 600; color: var(--glass-quiet); }
.board-mark img { width: 1.375rem; height: 1.375rem; }
.board h1 {
  margin: auto 0 0;
  font-weight: 500;
  font-stretch: 75%;
  font-size: clamp(2.35rem, 1.6rem + 2.6vw, 3.15rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.caret { display: inline-block; width: 0.09em; height: 0.82em; margin-left: 0.12em; border-radius: 1em; background: #5ec6d1; vertical-align: -0.06em; }
.board p { margin: 1.1rem 0 0; color: var(--glass-quiet); font-size: 0.9375rem; line-height: 1.5; }

@keyframes untuck { from { transform: translateY(-92%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .board { animation: none; } html { scroll-behavior: auto; } }

/* ---------- sections ---------- */
.section { padding-block: 4.5rem; border-top: 1px solid var(--rule); }
.section h2 {
  font-weight: 500; font-stretch: 78%;
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.75rem);
  line-height: 1.08; letter-spacing: -0.012em;
  margin: 0 0 2.5rem; max-width: 18ch; text-wrap: balance;
}
.section h3 { font-size: 1.125rem; font-weight: 600; margin: 0; line-height: 1.35; }
.section p { margin: 0; }
.note { color: var(--quiet); font-size: 0.9375rem; }

.benefits { margin: 0; }
.benefits > div { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 38rem); gap: 0.5rem 3rem; padding-block: 1.6rem; border-top: 1px solid var(--rule); }
.benefits > div:first-child { border-top: 0; padding-top: 0; }
.benefits dt { font-size: 1.125rem; font-weight: 600; line-height: 1.35; }
.benefits dd { margin: 0; color: var(--quiet); }
.benefits dd p + p { margin-top: 0.75rem; }

.opacity-try { margin-top: 1.1rem; display: grid; grid-template-columns: auto minmax(8rem, 16rem) 3.2rem; gap: 0.9rem; align-items: center; color: var(--ink); font-size: 0.9375rem; }
.opacity-try output { font-variant-numeric: tabular-nums; color: var(--quiet); }
.opacity-try input[type="range"] { width: 100%; accent-color: var(--teal); }

.voice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; }
.voice > div { padding: 1.75rem 1.9rem 2rem; }
.voice > div + div { border-left: 1px solid var(--rule); }
.voice h3 { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; }
.voice svg { width: 1.25rem; height: 1.25rem; flex: none; color: var(--link); }
.voice p { color: var(--quiet); }
.voice .stops { margin-top: 0.9rem; color: var(--ink); font-size: 0.9375rem; }
.section .after-voice { margin-top: 1.5rem; max-width: 62ch; }

.devices { width: 100%; max-width: 54rem; border-collapse: collapse; font-size: 0.9688rem; }
.devices caption { text-align: left; color: var(--quiet); font-size: 0.9375rem; padding-bottom: 1rem; caption-side: top; max-width: 62ch; }
.devices th, .devices td { text-align: left; padding: 0.8rem 1rem 0.8rem 0; border-top: 1px solid var(--rule); vertical-align: top; }
.devices thead th { border-top: 0; font-weight: 600; color: var(--quiet); font-size: 0.875rem; }
.devices tbody th { font-weight: 500; }
.devices td { width: 9.5rem; color: var(--quiet); }
.devices td.yes { color: var(--ink); }
.table-scroll { overflow-x: auto; }

.section .gallery-note { margin: -1.4rem 0 2.2rem; max-width: 62ch; }
.gallery { columns: 3 16rem; column-gap: 1.75rem; }
.gallery figure { margin: 0 0 2rem; break-inside: avoid; }
.gallery img { width: 100%; border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(6, 10, 16, 0.45); }
.gallery figcaption { margin-top: 0.7rem; color: var(--quiet); font-size: 0.9375rem; }

/* ---------- reading pages ---------- */
.reading { padding-block: 2.5rem 5rem; }
.reading .wrap { max-width: 44rem; }
.reading h1 { font-weight: 500; font-stretch: 78%; font-size: clamp(2.2rem, 1.7rem + 2vw, 3rem); line-height: 1.06; letter-spacing: -0.012em; margin: 0 0 0.6rem; }
.reading .dateline { color: var(--quiet); margin: 0 0 2.5rem; font-size: 0.9375rem; }
.reading h2 { font-size: 1.25rem; font-weight: 600; margin: 2.4rem 0 0.6rem; line-height: 1.3; }
.reading p, .reading li { max-width: 66ch; }
.reading p { margin: 0 0 1rem; }
.reading ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.reading li { margin-bottom: 0.45rem; }
.help { margin: 0; }
.help > div { padding-block: 1.35rem; border-top: 1px solid var(--rule); }
.help dt { font-weight: 600; margin-bottom: 0.3rem; }
.help dd { margin: 0; color: var(--quiet); max-width: 66ch; }
kbd { font-family: inherit; font-size: 0.92em; border: 1px solid var(--rule); border-radius: 6px; padding: 0.05em 0.4em; white-space: nowrap; color: var(--ink); }
.contact { margin-top: 2.5rem; padding: 1.6rem 1.75rem; border: 1px solid var(--rule); border-radius: 16px; }
.contact h2 { margin-top: 0; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding-block: 2.25rem 3rem; font-size: 0.9375rem; color: var(--quiet); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; align-items: baseline; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
.site-footer a { color: var(--ink); }

/* ---------- small screens ---------- */
@media (max-width: 56rem) {
  .hero .wrap { grid-template-columns: 1fr; align-items: start; }
  .hero-copy { order: 2; padding-bottom: 0; }
  .desk { order: 1; min-height: 0; justify-content: center; padding-bottom: 2rem; }
  .board { width: min(100%, 20rem); }
  .benefits > div { grid-template-columns: 1fr; }
  .voice { grid-template-columns: 1fr; }
  .voice > div + div { border-left: 0; border-top: 1px solid var(--rule); }
}
@media (max-width: 30rem) {
  .site-nav { gap: 1rem; }
  .brand-by { display: none; }
  .availability li { grid-template-columns: 1fr; gap: 0.15rem; }
  .opacity-try { grid-template-columns: 1fr 3.2rem; }
  .opacity-try label { grid-column: 1 / -1; }
  .section { padding-block: 3.25rem; }
}
