:root {
  --ink: #163a36;
  --ink-soft: #54706a;
  --paper: #f8f5ed;
  --white: #fffdf8;
  --orange: #ed7652;
  --yellow: #f5c85b;
  --line: #dce0d4;
  --shadow: 0 18px 45px rgba(18, 58, 54, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.skip-link {
  position: absolute; left: 1rem; top: -5rem;
  background: var(--ink); color: white; padding: .7rem; z-index: 5;
}
.skip-link:focus { top: 1rem; }
.site-header, main, footer { max-width: 1180px; margin: auto; }
.site-header {
  height: 76px; padding: 0 26px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 4;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
}
.brand {
  display: flex; align-items: center; gap: 8px;
  color: var(--ink); font-size: 20px; font-weight: 700;
  text-decoration: none; letter-spacing: -.7px;
}
.brand-mark {
  display: grid; place-items: center; width: 27px; height: 27px;
  background: var(--orange); border-radius: 9px; color: var(--white);
  font-family: Georgia, serif; font-weight: bold; font-size: 20px; font-style: italic;
}
.site-header nav { display: flex; gap: 28px; margin-left: auto; margin-right: 24px; }
.nav-toggle { display: none; border: 1px solid var(--line); background: transparent; border-radius: 20px; padding: 7px 12px; font-weight: 600; font-size: 12px; }
.site-header nav a { color: var(--ink-soft); font-size: 14px; text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--ink); }
.language {
  border: 1px solid var(--line); border-radius: 20px; background: transparent;
  padding: 7px 11px; color: var(--ink); font-weight: 600; font-size: 12px;
}
.language span { color: var(--ink-soft); margin-left: 5px; font-weight: 400; }
.language[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.language[aria-pressed="true"] span { color: #c2d5ce; }

.hero {
  min-height: 478px; padding: 70px 7.7% 68px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
  background: var(--white); border-radius: 0 0 38px 38px; position: relative; overflow: hidden;
}
.eyebrow {
  text-transform: uppercase; color: var(--orange); font-size: 11px;
  letter-spacing: 1.4px; font-weight: 700; margin: 0 0 12px;
}
.hero h1, .section-heading h2, .why h2, .legal-wide h1, .tool-page h1 {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: -2px; line-height: 1.06; margin: 0;
}
.hero h1 { font-size: 53px; }
.hero h1 em { font-style: italic; color: var(--orange); }
.lede, .lede-article { color: var(--ink-soft); font-size: 16px; line-height: 1.7; max-width: 640px; margin: 22px 0; }
.search {
  display: flex; align-items: center; gap: 10px; max-width: 510px;
  background: #f4f1e9; border: 1px solid transparent; border-radius: 13px; padding: 0 15px;
}
.search:focus-within { border-color: var(--orange); background: white; }
.search span { font-size: 25px; color: var(--ink-soft); transform: rotate(-20deg); }
.search input { border: 0; background: transparent; outline: 0; width: 100%; padding: 16px 0; color: var(--ink); font-size: 14px; }
.quick-links { font-size: 12px; color: var(--ink-soft); margin-top: 14px; }
.quick-links a { color: var(--ink); font-weight: 600; margin: 0 4px; text-underline-offset: 3px; }
.journeys { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 540px; margin-top: 22px; }
.journey {
  display: grid; gap: 4px; text-decoration: none; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: #f4f1e9;
}
.journey strong { font-size: 14px; }
.journey span { font-size: 12px; color: var(--ink-soft); line-height: 1.4; }
.journey:hover { border-color: var(--orange); background: white; }
.browse-links { font-size: 13px; color: var(--ink-soft); margin-top: 18px; }
.browse-links a { color: var(--ink); font-weight: 600; }
.crumbs { font-size: 12px; color: var(--ink-soft); margin: 0 0 18px; }
.crumbs a { color: var(--ink); text-decoration: none; }
.crumbs span { margin: 0 6px; color: var(--line); }

.hero-visual { position: relative; min-height: 320px; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .85; }
.hero-card {
  position: relative; display: block; text-decoration: none;
  background: var(--ink); border-radius: 19px; padding: 25px; color: #fff8e9;
  box-shadow: var(--shadow); transform: rotate(2deg);
  animation: floaty 7s ease-in-out infinite;
}
.card-top { display: flex; justify-content: space-between; color: #c2d5ce; font-size: 11px; }
.spark { color: var(--yellow); font-size: 18px; animation: pulse 2.4s ease-in-out infinite; }
.hero-card h2 { font-size: 17px; margin: 29px 0 6px; font-family: "Playfair Display", Georgia, serif; }
.hero-card p { font-size: 12px; color: #c2d5ce; margin: 0; }
.hero-card strong { display: block; font-size: 35px; letter-spacing: -1.5px; margin: 10px 0 15px; }
.hero-card strong span { font-size: 12px; letter-spacing: 0; color: #c2d5ce; margin-left: 3px; }
.mini-bars {
  height: 55px; display: flex; align-items: end; gap: 7px;
  border-bottom: 1px solid rgba(255,255,255,.22); padding: 0 3px 5px;
}
.mini-bars i {
  background: var(--yellow); width: 100%; border-radius: 4px 4px 1px 1px;
  transform-origin: bottom; animation: grow .9s ease both;
}
.mini-bars i:nth-child(1) { height: 20%; animation-delay: .05s; }
.mini-bars i:nth-child(2) { height: 45%; animation-delay: .12s; }
.mini-bars i:nth-child(3) { height: 35%; animation-delay: .18s; }
.mini-bars i:nth-child(4) { height: 63%; animation-delay: .24s; }
.mini-bars i:nth-child(5) { height: 57%; animation-delay: .3s; }
.mini-bars i:nth-child(6) { height: 88%; animation-delay: .36s; }
.mini-bars i:nth-child(7) { height: 100%; animation-delay: .42s; }
.outline-button {
  width: 100%; display: flex; justify-content: space-between;
  border: 1px solid rgba(255,255,255,.35); padding: 10px 12px; margin-top: 18px;
  border-radius: 8px; font-size: 12px;
}

.category-section, .tools-section, .why { padding: 82px 7.7%; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 25px; }
.section-heading h2, .why h2 { font-size: 34px; }
.section-heading > p { font-size: 13px; color: var(--ink-soft); margin: 0 0 4px; }
.categories { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.category {
  background: transparent; border: 1px solid var(--line); border-radius: 22px;
  padding: 10px 15px; color: var(--ink-soft); font-size: 13px;
}
.category span { margin-right: 5px; font-weight: 700; }
.category:hover, .category.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.tools-section { padding-top: 0; }
.tools-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.tools-header h2 { font-size: 21px; letter-spacing: -.5px; margin: 0; }
.tools-header span { font-size: 12px; color: var(--ink-soft); }
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.catalog-grid { grid-template-columns: repeat(3, 1fr); }
.tool-card {
  min-height: 200px; padding: 21px; border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255,253,248,.7); display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.tool-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #bac9be; }
.tool-card.featured, .featured-grid .tool-card:nth-child(1) { background: #e9f0e9; border-color: #d3e0d2; }
.tool-icon {
  width: 33px; height: 33px; display: grid; place-items: center;
  background: var(--orange); color: white; border-radius: 10px;
  font-size: 17px; font-weight: 700; margin-bottom: 16px;
}
.tool-card:nth-child(2) .tool-icon, .tool-card:nth-child(5) .tool-icon { background: var(--yellow); color: var(--ink); }
.tool-card:nth-child(3) .tool-icon, .tool-card:nth-child(6) .tool-icon { background: #8fb7a9; }
.tool-card:nth-child(4) .tool-icon, .tool-card:nth-child(7) .tool-icon { background: #d9a58c; }
.tag { font-size: 10px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .8px; }
.tool-card h3 { font-size: 16px; letter-spacing: -.3px; margin: 6px 0; }
.tool-card p { font-size: 12px; line-height: 1.5; color: var(--ink-soft); margin: 0; }
.go { display: flex; justify-content: space-between; margin-top: auto; padding-top: 16px; font-size: 12px; font-weight: 700; }
.go span { color: var(--orange); font-size: 18px; }
.empty-state { color: var(--ink-soft); text-align: center; padding: 38px; }

.why { background: #e4ede5; max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.why-list { display: grid; gap: 18px; }
.why-list p { display: grid; grid-template-columns: 38px 1fr; gap: 10px; margin: 0; }
.why-list b { font-family: "Playfair Display", Georgia, serif; color: var(--orange); font-size: 18px; }
.why-list span { font-size: 13px; line-height: 1.55; color: var(--ink-soft); }
.why-list strong { display: block; font-size: 15px; color: var(--ink); margin-bottom: 2px; }

footer {
  padding: 34px 7.7% 42px; display: grid; gap: 16px;
  color: var(--ink-soft); font-size: 12px;
}
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand p { max-width: 420px; margin: 0; line-height: 1.55; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a, .footer-sisters a, footer a { text-decoration: none; }
.footer-links a:hover, .footer-sisters a:hover { color: var(--ink); }

.tool-page, .legal-wide { padding: 36px 7.7% 80px; }
.tool-page h1, .legal-wide h1 { font-size: 42px; margin-bottom: 8px; }
.tool-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 42px; align-items: start; margin-top: 28px; }
.tool-copy p, .legal-wide p { color: var(--ink-soft); font-size: 16px; line-height: 1.75; }
.tool-copy h2, .legal-wide h2, .related h2, .faqs h2 {
  font-family: "Playfair Display", Georgia, serif; font-size: 26px; letter-spacing: -.8px; margin: 32px 0 10px;
}
.sticky-calc {
  position: sticky; top: 92px;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  box-shadow: var(--shadow);
}
.sticky-calc h2 { font-family: "Playfair Display", Georgia, serif; font-size: 22px; margin: 0 0 14px; }
.calc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 11px;
  background: #fffdf9; color: var(--ink); outline-color: var(--orange);
}
.calculate {
  grid-column: 1 / -1; border: 0; background: var(--orange); color: white;
  border-radius: 9px; padding: 13px; font-weight: 700; margin-top: 3px;
  transition: transform .15s ease, filter .15s ease;
}
.calculate:hover { filter: brightness(1.05); transform: translateY(-1px); }
.result {
  margin-top: 18px; border-radius: 11px; background: #d7e6d8; padding: 17px; color: var(--ink);
}
.result.pop { animation: pop .45s ease; }
.result .primary-result { font-size: 27px; font-weight: 700; letter-spacing: -1px; color: var(--ink); }
.result-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #3d5c56; margin-bottom: 3px; }
.breakdown { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 12px; }
.breakdown span { font-size: 12px; color: var(--ink-soft); }
.breakdown b { display: block; color: var(--ink); font-size: 14px; margin-top: 2px; }
.privacy-note { font-size: 11px; color: var(--ink-soft); text-align: center; margin: 15px 0 0; }
.qr-image { display: block; margin: 8px 0; background: white; padding: 8px; border-radius: 8px; }
#timer-display { font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.official-link a { color: var(--ink); font-weight: 600; }
.faqs details {
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 10px 0; background: var(--white);
}
.faqs summary { cursor: pointer; font-weight: 600; }
.related { margin-top: 56px; }
.guide-panel { background: #e9f0e9; border-radius: 12px; padding: 16px; }
.ad-slot { margin: 24px 0; min-height: 0; }

.rise { opacity: 0; transform: translateY(16px); }
.rise.in { opacity: 1; transform: none; transition: opacity .55s ease var(--delay, 0ms), transform .55s ease var(--delay, 0ms); }

@keyframes floaty {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50% { transform: rotate(1.4deg) translateY(-8px); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .65; transform: scale(1.15); }
}
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes pop { from { transform: scale(.97); opacity: .4; } to { transform: none; opacity: 1; } }

@media (max-width: 900px) {
  .hero, .tool-layout, .why { grid-template-columns: 1fr; }
  .tool-aside { order: -1; }
  .hero-card { max-width: 390px; }
  .tools-grid, .catalog-grid, .journeys { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: inline-flex; margin-left: auto; margin-right: 10px; }
  .site-header nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--paper); flex-direction: column; gap: 0; padding: 8px 22px 18px;
    border-bottom: 1px solid var(--line); margin: 0; z-index: 5;
  }
  .site-header nav.open { display: flex; }
  .site-header nav a { padding: 10px 0; }
  .sticky-calc { position: static; }
}
@media (max-width: 520px) {
  .site-header { padding: 0 18px; height: 64px; }
  .hero { padding: 47px 22px 50px; }
  .hero h1 { font-size: 36px; }
  .category-section, .tools-section, .tool-page, .legal-wide { padding-left: 22px; padding-right: 22px; }
  .tools-grid, .catalog-grid, .journeys { grid-template-columns: 1fr; }
  .calc-form { grid-template-columns: 1fr; }
  .why { padding: 52px 22px; }
  footer { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-card, .mini-bars i, .spark, .rise, .result.pop { animation: none !important; transition: none !important; }
  .rise { opacity: 1; transform: none; }
}
