@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --red: #c9142f;
  --red-dark: #a90e25;
  --ink: #241e22;
  --muted: #62565b;
  --surface: #fff8f7;
  --blush: #f8dce0;
  --border: #e9dce0;
  --heading: 'Space Grotesk', system-ui, sans-serif;
  font: 100%/1.55 'DM Sans', system-ui, sans-serif;
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
button, select, input { font: inherit; }
:focus-visible { outline: 3px solid var(--red-dark); outline-offset: 4px; }
[id] { scroll-margin-top: 1.25rem; }
.shell { width: min(100% - 3rem, 84rem); margin-inline: auto; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner, .footer-inner { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font: 700 clamp(1rem, 2vw, 1.4rem)/1.15 var(--heading); text-decoration: none; }
.mark { flex: 0 0 1.9rem; height: 1.9rem; display: grid; grid-template: repeat(2, 1fr) / repeat(2, 1fr); gap: .13rem; }
.mark i { background: var(--red); border-radius: .2rem; }
.mark i:nth-child(even) { border-radius: .2rem .6rem .6rem .2rem; }
nav, .actions, .demo-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }
nav > a:first-child { padding-inline: .45rem; font-weight: 700; text-decoration: none; }
nav > a:first-child:hover { text-decoration: underline; }
.skip { position: absolute; z-index: 2; left: 1rem; top: -8rem; background: white; padding: .75rem; }
.skip:focus { top: 1rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 2.85rem; padding: .65rem 1.1rem; border: 1px solid var(--red); border-radius: .65rem; text-decoration: none; font-weight: 700; cursor: pointer; }
.primary { color: white; background: var(--red); }
.primary:hover { background: var(--red-dark); }
.secondary { background: white; color: var(--red-dark); }
.secondary:hover { background: var(--surface); }
.button:disabled { opacity: .55; cursor: default; }
.home-hero { background: var(--surface); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .96fr); align-items: stretch; }
.hero-copy { padding: clamp(2.4rem, 7vw, 7.1rem) clamp(1.2rem, 4vw, 4.25rem) clamp(2.4rem, 7vw, 7.1rem) 0; }
.eyebrow { color: var(--red-dark); font-size: .88rem; font-weight: 700; margin: 0 0 .65rem; }
h1, h2, h3 { font-family: var(--heading); line-height: 1.06; margin: 0; letter-spacing: -.035em; }
h1 { font-size: clamp(2.35rem, 5.2vw, 5rem); max-width: 12.2ch; }
h1 em { color: var(--red); font-style: normal; }
h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); }
h3 { font-size: 1.35rem; }
p { margin: .6rem 0 0; color: var(--muted); }
.hero-copy > p:not(.eyebrow), .product-hero p:not(.eyebrow) { font-size: clamp(1.05rem, 1.5vw, 1.3rem); max-width: 39ch; }
.hero-image { width: 100%; height: 100%; min-height: 19rem; object-fit: cover; object-position: 58% center; }
.actions { margin-top: 1.5rem; }
.section { padding-block: clamp(2.25rem, 5vw, 4.85rem); }
.section-intro { margin-bottom: 1.55rem; }
.section-intro p { max-width: 62ch; }
.catalog, .features { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.catalog-card, .features article { border: 1px solid var(--border); border-radius: .85rem; padding: 1.15rem; }
.catalog-card { display: flex; flex-direction: column; align-items: flex-start; }
.catalog-card .icon { margin: 0 0 .8rem; color: var(--red); }
.catalog-card h3 { overflow-wrap: anywhere; }
.catalog-card h3 a { text-decoration: none; }
.catalog-card h3 a:hover { text-decoration: underline; }
.catalog-card p:not(.eyebrow) { flex: 1; }
.card-link { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: .4rem; color: var(--red-dark); font-weight: 700; }
.icon { width: 2.5rem; height: 2.5rem; }
.demo-picker, .demo-wrap, .product-hero { background: var(--surface); }
.demo-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .7rem; }
.demo-links a { display: block; background: white; padding: .65rem .9rem; border: 1px solid var(--border); border-radius: .55rem; font-weight: 700; }
.site-footer { border-top: 1px solid var(--border); }
.footer-inner { padding-block: 1rem; }
.product-hero-inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(12rem, 1fr); gap: 2rem; align-items: center; padding-block: clamp(2.2rem, 6vw, 5.5rem); }
.product-hero h1 { max-width: none; overflow-wrap: anywhere; }
.product-hero p.product-lead { color: var(--ink); font-weight: 700; margin-top: 1rem; }
.back { display: inline-block; color: var(--red-dark); margin-bottom: 1.25rem; }
.product-symbol { min-height: 15rem; display: grid; place-items: center; background: var(--blush); border-radius: 1.1rem; color: var(--red); }
.product-symbol .icon { width: 6.5rem; height: 6.5rem; }
.features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-note { margin-top: 1rem; }
.demo-box { max-width: 49rem; background: white; border: 1px solid var(--border); border-radius: .9rem; padding: clamp(1rem, 3vw, 2rem); }
.local-app { margin-top: 1.75rem; }
.demo-form { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem; }
.demo-field { flex: 1 1 10rem; display: grid; gap: .35rem; font-weight: 700; }
.demo-field :is(input, select) { min-width: 0; min-height: 2.8rem; padding: .45rem .6rem; border-radius: .45rem; border: 1px solid #a68d96; background: white; color: var(--ink); }
.demo-actions { margin-top: 1rem; }
.demo-summary { margin-block: 1rem; font-weight: 700; color: var(--ink); }
.demo-status { min-height: 1.55em; margin-top: .85rem; color: var(--red-dark); font-weight: 700; }
.demo-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.demo-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-block: .65rem; gap: .5rem; }
.demo-list button { padding: .3rem .55rem; min-height: 2.25rem; }

@media (max-width: 69rem) { .catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 46rem) {
  .shell { width: min(100% - 2rem, 84rem); }
  .hero-grid, .product-hero-inner { grid-template-columns: 1fr; }
  .hero-copy { padding-right: 0; }
  .hero-image { height: clamp(14rem, 60vw, 24rem); min-height: 0; border-radius: .75rem .75rem 0 0; }
  .product-symbol { display: none; }
  .catalog, .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 30rem) {
  .catalog, .features { grid-template-columns: 1fr; }
  nav > a:first-child { display: none; }
}
