:root {
  --navy: #102033;
  --navy-2: #173049;
  --ink: #1c2834;
  --muted: #5b6570;
  --cream: #f4f0e8;
  --paper: #fbfaf7;
  --white: #ffffff;
  --line: #ddd6c8;
  --line-strong: #cfc6b4;
  --teal: #1c655d;
  --teal-d: #144b45;
  --teal-soft: #e6f1ef;
  --copper: #a34a1c;
  --copper-soft: #f6e6db;
  --shadow: 0 18px 40px rgba(16, 32, 51, 0.14);
  --shadow-soft: 0 8px 24px rgba(16, 32, 51, 0.08);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --radius: 16px;
  --header-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--teal-d); }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.15rem, 7vw, 4.05rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.55rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--navy);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
  border-radius: 6px;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 40rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}
.btn.primary {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.btn.primary:hover,
.btn.primary:focus-visible { background: var(--teal-d); border-color: var(--teal-d); }
.btn.ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line-strong);
}
.btn.ghost:hover,
.btn.ghost:focus-visible { border-color: var(--navy); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
}
.mark {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--navy);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-family: var(--serif); font-size: 1.02rem; font-weight: 600; }
.logo-text small {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-btn {
  position: relative;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(var(--navy), var(--navy)) center 16px / 18px 2px no-repeat,
    linear-gradient(var(--navy), var(--navy)) center 21px / 18px 2px no-repeat,
    linear-gradient(var(--navy), var(--navy)) center 26px / 18px 2px no-repeat,
    var(--white);
  cursor: pointer;
}
.nav-btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nav {
  display: none;
  flex-direction: column;
  gap: 6px;
  position: absolute;
  top: calc(var(--header-h) + 1px);
  left: 0;
  right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 12px 1rem 20px;
}
.nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  padding: 10px 8px;
}
.nav-cta {
  margin-top: 6px;
  background: var(--teal);
  color: #fff !important;
  text-align: center;
  border-radius: 999px;
}
.nav-toggle:focus-visible + .nav-btn { outline: 2px solid var(--teal); outline-offset: 2px; }
.nav-toggle:checked ~ .nav {
  display: flex;
  box-shadow: 0 18px 40px rgba(16, 32, 51, 0.12);
}
.nav-toggle:checked + .nav-btn {
  background: var(--white);
}
.nav-toggle:checked + .nav-btn::before,
.nav-toggle:checked + .nav-btn::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 21px;
  width: 18px;
  height: 2px;
  background: var(--navy);
}
.nav-toggle:checked + .nav-btn::before { transform: rotate(45deg); }
.nav-toggle:checked + .nav-btn::after { transform: rotate(-45deg); }

.nav-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(16, 32, 51, 0.4);
  z-index: 1;
}
.nav-toggle:checked ~ .nav-scrim { display: block; }
.nav { z-index: 2; }
.logo { position: relative; z-index: 3; }

@media (min-width: 900px) {
  .nav-btn, .nav-scrim { display: none !important; }
  .nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 22px;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .nav a { padding: 0; font-size: 0.98rem; }
  .nav a:hover { color: var(--teal); }
  .nav-cta {
    margin: 0 0 0 8px;
    padding: 10px 16px !important;
    color: #fff !important;
  }
  .nav-cta:hover { background: var(--teal-d); color: #fff !important; }
}

/* Hero */
.hero {
  padding: 2.25rem 0 3.5rem;
  background:
    radial-gradient(1200px 400px at 80% 0%, #e7efe9 0%, transparent 60%),
    var(--paper);
  overflow: hidden;
}
.hero-grid { display: grid; gap: 2.5rem; }
.hero h1 { margin-bottom: 16px; max-width: 14ch; }
.hero .lead { font-size: 1.18rem; max-width: 36rem; }
.hero-note { font-size: 0.95rem; color: var(--muted); max-width: 34rem; margin: 0; }

.hero-art {
  position: relative;
  min-height: 280px;
  padding: 0 0 3rem;
}
.browser {
  background: #1a2430;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.browser-bar {
  display: flex;
  gap: 6px;
  padding: 9px 12px;
  background: #101820;
}
.browser-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5a6570;
}
.browser-bar span:nth-child(1) { background: #c9785e; }
.browser-bar span:nth-child(2) { background: #c9b06a; }
.browser-bar span:nth-child(3) { background: #6ea07a; }
.browser img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: top center;
  background: #fff;
}
.phone {
  position: absolute;
  right: 4%;
  bottom: 0;
  width: min(38%, 180px);
  background: #121212;
  border-radius: 22px;
  padding: 8px;
  box-shadow: 0 16px 36px rgba(16, 32, 51, 0.28);
  border: 2px solid #2a2a2a;
}
.phone img {
  width: 100%;
  border-radius: 14px;
  aspect-ratio: 9 / 16.5;
  object-fit: cover;
  object-position: top center;
  background: #fff;
}

@media (min-width: 840px) {
  .hero { padding: 3.5rem 0 5rem; }
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 3rem;
  }
  .hero-art { padding-bottom: 1.5rem; }
  .phone { width: 36%; right: -4%; bottom: -8px; }
}

/* Problems */
.problems {
  background: var(--cream);
  padding: 4rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.problem-grid {
  list-style: none;
  display: grid;
  gap: 16px;
  margin-top: 2.25rem;
}
.problem-grid li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  box-shadow: var(--shadow-soft);
}
.problem-grid h3 { margin-bottom: 8px; }
.problem-grid p { margin: 0; color: var(--muted); }
.ico {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--teal);
  margin-bottom: 10px;
  letter-spacing: 0.06em;
}
@media (min-width: 700px) {
  .problem-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* Process */
.process { padding: 4.25rem 0; }
.steps {
  list-style: none;
  display: grid;
  gap: 16px;
  margin-top: 2.25rem;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 22px 22px 22px 78px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-d);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
}
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .steps li { padding: 88px 20px 24px 20px; }
  .steps li::before { left: 20px; top: 22px; }
}

