:root {
  --ink: #172820;
  --muted: #4e6156;
  --paper: #f8f9f4;
  --white: #fff;
  --forest: #15392c;
  --deep: #103126;
  --leaf: #d9ef93;
  --line: #d6e0d5;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; line-height: 1.55; }
button, select { font: inherit; }
button, summary, select { cursor: pointer; }
a { color: inherit; text-underline-offset: .22em; }
:focus-visible { outline: 3px solid #527d34; outline-offset: 4px; }
p, h1, h2, h3 { margin: 0; }
.wrap { width: min(1112px, calc(100% - 4rem)); margin-inline: auto; }
.skip { position: fixed; top: 1rem; left: 1rem; z-index: 1; padding: .5rem 1rem; background: white; transform: translateY(-200%); }
.skip:focus { transform: none; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.site-header { background: var(--paper); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.wordmark { display: inline-flex; align-items: center; gap: .65rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.mark { display: inline-block; width: 1.45rem; height: 1.45rem; background: var(--forest); border-radius: 50%; position: relative; }
.mark::before, .mark::after { content: ''; position: absolute; width: .25rem; height: .68rem; top: .38rem; background: var(--leaf); border-radius: 1rem; transform: rotate(29deg); }
.mark::before { left: .41rem; }
.mark::after { left: .79rem; }
nav { display: flex; gap: clamp(.8rem, 3vw, 2rem); }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: .9rem; font-weight: 650; text-decoration: none; }
nav a:hover, .wordmark:hover { text-decoration: underline; }

.hero { background: var(--deep); color: #f7f8ef; }
.hero-inner { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 7vw, 6rem); align-items: center; padding-block: clamp(3.3rem, 7vw, 6rem); }
.eyebrow { font-size: .875rem; font-weight: 750; letter-spacing: .1em; line-height: 1.4; text-transform: uppercase; }
.hero .eyebrow { color: var(--leaf); }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.055em; line-height: 1.04; }
h1 { font-size: clamp(3.1rem, 6.15vw, 6.15rem); margin: .8rem 0 1.1rem; }
.hero-copy > p:not(.eyebrow) { color: #dbe7dc; font-size: clamp(1rem, 1.8vw, 1.18rem); max-width: 29em; }
.button { display: inline-flex; align-items: center; justify-content: center; border-radius: .5rem; text-decoration: none; padding: .75rem 1.13rem; min-height: 44px; font-size: .925rem; font-weight: 750; }
.primary { background: var(--leaf); color: var(--deep); margin-top: 1.65rem; }
.primary:hover { background: #e9f8be; }
.hero :focus-visible { outline-color: #e9f8be; }
.hero-estimate { border-radius: 1rem; overflow: hidden; background: #214737; border: 1px solid #4e6d58; }
.hero-annual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: .5rem;
  padding: clamp(1.35rem, 4vw, 2.35rem);
  background: repeating-radial-gradient(ellipse at 99% 100%, transparent 0 18px, #c3dcab25 19px 20px, transparent 21px 37px);
}
.hero-label { color: var(--leaf); font-weight: 700; }
.hero-annual > strong { font-family: var(--serif); font-weight: 400; font-size: clamp(3.8rem, 7vw, 6rem); letter-spacing: -.067em; line-height: 1.04; font-variant-numeric: lining-nums; }
.approx { opacity: .75; font-size: .66em; margin-right: .07em; }
.hero-annual > span { font-size: .925rem; color: #e2ede2; }
.hero-first { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: 1.05rem clamp(1.35rem, 4vw, 2.35rem); background: var(--leaf); color: var(--deep); text-decoration: none; font-weight: 750; }
.hero-first:hover { background: #e9f8be; }
.hero-first:focus-visible { outline: 3px solid var(--deep); outline-offset: -5px; }
.hero-first small { display: block; font-size: .875rem; font-weight: 550; }
.hero-first > strong { font-size: clamp(1.45rem, 2.45vw, 2.1rem); letter-spacing: -.055em; }

.section { padding-block: clamp(3.25rem, 6.4vw, 5.35rem); }
.section-intro { margin-bottom: 1.75rem; }
h2 { font-size: clamp(2.5rem, 4.4vw, 3.8rem); }
.section-intro p { margin-top: .7rem; color: var(--muted); max-width: 44em; }
.flow { display: grid; justify-items: stretch; }
.paychecks { justify-self: center; border: 1px solid var(--line); border-radius: 3rem; padding: .32rem .95rem; font-weight: 650; font-size: .9rem; }
.paychecks span { color: #527448; margin-right: .28rem; }
.flow-node, .breakdown { background: var(--white); border: 1px solid var(--line); border-radius: .8rem; }
.flow-node:not([open]):hover, .breakdown:not([open]):hover { border-color: #6d8e72; }
.checking, .budget { width: min(100%, 650px); justify-self: center; }
.checking { position: relative; margin-top: 1.3rem; background: #e8f0df; border-color: #ccdccc; }
.checking::before { content: ''; position: absolute; left: 50%; top: -1.35rem; height: 1.3rem; border-left: 1px solid #a0b6a1; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.flow-node summary, .breakdown summary, .faq summary { display: flex; align-items: center; justify-content: space-between; gap: .9rem; padding: 1rem 1.3rem; border-radius: inherit; }
.node-content { display: grid; gap: .18rem; }
.node-content .eyebrow { color: #42634c; font-size: .875rem; letter-spacing: .07em; }
.node-content > strong { font-size: clamp(1.25rem, 2vw, 1.55rem); letter-spacing: -.035em; line-height: 1.25; }
.node-content > span:last-child { color: var(--muted); }
.summary-icon { position: relative; flex: 0 0 1.8rem; height: 1.8rem; border: 1px solid #c2d2c2; border-radius: 50%; }
.summary-icon::before, .summary-icon::after { position: absolute; content: ''; width: .61rem; height: 1px; background: #304f39; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.summary-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] > summary .summary-icon::after { display: none; }
.branches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; position: relative; padding-bottom: 1.2rem; }
.branch { display: flex; flex-direction: column; min-width: 0; }
.branch-label { display: flex; align-items: center; gap: .5rem; justify-content: center; position: relative; padding: .57rem .3rem; text-align: center; font-size: .875rem; color: var(--muted); font-weight: 650; flex: 1; }
.branch-label::before { content: '↓'; color: #527448; }
.budget { background: #f0f3eb; }
.detail-body { padding: 0 1.3rem 1.15rem; color: #354b3e; }
.detail-body p + p, .detail-body p + a { margin-top: .6rem; }
.detail-body p + a { display: inline-block; }
.detail-body ul { padding-left: 1.25rem; margin-block: .55rem .8rem; }
.detail-body li + li { margin-top: .4rem; }
.detail-body a { font-weight: 700; color: #27583c; }
.detail-links { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .7rem; }
.rate-table { width: 100%; border-collapse: collapse; margin: .75rem 0; font-size: .935rem; }
.rate-table td, .rate-table th { text-align: left; padding: .35rem .35rem .35rem 0; border-bottom: 1px solid var(--line); }
.rate-table td:last-child, .rate-table th:last-child { text-align: right; font-weight: 750; }
.rule { background: #edf3df; padding: 1rem 1.25rem; border-radius: .75rem; display: flex; align-items: flex-start; gap: .75rem; margin-top: 1.75rem; }
.rule-icon { display: grid; place-items: center; background: var(--forest); color: var(--leaf); border-radius: 50%; flex: 0 0 1.55rem; height: 1.55rem; margin-top: .08rem; font-size: .875rem; }
.rule p { color: var(--muted); margin-top: .1rem; }

.cards-section { background: #eaf0e7; border-block: 1px solid var(--line); }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
.virtual-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 9.8rem;
  gap: 1.05rem;
  text-align: left;
  padding: 1rem;
  border-radius: .8rem;
  border: 1px solid #ffffff30;
  color: #fff;
  background: linear-gradient(125deg, #ffffff18, #ffffff00 65%), var(--card);
  transition: box-shadow .2s ease, transform .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .virtual-card:hover { transform: translateY(-3px); box-shadow: 0 6px 14px #102a2526; }
}
.virtual-card[aria-pressed='true'] { box-shadow: 0 0 0 2px #eaf0e7, 0 0 0 4px #3a6746; }
.virtual-card:focus-visible { outline-offset: 6px; }
.netflix { --card: #743d47; }
.spotify { --card: #235849; }
.boutique { --card: #344769; }
.trial { --card: #5b476d; }
.card-top, .card-bottom { display: flex; align-items: center; justify-content: space-between; gap: .2rem .6rem; }
.card-bottom { align-items: baseline; flex-wrap: wrap; font-size: .875rem; }
.card-bottom > span { color: #f1eee9; }
.chip { width: 1.4rem; height: 1.05rem; border-radius: .25rem; flex-shrink: 0; background: linear-gradient(90deg, transparent 44%, #6f5b3880 44% 54%, transparent 54%), linear-gradient(#dccba2 42%, #6f5b38 42% 49%, #dccba2 49%); }
.card-number { font: .9rem ui-monospace, monospace; letter-spacing: .05em; white-space: nowrap; }
.card-explainer { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem 2rem; margin-top: 1.4rem; background: var(--white); border-radius: .75rem; border: 1px solid var(--line); padding: 1.2rem 1.3rem; }
.card-explainer h3 { font-size: 1.15rem; letter-spacing: -.025em; }
.card-explainer p { color: var(--muted); margin-top: .25rem; }
.demo { text-align: center; }
.secondary { background: #e9f1e4; color: #234f33; border: 1px solid #cbdacb; }
.secondary:hover { background: #dcebd8; }
.demo p { font-size: .875rem; }
.fine { color: var(--muted); font-size: .875rem; margin-top: .9rem; }

.estimate-layout {
  display: grid; gap: 1rem; align-items: start;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
}
.estimate-results { grid-area: 1 / 1 / span 2; }
.estimate-layout > .options { grid-column: 2; }
.estimate-layout > .breakdown { grid-column: 2; }
.chart-panel { border: 1px solid var(--line); background: var(--white); border-radius: .85rem; padding: clamp(1.1rem, 3vw, 1.75rem); }
.totals { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.totals span { display: block; font-size: .9rem; font-weight: 700; color: var(--muted); }
.totals strong { display: block; font: 400 clamp(2.6rem, 5.6vw, 4.35rem)/1.1 var(--serif); letter-spacing: -.06em; color: var(--forest); }
.chart { display: grid; gap: .65rem; margin-top: 1.25rem; }
.chart-row { display: grid; grid-template-columns: 3.35rem 1fr 4rem; align-items: center; gap: .6rem; font-size: .875rem; }
.chart-row > strong { text-align: right; font-variant-numeric: tabular-nums; }
.bar { display: flex; border-radius: .2rem; height: 1.05rem; background: #eef2ed; overflow: hidden; }
.bar i, .bar b { display: block; transition: width .28s ease; }
.bar i, .legend span:first-child > i { background: #337052; }
.bar b, .legend span:last-child > i { background: #c9e582; }
.legend { display: flex; flex-wrap: wrap; gap: .45rem 1rem; margin: .95rem 0 1.15rem; color: var(--muted); font-size: .875rem; }
.legend > span { display: flex; align-items: center; gap: .4rem; }
.legend i { display: inline-block; width: .75rem; height: .75rem; border-radius: .12rem; }
.five-total { background: #eef4e1; border-radius: .55rem; padding: .8rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem .8rem; flex-wrap: wrap; }
.five-total small { display: block; font-size: .875rem; color: var(--muted); }
.five-total > strong { font: 400 clamp(2rem, 3.5vw, 2.8rem)/1 var(--serif); letter-spacing: -.05em; }
.options { display: grid; gap: .2rem; background: #eef2e8; border: 1px solid var(--line); border-radius: .8rem; padding: 1rem 1rem .65rem; margin: 0; min-width: 0; }
.options legend { border: 1px solid var(--line); border-radius: 2rem; background: var(--paper); padding: .18rem .7rem; font-weight: 750; }
.option { display: flex; align-items: center; gap: .65rem; padding: .5rem .18rem; cursor: pointer; min-height: 3.1rem; }
.option + .option { border-top: 1px solid var(--line); }
.option input { accent-color: #2c6849; height: 1.15rem; width: 1.15rem; margin: 0; flex-shrink: 0; }
.option small { display: block; color: var(--muted); font-size: .875rem; }
.select-option { justify-content: space-between; }
select { -webkit-appearance: none; appearance: none; min-height: 44px; font-size: 1rem; background: linear-gradient(45deg, transparent 50%, #33523b 50%) right .8rem center / .31rem .31rem no-repeat, linear-gradient(135deg, #33523b 50%, transparent 50%) right .5rem center / .31rem .31rem no-repeat, var(--white); color: var(--ink); border: 1px solid #b8cabb; border-radius: .4rem; padding: .45rem 1.5rem .45rem .55rem; font-weight: 650; }
.breakdown dl { margin: 0 0 .65rem; }
.breakdown dl > div { display: flex; justify-content: space-between; gap: .45rem; padding-block: .22rem; border-bottom: 1px solid var(--line); }
.breakdown dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }

.last-section { padding-bottom: clamp(3rem, 6vw, 5rem); }
.faq { border-top: 1px solid var(--line); }
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq summary { padding-inline: .25rem; }
.faq summary:hover { color: #376e4a; }
.faq .detail-body { padding-inline: .25rem; max-width: 49rem; }
.sources { columns: 2; }
.sources li { break-inside: avoid; }
.site-footer { background: var(--deep); color: #edf4e9; padding: 1.35rem 0; font-size: .9rem; }
.site-footer > div { display: flex; justify-content: space-between; align-items: center; gap: .65rem; }
.site-footer a:focus-visible { outline-color: var(--leaf); }

@media (max-width: 1000px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .virtual-card { min-height: 8.8rem; }
}
@media (max-width: 780px) {
  .hero-inner { gap: 2rem; }
  .hero-first { gap: .1rem .7rem; }
  .desktop-break { display: none; }
  .estimate-layout { grid-template-columns: 1fr; grid-template-rows: auto; }
  .estimate-results, .estimate-layout > .options, .estimate-layout > .breakdown { grid-area: auto; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { flex-wrap: wrap; gap: 0 1rem; padding-block: .4rem; }
  .wordmark { min-height: 44px; }
  nav { flex: 1 1 100%; justify-content: space-between; flex-wrap: wrap; gap: 0 .5rem; }
  nav a { padding-inline: .25rem; }
  .hero-inner { padding-block: 2.65rem; }
  .hero-copy > .button { margin-top: 1.15rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-annual > strong { font-size: 4.2rem; }
  .branches { grid-template-columns: 1fr; gap: .55rem; }
  .branch-label { justify-content: flex-start; padding-left: .45rem; }
  .card-explainer { grid-template-columns: 1fr; }
  .demo { display: flex; flex-wrap: wrap; align-items: center; text-align: left; gap: .4rem .8rem; }
  .sources { columns: 1; }
}
@media (max-width: 480px) {
  .virtual-card { min-height: 8.25rem; padding: .75rem; gap: .65rem; }
  .card-number { font-size: .875rem; letter-spacing: 0; }
  .extra-digits { display: none; }
  .card-top { align-items: flex-start; }
  .card-top > strong { line-height: 1.25; }
  .card-bottom { font-size: .875rem; gap: .12rem .55rem; }
  .card-explainer .button { min-height: 48px; }
}
@media (max-width: 365px) {
  h1 { font-size: 2.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Edge-to-edge Safari keeps content clear of the notch and home indicator. */
@supports (margin-left: max(0px, env(safe-area-inset-left))) {
  .wrap {
    --gutter: 2rem;
    --left-gutter: max(var(--gutter), env(safe-area-inset-left));
    --right-gutter: max(var(--gutter), env(safe-area-inset-right));
    width: auto;
    max-width: 1112px;
    margin-left: max(var(--left-gutter), calc((100% - 1112px) / 2));
    margin-right: max(var(--right-gutter), calc((100% - 1112px) / 2));
  }

  .site-header { padding-top: env(safe-area-inset-top); }
  .site-footer { padding-bottom: calc(1.35rem + env(safe-area-inset-bottom)); }
  .skip { left: max(1rem, env(safe-area-inset-left)); top: max(1rem, env(safe-area-inset-top)); }

  @media (max-width: 620px) {
    .wrap { --gutter: 1rem; }
  }
}
