/* Shared styles for every page of the CalcHub site (homepage dashboard +
   all calculator tool pages). Keep this generic; put anything a single
   tool needs in that tool's own app.js only if it's truly page-specific.
   Mobile-first; CSS variables drive theming. System font stack only (no
   web-font requests) to keep first paint fast. Light mode only — by
   design, not an oversight. */

:root {
  color-scheme: light;

  --color-bg: #f6f3e3;
  --color-surface: #ffffff;
  --color-surface-muted: #eef6da;
  --color-text: #17301f;
  --color-text-muted: #4b5d4e;
  --color-primary: #5fbf3a;
  --color-primary-hover: #4fa82e;
  --color-primary-light: #e4f5cb;
  --color-primary-dark: #16321f;
  --color-border: #e6e2cc;
  --color-success: #3f9d4a;
  --color-error: #c23b2e;
  --gradient-accent: linear-gradient(135deg, #8ee24e 0%, #4fa82e 100%);
  --gradient-hero: radial-gradient(circle at 15% 0%, rgba(143, 226, 78, 0.18), transparent 55%),
    radial-gradient(circle at 85% 15%, rgba(79, 168, 46, 0.14), transparent 50%);

  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* Editorial accent face — system serif, so still zero web-font requests. */
  --font-accent: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;

  /* Wabi-sabi grain: a touch of tooth over flat fills so surfaces don't read
     as sterile vector. Inlined SVG turbulence — no image request. */
  --texture-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(23, 48, 31, 0.08);
  --shadow-md: 0 6px 20px rgba(23, 48, 31, 0.10);
  --shadow-lg: 0 16px 40px rgba(23, 48, 31, 0.14);

  --spacing-1: 0.5rem;
  --spacing-2: 1rem;
  --spacing-3: 1.5rem;
  --spacing-4: 2rem;
  --spacing-5: 3rem;
  --max-width: 760px;
  --max-width-wide: 1040px;
}

* {
  box-sizing: border-box;
}

/* ==========================================================================
   Animation system
   All entrance/ambient motion lives inside this media query, so the default
   (no-JS, reduced-motion) state is simply the final, fully-visible layout —
   nothing depends on an animation completing. Short, user-triggered
   micro-interactions (hover/active transitions under ~300ms) stay outside
   this guard, in line with 2026 accessibility guidance: reduce or replace
   non-essential motion, don't strip feedback entirely.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  @keyframes float-blob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-3%, 4%) scale(1.04); }
  }

  @keyframes chip-in-left {
    from { opacity: 0; transform: translate(-14px, 8px) rotate(-12deg); }
    to { opacity: 1; transform: translate(0, 0) rotate(-5deg); }
  }

  @keyframes chip-in-right {
    from { opacity: 0; transform: translate(14px, 8px) rotate(11deg); }
    to { opacity: 1; transform: translate(0, 0) rotate(4deg); }
  }

  @keyframes mascot-bob {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-9px) rotate(-1.5deg); }
  }

  @keyframes fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes pop-in {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
  }

  @keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .hero-art img {
    animation: mascot-bob 6s ease-in-out infinite;
  }

  .hero-chip.one {
    animation: chip-in-left 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
  }

  .hero-chip.two {
    animation: chip-in-right 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
  }

  /* The hero copy animates as one block with no delay and no fill-mode, so
     its resting state is the visible one. A staggered `both`-filled version
     leaves the headline at opacity:0 whenever the animation is throttled
     (background tab, restored page) — never gate real content on that. */
  .hero-copy {
    animation: fade-up 0.55s ease;
  }


  /* Scoped to .js (set by an inline snippet in <head>) so that with scripting
     disabled the tiles simply render visible instead of staying at opacity:0
     waiting for an observer that will never run. */
  .js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .js .reveal.in-view {
    opacity: 1;
    transform: translateY(0);
  }

  .tool-grid .reveal:nth-child(1) { transition-delay: 0.02s; }
  .tool-grid .reveal:nth-child(2) { transition-delay: 0.06s; }
  .tool-grid .reveal:nth-child(3) { transition-delay: 0.10s; }
  .tool-grid .reveal:nth-child(4) { transition-delay: 0.14s; }
  .tool-grid .reveal:nth-child(5) { transition-delay: 0.18s; }
  .tool-grid .reveal:nth-child(6) { transition-delay: 0.22s; }
  .tool-grid .reveal:nth-child(7) { transition-delay: 0.26s; }
  .tool-grid .reveal:nth-child(8) { transition-delay: 0.30s; }
  .tool-grid .reveal:nth-child(9) { transition-delay: 0.34s; }
  .tool-grid .reveal:nth-child(10) { transition-delay: 0.38s; }

  /* No delays and no fill-mode: these cards hold the actual results, so their
     resting state must be visible. A staggered `both`-filled version leaves
     them at opacity:0 if the animation is throttled or never runs. */
  .stat-grid.reveal-pop .stat-card {
    animation: pop-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .content details[open] > p {
    animation: fade-in 0.35s ease;
  }
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Decorative elements are deliberately offset past their containers; this
     guarantees they can never produce a horizontal scrollbar. */
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-base);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  letter-spacing: -0.011em;
  position: relative;
}

