/* hearingscribe.com — design A ("Quiet Mac"). One stylesheet for every page; tokens first. */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/instrument-sans-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: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/instrument-sans-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #18181f; --text: #33333b; --muted: #5d5d68; --line: #e4e4ea; --panel: #f6f6f9; --bg: #ffffff;
  --accent: #4f46e5; --accent-ink: #ffffff; --accent-soft: #f1f0fe; --accent-deep: #3730a3; --dark: #18181f; --dark-text: #c7c7d1;
  --font: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --wrap: 1160px; --radius: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--font); }
img, svg { max-width: 100%; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--bg); padding: 8px 12px; }

/* header */
.site-head { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; }
.site-head .wrap { display: flex; align-items: center; gap: 26px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.site-nav { display: flex; gap: 24px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.site-nav a { color: var(--muted); font-size: 15px; }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.site-nav .btn-dark { color: #ffffff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 12px;
  font-weight: 600; font-size: 16px; border: 0; cursor: pointer; text-decoration: none !important; }
.btn-primary { background: var(--accent); color: var(--accent-ink); } .btn-primary:hover { background: #4338ca; }
.btn-dark { background: var(--ink); color: #ffffff; min-height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-soft { background: #f2f2f6; color: var(--ink); } .btn-soft:hover { background: #e9e9ef; }
.btn-line { background: #ffffff; color: var(--ink); box-shadow: 0 0 0 1px #dcdce4; }

/* hero */
.hero { text-align: center; padding: 72px 0 36px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 14px; border-radius: 15px; background: var(--accent-soft); color: var(--accent-deep); font-size: 13px; font-weight: 600; }
h1 { margin: 0; font-size: clamp(38px, 6vw, 64px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance; max-width: 880px; }
.lede { margin: 0; max-width: 660px; font-size: clamp(17px, 2vw, 20px); color: var(--muted); text-wrap: pretty; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.fine { font-size: 13px; color: var(--muted); }

/* app window (drawn in HTML, scales down on phones) */
.window { max-width: 1000px; margin: 20px auto 0; border-radius: var(--radius); background: #ffffff; box-shadow: 0 0 0 1px var(--line), 0 40px 90px rgba(24,24,60,.16); overflow: hidden; display: flex; min-height: 460px; text-align: left; }
.window .side { width: 220px; flex: none; background: #f4f4f7; padding: 16px 12px; display: flex; flex-direction: column; gap: 6px; }
.dots { display: flex; gap: 7px; padding: 0 4px 14px; } .dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.side .search { height: 30px; border-radius: 8px; background: #e8e8ee; }
.side .label { font-size: 10px; font-weight: 700; letter-spacing: .06em; color: #8a8a94; padding: 10px 6px 2px; }
.side .rec { padding: 9px 10px; border-radius: 8px; } .side .rec.on { background: #ffffff; box-shadow: 0 0 0 1px var(--line); }
.side .rec b { display: block; font-size: 12.5px; } .side .rec span { font-size: 11px; color: #8a8a94; }
.window .main { flex: 1; min-width: 0; padding: 22px 30px; display: flex; flex-direction: column; gap: 16px; }
.wtop { display: flex; align-items: center; gap: 12px; } .wtop b { flex: 1; font-size: 17px; }
.wtop span { font-size: 12px; padding: 6px 12px; border-radius: 8px; background: #f2f2f6; } .wtop span.r { background: var(--ink); color: #fff; border-radius: 16px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; } .chips span { font-size: 12px; padding: 4px 10px; border-radius: 12px; }
.line { display: flex; gap: 12px; } .line .av { width: 28px; height: 28px; border-radius: 50%; font-size: 12px; display: grid; place-items: center; flex: none; }
.line b { font-size: 12.5px; } .line b em { font-style: normal; font-weight: 400; color: #8a8a94; margin-left: 4px; } .line p { margin: 2px 0 0; font-size: 14px; color: var(--text); }
.player { margin-top: auto; height: 46px; border-radius: 12px; background: var(--panel); display: flex; align-items: center; gap: 12px; padding: 0 14px; }
.player i { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); flex: none; }
.player s { flex: 1; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent) 34%, #dcdce4 34%); }
.player span { font-size: 12px; color: #8a8a94; }
.c1 { background: #ecebfd; color: #3730a3; } .c2 { background: #fdece2; color: #9a3412; } .c3 { background: #dff5f1; color: #0f766e; }
@media (max-width: 760px) { .window .side { display: none; } .window .main { padding: 18px; } }

/* sections */
section { padding-top: 96px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
h2 { margin: 0; font-size: clamp(30px, 4vw, 40px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; text-wrap: balance; }
h3 { margin: 0; font-size: 20px; font-weight: 600; }
.sub { margin: 10px 0 0; font-size: 17px; color: var(--muted); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 28px; }
.steps .n { font-size: 15px; font-weight: 700; color: var(--accent); }
.steps p, .cards p { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.card { padding: 24px; border-radius: var(--radius); background: var(--panel); }
.card h3 { font-size: 18px; }
.dark-band { border-radius: 22px; background: var(--dark); color: #ffffff; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.dark-band p { color: var(--dark-text); font-size: 17px; margin: 14px 0 0; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.checks li { display: flex; gap: 12px; align-items: center; }
.checks li::before { content: ""; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.prices { max-width: 840px; margin: 36px auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.price { padding: 30px; border-radius: 18px; background: var(--panel); display: flex; flex-direction: column; gap: 14px; }
.price.pro { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.price .amt { font-size: 44px; font-weight: 600; letter-spacing: -0.02em; } .price .amt small { font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.price ul { margin: 0; padding-left: 20px; color: var(--text); } .price li { margin: 6px 0; }
.price .btn { margin-top: auto; }
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; } .faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; } .faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 8px 0 0; color: var(--muted); }
.cta-band { border-radius: 22px; background: var(--accent-soft); padding: clamp(28px, 5vw, 56px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }

/* long-form pages (use cases, legal, support) */
.page { max-width: 760px; margin: 0 auto; padding: 56px 0 0; }
.page h1 { font-size: clamp(34px, 5vw, 48px); }
.page .lede { margin-top: 16px; }
.prose { margin-top: 36px; font-size: 17px; color: var(--text); }
.prose h2 { font-size: 28px; margin: 44px 0 12px; }
.prose h3 { margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose li { margin: 6px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 20px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose blockquote { margin: 0 0 16px; padding: 12px 16px; border-radius: 10px; background: var(--panel); }
.prose code { font-size: .92em; background: var(--panel); padding: 1px 5px; border-radius: 5px; }
.note { padding: 14px 16px; border-radius: 12px; background: var(--panel); font-size: 15px; color: var(--muted); }

/* footer */
.site-foot { margin-top: 96px; border-top: 1px solid var(--line); }
.site-foot .wrap { padding-top: 36px; padding-bottom: 44px; display: flex; gap: 20px 28px; flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--muted); }
.site-foot .grow { flex: 1 1 200px; }
.site-foot a { color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }

@media (max-width: 860px) {
  .grid3, .cards { grid-template-columns: minmax(0, 1fr); }
  .dark-band { grid-template-columns: minmax(0, 1fr); }
  .prices { grid-template-columns: minmax(0, 1fr); }
  .site-nav { gap: 16px; } .site-nav .hide-sm { display: none; }
}

/* small helpers used by the generated pages */
.dots .d1 { background: #ff5f57; } .dots .d2 { background: #febc2e; } .dots .d3 { background: #28c840; }
.center { text-align: center; }
.cta-row.left { justify-content: flex-start; margin-top: 24px; }
.faq h2 { margin-bottom: 18px; }
.page .pill { margin-bottom: 18px; }
.license-key { margin: 24px 0; padding: 16px 18px; border-radius: 12px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line);
  font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-all; user-select: all; }

/* phones: one responsive page, tuned below 560px (header) and 600px (everything else) */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  section { padding-top: 56px; }
  .hero { padding: 40px 0 20px; gap: 18px; }
  h1 { font-size: clamp(30px, 8.6vw, 38px); line-height: 1.1; letter-spacing: -0.025em; }
  .page { padding-top: 36px; }
  .page h1 { font-size: clamp(30px, 8.6vw, 38px); }
  h2 { font-size: clamp(25px, 7vw, 30px); line-height: 1.15; }
  .prose h2 { font-size: 23px; margin-top: 36px; }
  .lede { font-size: 17px; }
  .cta-row { flex-direction: column; align-items: stretch; width: 100%; }
  .cta-row .btn { width: 100%; min-height: 50px; }
  .cta-row.left { margin-top: 20px; }
  .fine { display: flex; flex-direction: column; gap: 2px; line-height: 1.45; }
  .fine .sep { display: none; }

  .window { margin-top: 8px; min-height: 0; border-radius: 14px; box-shadow: 0 0 0 1px var(--line), 0 20px 44px rgba(24,24,60,.14); }
  .window .main { padding: 14px; gap: 12px; }
  .wtop { gap: 8px; } .wtop b { font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .wtop span { padding: 5px 10px; flex: none; }
  .chips { gap: 6px; } .chips span { font-size: 11.5px; }
  .line { gap: 10px; } .line p { font-size: 13.5px; line-height: 1.45; }
  .player { height: 40px; margin-top: 4px; }

  .grid3 { gap: 22px; margin-top: 18px; }
  .steps > div { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; }
  .steps .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); font-size: 14px; }
  .steps p { grid-column: 1 / -1; }
  h3 { font-size: 18px; }
  .cards { gap: 12px; margin-top: 22px; }
  .card { padding: 20px; }
  .dark-band { border-radius: 18px; padding: 28px 22px; gap: 24px; }
  .dark-band p { font-size: 16px; }
  .prices { margin-top: 24px; gap: 14px; }
  .price { padding: 24px 22px; }
  .price .amt { font-size: 38px; }
  .price .btn { min-height: 50px; }
  .faq details { padding: 0; }
  .faq summary { font-size: 17px; min-height: 56px; align-items: center; padding: 12px 0; }
  .faq details p { margin: 0 0 16px; }
  .cta-band { border-radius: 18px; padding: 32px 20px; }
  .cta-band .btn { width: 100%; min-height: 50px; }

  .site-foot { margin-top: 56px; }
  .site-foot .wrap { padding-top: 24px; padding-bottom: max(28px, env(safe-area-inset-bottom)); flex-direction: column; align-items: stretch; gap: 12px; }
  .site-foot .grow { flex: none; order: 2; padding-top: 12px; border-top: 1px solid var(--line); }
  .foot-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .foot-links a { min-height: 44px; display: flex; align-items: center; font-size: 15px; }
  .foot-links .mail { grid-column: 1 / -1; overflow-wrap: anywhere; }
}
@media (max-width: 560px) {
  .site-head .wrap { flex-wrap: nowrap; gap: 12px; min-height: 58px; }
  .brand { font-size: 17px; gap: 8px; min-width: 0; }
  .brand img { width: 28px; height: 28px; }
  .site-nav { flex-wrap: nowrap; gap: 0; }
  .site-nav a:not(.btn) { display: none; }
  .site-nav .btn-dark { min-height: 44px; padding: 0 14px; white-space: nowrap; }
}
