/* ==========================================================================
   Hourlyfy — Core Stylesheet
   Design language: ledger / timeclock. Ink navy + brass accent on a cool
   paper background, ruled-paper texture, index-card surfaces.
   ========================================================================== */

:root {
  /* Color tokens */
  --ink: #16232e;
  --ink-soft: #48576a;
  --ink-faint: #7c8898;
  --paper: #f4f4f0;
  --paper-raised: #eceae2;
  --surface: #ffffff;
  --rule: #dcd8cc;
  --rule-strong: #c7c2b2;
  --brass: #b1793a;
  --brass-dark: #8a5c26;
  --brass-tint: #f1e4d0;
  --ledger: #1f6f5c;
  --ledger-tint: #e3efec;
  --flag: #a8402b;
  --flag-tint: #f6e6e2;

  /* Type */
  --font: "Poppins", "Segoe UI", Arial, sans-serif;

  /* Layout */
  --max: 1180px;
  --radius-sm: 6px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(22, 35, 46, 0.06);
  --shadow-hover: 0 10px 24px -12px rgba(22, 35, 46, 0.28);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.brand-mark svg {
  stroke: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.22;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
  color: var(--ink-soft);
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section--tight {
  padding: 48px 0;
}

.section--paper-raised {
  background: var(--paper-raised);
}

.section--ink {
  background: var(--ink);
  color: #eef1f4;
}

.section--ink p {
  color: #b9c3cf;
}

.section-head {
  max-width: 640px;
  margin: 0 0 40px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
}

.kicker {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brass-dark);
  margin-bottom: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: #223547;
}

.btn-brass {
  background: var(--brass);
  color: #fff;
}

.btn-brass:hover {
  background: var(--brass-dark);
}

.btn-ghost {
  background: transparent;
  border-color: var(--rule-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--surface);
}

.btn-ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-ghost-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.85rem;
}

/* ---------- Site header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(244, 244, 240, 0.97);
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.brand-mark svg {
  width: 18px;
  height: 18px;
}

.brand-name em {
  font-style: normal;
  color: var(--brass-dark);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav a.nav-link {
  display: inline-block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.main-nav a.nav-link:hover,
.main-nav a.nav-link[aria-current="page"] {
  color: var(--ink);
  background: var(--paper-raised);
}

.nav-cta {
  margin-left: 10px;
}

/* Calculators dropdown */
.nav-item-dropdown {
  position: relative;
}

.nav-item-dropdown > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--ink-soft);
  cursor: pointer;
}

.nav-item-dropdown > button:hover,
.nav-item-dropdown.is-open > button,
.nav-item-dropdown > button[aria-current="page"] {
  color: var(--ink);
  background: var(--paper-raised);
}

.nav-item-dropdown .chev {
  width: 10px;
  height: 10px;
  transition: transform 0.15s ease;
}

.nav-item-dropdown.is-open .chev {
  transform: rotate(180deg);
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 560px;
  max-width: 90vw;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 14px;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.nav-item-dropdown.is-open .dropdown-panel {
  display: grid;
}

.dropdown-panel a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}

.dropdown-panel a:hover {
  background: var(--paper-raised);
}

.dropdown-panel .d-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.dropdown-panel .d-desc {
  font-size: 0.76rem;
  color: var(--ink-faint);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 80px;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 37px,
    var(--rule) 37px,
    var(--rule) 38px
  );
  background-position: 0 120px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brass-dark);
  background: var(--brass-tint);
  border-radius: 100px;
  padding: 6px 14px 6px 12px;
  margin-bottom: 20px;
}

.hero-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ledger);
  flex: none;
  animation: heroPulse 2.2s ease-in-out infinite;
}

@keyframes heroPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