/* Paper-grain overlay across the whole page. Pointer-events off so it never
   intercepts clicks; very low opacity so it reads as texture, not noise. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: var(--texture-grain);
  opacity: 0.035;
  mix-blend-mode: multiply;
}

body > * {
  position: relative;
  z-index: 2;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-2);
}

.container-wide {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--spacing-2);
}

a {
  color: var(--color-primary-hover);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--color-primary);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--color-bg) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  padding: 0.9rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--color-text);
}

/* Organic "blob" mark — two overlapping soft shapes, echoing the CalcHub
   brand mascot. Pure CSS (asymmetric border-radius), no image assets. */
.logo-mark {
  position: relative;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.logo-mark::before,
.logo-mark::after {
  content: "";
  position: absolute;
  border-radius: 60% 40% 55% 45% / 55% 45% 60% 40%;
}

.logo-mark::before {
  width: 24px;
  height: 24px;
  left: 0;
  top: 2px;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.logo-mark::after {
  width: 18px;
  height: 18px;
  right: 0;
  bottom: 0;
  background: var(--gradient-accent);
  box-shadow: var(--shadow-sm);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  margin-left: auto;
}

.back-link:hover {
  color: var(--color-primary-hover);
}

.back-link svg {
  width: 16px;
  height: 16px;
}

/* Hero */

/* Full-bleed wash that fades into the page rather than sitting in a visible
   box — the boxed-gradient-band is a stock-template look. */
.hero {
  position: relative;
  padding-top: var(--spacing-4);
  padding-bottom: var(--spacing-3);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% 0;
  z-index: -1;
  background-image: var(--gradient-hero);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}

/* Asymmetric editorial split: copy on the left, illustration on the right,
   deliberately off-centre. Stacks on small screens. */
.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-3);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background: var(--color-primary-light);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin: 0 0 var(--spacing-2);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary-hover);
}

h1 {
  font-size: clamp(1.75rem, 6.2vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0 0 var(--spacing-2);
  line-height: 1.08;
  text-wrap: balance;
}

/* Editorial italic-serif accent inside the headline — breaks the uniform
   single-weight sans that reads as template-default. */
h1 .accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--color-primary-hover);
}

.hero-sub {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 42ch;
  margin: 0;
}

.hero-art {
  position: relative;
  justify-self: center;
  width: min(100%, 340px);
}

.hero-art img {
  width: 100%;
  height: auto;
  display: block;
}

/* Floating stat chips pinned around the mascot — depth without a raster image. */
.hero-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.hero-chip .dot {
  width: 22px;
  height: 22px;
  border-radius: 60% 40% 55% 45% / 55% 45% 60% 40%;
  background: var(--gradient-accent);
  flex-shrink: 0;
}

/* Kept fully inside the art box on small screens; they only break outward
   once there's room for it. */
.hero-chip.one { top: 2%; left: 0; transform: rotate(-5deg); }
.hero-chip.two { bottom: 10%; right: 0; transform: rotate(4deg); }

@media (min-width: 520px) {
  .hero-chip.one { left: -4%; }
  .hero-chip.two { right: -3%; }
}

@media (min-width: 800px) {
  .hero {
    padding-top: var(--spacing-5);
    padding-bottom: var(--spacing-4);
  }

  /* Intentionally uneven columns — a 1fr/1fr split is the giveaway. */
  .hero-split {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--spacing-5);
  }

  .hero-art {
    justify-self: end;
    width: 100%;
  }
}

/* Trust bar */

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: var(--spacing-3);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary-hover);
  flex-shrink: 0;
}

main.container,
main.container-wide {
  padding-top: var(--spacing-2);
  padding-bottom: var(--spacing-5);
}

/* Section heading (editorial, left-aligned, with a rule) */

.section-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem var(--spacing-2);
  margin-bottom: var(--spacing-3);
}

.section-head h2 {
  font-size: clamp(1.3rem, 4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
}

.section-head .rule {
  flex: 1;
  min-width: 1.5rem;
  height: 1px;
  background: var(--color-border);
}

.section-head .count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* Dashboard (homepage) bento grid — deliberately uneven tile sizes. A grid of
   identical cards is the single clearest "generated template" tell, so the
   featured tool gets a 2x2 block with its own illustration and the rest
   alternate between wide and square. */

.tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: minmax(112px, auto);
  gap: 0.85rem;
}

.tool-card-link {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: var(--spacing-2) var(--spacing-2) 1.1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  /* Slightly irregular corners — wabi-sabi over perfect uniformity. */
  border-radius: 22px 18px 20px 24px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease,
    border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

/* Every other tile mirrors the corner rhythm so the wall of tiles never
   looks machine-stamped. */
.tool-card-link:nth-child(even) {
  border-radius: 18px 24px 22px 18px;
}

.tool-card-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--color-primary) 45%, var(--color-border));
}

.tool-card-link.soon {
  cursor: default;
  background: color-mix(in srgb, var(--color-surface) 55%, var(--color-bg));
}

