/* Mr. Blue Skies — classic, clean theme */
:root {
  --navy: #14233a;
  --navy-2: #1f3556;
  --sky: #3d7fb8;
  --sky-light: #e8f1f9;
  --gold: #b8913d;
  --ink: #23272e;
  --muted: #5d6673;
  --line: #e2ddd3;
  --paper: #fbf9f5;
  --white: #ffffff;
  --radius: 6px;
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--sky); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.25; font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-family: var(--sans); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--gold); margin-bottom: .8em; display: block; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--white); padding: 8px 12px; z-index: 100; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand svg { width: 36px; height: 36px; }
.brand-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; letter-spacing: .01em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; color: var(--ink); font-size: .98rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--sky); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; font: inherit; font-size: .9rem; color: var(--navy); cursor: pointer; }

/* Buttons */
.btn { display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 1rem; text-decoration: none; padding: 13px 26px; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; text-align: center; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--sky); color: var(--white); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--sky-light); color: var(--navy); }
.nav .btn { color: var(--white); padding: 10px 18px; font-size: .95rem; }
.nav .btn:hover { color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.center .btn-row { justify-content: center; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--sky-light) 0%, var(--paper) 100%); padding: 96px 0 88px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.hero-art { color: var(--sky); opacity: .9; }
.hero-note { margin-top: 22px; font-size: .95rem; color: var(--muted); }
.page-hero { background: var(--sky-light); padding: 72px 0 56px; border-bottom: 1px solid var(--line); }

/* Sections */
section { padding: 88px 0; }
section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 48px; }
.rule { width: 56px; height: 2px; background: var(--gold); border: 0; margin: 0 0 22px; }
.center .rule { margin-left: auto; margin-right: auto; }

/* Grids and cards */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 44px; height: 44px; color: var(--sky); margin-bottom: 18px; }
.card h3 a { color: inherit; text-decoration: none; }
.card .more { font-weight: 600; font-size: .95rem; }

/* Pricing */
.plan { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 30px; position: relative; }
.plan.featured { border: 2px solid var(--navy); box-shadow: 0 14px 34px rgba(20, 35, 58, .10); }
.plan .badge { position: absolute; top: -13px; left: 30px; background: var(--gold); color: var(--white); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; }
.plan h3 { margin-bottom: .2em; }
.plan .for { color: var(--muted); font-size: .98rem; min-height: 3.2em; }
.price { font-family: var(--serif); font-size: 2.5rem; color: var(--navy); line-height: 1; margin: 14px 0 4px; }
.price small { font-family: var(--sans); font-size: 1rem; color: var(--muted); font-weight: 400; }
.price-note { font-size: .88rem; color: var(--muted); margin-bottom: 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.plan li { padding: 8px 0 8px 28px; border-top: 1px solid #efebe4; font-size: .98rem; position: relative; }
.plan li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 12px; height: 7px; border-left: 2px solid var(--sky); border-bottom: 2px solid var(--sky); transform: rotate(-45deg); }
.plan .btn { width: 100%; }

.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 44px; }
.tabs a { text-decoration: none; padding: 9px 18px; border: 1px solid var(--line); border-radius: 30px; color: var(--navy); background: var(--white); font-size: .95rem; font-weight: 600; }
.tabs a:hover { border-color: var(--navy); }

