/* I'm Expecting — homepage styles */

:root {
  --cream: #fff8f2;
  --sand: #f6ebe1;
  --blush: #f3d9cf;
  --terracotta: #c9725b;
  --terracotta-dark: #a95a45;
  --sage: #8fa98f;
  --sage-light: #e3ece1;
  --ink: #2f2a28;
  --muted: #6b605b;
  --white: #ffffff;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 20px;
  --shadow: 0 10px 30px rgba(80, 50, 40, 0.08);
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: var(--terracotta-dark); }

img, svg { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.narrow { max-width: 760px; }
.center { text-align: center; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.8em;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(201, 114, 91, 0.3);
}
.btn-primary:hover { background: var(--terracotta-dark); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--white); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(47, 42, 40, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.logo-mark { width: 34px; height: 34px; }
.logo-mark circle { fill: var(--terracotta); }
.logo-mark path { fill: var(--cream); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.nav-links a:hover { color: var(--terracotta-dark); }
.nav-links .nav-cta {
  background: var(--ink);
  color: var(--white);
  padding: 9px 18px;
  border-radius: 999px;
}
.nav-links .nav-cta:hover { background: var(--terracotta); color: var(--white); }

/* Hero */
.hero {
  padding: 72px 0 96px;
  background:
    radial-gradient(circle at 85% 20%, var(--blush) 0, transparent 45%),
    radial-gradient(circle at 5% 90%, var(--sage-light) 0, transparent 40%),
    var(--cream);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero h1 span { color: var(--terracotta); }

.hero .lead {
  font-size: 1.25rem;
  color: var(--ink);
}
.hero p { color: var(--muted); max-width: 580px; }

.hero-tagline {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink) !important;
  margin-top: 1.4em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-art svg { width: 100%; max-width: 420px; margin: 0 auto; }
.art-bg { fill: var(--sand); }
.art-sun { fill: var(--blush); }
.art-hill { fill: var(--sage-light); }
.art-mobile line { stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.art-star { fill: #e8b04b; }
.art-moon { fill: var(--sage); }
.art-heart { fill: var(--terracotta); }
.art-cot { fill: var(--white); stroke: var(--ink); stroke-width: 3; }
.art-line { stroke: var(--blush); stroke-width: 6; stroke-linecap: round; }

/* Sections */
.section { padding: 96px 0; }

.welcome { background: var(--white); }
.welcome .narrow p { color: var(--muted); font-size: 1.125rem; }
.welcome .eyebrow { margin-top: 48px; margin-bottom: 24px; }

.resource-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.resource-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: 14px;
  padding: 16px 18px;
  font-weight: 500;
}
.resource-list li::before {
  content: "";
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sage)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
    center / 15px no-repeat;
}

/* Tools */
.tools { background: var(--sand); }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.tool-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  scroll-margin-top: 100px;
  transition: transform 0.2s ease;
}
.tool-card:hover { transform: translateY(-4px); }
.tool-card:nth-child(4) { grid-column: 2 / span 2; }
.tool-card:nth-child(5) { grid-column: 4 / span 2; }
.tool-card:target { outline: 3px solid var(--terracotta); outline-offset: 4px; }

.tool-card p { color: var(--muted); flex: 1; }

.tool-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--blush);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.tool-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--terracotta-dark);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tool-icon svg .fill { fill: var(--terracotta-dark); stroke: none; }

.tool-status {
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sage);
  background: var(--sage-light);
  padding: 4px 12px;
  border-radius: 999px;
}

/* About */
.about { background: var(--cream); }
.about-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.about-copy { font-size: 1.125rem; }
.about-copy blockquote {
  margin: 0 0 1.4em;
  padding: 20px 24px;
  border-left: 4px solid var(--terracotta);
  background: var(--white);
  border-radius: 0 14px 14px 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.4;
}
.promise-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.promise-list li {
  background: var(--sage-light);
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
}
.about-close { font-weight: 500; }

/* Newsletter */
.newsletter { background: var(--white); }
.newsletter-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  background: var(--ink);
  color: var(--cream);
  border-radius: 28px;
  padding: 56px;
}
.newsletter-card h2 { color: var(--white); }
.newsletter-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4em;
}
.newsletter-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 6px;
}
.newsletter-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--terracotta);
}
.newsletter-note {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--blush);
  margin: 0;
}

