/* Product-aligned presentation layer: neutral surfaces and blue as the only strong accent. */
:root {
  --product-blue: #0969da;
}
.brand > span:last-child,
.brand > span:last-child > span {
  color: var(--text) !important;
}
.brand {
  gap: 10px;
}
.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1;
}
.brand-name {
  display: block;
  font:
    800 20px/1 "Manrope",
    sans-serif;
  letter-spacing: -1px;
}
.brand-subtitle {
  display: block;
  color: var(--muted) !important;
  font:
    600 10px/1.25 "DM Sans",
    sans-serif;
  letter-spacing: 0.1px;
}
.site-header {
  max-width: none;
  padding-left: max(30px, calc((100% - 1180px) / 2));
  padding-right: max(30px, calc((100% - 1180px) / 2));
  background: var(--surface) !important;
  border-bottom: 1px solid var(--border);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}
main section[id] {
  scroll-margin-top: 84px;
}
.main-nav {
  background: transparent !important;
  box-shadow: none !important;
}
.main-nav > a:not(.nav-cta) {
  background: transparent !important;
  color: var(--text) !important;
  padding: 10px 0;
}
.main-nav > a:not(.nav-cta):hover {
  color: var(--primary) !important;
}
.main-nav > a:not(.nav-cta).active {
  color: var(--primary) !important;
  box-shadow: inset 0 -2px 0 var(--primary);
}
.main-nav .nav-cta {
  background: #0969da !important;
  color: #fff !important;
  box-shadow: none !important;
}
.header-tools {
  gap: 8px;
}
.theme-toggle {
  width: 54px;
  height: 36px;
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}
.theme-switch {
  display: flex;
  width: 64px;
  height: 36px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
}
.theme-switch button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 34px;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font: 800 13px "DM Sans";
  cursor: pointer;
}
.theme-switch button + button {
  border-left: 1px solid var(--border);
}
.theme-switch button:hover {
  color: var(--primary);
  background: var(--surface-2);
}
.theme-switch button.active,
.theme-switch button.active:hover {
  color: #fff;
  background: var(--primary);
}
.header-tools .theme-switch,
.header-tools .language-switch {
  display: flex;
  box-sizing: border-box;
  width: 66px;
  height: 36px;
  align-items: stretch;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
}
.header-tools .theme-switch button,
.header-tools .language-switch a {
  display: grid;
  flex: 1 1 50%;
  box-sizing: border-box;
  place-items: center;
  width: auto;
  height: 34px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font:
    800 10px "DM Sans",
    sans-serif;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}