.callout { background: var(--navy); color: #dbe6f2; border-radius: var(--radius); padding: 36px 40px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; margin-top: 40px; }
.callout h3 { color: var(--white); }
.callout p { margin: 0; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: .97rem; min-width: 560px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid #efebe4; vertical-align: top; }
thead th { background: #f4f1ea; font-family: var(--sans); font-weight: 700; color: var(--navy); font-size: .88rem; text-transform: uppercase; letter-spacing: .06em; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
td .yes { color: var(--sky); font-weight: 700; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { position: relative; padding-top: 58px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold); font-family: var(--serif); font-size: 1.15rem; display: grid; place-items: center; }

/* Service detail */
.service { display: grid; grid-template-columns: 300px 1fr; gap: 56px; padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.service:first-child { border-top: 0; padding-top: 0; }
.service .icon { width: 52px; height: 52px; color: var(--sky); margin-bottom: 16px; }
.service .from { font-family: var(--serif); color: var(--navy); font-size: 1.1rem; margin-top: 8px; }
.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; columns: 2; column-gap: 32px; }
.checklist li { padding: 5px 0 5px 26px; position: relative; break-inside: avoid; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 11px; height: 6px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { font-family: var(--serif); font-size: 1.12rem; color: var(--navy); cursor: pointer; list-style: none; position: relative; padding-right: 32px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-family: var(--sans); font-size: 1.5rem; color: var(--gold); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 14px 0 0; color: var(--muted); }

/* Quote */
.quote-band { background: var(--navy); color: #dbe6f2; text-align: center; }
.quote-band h2 { color: var(--white); }
.quote-band .lead { color: #b9c9dc; }

/* Form */
.form { display: grid; gap: 20px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label { display: block; font-weight: 600; font-size: .95rem; color: var(--navy); margin-bottom: 6px; }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #cfc8bb; border-radius: var(--radius); background: var(--white); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sky); outline-offset: 1px; border-color: var(--sky); }
textarea { min-height: 150px; resize: vertical; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; }
.checks label { font-weight: 400; color: var(--ink); display: flex; gap: 10px; align-items: center; margin: 0; }
.checks input { width: auto; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; font-size: .95rem; color: var(--navy); margin-bottom: 8px; }
.form-note { font-size: .9rem; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }

/* Footer */
.site-footer { background: #0f1b2d; color: #a9b7c9; padding: 64px 0 32px; font-size: .95rem; }
.site-footer a { color: #d6e2ef; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: var(--white); font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .brand { color: var(--white); margin-bottom: 14px; }
.footer-base { border-top: 1px solid #23324a; margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .88rem; }

.small { font-size: .88rem; color: var(--muted); }

/* Responsive */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .service { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid #f0ece5; }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .btn { margin-top: 12px; border-bottom: 0; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .hero { padding: 64px 0 56px; }
  .grid-2, .grid-4, .steps { grid-template-columns: 1fr; }
  .checklist { columns: 1; }
  .form .row, .checks { grid-template-columns: 1fr; }
  .callout { grid-template-columns: 1fr; padding: 28px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.12rem; }
}

/* Cart */
.cart-link { display: inline-flex; align-items: center; gap: 6px; }
.cart-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--sky-light); color: var(--navy); font-size: .8rem; font-weight: 700; }
.btn-link { background: none; border: 0; padding: 4px 0; font: inherit; font-size: .92rem; font-weight: 600; color: var(--sky); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.btn-link:hover { color: var(--navy); }
.btn:focus-visible, .btn-link:focus-visible, a:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.btn[disabled] { opacity: .6; cursor: wait; }
.cart-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.cart-list { display: grid; gap: 16px; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.cart-item h3 { margin-bottom: .25em; }
.cart-item p { margin: 0; }
.ci-main { min-width: 0; }
.ci-price { font-family: var(--serif); font-size: 1.35rem; color: var(--navy); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ci-price .per { display: block; font-family: var(--sans); font-size: .82rem; color: var(--muted); }
.ci-price .included { font-family: var(--sans); font-size: 1rem; color: var(--sky); font-weight: 700; }
.cart-item .remove { justify-self: start; }
.cart-summary { position: sticky; top: 100px; }
.totals { margin: 0 0 16px; }
.totals div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #efebe4; font-variant-numeric: tabular-nums; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-weight: 600; }
.totals .total dt, .totals .total dd { color: var(--navy); font-weight: 700; font-size: 1.15rem; border: 0; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink); margin: 16px 0; }
.agree input { width: auto; margin-top: 6px; }
.cart-summary .btn { width: 100%; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--navy); color: var(--white); padding: 14px 22px; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.2); transition: opacity .2s, transform .2s; z-index: 80; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: #cfe3f5; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } html { scroll-behavior: auto; } }
@media (max-width: 980px) { .cart-grid { grid-template-columns: 1fr; } .cart-summary { position: static; } }
@media (max-width: 1040px) { .cart-link { padding: 12px 4px; } }

/* Accounts */
.auth-wrap { max-width: 560px; display: grid; gap: 16px; }
.auth-card { display: grid; gap: 20px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.auth-tabs button { background: var(--paper); border: 0; padding: 12px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.auth-tabs button[aria-selected="true"] { background: var(--navy); color: var(--white); }
.auth-tabs button:focus-visible { outline: 2px solid var(--sky); outline-offset: -2px; }
#auth-code { font-size: 1.5rem; letter-spacing: .4em; max-width: 220px; font-variant-numeric: tabular-nums; }
.account-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.account-head .lead { margin: 0; }
.acct-section { padding: 0 0 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); display: grid; gap: 18px; }
.acct-section:last-child { border-bottom: 0; }
.acct-section h2 { margin: 0; }
.acct-section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
#plans { display: grid; gap: 14px; }
.acct-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.acct-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.acct-card h3 { margin: 0; }
.acct-card p { margin: 8px 0 0; }
.pill { font-size: .78rem; font-weight: 700; letter-spacing: .04em; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.pill-ok { background: #e3f1e6; color: #1f6b35; }
.pill-warn { background: #fbf0d9; color: #7a5410; }
.pill-muted { background: #eeebe5; color: var(--muted); }
.muted-box { background: var(--white); border: 1px dashed #d6cfc2; border-radius: var(--radius); padding: 20px 22px; color: var(--muted); margin: 0; }
.form .row-3 { grid-template-columns: 2fr 1fr 1fr; }
#profile-form { max-width: 760px; }
@media (max-width: 640px) { .form .row-3 { grid-template-columns: 1fr; } }
