/* Avilo website. The navy and gold of the logo; the brown and warm off-white of the app. */
:root {
  --navy: #071b2f;
  --navy-2: #0e2a46;
  --gold: #c9a24d;
  --gold-2: #e6c77c;
  --brown: #8f4c33;
  --cream: #fbf8f4;
  --cream-2: #f4f0eb;
  --ink: #231a17;
  --muted: #6b5e59;
  --line: #e8e2db;
  --radius: 18px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 var(--sans); color: var(--ink); background: var(--cream); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brown); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.sub { color: var(--muted); max-width: 680px; margin: 0 auto 2.2em; font-size: 1.08rem; }
.small { font-size: 0.9rem; color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: #fff; padding: 8px 12px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 700; color: var(--brown); margin-bottom: 0.8em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font-weight: 650; text-decoration: none; font-size: 1rem; border: 2px solid transparent; transition: transform 0.15s, background 0.15s; cursor: pointer; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-play { background: var(--gold); color: var(--navy); }
.btn-play:hover { background: var(--gold-2); }
.btn-ghost { border-color: currentColor; color: var(--brown); background: transparent; }
.btn-small { padding: 9px 16px; font-size: 0.9rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 1.2em; }
.final .ctas, .center .ctas { justify-content: center; }
.more { font-weight: 650; text-decoration: none; }
.more::after { content: " →"; }

/* Header */
.top { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 5; box-shadow: 0 1px 0 rgba(255,255,255,0.06); }
.top-row { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.brand img { border-radius: 50%; }
.top .brand { margin-right: auto; }
.nav-desktop { display: none; align-items: center; gap: 22px; }
.nav-desktop a, .dropdown button { color: #e9eef5; text-decoration: none; font-size: 0.97rem; cursor: pointer; }
.nav-desktop a:hover, .dropdown button:hover, .nav-desktop a[aria-current] { color: var(--gold-2); }
/* Opens on hover or focus, so it closes by itself when the pointer or the focus leaves. */
.dropdown { position: relative; }
.dropdown button { background: none; border: 0; padding: 8px 0; font: inherit; font-size: 0.97rem; }
.dropdown button::after { content: " ▾"; font-size: 0.8em; }
.dropdown ul { display: none; position: absolute; top: 100%; left: -16px; min-width: 250px; list-style: none; margin: 0; padding: 10px; background: #fff; border-radius: 14px; box-shadow: 0 14px 40px rgba(7, 27, 47, 0.25); }
.dropdown:hover ul, .dropdown:focus-within ul { display: block; }
.dropdown ul a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); }
.dropdown ul a:hover { background: var(--cream-2); color: var(--brown); }
.lang { border: 1px solid rgba(255,255,255,0.35); border-radius: 8px; padding: 2px 8px; font-size: 0.85rem !important; }
.menu { position: relative; }
.menu summary { list-style: none; width: 40px; height: 40px; display: grid; place-content: center; gap: 5px; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; }
.menu nav { position: fixed; left: 0; right: 0; top: 64px; max-height: calc(100vh - 64px); overflow: auto; background: var(--navy); padding: 10px 22px 26px; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: 10px 0; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
.menu-title { color: var(--gold-2); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; margin: 10px 0 0; }
.menu-pages { margin-top: 14px !important; }
.top .btn-small { order: 1; }
.top .menu { order: 2; }
@media (max-width: 420px) {
  .top-row { gap: 10px; }
  .top .btn-small { padding: 8px 12px; font-size: 0.85rem; }
}
@media (min-width: 960px) {
  .nav-desktop { display: flex; }
  .menu { display: none; }
}

/* Hero */
.hero { background: radial-gradient(1200px 500px at 80% 0%, var(--navy-2), var(--navy)); color: #fff; padding: 56px 0 64px; overflow: hidden; }
.hero .eyebrow { color: var(--gold-2); }
.hero .lead { font-size: 1.18rem; color: #d6deea; max-width: 560px; }
.hero .btn-ghost { color: #fff; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: #b9c6d8; font-size: 0.92rem; }
.trust li::before { content: "✓ "; color: var(--gold); }
.hero-shots { position: relative; display: flex; justify-content: center; min-height: 420px; }
.hero-shots .hero-main { width: min(290px, 66vw); z-index: 2; }
.hero-shots .hero-second { width: min(240px, 52vw); position: absolute; right: 2%; top: 60px; z-index: 1; opacity: 0.96; transform: rotate(4deg); }
.hero-shots.two .hero-main { margin-right: 22%; }
.hero-shots .phone-wide.hero-main { width: 100%; max-width: 560px; margin: 0; }
@media (max-width: 599px) {
  .hero-shots .hero-second { display: none; }
  .hero-shots.two .hero-main { margin-right: 0; }
}
/* Home: the phone, and the shift curve on a card in front of it. */
.home-shots { flex-direction: column; align-items: center; min-height: 0; }
.curve-card { position: relative; z-index: 3; align-self: flex-end; margin: -120px 0 0; width: min(320px, 86%); background: #fff; color: var(--ink); border-radius: 16px; padding: 14px 14px 10px; box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.6); }
.curve-title { font-weight: 650; font-size: 0.92rem; color: var(--navy); margin-bottom: 8px; }
.curve-plot { position: relative; border-radius: 10px; overflow: hidden; }
.curve-plot img { width: 100%; }
.curve-label { position: absolute; font-size: 0.8rem; font-weight: 700; color: var(--brown); background: rgba(255, 255, 255, 0.88); padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.curve-over { left: 27%; top: 9%; }
.curve-settle { right: 3%; top: 67%; }
.curve-note { margin: 8px 0 0; font-size: 0.8rem; color: var(--muted); }
.hero-feature { padding-bottom: 72px; }
.crumbs { font-size: 0.88rem; color: #b9c6d8; margin-bottom: 1.4em; }
.crumbs a { color: var(--gold-2); }
@media (min-width: 900px) {
  .hero { padding: 80px 0 90px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; }
  .hero-shots { min-height: 560px; }
  .hero-shots .hero-main { margin-right: 26%; }
  .hero-shots .hero-second { right: 0; top: 90px; }
  .home-shots { flex-direction: row; justify-content: flex-end; align-items: flex-start; min-height: 560px; }
  .home-shots .hero-main { margin-right: 4%; }
  .home-shots .curve-card { position: absolute; left: 0; bottom: 24px; margin: 0; }
}

/* Phone frames */
.phone { margin: 0; border-radius: 34px; background: #0b0b10; padding: 9px; box-shadow: 0 30px 60px -20px rgba(7, 27, 47, 0.55), 0 0 0 1px rgba(255,255,255,0.06) inset; }
.phone img { border-radius: 26px; }
.phone-wide { border-radius: 28px; }
.phone-wide img { border-radius: 20px; }

/* What it hears */
.hears { background: var(--navy); color: #fff; padding: 0 0 56px; }
.hears h2 { font-size: 1.15rem; font-family: var(--sans); font-weight: 600; color: var(--gold-2); text-align: center; margin-bottom: 18px; letter-spacing: 0.02em; }
.hears-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.hears-grid li { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 16px 18px; }
.hears-grid strong { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1.2; color: var(--gold-2); }
.hears-grid span { color: #b9c6d8; font-size: 0.92rem; }
.hears-links-title { text-align: center; color: #b9c6d8; font-size: 0.92rem; margin: 26px 0 0; }
.hears-links { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hears-links a { display: inline-block; padding: 7px 14px; border: 1px solid rgba(230, 199, 124, 0.45); border-radius: 999px; color: var(--gold-2); text-decoration: none; font-size: 0.92rem; }
.hears-links a:hover { background: rgba(230, 199, 124, 0.12); }

/* Sections */
.section { padding: 72px 0; }
.section.tight { padding-top: 0; }
.section.alt { background: var(--cream-2); }
.page-head { padding-bottom: 28px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 22px; }
.card h3 { color: var(--navy); }
.card p { color: #4a3f3b; }
.showcase-grid { display: grid; gap: 44px; align-items: center; }
.showcase-text p { font-size: 1.07rem; color: #4a3f3b; }
.showcase-shots { display: flex; justify-content: center; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.showcase-shots .phone { width: min(250px, 42vw); }
.showcase-shots .phone:nth-child(2) { margin-top: 44px; }
.showcase-shots.has-wide .phone-wide { width: 100%; max-width: 640px; margin-top: 0; }
.showcase-shots.has-wide .phone:not(.phone-wide) { width: calc(50% - 9px); max-width: 240px; margin-top: 0; }
@media (min-width: 900px) {
  .showcase-grid { grid-template-columns: 1fr 1fr; }
  .showcase.alt .showcase-text { order: 2; }
}
/* Home: a tuner, a lesson app and Avilo; one card per row on a phone. */
.compare { width: 100%; max-width: 980px; margin: 0 auto; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 0.96rem; }
.compare thead th { color: var(--muted); font-weight: 650; font-size: 0.86rem; }
.compare tbody th { color: var(--navy); font-family: var(--serif); font-size: 1.05rem; font-weight: 600; }
.compare td { color: var(--muted); }
.compare .us { background: #fbf3e2; color: var(--ink); font-weight: 600; }
.compare thead .us { color: var(--brown); font-size: 1rem; }
.compare tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 700px) {
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare { background: none; border: 0; border-radius: 0; }
  .compare thead { display: none; }
  .compare tr { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 12px; }
  .compare th, .compare td { border: 0; padding: 8px 16px; }
  .compare tbody th { padding-top: 14px; }
  .compare td::before { content: attr(data-label) " · "; font-size: 0.78rem; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
  .compare td.none { display: none; }
  .compare td.us::before { content: attr(data-label); display: block; }
  .compare td.us { padding-bottom: 14px; }
  .compare td.us::before { color: var(--brown); }
}
.ticks { list-style: none; padding: 0; margin: 0 0 1.4em; }
.ticks li { position: relative; padding-left: 28px; margin: 0.45em 0; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 7px; border-left: 2.5px solid var(--brown); border-bottom: 2.5px solid var(--brown); transform: rotate(-45deg); }
.numbers { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; text-align: center; }
.numbers strong { display: block; font-family: var(--serif); font-size: 2.6rem; color: var(--brown); line-height: 1.1; }
.numbers span { color: var(--muted); font-size: 0.95rem; }
.honest { background: var(--navy); color: #e4eaf2; }
.honest h2 { color: #fff; }
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; max-width: 860px; margin: 0 auto 1em; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.plan-premium { border: 2px solid var(--gold); }
.plan-sub { color: var(--muted); }
.feature-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.feature-links a { display: block; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; text-decoration: none; color: var(--ink); transition: border-color 0.15s; }
.feature-links a:hover { border-color: var(--brown); }
.feature-links strong { display: block; color: var(--navy); font-family: var(--serif); font-size: 1.12rem; }
.feature-links span { color: var(--muted); font-size: 0.93rem; }
.final { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; padding: 72px 0; }
.final p { color: #d6deea; }
.final .btn-ghost { color: #fff; }

/* Text pages */
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #3d3330; }
/* A section of a feature page beside its capture; under the text on a phone. */
.with-shot { display: grid; gap: 22px; align-items: start; margin-top: 1.6em; }
.with-shot h2 { margin-top: 0; }
.with-shot .phone { width: min(250px, 66vw); justify-self: center; }
@media (min-width: 760px) {
  .with-shot { grid-template-columns: 1fr 230px; gap: 34px; }
  .with-shot .phone { width: 100%; }
}
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; }
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 0.95rem; }
.table th, .table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { color: var(--muted); font-weight: 650; font-size: 0.85rem; }
.table tbody th { font-weight: 650; color: var(--navy); }
.table tbody tr:last-child > * { border-bottom: 0; }
.behind-link { margin: 28px 0 0; }
@media (max-width: 480px) {
  .table { font-size: 0.88rem; }
  .table th, .table td { padding: 8px 7px; }
}
/* A figure and its unit stay on one line. */
.table td:not(:last-child) { white-space: nowrap; }
.guide-head .crumbs { color: var(--muted); }
.guide-head .crumbs a { color: var(--brown); }
.guide-link { margin: 2em 0 0; }
.try { background: var(--navy); color: #e4eaf2; border-radius: var(--radius); padding: 24px 26px; margin: 2.4em 0 0; }
.try h2 { color: #fff; margin-top: 0 !important; font-size: 1.35rem; }
.try p { color: #d6deea !important; }
.try .more { color: var(--gold-2); }
.note { background: #fff; border-left: 4px solid var(--gold); border-radius: 12px; padding: 18px 22px; margin: 2em 0; }
.note h2 { font-size: 1.15rem; margin: 0 0 0.4em; font-family: var(--sans); }
.note p { margin: 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 32px 14px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.5rem; color: var(--brown); }
.faq details[open] summary::after { content: "−"; }
.faq summary h3 { display: inline; font-family: var(--sans); font-size: 1.05rem; font-weight: 650; }
.faq .answer { padding: 0 0 14px; color: #3d3330; }

/* Contact */
.topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 30px; }
.topic { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.topic h2 { font-size: 1.08rem; font-family: var(--sans); margin-bottom: 0.3em; }
.topic p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.form { display: grid; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid #d9d1c8; border-radius: 10px; background: var(--cream); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--gold); border-color: transparent; }
.form .btn { justify-self: start; }
.trap { position: absolute; left: -9999px; }

/* Footer */
.foot { background: var(--navy); color: #b9c6d8; padding: 54px 0 26px; font-size: 0.95rem; }
.foot-grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.foot .brand { color: #fff; margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 5px 0; }
.foot a { color: #dfe6ef; text-decoration: none; }
.foot a:hover { color: var(--gold-2); }
.foot-title { color: var(--gold-2); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; }
.foot-small { margin-top: 30px; font-size: 0.82rem; color: #8597ae; }