/* Work */
.work {
  padding: 4.25rem 0 4.75rem;
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.work-disclaimer {
  max-width: 44rem;
  padding: 12px 16px;
  background: var(--copper-soft);
  border-left: 3px solid var(--copper);
  border-radius: 0 8px 8px 0;
  color: var(--ink);
}
.work-disclaimer strong { color: var(--copper); font-weight: 700; }
.case {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.75rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--line-strong);
}
.case:first-of-type { border-top: 0; padding-top: 0; }
.case-visuals { position: relative; padding-bottom: 2.5rem; }
.phone-static {
  position: absolute;
  right: 4%;
  bottom: 0;
  width: min(34%, 170px);
}
.tag {
  display: inline-block;
  margin: 0 0 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--copper-soft);
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.case-copy h3 { font-size: 1.55rem; }
.case-copy p { color: var(--muted); }
@media (min-width: 900px) {
  .case,
  .case.case-flip {
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
    gap: 2.5rem;
  }
  .case-flip .case-visuals { order: 2; }
  .case-visuals { padding-bottom: 1.25rem; }
}

/* Pricing */
.pricing { padding: 4.25rem 0 4.75rem; }
.price-grid,
.care-grid {
  display: grid;
  gap: 18px;
  margin-top: 2rem;
  align-items: stretch;
}
.price-card,
.care-card {
  position: relative;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 24px 28px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.price-card.featured,
.care-card.featured {
  border: 2px solid var(--teal);
  background: linear-gradient(180deg, #f3f8f7 0%, #fff 42%);
  box-shadow: var(--shadow);
}
.badge {
  position: absolute;
  top: -12px;
  left: 22px;
  margin: 0;
  background: var(--teal);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.price-card h3,
.care-card h4 {
  font-size: 1.45rem;
  margin-bottom: 4px;
}
.price { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 6px; }
.amount {
  font-family: var(--serif);
  font-size: 2.35rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1;
}
.period { color: var(--muted); font-size: 0.95rem; }
.fit { color: var(--muted); margin-bottom: 1rem; }
.price-card ul,
.care-card ul { list-style: none; margin-top: auto; }
.price-card li,
.care-card li {
  position: relative;
  padding: 8px 0 8px 22px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.98rem;
}
.price-card li::before,
.care-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}
.addons {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.care-title {
  margin: 3.25rem 0 8px;
  font-size: clamp(1.45rem, 3vw, 2rem);
}
.care-lead { margin-bottom: 0; }
@media (min-width: 860px) {
  .price-grid,
  .care-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .price-card.featured { transform: translateY(-8px); }
}

/* FAQ */
.faq {
  padding: 4.25rem 0;
  background: var(--cream);
  border-top: 1px solid var(--line);
}
.faq-list details {
  border-bottom: 1px solid var(--line-strong);
  padding: 4px 0;
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  padding: 16px 32px 16px 0;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--teal);
  line-height: 1;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p {
  margin: 0 0 16px;
  color: var(--muted);
  max-width: 40rem;
}
@media (min-width: 860px) {
  .faq-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3rem;
    align-items: start;
  }
}

/* Contact */
.contact {
  padding: 4.25rem 0 5rem;
  background: var(--navy);
  color: #e8eee9;
}
.contact h2,
.contact .eyebrow { color: #f4f0e8; }
.contact .lead { color: #c5cec9; }
.contact-aside { color: #aeb8b4; font-size: 0.98rem; }
.contact-grid { display: grid; gap: 2rem; }
.form {
  display: grid;
  gap: 14px;
  background: #173049;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 22px;
}
.form p { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.form label { font-weight: 600; font-size: 0.92rem; color: #e8eee9; }
.form input,
.form textarea {
  font: inherit;
  color: var(--navy);
  background: #fff;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 12px 12px;
  width: 100%;
}
.form input:focus,
.form textarea:focus {
  outline: 2px solid #8ec4bc;
  outline-offset: 1px;
}
.honey {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}
.form-actions { margin-top: 4px; }
.form .btn { align-self: flex-start; border: 0; }
@media (min-width: 860px) {
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; align-items: start; }
  .form { grid-template-columns: 1fr 1fr; padding: 28px; }
  .form .full { grid-column: 1 / -1; }
}

/* Footer */
.site-footer {
  background: #0b1622;
  color: #9aa4a0;
  padding: 1.5rem 0;
  font-size: 0.92rem;
}
.footer-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-bar p { margin: 0; }
.footer-bar strong { color: #e8eee9; font-weight: 600; }
@media (min-width: 800px) {
  .footer-bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
  }
}

/* Thanks */
.thanks { padding: 5rem 0 6rem; min-height: 60vh; }
.thanks-card { max-width: 40rem; }
.thanks h1 { max-width: 14ch; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