.newsletter-form {
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
}
.newsletter-form label {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.newsletter-form input {
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid #d9cbc2;
  border-radius: 12px;
  background: var(--white);
  margin-bottom: 16px;
}
.newsletter-form input:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(201, 114, 91, 0.2);
}
.newsletter-form .btn { width: 100%; margin-top: 4px; }
.form-message { margin: 12px 0 0; font-weight: 500; min-height: 1.2em; }
.form-message.is-error { color: #b0382a; }
.form-message.is-success { color: #4c7a4c; }
.form-small { font-size: 0.85rem; color: var(--muted); margin: 4px 0 0; }

/* Footer */
.site-footer {
  background: var(--sand);
  padding: 56px 0 40px;
  text-align: center;
}
.footer-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-style: italic;
  margin-bottom: 24px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 28px;
}
.footer-links a { color: var(--ink); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--terracotta-dark); }
.footer-legal { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* Responsive */
@media (max-width: 960px) {
  .resource-list { grid-template-columns: repeat(2, 1fr); }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-card,
  .tool-card:nth-child(4),
  .tool-card:nth-child(5) { grid-column: auto; }
  .tool-card:nth-child(5) { grid-column: 1 / -1; }
  .about-inner,
  .newsletter-card { grid-template-columns: 1fr; gap: 32px; }
  .newsletter-card { padding: 40px 32px; }
}

@media (max-width: 760px) {
  .hero { padding: 48px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 240px; }
  .nav-links li:not(:last-child) { display: none; }
  .section { padding: 64px 0; }
}

@media (max-width: 560px) {
  .resource-list,
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card:nth-child(5) { grid-column: auto; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .newsletter-card { padding: 32px 20px; border-radius: 22px; }
  .newsletter-form { padding: 22px; }
  .logo { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .tool-card { transition: none; }
  .btn:hover, .tool-card:hover { transform: none; }
}

/* =========================================================
   Tool pages
   ========================================================= */

.page-hero {
  padding: 56px 0 40px;
  background:
    radial-gradient(circle at 90% 10%, var(--blush) 0, transparent 40%),
    var(--cream);
}
.page-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); margin-bottom: 0.4em; }
.page-hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; margin: 0; }

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: var(--muted);
}
.breadcrumb li + li::before { content: "›"; margin-right: 6px; }
.breadcrumb a { color: var(--muted); }

.tool-section { padding: 16px 0 88px; background: var(--cream); }

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: start;
}

.panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}
.panel h2 { font-size: 1.5rem; }
.panel + .panel { margin-top: 24px; }

/* Form controls */
.field { margin-bottom: 24px; border: 0; padding: 0; min-width: 0; }
.field-label,
.field legend {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
  padding: 0;
}
.hint { display: block; color: var(--muted); font-size: 0.93rem; margin-bottom: 10px; }
.error-message {
  display: block;
  color: #b0382a;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.error-message:empty { display: none; }
.has-error input,
.has-error select { border-color: #b0382a !important; }

.input,
.date-input input,
select.input {
  font: inherit;
  color: var(--ink);
  padding: 11px 14px;
  border: 1.5px solid #d9cbc2;
  border-radius: 12px;
  background: var(--white);
  width: 100%;
}
.input:focus,
.date-input input:focus,
.money-input input:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(201, 114, 91, 0.2);
}
.input-short { max-width: 120px; }

.date-input { display: flex; gap: 12px; }
.date-input .date-item { display: flex; flex-direction: column; }
.date-input label { font-size: 0.9rem; margin-bottom: 4px; }
.date-input input { width: 64px; text-align: center; }
.date-input .date-year input { width: 88px; }

.choice-group { display: grid; gap: 10px; }
.choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid #e6d9d0;
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.choice:hover { border-color: var(--terracotta); }
.choice:has(input:checked) { border-color: var(--terracotta); background: #fdf1ec; }
.choice input { margin-top: 5px; accent-color: var(--terracotta); width: 18px; height: 18px; flex: none; }
.choice strong { display: block; }
.choice span span { color: var(--muted); font-size: 0.92rem; }

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  background: var(--sand);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}
.segmented label {
  position: relative;
  cursor: pointer;
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: block;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
}
.segmented input:checked + span { background: var(--white); box-shadow: 0 2px 6px rgba(0,0,0,0.08); font-weight: 700; }
.segmented input:focus-visible + span { outline: 3px solid var(--terracotta); outline-offset: 2px; }

.btn-block { width: 100%; }
.btn-small { padding: 9px 18px; font-size: 0.92rem; }
.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border-color: #d9cbc2;
}
.btn-ghost:hover { border-color: var(--ink); }

