/* Cheppify web app. Matches cheppify.com: forest, ivory, serif headings and a teal accent.
   Fonts are self-hosted, so visitors make no third-party requests. */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 600; font-display: swap; src: url("/fonts/cormorant-garamond-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --paper: #f8f7f2; --card: #ffffff; --ink: #15171a; --muted: #5d6166; --line: #e7e4da;
  --forest: #183a32; --mint: #bcebc9; --sage: #e8f0e9;
  --teal: #14b8a6; --teal-ink: #0f6e66; --danger: #b3202e;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 22px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: var(--teal-ink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; margin: 0; }
.wrap { max-width: 65rem; margin: 0 auto; padding: 0 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 8px; z-index: 100; text-decoration: none; }
.skip-link:focus { top: 1rem; }

.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.bar-row { display: flex; justify-content: space-between; align-items: center; min-height: 4.25rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--serif); font-size: 1.65rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.brand .accent { color: var(--teal-ink); }
.mark { width: 1.6em; height: 1em; color: var(--ink); display: inline-block; }
.mark svg { width: 100%; height: 100%; display: block; }
.site-header nav { display: flex; gap: 1.2rem; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.site-header nav a:hover { color: var(--ink); }

.web-hero { background: var(--forest); color: var(--paper); padding: clamp(2.2rem, 5.2vw, 3.9rem) 0; }
.eyebrow { color: var(--mint); text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; font-weight: 600; margin: 0 0 .65rem; }
.web-hero-layout { display: grid; align-items: center; gap: clamp(1.4rem, 4vw, 3rem); }
.hero-example { max-width: 25rem; border-inline-start: 2px solid var(--mint); padding-inline-start: 1rem; }
.hero-example .eyebrow { margin-bottom: .4rem; }
.hero-example-phrase { color: var(--paper); font: 600 clamp(1.45rem, 3vw, 2.05rem)/1.2 var(--serif); margin: 0; }
.web-hero h1 { font-size: clamp(2.65rem, 6.1vw, 4.9rem); margin-bottom: .55rem; }
.web-hero h1 em { color: var(--mint); font-style: italic; }
.lead { color: #e3ede6; font-size: clamp(.98rem, 2vw, 1.08rem); max-width: 49ch; margin: 0; }
.privacy-note { display: flex; align-items: flex-start; gap: .55rem; color: #d4e5da; font-size: .86rem; line-height: 1.55; margin: 1.35rem 0 0; max-width: 60ch; }
.privacy-note svg { color: var(--mint); flex: none; margin-top: .15rem; }
.privacy-note strong { color: var(--paper); font-weight: 600; }
.app { padding-top: clamp(1.6rem, 4vw, 2.8rem); padding-bottom: clamp(2.7rem, 5vw, 4rem); }
.workbench { display: grid; align-items: start; gap: 1.1rem clamp(1.25rem, 3vw, 2rem); }
.capture, .transcript { min-width: 0; }
.workbench-label { color: var(--teal-ink); display: flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .75rem; letter-spacing: .08em; margin: 0 0 .65rem; text-transform: uppercase; }
.workbench-label span { color: var(--muted); }
@media (min-width: 760px) {
  .web-hero-layout { grid-template-columns: minmax(0, 1.55fr) minmax(0, .85fr); }
  .workbench { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
}
@media (max-width: 460px) {
  .bar-row { flex-wrap: wrap; gap: .35rem 1rem; padding-block: .7rem; }
  .site-header nav { flex-wrap: wrap; gap: .35rem .95rem; }
  .row-head { flex-wrap: wrap; column-gap: .7rem; }
}
.alert { background: #fdecef; border: 1px solid #f0b4c0; color: #7a1730; border-radius: 14px; padding: 0.85rem 1rem; margin-bottom: 1rem; font-weight: 500; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 1rem; padding: clamp(1rem, 3vw, 1.45rem); margin-bottom: .75rem; }
.card h2 { font-size: 1.75rem; margin-bottom: 0.4rem; }
.hint { color: var(--muted); font-size: 0.95rem; margin: 0 0 0.9rem; }
.hint.small { font-size: 0.85rem; margin: 0.5rem 0 0; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.7rem; }
.row-head h2 { margin: 0; }

.bar { height: 0.7rem; background: var(--line); border-radius: 999px; overflow: hidden; margin: 0.4rem 0 1rem; }
.bar-fill { height: 100%; width: 0; background: var(--teal); border-radius: 999px; transition: width 0.2s ease; }
.bar-fill.indeterminate { animation: slide 1.2s ease-in-out infinite; width: 40% !important; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; background: var(--ink); color: #fff; padding: 0.95rem 1.7rem; border-radius: 999px; font: 600 1rem var(--sans); border: 0; cursor: pointer; }
.btn:hover { background: var(--teal-ink); }
.btn-quiet { display: inline-flex; align-items: center; justify-content: center; padding: 0.95rem 1.4rem; border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 600 1rem var(--sans); cursor: pointer; }
.btn-quiet:hover { background: var(--paper); }
.big { width: 100%; min-height: 3.4rem; }
.link-btn { background: none; border: 0; color: inherit; text-decoration: underline; font: inherit; font-weight: 600; padding: 0.6rem 0.2rem; cursor: pointer; display: block; }
.actions { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 0.8rem; }
@media (min-width: 520px) { .actions { flex-direction: row; } .actions .big { flex: 1; } }

.mic { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; min-height: 8rem; border: 2px solid var(--teal-ink); border-radius: var(--radius); background: var(--sage); color: var(--forest); font: 600 1.1rem var(--sans); cursor: pointer; }
.mic:hover { background: #dcecdf; }
.mic.on { background: var(--danger); border-color: var(--danger); color: #fff; }
.mic:disabled { opacity: 0.6; cursor: wait; }
.timer { font: 600 2rem/1 var(--sans); text-align: center; font-variant-numeric: tabular-nums; margin: 0.9rem 0 0.5rem; }
.level { height: 0.5rem; background: var(--line); border-radius: 999px; overflow: hidden; margin: 0 auto 0.6rem; max-width: 18rem; }
.level-fill { height: 100%; width: 0; background: var(--teal); transition: width 0.1s linear; }
.status { min-height: 1.5rem; text-align: center; color: var(--muted); margin: 0 0 0.9rem; font-weight: 500; }
.status.live { color: var(--danger); }

.field-label { display: block; font-weight: 600; margin: 0.2rem 0 0.35rem; }
.opt { font-weight: 400; color: var(--muted); }
.box { width: 100%; font: 400 1.1rem/1.5 var(--sans); padding: 0.85rem 1rem; border: 2px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); resize: vertical; }
.box:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.25); }
.live-box { background: #faf9f5; color: #3d4045; font-size: 1rem; }

.seg { display: inline-flex; border: 1px solid var(--ink); border-radius: 999px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 0.4rem 0.9rem; font: 600 0.9rem var(--sans); color: var(--ink); cursor: pointer; min-height: 2.25rem; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.site-footer { border-top: 1px solid var(--line); padding: 1.4rem 0 2.2rem; color: var(--muted); font-size: 0.88rem; }
.site-footer p { margin: 0; }

/* ?test=1 panel */
.test .say { font: 600 1.3rem/1.35 var(--serif); background: #f4fbf9; border-left: 5px solid var(--teal); padding: 0.7rem 0.9rem; border-radius: 12px; margin: 1rem 0 0.6rem; overflow-wrap: anywhere; }
.t-out { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.95rem; overflow-wrap: anywhere; }
.t-total { font-weight: 600; margin: 1rem 0; }
@media (prefers-reduced-motion: reduce) { .bar-fill, .level-fill { transition: none; } .bar-fill.indeterminate { animation: none; } }
