:root {
  color-scheme: light;
  --paper: #f8f4ed;
  --white: #fffdf8;
  --ink: #282221;
  --muted: #5d514c;
  --wine: #6d2039;
  --deep-wine: #501329;
  --rule: #d8cbc3;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--sans); }
a { color: inherit; }
a:focus-visible, video:focus-visible { outline: 3px solid var(--wine); outline-offset: 5px; }
.skip { position: absolute; z-index: 2; left: 1rem; top: 1rem; padding: .75rem; background: white; transform: translateY(-200%); }
.skip:focus { transform: none; }
.wrap { width: min(100% - 6rem, 85rem); margin-inline: auto; }
.header-row { min-height: 5.7rem; display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; border-bottom: 1px solid var(--rule); }
.brand { font: bold clamp(1.7rem, 3.2vw, 2.6rem)/1 var(--serif); letter-spacing: -.06em; color: var(--deep-wine); text-decoration: none; white-space: nowrap; }
.brand span { color: #9b5d6b; }
nav { display: flex; gap: clamp(.9rem, 2.2vw, 2.25rem); flex-wrap: wrap; }
nav a { font-size: .9rem; text-decoration: none; text-underline-offset: .32em; }
nav a:hover, nav a[aria-current] { color: var(--deep-wine); text-decoration: underline; }
.button { display: inline-flex; min-height: 2.95rem; align-items: center; justify-content: center; width: fit-content; border: 1px solid var(--wine); border-radius: .44rem; background: var(--wine); padding: .65rem 1.25rem; color: white; font-size: .95rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.button:hover { background: var(--deep-wine); }
.button.outline { background: transparent; color: var(--wine); }
.button.outline:hover { background: #efe3e6; }
.hero { display: grid; grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr); gap: clamp(2rem, 4.4vw, 5rem); align-items: center; padding: clamp(2.5rem, 5vw, 5.4rem) 0; }
.hero-copy { max-width: 37rem; }
.eyebrow { font-size: .88rem; font-weight: 720; letter-spacing: .10em; text-transform: uppercase; margin: 0 0 1rem; }
h1, h2 { font-family: var(--serif); font-weight: 500; color: var(--wine); line-height: 1.02; letter-spacing: -.055em; margin: 0; }
h1 { font-size: clamp(2.8rem, 4.55vw, 5.25rem); }
h2 { font-size: clamp(2.15rem, 3.25vw, 3.45rem); }
.lede { color: var(--muted); font-size: clamp(1.05rem, 1.55vw, 1.25rem); margin: 1.4rem 0 1.8rem; max-width: 37ch; }
figure { margin: 0; }
.video-frame, .feature-photo { overflow: hidden; border-radius: .85rem; box-shadow: 0 16px 48px #41292417; background: #d8c7b7; }
.video-frame video, .feature-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.video-frame video { background: #251a17; }
.video-feature figcaption { padding-top: .7rem; text-align: center; font-size: .94rem; color: var(--muted); }
.more, .workflow { border-top: 1px solid var(--rule); padding: 2rem 0 2.6rem; }
.feature-grid, .detail-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.1rem; margin: 1.45rem 0 0; }
.feature-link { display: flex; gap: .85rem; padding: .8rem .65rem .85rem 0; text-decoration: none; border-radius: .35rem; }
.feature-link + .feature-link { border-left: 1px solid var(--rule); padding-left: 1.15rem; }
.feature-link:hover strong { text-decoration: underline; text-underline-offset: .23em; color: var(--wine); }
.feature-link svg, .accounting svg { flex: 0 0 1.9rem; width: 1.9rem; height: 1.9rem; color: var(--wine); }
.feature-link strong, .feature-link span span { display: block; }
.feature-link strong, dt { font-size: 1.1rem; font-weight: 720; }
.feature-link span span, dd { color: var(--muted); }
dd { margin: .35rem 0 0; }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--rule); padding: 1.1rem 0 1.6rem; color: var(--muted); font-size: .88rem; }
.site-footer a { text-underline-offset: .2em; }
.sample { background: #eee3d9; border: 1px solid var(--rule); border-radius: .9rem; padding: clamp(1rem, 4.5vw, 3.15rem); }
.sample figcaption { color: var(--deep-wine); font-size: .88rem; font-weight: 720; margin-bottom: 1rem; }
.email-paper { background: var(--white); border-top: .3rem solid var(--wine); border-radius: .4rem; padding: clamp(1rem, 3vw, 2rem); box-shadow: 0 4px 16px #44203112; }
.email-paper p:last-child { margin-bottom: 0; }
.sample-title { color: var(--wine); font: 2.25rem/1.06 var(--serif); letter-spacing: -.045em; margin: 0; }
.ledger table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--rule); }
.ledger th, .ledger td { padding: .7rem clamp(.36rem, 1vw, .85rem); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-size: .9rem; }
.ledger th:first-child { text-align: left; }
.ledger tr + tr, .ledger tbody { border-top: 1px solid var(--rule); }
.ledger thead, .ledger strong { color: var(--wine); }
.accounting { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; background: #eee3d9; padding: clamp(1.25rem, 4vw, 3rem); margin: 0 0 2.6rem; border-radius: .9rem; }
.accounting h2 { max-width: 22ch; margin-top: .6rem; }
.accounting p { margin-bottom: 0; max-width: 58ch; }
@media (max-width: 900px) {
  .wrap { width: min(100% - 3rem, 85rem); }
  .hero { gap: 1.75rem; }
}
@media (max-width: 730px) {
  .wrap { width: min(100% - 2rem, 36rem); }
  .header-row { flex-wrap: wrap; gap: .8rem; padding: .95rem 0; }
  nav { order: 3; width: 100%; gap: .9rem 1.25rem; }
  .header-row .button { font-size: .86rem; min-height: 2.6rem; padding: .45rem .7rem; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 1.65rem; }
  .hero-copy { max-width: 32rem; }
  .feature-grid, .detail-list { grid-template-columns: minmax(0,1fr); gap: .6rem; }
  .feature-link + .feature-link { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; }
  .detail-list { gap: 1rem; }
}
.video-frame { position: relative; }
.play-demo { position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: clamp(3.6rem, 6vw, 5.1rem); aspect-ratio: 1; border-radius: 50%; border: 0; background: #fffdf8; box-shadow: 0 4px 22px #2a14254d; cursor: pointer; }
.play-demo[hidden] { display: none; }
.play-demo span { margin-left: .25rem; border-inline-start: 1.25rem solid var(--wine); border-block: .78rem solid transparent; }
.play-demo:hover { background: #f6e9ed; }
.play-demo:focus-visible { outline: 3px solid var(--wine); outline-offset: 5px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(1.8rem, 6vw, 6rem); padding: clamp(2rem, 5vw, 5rem) 0; }
.contact-layout .hero-copy { padding-top: .5rem; }
.demo-form { background: var(--white); border: 1px solid var(--rule); border-radius: .9rem; padding: clamp(1.1rem, 3.5vw, 2.5rem); }
.demo-form h2 { font-size: clamp(1.85rem, 3vw, 2.6rem); }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .95rem 1rem; }
.full-field { grid-column: 1 / -1; }
.demo-form label { display: block; font-size: .92rem; font-weight: 650; margin-bottom: .3rem; }
.demo-form input, .demo-form select, .demo-form textarea { width: 100%; min-height: 2.75rem; padding: .57rem .7rem; border: 1px solid #ae9c93; border-radius: .35rem; font: inherit; background: #fff; color: var(--ink); }
.demo-form select { appearance: none; padding-right: 2rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='m2 2 5 5 5-5' stroke='%236d2039' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right .65rem center; }
.demo-form textarea { display: block; resize: vertical; }
.form-hint { color: var(--muted); font-size: .88rem; }
.demo-form button { cursor: pointer; font-family: inherit; }
.demo-form button:disabled { opacity: .72; }
.demo-form :focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
.form-status { padding: .8rem; background: #f3e4e7; border-radius: .35rem; color: var(--deep-wine); margin-bottom: 0; }
.form-status.received { background: #e9eee3; color: #2e422a; }
.demo-form [hidden] { display: none; }
@media (max-width: 730px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 430px) {
  .contact-fields { grid-template-columns: minmax(0, 1fr); }
}
