/* MetaPractice — static site styles. No external fonts or scripts. */
:root {
  --ink: #14130d;
  --ink-2: #26241a;
  --paper: #f7f3ea;
  --paper-2: #efe9db;
  --cream: #ece5d8;
  --blue: #3772ff;
  --blue-deep: #1f3a8a;
  --red: #e5303a;
  --text: #1c1b14;
  --muted: #5f5c50;
  --line: #ddd5c3;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(20,19,13,.06), 0 12px 32px rgba(20,19,13,.08);
  --font: "Segoe UI Variable Text", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--blue-deep); text-underline-offset: 3px; }
a:hover { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--blue); margin: 0 0 .8rem; }
.fine { font-size: .85rem; color: var(--muted); }

/* header */
header.site { position: sticky; top: 0; z-index: 50; background: rgba(20,19,13,.94); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.08); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 20px; }
.brand img { display: block; }
header.site nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
header.site nav a { color: #d9d3c3; text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: .95rem; }
header.site nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
header.site nav a[aria-current] { color: #fff; box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
header.site nav a.pill { background: var(--blue); color: #fff; margin-left: 8px; font-weight: 600; }
header.site nav a.pill:hover { background: #5489ff; }
.menu-toggle, .burger { display: none; }
@media (max-width: 860px) {
  .burger { display: block; cursor: pointer; width: 44px; height: 44px; position: relative; }
  .burger span, .burger span::before, .burger span::after { position: absolute; left: 10px; width: 24px; height: 2px; background: #fff; content: ""; }
  .burger span { top: 21px; } .burger span::before { top: -7px; left: 0; } .burger span::after { top: 7px; left: 0; }
  header.site nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--ink); padding: 12px 20px 20px; flex-direction: column; align-items: stretch; }
  .menu-toggle:checked ~ nav { display: flex; }
  header.site nav a { padding: 12px; }
  header.site nav a.pill { margin: 8px 0 0; text-align: center; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none;
  background: #fff; color: var(--ink); border: 1px solid var(--line); transition: transform .12s, box-shadow .12s, background .12s; font-size: 1rem; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); color: var(--ink); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: #5489ff; color: #fff; }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; opacity: .9; }
.btn.small { padding: 8px 16px; font-size: .9rem; }
.btn.big { padding: 16px 30px; font-size: 1.1rem; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0 .6rem; }

/* hero */
.hero { background: var(--ink); color: var(--cream); overflow: hidden; position: relative; }
.hero::before, .hero::after { content: ""; position: absolute; background: linear-gradient(135deg, #2a58d6, #3772ff); opacity: .9; }
.hero::before { width: 520px; height: 150px; right: -120px; top: 60px; clip-path: polygon(0 0, 78% 0, 100% 100%, 22% 100%); transform: skewY(-10deg); opacity: .35; }
.hero::after { width: 420px; height: 130px; right: 120px; bottom: 40px; clip-path: polygon(0 0, 78% 0, 100% 100%, 22% 100%); opacity: .22; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 72px 0 80px; position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero h1 span { color: var(--blue); }
.hero .lede { font-size: 1.2rem; color: #d9d3c3; max-width: 38em; }
.hero .lede strong { color: #fff; }
.hero .fine { color: #a7a08d; }
.hero .btn.ghost { color: #fff; }
.hero-art { position: relative; height: 480px; }
.hero-art .phone { position: absolute; width: 230px; border-radius: 32px; box-shadow: 0 30px 60px rgba(0,0,0,.5); border: 6px solid #0a0a07; background: #fff; }
.hero-art .p1 { left: 8%; top: 20px; transform: rotate(-6deg); }
.hero-art .p2 { right: 4%; top: 70px; transform: rotate(5deg); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; padding: 48px 0; }
  .hero-art { height: 360px; }
  .hero-art .phone { width: 170px; }
}

/* apps */
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: -40px; position: relative; z-index: 2; }
.app { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); border-top: 6px solid var(--blue); }
.app.student { border-top-color: var(--red); }
.app-icon { border-radius: 22px; margin-bottom: 14px; }
.app h2 { font-size: 1.5rem; }
.app-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }
.appstore img { display: block; height: 44px; width: auto; }
@media (max-width: 760px) { .apps { grid-template-columns: 1fr; margin-top: 24px; } }

/* bands */
.band { padding: 56px 0; margin-top: 72px; }
.subscribe { background: var(--ink); color: var(--cream); }
.subscribe .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.subscribe h2 { color: #fff; margin-bottom: .3em; }
.subscribe p { margin: 0; max-width: 40em; }
.web { background: var(--paper-2); }
.web-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.web-grid img { border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); }
@media (max-width: 860px) { .web-grid { grid-template-columns: 1fr; } }

/* features */
.features { margin-top: 80px; }
.section-head { max-width: 46em; margin-bottom: 40px; }
.feat { display: grid; grid-template-columns: 1fr; gap: 20px 56px; padding: 28px 0; border-top: 1px solid var(--line); align-items: center; }
.feat.has-pic { grid-template-columns: 1.1fr .9fr; }
.feat.has-pic.flip .feat-text { order: 2; }
.feat h3 { font-size: 1.5rem; }
.feat p { margin: 0; color: #35332a; max-width: 38em; }
.feat-pic { display: flex; justify-content: center; }
.feat-pic img { max-height: 520px; width: auto; border-radius: 26px; box-shadow: var(--shadow); border: 1px solid var(--line); background: #fff; }
@media (max-width: 760px) { .feat.has-pic { grid-template-columns: 1fr; } .feat.has-pic.flip .feat-text { order: 0; } }
.compare-cta { text-align: center; margin: 80px auto; }
.compare-cta p { color: var(--muted); }

/* inner pages */
.pagehead { background: var(--ink); color: #fff; padding: 56px 0 48px; }
.pagehead h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0; }
.pagehead p { color: #cfc9b8; margin: .6em 0 0; font-size: 1.15rem; }
.prose { padding: 48px 0 80px; max-width: 860px; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.6em; }
.prose img { border-radius: 12px; }
.prose li { margin: .35em 0; }
.prose .portrait { float: right; margin: 0 0 16px 28px; border-radius: 50%; }
.prose .meta { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h2 { margin-top: 0; font-size: 1.3rem; }

/* FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin: 10px 0; }
summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; position: relative; padding-right: 48px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 20px; top: 12px; font-size: 1.5rem; color: var(--blue); }
details[open] summary::after { content: "−"; }
details .ans { padding: 0 20px 16px; }

/* compare table */
.tablewrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.prose:has(.tablewrap) { max-width: 1140px; }
table.compare { border-collapse: collapse; width: 100%; min-width: 760px; }
table.compare th, table.compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: center; font-size: .95rem; }
table.compare thead th { background: var(--ink); color: #fff; position: sticky; top: 0; }
table.compare thead th.us { background: var(--blue); }
table.compare tbody th { text-align: left; font-weight: 500; width: 38%; }
table.compare td.us { background: #eef3ff; }
table.compare td.yes { color: var(--blue); font-weight: 800; font-size: 1.15rem; }
table.compare td.no { color: #bbb; }
table.compare td.note { color: var(--muted); font-style: italic; }
table.compare tr.price td, table.compare tr.price th { font-weight: 700; background: var(--paper-2); }

/* videos */
ol.videos { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; counter-reset: v; }
ol.videos li { margin: 0; }
.vcard { display: block; background: #fff; border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--text); box-shadow: var(--shadow); height: 100%; transition: transform .12s; }
.vcard:hover { transform: translateY(-2px); }
.vcard img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 0; background: #ddd; }
.vtext { display: block; padding: 14px 16px 18px; }
.vtext strong { display: block; }
.dur { display: inline-block; margin-top: 6px; font-size: .8rem; background: var(--paper-2); padding: 2px 8px; border-radius: 99px; color: var(--muted); }
.vnote { font-size: .85rem; color: var(--muted); margin: 8px 0 0; }

/* blog */
ul.posts { list-style: none; padding: 0; display: grid; gap: 16px; }
ul.posts a { display: block; background: #fff; border-radius: 14px; padding: 20px 24px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); }
ul.posts a:hover { transform: translateY(-1px); }
ul.posts time { display: block; font-size: .8rem; color: var(--muted); }
ul.posts strong { display: block; font-size: 1.25rem; font-family: var(--display); margin: 2px 0 6px; }
ul.posts span { color: var(--muted); }

/* footer */
footer.site { background: var(--ink); color: #bdb7a6; margin-top: 80px; padding: 56px 0 40px; }
.foot { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
footer.site h2 { font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: #8d8777; margin-bottom: 12px; }
footer.site a { display: block; color: #e3dccb; text-decoration: none; padding: 3px 0; font-size: .95rem; }
footer.site a:hover { color: #fff; text-decoration: underline; }
footer.site .fine { color: #8d8777; }
@media (max-width: 860px) { .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; } }

/* logo sizing (img{height:auto} would otherwise override the height attribute) */
.brand img { height: 30px; width: auto; }
footer.site img { height: 26px; width: auto; }
.appstore img { height: 44px; width: auto; }
.app-icon { width: 80px; height: 80px; }
