/* Tonefinch website. Colors are the app's Mint Fresh palette. */
:root {
  --bg: #F2FBF8;
  --surface: #FFFFFF;
  --surface-muted: #E3F5EF;
  --border: #CFEDE6;
  --text: #0B2A26;
  --muted: #4A6862;
  --primary: #0C7F76;
  --primary-pressed: #0A6A62;
  --on-primary: #FFFFFF;
  --accent: #5EEAD4;
  --band: #0C7F76;
  --on-band: #FFFFFF;
  --band-muted: #CFF5EC;
  --shadow: 0 24px 60px -24px rgba(11, 42, 38, 0.35);
  --round: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 20px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #071A17;
    --surface: #0E2622;
    --surface-muted: #14322D;
    --border: #1F443D;
    --text: #E8FBF6;
    --muted: #9CC4BC;
    --primary: #5EEAD4;
    --primary-pressed: #2DD4BF;
    --on-primary: #052420;
    --accent: #5EEAD4;
    --band: #0E2622;
    --on-band: #E8FBF6;
    --band-muted: #9CC4BC;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  }
}

*, *::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(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-pressed); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--round); font-weight: 800; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

.skip { position: absolute; left: 12px; top: -60px; background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: 12px; z-index: 10; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--round); font-weight: 900; font-size: 1.3rem; }
.brand:hover { color: var(--text); }
.finch { width: 38px; height: auto; color: var(--text); flex: none; }
.site-nav { display: flex; gap: 6px; }
.site-nav a { text-decoration: none; color: var(--text); font-weight: 600; font-size: 0.95rem; padding: 8px 14px; border-radius: 999px; }
.site-nav a:hover { background: var(--surface-muted); color: var(--text); }
.site-nav a[aria-current="page"] { background: var(--surface-muted); }

/* Pills and buttons */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--surface-muted); color: var(--text); font-size: 0.9rem; font-weight: 600; border: 1px solid var(--border); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.store-soon { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px 12px 16px; border-radius: 16px; background: var(--text); color: var(--bg); }
.store-soon svg { width: 26px; height: 26px; flex: none; }
.store-soon small { display: block; font-size: 0.75rem; opacity: 0.8; line-height: 1.2; }
.store-soon strong { display: block; font-family: var(--round); font-size: 1.1rem; line-height: 1.2; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 16px; background: var(--primary); color: var(--on-primary); text-decoration: none; font-family: var(--round); font-weight: 800; }
.button:hover { background: var(--primary-pressed); color: var(--on-primary); }
.text-link { font-weight: 600; }

/* Phone frame around the app screenshots */
.phone { width: min(320px, 78vw); margin-inline: auto; padding: 10px; border-radius: 52px; background: #0B1F1C; box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,0.06) inset; }
.phone img { border-radius: 42px; width: 100%; aspect-ratio: 390 / 844; background: #F2FBF8; }

/* Hero */
.hero { padding: clamp(36px, 7vw, 88px) 0 clamp(48px, 8vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { margin: 18px 0 18px; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 28px; }
.hero-art { position: relative; }
.hero-art::before { content: ""; position: absolute; inset: 8% -10% 4% -10%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 45%, transparent), transparent); z-index: -1; }

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.eyebrow { font-family: var(--round); font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; margin-bottom: 10px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.reverse .split-art { order: -1; }
.split p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; background: var(--primary) 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='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat; }
@media (prefers-color-scheme: dark) {
  .checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23052420' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }
}
.checks li span { color: var(--text); }

.center { text-align: center; max-width: 760px; margin-inline: auto; }
.center p { color: var(--muted); }

/* Trainers */
.trainers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 40px; }
.trainer { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 18px; }
.section-alt .trainer { background: var(--bg); }
.trainer .count { font-family: var(--round); font-weight: 900; font-size: 2rem; color: var(--primary); line-height: 1; }
.trainer .count small { font-size: 0.85rem; font-weight: 700; color: var(--muted); margin-left: 4px; }
.trainer h3 { margin: 12px 0 6px; }
.trainer p { margin: 0; font-size: 0.95rem; color: var(--muted); line-height: 1.5; }
.instruments { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; padding: 0; list-style: none; }
.instruments li { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: 0.95rem; }
.section-alt .instruments li { background: var(--bg); }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.section-alt .card { background: var(--bg); }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; line-height: 1.55; }
.card .icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-muted); color: var(--primary); margin-bottom: 16px; }
.card .icon svg { width: 24px; height: 24px; }

/* Language band */
.langs { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; list-style: none; padding: 0; }
.langs a { display: block; font-family: var(--round); font-weight: 800; font-size: 1.15rem; padding: 12px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; }
.langs a:hover { border-color: var(--primary); color: var(--text); }
.langs a[aria-current] { border: 2px solid var(--primary); }

/* Closing band */
.band { background: var(--band); color: var(--on-band); border-radius: 32px; padding: clamp(36px, 6vw, 64px); display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.band .finch { width: 96px; color: var(--on-band); }
.band h2 { margin-bottom: 8px; }
.band p { color: var(--band-muted); margin: 0; }
.band a { color: var(--on-band); }

/* Long-form pages (support, privacy, terms) */
.doc { padding: clamp(40px, 7vw, 80px) 0 clamp(56px, 8vw, 96px); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2.1rem, 4.6vw, 3rem); margin-bottom: 10px; }
.doc h2 { font-size: 1.45rem; margin-top: 2.2em; }
.doc h3 { margin-top: 1.6em; }
.doc .meta { color: var(--muted); margin-bottom: 28px; }
.doc ul { padding-left: 1.3em; }
.doc li { margin-bottom: 0.45em; }
.summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin: 24px 0 8px; }
.summary h2 { margin-top: 0; font-size: 1.15rem; }
.summary ul { margin: 0; }
.contact-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; margin: 28px 0 8px; }
.contact-card p { margin: 0; color: var(--muted); }
.contact-card strong { color: var(--text); display: block; font-family: var(--round); font-size: 1.15rem; }
.faq { margin-top: 12px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-family: var(--round); font-weight: 800; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 2.5px solid var(--primary); border-bottom: 2.5px solid var(--primary); transform: rotate(45deg); transition: transform 0.15s; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.faq details > div { padding: 0 0 18px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }
.faq h2 { margin-top: 2em; }
.note { font-size: 0.92rem; color: var(--muted); border-left: 3px solid var(--border); padding-left: 14px; }

/* 404 */
.lost { padding: clamp(64px, 12vw, 140px) 0; text-align: center; }
.lost .finch { width: 120px; margin: 0 auto 20px; }
.lost ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 32px; margin-top: 24px; }
.page-home .site-footer { margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.footer-brand p { color: var(--muted); margin: 10px 0 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--primary); text-decoration: underline; }
.footer-links a[aria-current] { font-weight: 700; }
.footer-small { margin-top: 32px; color: var(--muted); font-size: 0.88rem; }
.footer-small p { margin: 0 0 4px; }

/* Smaller screens */
@media (max-width: 980px) {
  .trainers { grid-template-columns: repeat(3, 1fr); }
  .cards.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .split.reverse .split-art { order: 0; }
  .hero { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .cards { grid-template-columns: 1fr; }
  .trainers { grid-template-columns: repeat(2, 1fr); }
  .band { grid-template-columns: 1fr; text-align: center; }
  .band .finch { margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .cards.four { grid-template-columns: 1fr; }
  .trainers { grid-template-columns: 1fr 1fr; }
  .trainers .trainer:last-child { grid-column: 1 / -1; }
  .site-nav a { padding: 8px 10px; }
  .brand span { font-size: 1.15rem; }
}