.tool-card-link.soon h3,
.tool-card-link.soon p {
  opacity: 0.75;
}

.tool-card-link.soon:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
  border-color: var(--color-border);
}

/* Featured tile — the live tool, given real estate and an illustration. */
.tool-card-link.featured {
  padding: var(--spacing-3);
  background:
    radial-gradient(circle at 88% 12%, rgba(143, 226, 78, 0.22), transparent 58%),
    var(--color-surface);
  border-color: color-mix(in srgb, var(--color-primary) 30%, var(--color-border));
}

.tool-card-link.featured h3 {
  font-size: clamp(1.3rem, 3.5vw, 1.75rem);
  letter-spacing: -0.03em;
}

.tool-card-link.featured p {
  font-size: 0.95rem;
  max-width: 34ch;
}

.featured-illo {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: auto auto -1.2rem -0.5rem;
  align-self: flex-start;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.tool-card-link.featured:hover .featured-illo {
  transform: translateY(-5px) scale(1.03);
}

@media (min-width: 560px) {
  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tool-card-link.featured {
    grid-column: span 2;
  }
}

@media (min-width: 900px) {
  .tool-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(150px, auto);
    gap: 1rem;
  }

  .tool-card-link.featured {
    grid-column: span 2;
    grid-row: span 2;
  }

  .tool-card-link.wide {
    grid-column: span 2;
  }

  /* Short tiles sit in rows sized by the tall featured block, so centre their
     content instead of letting it pile at the top with dead space below. */
  .tool-card-link:not(.featured) {
    justify-content: center;
  }
}

.tool-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 60% 40% 55% 45% / 55% 45% 60% 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  color: var(--color-primary-hover);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), border-radius 0.25s ease;
}

.tool-card-link:hover .tool-card-icon {
  transform: scale(1.1) rotate(-6deg);
  border-radius: 45% 55% 40% 60% / 40% 60% 45% 55%;
}

.tool-card-icon svg {
  width: 22px;
  height: 22px;
}

.tool-card-link h3 {
  font-size: 1rem;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.tool-card-link p {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--color-text-muted);
  margin: 0;
}

.badge {
  align-self: flex-start;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
}

/* On compact tiles the badge sits in the corner rather than stacking in the
   flow — keeps short tiles from feeling cramped. */
.tool-card-link:not(.featured) .badge {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
}

.tool-card-link:not(.featured) .badge.soon {
  background: transparent;
  color: color-mix(in srgb, var(--color-text-muted) 70%, transparent);
  padding: 0;
  font-size: 0.6rem;
}

.badge.live {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.badge.soon {
  background: var(--color-surface-muted);
  color: var(--color-text-muted);
}

/* Tool card */

.tool {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--spacing-3);
  margin-bottom: var(--spacing-4);
}

.field {
  margin-bottom: var(--spacing-2);
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.hint {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-top: 0.4rem;
}

input,
select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:hover,
select:hover {
  border-color: color-mix(in srgb, var(--color-primary) 40%, var(--color-border));
}

input:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-light);
}

button {
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--gradient-accent);
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  width: 100%;
}

button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

button:active {
  transform: scale(0.97);
  box-shadow: var(--shadow-sm);
}

.error-text {
  color: var(--color-error);
  font-size: 0.85rem;
  margin-top: 0.35rem;
  display: none;
}

/* Stat grid (results) */

.stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: var(--spacing-3);
  padding-top: var(--spacing-3);
  border-top: 1px solid var(--color-border);
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: var(--spacing-2);
  border-radius: var(--radius-md);
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
}

.stat-card.primary {
  background: var(--gradient-accent);
  border: none;
  color: var(--color-primary-dark);
}

.stat-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 60% 40% 55% 45% / 55% 45% 60% 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  color: var(--color-primary-hover);
}

.stat-card.primary .stat-icon {
  background: rgba(255, 255, 255, 0.35);
  color: var(--color-primary-dark);
}

.stat-icon svg {
  width: 20px;
  height: 20px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0 0 0.15rem;
}

.stat-card.primary .stat-label {
  color: color-mix(in srgb, var(--color-primary-dark) 75%, transparent);
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

@media (min-width: 560px) {
  .stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

/* Content / FAQ */

.content h2 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: var(--spacing-5);
  margin-bottom: var(--spacing-2);
}

.content p {
  color: var(--color-text-muted);
}

.content strong {
  color: var(--color-text);
}

.content details {
  border-bottom: 1px solid var(--color-border);
  padding: var(--spacing-2) 0;
}

.content summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--color-text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.content summary::-webkit-details-marker {
  display: none;
}

.chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transition: transform 0.2s ease;
}

.content details[open] .chevron {
  transform: rotate(180deg);
}

.content details p {
  margin-top: var(--spacing-1);
  margin-bottom: 0;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: var(--spacing-3) 0;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-align: center;
}

@media (min-width: 640px) {
  h1 {
    font-size: 2.5rem;
  }

  .tool {
    padding: var(--spacing-4);
  }
}