.hero h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem);
  max-width: 21ch;
  color: var(--ink);
  background: linear-gradient(100deg, var(--ink) 55%, var(--brass-dark) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .lede {
  font-size: 1.08rem;
  max-width: 46ch;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-trust {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-trust .stat {
  border-left: 2px solid var(--brass);
  padding-left: 12px;
}

.hero-trust .stat strong {
  display: block;
  font-size: 1.3rem;
  color: var(--ink);
}

.hero-trust .stat span {
  font-size: 0.8rem;
  color: var(--ink-faint);
}

/* Hero timecard visual */
.hero-visual {
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -34px -10px;
  background: radial-gradient(circle at 62% 28%, rgba(177, 121, 58, 0.16), transparent 62%);
  z-index: -1;
  pointer-events: none;
}

.timecard-mock {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  overflow: hidden;
}

.timecard-mock__head {
  background: var(--ink);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.timecard-mock__head .punch-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ledger);
  display: inline-block;
  margin-right: 6px;
}

.timecard-mock__body {
  padding: 18px 20px 20px;
}

.timecard-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 0.8fr;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--rule);
  font-size: 0.82rem;
  align-items: center;
}

.timecard-row.head {
  font-size: 0.7rem;
  text-transform: none;
  color: var(--ink-faint);
  font-weight: 600;
  border-bottom: 1px solid var(--rule-strong);
}

.timecard-row span:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ledger);
}

.timecard-mock__foot {
  margin-top: 14px;
  padding-top: 14px;
  padding-right: 84px;
  border-top: 1px solid var(--rule-strong);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.timecard-mock__foot .label {
  font-size: 0.78rem;
  color: var(--ink-faint);
}

.timecard-mock__foot .value {
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.hero-badge {
  position: absolute;
  right: -14px;
  bottom: -18px;
  background: var(--brass);
  color: #fff;
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-hover);
  max-width: 190px;
}

.hero-badge strong {
  display: block;
  font-size: 1.1rem;
}

.hero-badge span {
  font-size: 0.75rem;
  opacity: 0.9;
}

/* ---------- Cards: calculators ---------- */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.calc-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  position: relative;
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.calc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 3px;
  background: var(--brass);
  border-radius: 0 0 3px 3px;
}

.calc-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-color: var(--rule-strong);
}

.calc-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--brass-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.calc-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--brass-dark);
}

.calc-card h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.calc-card p {
  font-size: 0.86rem;
  margin-bottom: 14px;
}

.calc-card__link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.calc-card__link svg {
  width: 13px;
  height: 13px;
  transition: transform 0.15s ease;
}

.calc-card:hover .calc-card__link svg {
  transform: translateX(3px);
}

.calc-card-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ledger);
  background: var(--ledger-tint);
  border-radius: 100px;
  padding: 2px 9px;
  margin-bottom: 10px;
}

/* Directory search/filter (home) */
.directory-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.directory-search {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.directory-search input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule-strong);
  font-family: inherit;
  font-size: 0.92rem;
  background: var(--surface);
}

.directory-search svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--ink-faint);
}

.directory-empty {
  display: none;
  text-align: center;
  padding: 40px 20px;
  border: 1px dashed var(--rule-strong);
  border-radius: var(--radius);
  color: var(--ink-faint);
}

.directory-empty.is-visible {
  display: block;
}

/* ---------- Generic content cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 24px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-item {
  padding: 4px 0;
}

.feature-item .num {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brass-dark);
  display: block;
  margin-bottom: 10px;
}

.feature-item h3 {
  font-size: 1.05rem;
}

.feature-item p {
  font-size: 0.9rem;
}

/* Split content block (image + text) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split.split--reverse .split-media {
  order: 2;
}

.image-wrapper {
  width: 100%;
  height: 340px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.split-body .kicker {
  margin-bottom: 8px;
}

.value-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.value-list li:first-child {
  border-top: none;
}

.value-list svg {
  flex: none;
  width: 18px;
  height: 18px;
  stroke: var(--ledger);
  margin-top: 2px;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--rule);
}

.page-hero h1 {
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem);
  max-width: 18ch;
}

.page-hero .lede {
  max-width: 56ch;
  font-size: 1.02rem;
}

/* ---------- FAQ ---------- */
.faq-list {
  border-top: 1px solid var(--rule);
}

.faq-item {
  border-bottom: 1px solid var(--rule);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  font-size: 0.98rem;
}

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

.faq-item summary .plus {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  position: relative;
}