.notice {
  background: var(--sage-light);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 0.95rem;
}
.notice p:last-child { margin-bottom: 0; }
.notice-warm { background: #fdf1ec; }

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

/* Due date results */
.results-empty {
  text-align: center;
  padding: 56px 32px;
  color: var(--muted);
}
.results-empty svg { width: 120px; margin: 0 auto 16px; }

.due-headline {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--sand);
  margin-bottom: 24px;
}
.due-headline .eyebrow { margin-bottom: 6px; }
.due-date {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--terracotta);
  line-height: 1.15;
  margin: 0 0 10px;
}
.due-sub { color: var(--muted); margin: 0; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.stat {
  background: var(--cream);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
}
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.2;
}
.stat-label { font-size: 0.85rem; color: var(--muted); }

.progress { margin-bottom: 28px; }
.progress-track {
  position: relative;
  height: 12px;
  background: var(--sand);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--sage), var(--terracotta));
  border-radius: 999px;
  transition: width 0.6s ease;
}
.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 6px;
}

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative;
  padding: 0 0 22px 34px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 22px;
  bottom: 0;
  width: 2px;
  background: var(--sand);
}
.timeline li:last-child::before { display: none; }
.timeline li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--terracotta);
  background: var(--white);
}
.timeline li.is-past::after { background: var(--sage); border-color: var(--sage); }
.timeline li.is-now::after { background: var(--terracotta); box-shadow: 0 0 0 5px rgba(201,114,91,0.2); }
.timeline li.is-past { opacity: 0.6; }
.timeline-when { font-size: 0.85rem; font-weight: 700; color: var(--terracotta-dark); display: block; }
.timeline li.is-past .timeline-when { color: var(--muted); }
.timeline-title { font-weight: 700; display: block; }
.timeline-text { color: var(--muted); font-size: 0.95rem; margin: 2px 0 0; }
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: 2px;
  background: var(--sage-light);
  color: #4c7a4c;
}
.tag-now { background: var(--terracotta); color: var(--white); }
.tag-optional { background: var(--sand); color: var(--muted); }

.result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Inline subscribe (tool pages) */
.inline-subscribe {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 28px;
}
.inline-subscribe h2 { color: var(--white); font-size: 1.4rem; }
.inline-subscribe p { color: #e8dcd4; }
.inline-subscribe .form-row { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-subscribe .input { flex: 1 1 200px; width: auto; }
.inline-subscribe .consent { color: #e8dcd4; }
.inline-subscribe .consent a { color: var(--blush); }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  font-weight: 400 !important;
  margin: 4px 0 14px;
  color: var(--muted);
}
.consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--terracotta); flex: none; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Budget planner */
.budget-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}
.budget-summary { position: sticky; top: 96px; }

.budget-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  align-items: flex-end;
}
.budget-controls .field { margin-bottom: 0; }

.budget-category { padding: 8px 0 0; }
.budget-category + .budget-category { border-top: 1px solid var(--sand); margin-top: 16px; padding-top: 24px; }
.budget-category-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.budget-category-head h3 { margin: 0; }
.budget-category-total { font-weight: 700; color: var(--terracotta-dark); white-space: nowrap; }

.budget-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 16px;
  align-items: center;
  padding: 10px 0;
}
.budget-item + .budget-item { border-top: 1px dashed #eee2d9; }
.budget-item label.item-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
}
.budget-item .item-check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--terracotta); flex: none; }
.item-name { font-weight: 500; }
.item-note { display: block; font-size: 0.86rem; color: var(--muted); }
.budget-item.is-off .item-name { text-decoration: line-through; color: var(--muted); }
.budget-item.is-off .money-input { opacity: 0.45; }

.money-input { position: relative; }
.money-input::before {
  content: "£";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 500;
}
.money-input input {
  font: inherit;
  width: 100%;
  padding: 9px 12px 9px 26px;
  border: 1.5px solid #d9cbc2;
  border-radius: 10px;
  text-align: right;
  background: var(--white);
}
.money-input .per { position: absolute; right: -2px; top: 100%; font-size: 0.75rem; color: var(--muted); }
.money-input input.is-custom { border-color: var(--sage); background: #f7faf6; }

.summary-total {
  border-bottom: 1px solid var(--sand);
  padding-bottom: 14px;
  margin-bottom: 14px;
}
.summary-total .stat-label { display: block; font-size: 0.9rem; }
.summary-total .big {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1.2;
}
.summary-total .big.accent { color: var(--terracotta); }
.summary-lines { list-style: none; padding: 0; margin: 0 0 18px; }
.summary-lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 0.95rem;
}
.summary-lines li span:last-child { font-weight: 700; }

