/* Visual reference: monzo.com personal account page — mint hero panel with large radius, heavy
   display headings, ink pill buttons. Monzo's coral accent is replaced by a dark green. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica");
  size-adjust: 107.12%; ascent-override: 90.44%; descent-override: 22.52%; line-gap-override: 0%;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.3100e775.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
:root {
  --ink: #091723;
  --ink-2: #3a4752;
  --muted: #5d6a74;
  --bg: #ffffff;
  --mint: #f2f8f3;
  --mint-2: #e4f0e8;
  --line: #dde7e0;
  --accent: #0b5d3b;
  --accent-2: #084a2f;
  --accent-soft: #d8ecdf;
  --error: #b42318;
  --r-xl: 3rem;
  --r-lg: 1.5rem;
  --r-md: 1rem;
  --shadow: 0 1px 2px rgba(9, 23, 35, .06), 0 8px 24px rgba(9, 23, 35, .06);
  --font: "Inter", "Inter Fallback", -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.55; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: .4rem; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.2vw + .6rem, 3.15rem); }
h2 { font-size: clamp(1.6rem, 2.2vw + .7rem, 2.35rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 76rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 999px; z-index: 50; }
.skip:focus { left: .5rem; }
.i { width: 1.15em; height: 1.15em; flex: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid transparent; }
.head-row { display: flex; align-items: center; gap: 1rem; min-height: 4.5rem; }
.logo { font-weight: 850; font-size: 1.75rem; letter-spacing: -.045em; color: var(--accent); text-decoration: none; line-height: 1; }
.logo-light { color: #fff; }
.nav { display: none; gap: .25rem; margin-left: auto; padding: .3rem; background: var(--mint); border-radius: 999px; }
.nav-link { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 0 1rem; border-radius: 999px; }
.nav-link:hover { background: #fff; color: var(--ink); }
.nav-link.is-active { background: #fff; box-shadow: var(--shadow); }
.menu { margin-left: auto; position: relative; }
.menu summary { list-style: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 999px; background: var(--mint); cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: 3.25rem; display: grid; gap: .25rem; min-width: 14rem; padding: .5rem; background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow); border: 1px solid var(--line); }
@media (min-width: 48rem) { .nav { display: flex; } .menu { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.875rem; padding: 0 1.4rem; border-radius: 999px; border: 0; font: inherit; font-weight: 650; font-size: 1rem; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #1c2b38; color: #fff; }
.btn-green { background: var(--accent); color: #fff; }
.btn-green:hover { background: var(--accent-2); color: #fff; }
.btn-line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line:hover { background: var(--mint); color: var(--ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-sm { min-height: 2.75rem; padding: 0 1rem; font-size: .95rem; }

/* Hero panel with the tool */
.hero { padding: .5rem 0 1rem; }
.hero-panel { background: var(--mint); border-radius: 2rem; padding: 1.5rem 1rem; display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .hero-panel { border-radius: var(--r-xl); padding: 3rem; } }
@media (min-width: 64rem) { .hero-panel { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 3rem; } }
.chip { display: inline-block; background: #fff; border-radius: .6rem; padding: .3rem .7rem; font-weight: 600; font-size: .9rem; margin-bottom: 1rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36rem; }
.privacy { display: flex; gap: .5rem; align-items: center; font-weight: 600; color: var(--accent); margin: 0; }

/* Tool card */
.tool { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 1rem; min-width: 0; }
@media (min-width: 48rem) { .tool { padding: 1.5rem; } }
.drop { border: 2px dashed #a9c7b4; border-radius: var(--r-md); padding: 1.75rem 1rem; text-align: center; cursor: pointer; transition: background .15s, border-color .15s; }
.drop:hover, .drop.is-drag { background: var(--mint); border-color: var(--accent); }
.drop .i-big { width: 2.5rem; height: 2.5rem; color: var(--accent); }
.drop-title { font-weight: 750; font-size: 1.15rem; margin: .5rem 0 .25rem; }
.drop-sub { color: var(--muted); font-size: .92rem; margin: 0 0 1rem; }
.or { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .85rem; margin: 1rem 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.status { margin: .75rem 0 0; padding: .7rem .9rem; border-radius: .75rem; background: var(--mint); font-size: .95rem; }
.status[data-kind="error"] { background: #fdecea; color: var(--error); }
.result { margin-top: 1rem; }
.result h3 { outline: none; }
.big-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.big { background: var(--accent); color: #fff; border-radius: var(--r-md); padding: 1rem; }
.big .label { font-size: .85rem; opacity: .85; font-weight: 600; }
.big .value { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 850; letter-spacing: -.03em; line-height: 1.1; margin: .2rem 0; overflow-wrap: anywhere; }
.big .sub { font-size: .9rem; opacity: .9; }
.muted { color: var(--muted); font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.next { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .95rem; }

/* Voice changer */
.presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; border: 0; padding: 0; margin: 0 0 1rem; }
.presets legend { font-weight: 700; margin-bottom: .5rem; padding: 0; }
.preset { position: relative; }
.preset input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.preset span { display: flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .4rem .5rem; border-radius: .75rem; background: var(--mint); font-weight: 650; font-size: .95rem; text-align: center; }
.preset input:checked + span { background: var(--accent); color: #fff; }
.preset input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.pitch-row { margin-bottom: 1rem; }
.pitch-row input { width: 100%; accent-color: var(--accent); min-height: 2.75rem; }
.is-rec { background: var(--error) !important; color: #fff !important; box-shadow: none !important; }

/* Editor */
.wave { position: relative; height: 9rem; background: var(--mint); border-radius: var(--r-md); overflow: hidden; touch-action: none; --wave: #0b5d3b; --sel: rgba(11, 93, 59, .18); --ink: #091723; }
[data-tool=editor] { --wave: #0b5d3b; --sel: rgba(11, 93, 59, .18); --ink: #091723; }
.wave canvas { display: block; width: 100%; height: 100%; cursor: crosshair; }
.toolbar { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
.toolbar .btn { min-height: 2.75rem; padding: 0 .9rem; font-size: .92rem; }

/* Content sections */
.section { padding: 3rem 0 0; }
.section:last-of-type { padding-bottom: 3rem; }
.prose > *, p.prose { max-width: 46rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; counter-reset: s; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { background: var(--mint); border-radius: var(--r-lg); padding: 1.5rem; counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 800; margin-bottom: .75rem; }
.steps h3 { margin-bottom: .4rem; }
.facts { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fact { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; }
.fact h3 { margin-bottom: .5rem; }
.fact p:last-child { margin-bottom: 0; }
.panel-green { background: var(--accent); color: #fff; border-radius: var(--r-lg); padding: 1.5rem; }
.panel-green a { color: #fff; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
table { border-collapse: collapse; width: 100%; min-width: 32rem; font-size: .95rem; }
th, td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--mint); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; font-weight: 800; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details > p { margin: 0 0 1rem; color: var(--ink-2); }
.cards { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem; border-radius: var(--r-lg); background: var(--mint); color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.card .i { width: 1.75rem; height: 1.75rem; color: var(--accent); }
.card strong { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
.card span { color: var(--ink-2); font-size: .95rem; }
.card.is-current { background: var(--accent); color: #fff; }
.card.is-current span, .card.is-current .i { color: #fff; }
.updated { color: var(--muted); font-size: .9rem; margin-top: 2rem; }
.tap { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; background: var(--mint); border-radius: var(--r-lg); padding: 1.25rem; }
.tap button { min-width: 9rem; min-height: 4.5rem; font-size: 1.15rem; }
.tap [data-out=tap] { font-size: 1.6rem; font-weight: 850; letter-spacing: -.02em; }

/* Footer */
.site-footer { background: var(--ink); color: #c9d3d9; margin-top: 2rem; padding: 3rem 0 1.5rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.foot-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.foot-h { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: #93a3ad; margin-bottom: .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.foot-note { margin-top: 1rem; max-width: 22rem; }
.foot-legal { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #22313d; font-size: .85rem; color: #93a3ad; }

/* Info pages */
.page-head { background: var(--mint); border-radius: 2rem; padding: 2rem 1.25rem; margin: .5rem 0 0; }
@media (min-width: 48rem) { .page-head { border-radius: var(--r-xl); padding: 3rem; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