.header-tools .theme-switch button + button,
.header-tools .language-switch a + a {
  border-left: 1px solid var(--border);
}
.header-tools .theme-switch button:hover,
.header-tools .language-switch a:hover {
  color: var(--primary);
  background: var(--surface-2);
}
.header-tools .theme-switch button.active,
.header-tools .theme-switch button.active:hover,
.header-tools .language-switch a.active,
.header-tools .language-switch a.active:hover {
  color: #fff;
  background: var(--primary);
}
.language-switch {
  display: flex;
  height: 36px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
}
.language-switch a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 34px;
  color: var(--muted);
  font: 800 10px "DM Sans";
  text-decoration: none;
}
.language-switch a + a {
  border-left: 1px solid var(--border);
}
.language-switch a:hover {
  color: var(--primary);
  background: var(--surface-2);
}
.language-switch a.active,
.language-switch a.active:hover {
  background: var(--primary);
  color: #fff;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hero {
  min-height: clamp(520px, 62vh, 620px);
  background: var(--bg);
}
.features.section {
  padding-top: 76px;
}
.hero-visual .violet-orb {
  opacity: 0.46;
}
.hero-visual .peach-orb {
  display: none;
}
.hero h1 em {
  white-space: nowrap;
}
.hero-actions .button,
.hero-actions .text-link {
  white-space: nowrap;
}
.features,
.control,
.contact {
  position: relative;
  background: var(--surface);
  box-shadow: 0 0 0 100vmax var(--surface);
  clip-path: inset(0 -100vmax);
}
.workflow,
.pricing {
  background: var(--bg) !important;
  box-shadow: 0 0 0 100vmax var(--bg);
  clip-path: inset(0 -100vmax);
}
body[data-theme="dark"] .features,
body[data-theme="dark"] .control,
body[data-theme="dark"] .contact {
  background: #252526;
  box-shadow: 0 0 0 100vmax #252526;
}
body[data-theme="dark"] .workflow,
body[data-theme="dark"] .pricing {
  background: #1e1e1e !important;
  box-shadow: 0 0 0 100vmax #1e1e1e;
}
.control {
  grid-template-areas: "copy visual";
}
.control-visual {
  grid-area: visual;
}
.control-copy {
  grid-area: copy;
}
footer .footer-top > a:last-child,
footer .footer-bottom a {
  color: var(--muted) !important;
}
footer .footer-top > a:last-child {
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
}
footer .footer-top {
  border-top: 0;
}
footer .footer-top > a:last-child:hover,
footer .footer-bottom a:hover {
  color: var(--primary) !important;
}
footer .footer-bottom a.active {
  color: var(--primary) !important;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
/* Shared header and footer typography for every page. */
.site-header,
footer {
  font-family: "DM Sans", Arial, sans-serif;
}
.site-header .brand-name,
footer .brand-name {
  color: var(--text) !important;
  font:
    800 20px/1 "Manrope",
    Arial,
    sans-serif;
  letter-spacing: -1px;
}
.site-header .brand-subtitle,
footer .brand-subtitle {
  color: var(--muted) !important;
  font:
    600 10px/1.25 "DM Sans",
    Arial,
    sans-serif;
  letter-spacing: 0.1px;
}
.site-header .main-nav > a {
  font:
    600 14px/1 "DM Sans",
    Arial,
    sans-serif;
}
footer .footer-top p,
footer .footer-top > a:last-child {
  color: var(--muted) !important;
  font:
    400 13px/1.5 "DM Sans",
    Arial,
    sans-serif;
}
footer .footer-bottom,
footer .footer-bottom a {
  color: var(--muted) !important;
  font:
    400 11px/1.5 "DM Sans",
    Arial,
    sans-serif;
}
@media (max-width: 850px) {
  .site-header .brand-name,
  footer .brand-name {
    font-size: 18px;
  }
  .site-header .brand-subtitle,
  footer .brand-subtitle {
    font-size: 9px;
  }
}
.app-window,
.feature-card,
.price-card,
.report-window {
  box-shadow: 0 8px 22px rgba(31, 35, 40, 0.08) !important;
}
.logo-strip,
.workflow {
  background: var(--surface) !important;
}
.logo-strip {
  min-height: 98px;
  padding: 31px 30px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.workflow {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 330px);
  gap: 70px;
  padding-left: max(30px, calc((100% - 1220px) / 2));
  padding-right: max(30px, calc((100% - 1220px) / 2));
}
.cta {
  background: linear-gradient(135deg, #0969da, #0755b4) !important;
  max-width: none;
  margin: 0;
  border-radius: 0;
  padding-top: 72px;
  padding-bottom: 72px;
  padding-left: max(30px, calc((100% - 1180px) / 2));
  padding-right: max(30px, calc((100% - 1180px) / 2));
}
.button.primary {
  background: #0969da !important;
}
.cta .eyebrow.light {
  color: #fff !important;
}
.button.primary:hover,
.featured-price > a:hover {
  background: #0755b4 !important;
}
/* Marketing section names remain a deliberate single line at every viewport. */
.section-heading h2,
.workflow-copy h2,
.control-copy h2,
.pricing .section-heading h2,
.cta h2 {
  white-space: nowrap;
}
.features .section-heading > p:last-child,
.pricing .section-heading > p:last-child {
  max-width: none !important;
  white-space: nowrap;
}
.report-table > div > :last-child {
  justify-self: center;
  text-align: center;
}
.report-table .status {
  display: inline-flex;
  width: 82px;
  justify-content: center;
}
.feature-card.featured {
  display: flex;
  flex-direction: column;
}
.feature-card.featured .mini-invoice {
  margin-top: auto;
  padding: 18px;
}
.mini-invoice-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 13px 0 8px;
  padding-top: 11px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}
@media (max-width: 850px) {
  .section-heading h2,
  .workflow-copy h2,
  .control-copy h2,
  .pricing .section-heading h2,
  .cta h2 {
    font-size: clamp(18px, 5vw, 36px) !important;
    letter-spacing: -1.2px !important;
  }
}
@media (min-width: 851px) and (max-height: 920px) {
  .hero {
    min-height: 0;
    padding-top: 48px;
    padding-bottom: 38px;
  }
  .hero-visual {
    height: 390px;
  }
  .features.section {
    padding-top: 60px;
  }
}
@media (max-width: 1200px) {
  .workflow {
    grid-template-columns: 1fr;
    gap: 42px;
  }
}
@media (max-width: 1050px) {
  .site-header {
    height: 70px;
    padding: 0 20px;
  }
  .menu-toggle {
    display: block;
    z-index: 3;
    padding: 7px;
  }
  .menu-toggle span {
    display: block;
    width: 23px;
    height: 2px;
    margin: 4px;
    background: var(--text);
  }
  .main-nav {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    right: 0;
    padding: 90px 25px 28px;
    background: var(--surface) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }
  .main-nav.open {
    display: flex;
  }
  .header-tools {
    margin-left: auto;
    margin-right: 12px;
  }
}
@media (max-width: 850px) {
  .hero {
    min-height: auto;
  }
  .hero h1 em {
    white-space: normal;
  }
  .features.section {
    padding-top: 82px;
  }
  .section-heading h2,
  .workflow-copy h2,
  .control-copy h2,
  .pricing .section-heading h2,
  .cta h2,
  .features .section-heading > p:last-child,
  .pricing .section-heading > p:last-child {
    white-space: normal;
  }
}
@media (max-width: 850px) {
  .workflow {
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 82px 20px;
  }
}
@media (max-width: 850px) {
  .control {
    grid-template-areas: "visual" "copy";
    grid-template-columns: 1fr;
  }
  .brand-name {
    font-size: 18px;
  }
  .brand-subtitle {
    font-size: 9px;
  }
}
.license-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 790px;
  margin-left: auto;
  margin-right: auto;
}
.unit-price {
  min-height: auto !important;
  margin: 17px 0 12px !important;
}
.unit-price b {
  font: 800 30px Manrope;
  letter-spacing: -1px;
}
.unit-price span {
  color: var(--muted);
  font-size: 12px;
}
.license-users {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
}
.license-users input {
  width: 70px;
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font: 700 13px "DM Sans";
}
.license-total {
  margin: 13px 0 17px !important;
  min-height: auto !important;
  font-size: 13px !important;
  color: var(--muted) !important;
}
.license-total strong {
  color: var(--text);
  font-size: 16px;
}
body[data-theme="dark"] .license-users input {
  background: #1e1e1e;
  border-color: #3f3f46;
  color: #f1f1f1;
}
@media (max-width: 850px) {
  .license-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
}
.contact {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 78px;
  align-items: start;
}
.contact-copy h2 {
  white-space: normal !important;
}
.contact-copy > p:not(.eyebrow) {
  color: var(--muted);
  max-width: 360px;
}
@media (min-width: 1100px) {
  .contact-copy h2 {
    font-size: 38px;
    white-space: nowrap !important;
  }
  .contact-copy > p:not(.eyebrow) {
    max-width: none;
    font-size: 14px;
    white-space: nowrap;
  }
}
.contact-copy > a {
  display: inline-block;
  margin-top: 17px;
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}
.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(31, 35, 40, 0.08);
}
.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}
.contact-name-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form input:not([type="checkbox"]),
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg);
  color: var(--text);
  font: 500 14px "DM Sans";
  outline: none;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent);
}
.contact-form ::placeholder {
  color: var(--muted);
  opacity: 0.9;
}
.contact-form .contact-consent {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-weight: 500;
}
.contact-consent input {
  accent-color: var(--primary);
}
.contact-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
}
.contact-form .button {
  justify-self: start;
  border: 0;
  cursor: pointer;
}
.contact-status {
  min-height: 20px;
  margin: 0;
  color: var(--success);
  font-size: 13px;
  font-weight: 700;
}
.contact-status.error {
  color: var(--danger);
}
body[data-theme="dark"] .contact-form {
  background: #252526;
  border-color: #3f3f46;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.24);
}
body[data-theme="dark"] .contact-form input:not([type="checkbox"]),
body[data-theme="dark"] .contact-form textarea {
  background: #1e1e1e;
  border-color: #3f3f46;
  color: #f1f1f1;
}
@media (max-width: 850px) {
  .contact {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact-form {
    padding: 22px;
  }
}
@media (max-width: 520px) {
  .contact-name-fields {
    grid-template-columns: 1fr;
  }
  .contact-form {
    padding: 18px;
  }
}
body[data-theme="dark"] {
  background: #1e1e1e !important;
}
body[data-theme="dark"] .brand > span:last-child,
body[data-theme="dark"] .brand > span:last-child > span {
  color: #f1f1f1 !important;
}
body[data-theme="dark"] .site-header {
  background: #252526 !important;
  border-color: #3f3f46 !important;
}
body[data-theme="dark"] .hero,
body[data-theme="dark"] main,
body[data-theme="dark"] footer {
  background: #1e1e1e !important;
}
body[data-theme="dark"] .hero-visual .violet-orb {
  background: #094771 !important;
  opacity: 0.62;
}
body[data-theme="dark"] .app-window,
body[data-theme="dark"] .feature-card,
body[data-theme="dark"] .price-card,
body[data-theme="dark"] .report-window,
body[data-theme="dark"] .metrics > div,
body[data-theme="dark"] .chart-card,
body[data-theme="dark"] .due-card,
body[data-theme="dark"] .mini-invoice,
body[data-theme="dark"] .floating-card,
body[data-theme="dark"] .report-values > div,
body[data-theme="dark"] .report-top button {
  background: #252526 !important;
  border-color: #3f3f46 !important;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.24) !important;
}
body[data-theme="dark"] .logo-strip,
body[data-theme="dark"] .workflow {
  background: #252526 !important;
  border-color: #3f3f46 !important;
}
body[data-theme="dark"] .main-nav {
  background: transparent !important;
  box-shadow: none !important;
}
body[data-theme="dark"] .main-nav > a:not(.nav-cta) {
  background: transparent !important;
  color: #f1f1f1 !important;
}
body[data-theme="dark"] .main-nav > a:not(.nav-cta).active {
  color: #4da3e8 !important;
  box-shadow: inset 0 -2px 0 #0078d4;
}
body[data-theme="dark"] .main-nav .nav-cta {
  background: #0078d4 !important;
  color: #fff !important;
}
body[data-theme="dark"] .theme-toggle,
body[data-theme="dark"] .language-switch {
  border-color: #3f3f46;
  background: #252526;
}
body[data-theme="dark"] .language-switch a {
  color: #b8b8b8;
}
body[data-theme="dark"] .theme-switch button {
  color: #b8b8b8;
}
body[data-theme="dark"] .language-switch a + a {
  border-color: #3f3f46;
}
body[data-theme="dark"] .theme-switch button + button {
  border-color: #3f3f46;
}
body[data-theme="dark"] .language-switch a:hover {
  color: #f1f1f1;
  background: #333337;
}
body[data-theme="dark"] .theme-switch button:hover {
  color: #f1f1f1;
  background: #333337;
}
body[data-theme="dark"] .language-switch a.active,
body[data-theme="dark"] .language-switch a.active:hover {
  background: #0078d4;
  color: #fff;
}
body[data-theme="dark"] .theme-switch button.active,
body[data-theme="dark"] .theme-switch button.active:hover {
  background: #0078d4;
  color: #fff;
}
@media (max-width: 1050px) {
  .site-header > .brand,
  .site-header .header-tools {
    position: relative;
    z-index: 3;
  }
  .site-header > .brand {
    order: 1;
  }
  .site-header .header-tools {
    order: 2;
    margin-left: auto;
    margin-right: 8px;
  }
  .site-header .menu-toggle {
    order: 3;
    margin-left: 0;
  }
  .site-header .main-nav.open {
    gap: 6px;
    background: var(--surface) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18) !important;
  }
  .site-header .main-nav.open > a:not(.nav-cta) {
    width: 100%;
    padding: 11px 0;
  }
  .site-header .main-nav.open .nav-cta {
    margin-top: 8px;
  }
  body[data-theme="dark"] .site-header .main-nav.open {
    background: #252526 !important;
  }
}