.bars { list-style: none; padding: 0; margin: 0 0 20px; }
.bars li { margin-bottom: 10px; font-size: 0.88rem; }
.bars .bar-label { display: flex; justify-content: space-between; margin-bottom: 3px; }
.bars .bar { height: 8px; background: var(--sand); border-radius: 999px; overflow: hidden; }
.bars .bar span { display: block; height: 100%; background: var(--terracotta); border-radius: 999px; transition: width 0.4s ease; }

.saving-plan {
  background: var(--sage-light);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}
.saving-plan strong.amount { font-family: var(--font-display); font-size: 1.5rem; display: block; }
.saving-plan .date-input input { width: 54px; padding: 8px; }
.saving-plan .date-input .date-year input { width: 72px; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.info-card h3 { font-size: 1.1rem; }
.info-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.6em; }
.info-card a { font-weight: 700; font-size: 0.95rem; }

.content-section { padding: 72px 0; background: var(--white); }
.content-section h2 { margin-bottom: 0.8em; }
.prose { max-width: 760px; }
.prose p, .prose li { color: var(--muted); }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.4em; }

.tool-link {
  font-weight: 700;
  text-decoration: none;
  color: var(--terracotta-dark);
}
.tool-link::after { content: " →"; }
.tool-card.is-live { position: relative; }
.tool-card.is-live .tool-link::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.tool-status.is-live { background: #fdf1ec; color: var(--terracotta-dark); }

@media (max-width: 960px) {
  .tool-layout,
  .budget-layout { grid-template-columns: 1fr; }
  .budget-summary { position: static; order: -1; }
}

@media (max-width: 560px) {
  .panel { padding: 22px 18px; }
  .stat-row { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .stat { padding: 10px 6px; }
  .stat-value { font-size: 1.15rem; }
  .info-grid { grid-template-columns: 1fr; }
  .budget-item { grid-template-columns: minmax(0, 1fr) 104px; gap: 10px; }
  .date-input { gap: 8px; }
}

@media print {
  .site-header, .site-footer, .inline-subscribe, .no-print, .page-hero .breadcrumb { display: none !important; }
  body, .tool-section, .page-hero { background: #fff !important; }
  .panel { box-shadow: none; border: 1px solid #ddd; }
  .budget-layout { grid-template-columns: 1fr; }
  .budget-summary { position: static; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.newsletter-form .consent input { margin-bottom: 0; padding: 0; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  max-width: 980px;
  margin: 0 auto;
  background: var(--white);
  color: var(--ink);
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(47, 42, 40, 0.22);
  border: 1px solid var(--sand);
  padding: 24px 28px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  display: none;
}
.cookie-banner.is-visible { display: block; animation: cookie-in 0.25s ease-out; }
@keyframes cookie-in { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.cookie-banner h2 { font-size: 1.25rem; margin-bottom: 0.4em; }
.cookie-banner p { font-size: 0.95rem; color: var(--muted); margin-bottom: 16px; }
.cookie-prefs fieldset { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.cookie-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  background: var(--cream);
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.93rem;
}
.cookie-option input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--terracotta); }
.cookie-option strong { display: block; }
.cookie-option span span { color: var(--muted); }
.cookie-option.is-locked { cursor: default; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn:hover { transform: none; }
.cookie-actions [hidden] { display: none; }

.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--ink);
  font-weight: 500;
  cursor: pointer;
}
.link-button:hover { color: var(--terracotta-dark); }

.policy-toc {
  background: var(--cream);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 28px 0 8px;
}
.policy-toc ol { columns: 2; column-gap: 32px; margin: 0; padding-left: 20px; }
.policy-toc li { margin-bottom: 4px; }
.policy h2 { scroll-margin-top: 96px; font-size: 1.6rem; }

@media (max-width: 560px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 20px 18px; }
  .cookie-actions .btn { flex: 1 1 100%; text-align: center; }
  .policy-toc ol { columns: 1; }
}
@media print { .cookie-banner { display: none !important; } }