.faq-item summary .plus::before,
.faq-item summary .plus::after {
  content: "";
  position: absolute;
  background: var(--ink);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-item summary .plus::before {
  width: 10px;
  height: 1.5px;
}

.faq-item summary .plus::after {
  width: 1.5px;
  height: 10px;
  transition: opacity 0.15s ease;
}

.faq-item[open] summary .plus::after {
  opacity: 0;
}

.faq-item .faq-answer {
  padding: 0 4px 20px 4px;
  max-width: 68ch;
  font-size: 0.92rem;
}

.faq-group-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brass-dark);
  margin: 36px 0 4px;
}

.faq-group-title:first-child {
  margin-top: 0;
}

/* ---------- Forms (contact, generic) ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
}

.form-field .hint {
  font-size: 0.76rem;
  color: var(--ink-faint);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 0.94rem;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  color: var(--ink);
  width: 100%;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--brass);
}

.form-status {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.form-status.is-visible {
  display: block;
}

.form-status.success {
  background: var(--ledger-tint);
  color: #164a3d;
  border: 1px solid #b6d9d0;
}

.form-status.error {
  background: var(--flag-tint);
  color: #7a2c1d;
  border: 1px solid #e3bdb0;
}

.contact-info-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}

.contact-info-list li:first-child {
  border-top: none;
}

.contact-info-list .ci-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--paper-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.contact-info-list .ci-icon svg {
  width: 17px;
  height: 17px;
  stroke: var(--ink);
}

.contact-info-list .ci-title {
  font-weight: 600;
  font-size: 0.92rem;
}

.contact-info-list .ci-detail {
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* ---------- Policy pages ---------- */
.policy-body h2 {
  font-size: 1.2rem;
  margin-top: 2em;
}

.policy-body h2:first-child {
  margin-top: 0;
}

.policy-body p,
.policy-body li {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.policy-body ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
  list-style: disc;
}

.policy-updated {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-bottom: 30px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: #fff;
}

.cta-band h2 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.cta-band p {
  color: #b9c3cf;
  margin: 0;
}

.cta-band-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--paper-raised);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
}

.footer-brand p {
  font-size: 0.88rem;
  max-width: 32ch;
  margin-top: 14px;
}

.footer-col h4 {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-bottom: 14px;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  border-top: 1px solid var(--rule-strong);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.footer-bottom-links {
  display: flex;
  gap: 18px;
}

/* ---------- Breadcrumb / small text ---------- */
.eyebrow-link {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-bottom: 16px;
  display: block;
}

.eyebrow-link a {
  color: var(--ink-soft);
}

.eyebrow-link a:hover {
  color: var(--ink);
}

/* "Free - No sign-up - Unlimited" messaging */
.free-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ledger);
  background: var(--ledger-tint);
  border-radius: 100px;
  padding: 6px 14px;
  margin: 0 0 16px;
}

.no-account-line {
  font-size: 0.76rem;
  color: var(--ink-faint);
  margin: 8px 0 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .calc-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 460px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .split.split--reverse .split-media {
    order: 0;
  }
}

@media (max-width: 800px) {
  .main-nav {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--paper);
    padding: 20px 24px;
    flex-direction: column;
    align-items: stretch;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.2s ease;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .main-nav a.nav-link {
    padding: 14px 10px;
    border-bottom: 1px solid var(--rule);
    border-radius: 0;
  }

  .nav-item-dropdown {
    border-bottom: 1px solid var(--rule);
  }

  .nav-item-dropdown > button {
    width: 100%;
    justify-content: space-between;
    padding: 14px 10px;
  }

  .dropdown-panel {
    position: static;
    transform: none;
    width: 100%;
    box-shadow: none;
    border: none;
    grid-template-columns: 1fr;
    padding: 4px 0 10px;
  }

  .nav-cta {
    margin: 14px 0 0;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 52px 0;
  }

  .calc-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 32px 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-badge {
    right: -8px;
    bottom: -14px;
    padding: 12px 14px;
    max-width: 150px;
  }

  .timecard-mock__foot {
    padding-right: 100px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .directory-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}