/* The hero fills the remaining browser viewport beneath the fixed header. */
.hero {
  min-height: calc(100vh - 84px);
  min-height: calc(100dvh - 84px);
}
body:not(.legal-page) main > section:not(.hero) {
  min-height: calc(100vh - 84px);
  min-height: calc(100dvh - 84px);
}
#bereit {
  min-height: 0;
}
@media (max-width: 1050px) {
  main section[id] {
    scroll-margin-top: 70px;
  }
  .hero {
    min-height: calc(100vh - 70px);
    min-height: calc(100dvh - 70px);
  }
  body:not(.legal-page) main > section:not(.hero) {
    min-height: calc(100vh - 70px);
    min-height: calc(100dvh - 70px);
  }
}
@media (max-width: 520px) {
  .hero {
    gap: 0;
    padding-top: 28px;
    padding-bottom: 28px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero h1 em {
    white-space: nowrap;
  }
  .hero-actions {
    margin: 22px 0;
  }
  .hero-visual {
    height: 200px;
  }
}

@media (min-width: 851px) {
  .features,
  .pricing {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .workflow,
  .control,
  .contact {
    align-items: center;
  }
}
body[data-theme="dark"] .app-window aside {
  background: #181818 !important;
}
body[data-theme="dark"] .chart {
  border-color: #3f3f46 !important;
}
body[data-theme="dark"] .report-table > div,
body[data-theme="dark"] .price-card li,
body[data-theme="dark"] .steps li {
  border-color: #3f3f46 !important;
}
body[data-theme="dark"] .report-table > div:first-child,
body[data-theme="dark"] .card-head small {
  background: #333337 !important;
}
body:not([data-theme="dark"]) .workflow,
body:not([data-theme="dark"]) .pricing {
  background: #f6f8fa !important;
  box-shadow: 0 0 0 100vmax #f6f8fa;
}
body[data-theme="dark"] .workflow,
body[data-theme="dark"] .pricing {
  background: #1e1e1e !important;
}

/* A focused, card-based process makes the workflow easy to scan. */
.workflow {
  grid-template-columns: minmax(0, 0.8fr) minmax(640px, 1.2fr);
  align-items: center;
  gap: clamp(56px, 7vw, 110px);
}
.workflow-copy {
  max-width: 520px;
}
.steps {
  display: grid;
  width: 100%;
  max-width: 650px;
  justify-self: end;
  gap: 14px;
}
.steps li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  margin: 0;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(31, 35, 40, 0.08);
}
.steps li:last-child {
  border: 1px solid var(--border);
}
.steps span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 12%, var(--surface));
  color: var(--primary);
  font:
    800 13px "Manrope",
    sans-serif;
}
.steps h3 {
  margin: 2px 0 6px;
  font-size: 18px;
  line-height: 1.3;
}
.steps p {
  max-width: 420px;
  font-size: 14px;
  line-height: 1.55;
}
body[data-theme="dark"] .steps li {
  background: #252526;
  border-color: #3f3f46 !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}
@media (min-width: 1201px) {
  .steps li:nth-child(2) p {
    white-space: nowrap;
  }
}
@media (max-width: 1200px) {
  .workflow {
    grid-template-columns: 1fr;
    gap: 46px;
  }
  .steps {
    max-width: 720px;
    justify-self: start;
  }
}
@media (max-width: 1050px) {
  .workflow {
    grid-template-columns: 1fr;
    gap: 46px;
  }
  .steps {
    max-width: 720px;
    justify-self: start;
  }
}
@media (max-width: 650px) {
  .workflow {
    gap: 34px;
  }
  .steps li {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
  }
  .steps span {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    font-size: 12px;
  }
  .steps h3 {
    margin-top: 0;
    font-size: 16px;
  }
}

/* Tablet and mobile-only layout refinements. Desktop remains unchanged. */
@media (min-width: 651px) and (max-width: 1050px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 62px max(30px, calc((100% - 720px) / 2)) 54px;
  }
  .hero-copy {
    max-width: 680px;
  }
  .hero-visual {
    width: min(100%, 640px);
    height: 350px;
    margin: 0 auto;
  }
  .features,
  .workflow,
  .control,
  .pricing,
  .contact {
    padding-right: 30px;
    padding-left: 30px;
  }
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 36px;
  }
  .feature-card.featured {
    grid-row: auto;
    grid-column: span 2;
    min-height: 0;
  }
  .control {
    grid-template-areas: "visual" "copy";
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .control-visual {
    width: min(100%, 720px);
    justify-self: center;
  }
  .contact {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .contact-copy,
  .contact-form {
    width: min(100%, 720px);
  }
  .contact-form {
    justify-self: start;
  }
  footer {
    padding-right: 30px;
    padding-left: 30px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-top p {
    grid-column: span 2;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
}
@media (max-width: 650px) {
  .site-header {
    padding-right: 16px;
    padding-left: 16px;
  }
  .header-tools {
    margin-right: 4px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 30px 20px 38px;
  }
  .hero-copy,
  .hero-visual {
    width: 100%;
  }
  .hero h1 {
    font-size: clamp(34px, 10vw, 44px);
    letter-spacing: -2px;
  }
  .hero-text {
    font-size: 16px;
  }
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .hero-actions .button,
  .hero-actions .text-link {
    justify-content: center;
  }
  .hero-visual {
    height: clamp(210px, 58vw, 300px);
  }
  body:not(.legal-page) main > section:not(.hero) {
    min-height: auto;
  }
  .features,
  .workflow,
  .control,
  .pricing,
  .contact {
    padding: 64px 20px;
  }
  .section-heading > p:last-child,
  .workflow-copy > p:not(.eyebrow),
  .control-copy > p:not(.eyebrow) {
    max-width: none;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 28px;
  }
  .feature-card,
  .feature-card.featured {
    grid-column: auto;
    min-height: 0;
    padding: 22px;
  }
  .feature-card.featured .mini-invoice {
    margin-top: 24px;
  }
  .workflow-copy,
  .steps,
  .control-visual,
  .contact-copy,
  .contact-form,
  .license-grid {
    max-width: none;
    width: 100%;
  }
  .pricing .section-heading > p:last-child {
    white-space: normal;
  }
  .price-grid {
    margin-top: 30px;
  }
  .price-card {
    padding: 24px 22px;
  }
  .contact {
    gap: 30px;
  }
  .contact-form {
    padding: 20px;
  }
  .contact-form .button {
    width: 100%;
    justify-content: center;
  }
  footer {
    padding: 24px 20px 0;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-bottom: 20px;
  }
  .footer-top p {
    grid-column: auto;
  }
  .footer-top > a:last-child {
    text-align: left;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
  }
  .footer-bottom div {
    gap: 9px 16px;
  }
}
