:root {
  color-scheme: light;
  --ink: #101e34;
  --navy: #102038;
  --navy-deep: #0c192c;
  --muted: #4e5c70;
  --line: #dadfe5;
  --paper: #f5f7f9;
  --yellow: #ffd233;
  --yellow-hover: #ffe073;
  --radius: 16px;
  font-family: Aptos, Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 100%;
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { color: var(--ink); background: #fff; margin: 0; line-height: 1.55; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.09; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 4.15vw, 3.2rem); letter-spacing: -.045em; }
h3 { font-size: 1.25rem; letter-spacing: -.02em; }
a { color: inherit; text-underline-offset: .22em; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #2668b2; outline-offset: 4px; }
[hidden] { display: none !important; }

.shell { width: min(100% - 3.5rem, 73.5rem); margin-inline: auto; }
.section { padding-block: clamp(3.1rem, 7vw, 5.8rem); scroll-margin-top: 1rem; }
.skip { z-index: 3; position: absolute; top: .5rem; left: .5rem; transform: translateY(-160%); background: #fff; padding: .6rem 1rem; }
.skip:focus { transform: translateY(0); }

.header-bar { display: flex; min-height: 4.8rem; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .62rem; font-size: 1.34rem; font-weight: 760; letter-spacing: -.055em; text-decoration: none; white-space: nowrap; }
.brand img { width: 2.3rem; height: 2.3rem; }
.header-bar nav, .header-actions, .hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; }
.header-bar nav { gap: clamp(.9rem, 2vw, 1.75rem); }
.header-bar nav a { font-size: .95rem; font-weight: 620; text-decoration: none; }
.header-bar nav a:hover { text-decoration: underline; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 2.75rem; border: 1px solid transparent; border-radius: 8px; padding: .55rem .95rem; font-weight: 670; line-height: 1.2; text-decoration: none; }
.button-yellow { background: var(--yellow); color: #171b21; }
.button-yellow:hover { background: var(--yellow-hover); }
.button-text { color: inherit; background: transparent; }
.button-text:hover { background: #eaf0f7; }
.button-light { color: #f7f9fc; border-color: #8d9eb5; }
.button-light:hover { background: #253952; }
.button-outline { color: var(--ink); background: #fff; border-color: #9ca9b9; }
.button-outline:hover { background: #eef3f8; }

.hero { background: var(--navy); color: #fff; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: .92fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; min-height: 30rem; padding-block: clamp(2.75rem, 5vw, 4rem); }
.hero-copy h1 { max-width: 11.5ch; font-size: clamp(2.6rem, 5.45vw, 5.05rem); font-weight: 780; letter-spacing: -.066em; line-height: .99; }
.hero-copy > p:not(.hero-note) { max-width: 46ch; color: #dbe4f1; font-size: clamp(1.04rem, 1.42vw, 1.21rem); margin-block: 1.35rem 1.65rem; }
.hero-actions { gap: .75rem; }
.hero-note { margin-top: .95rem; font-size: .91rem; color: #d3dcec; }
.hero-visual { min-width: 0; }
.hero-photo { width: 100%; height: auto; border-radius: var(--radius); }
.calendar-demo { padding-block: clamp(2.8rem, 5.6vw, 4.3rem); border-bottom: 1px solid var(--line); }
.trade-picker { min-width: 0; border: 0; margin: 0 0 clamp(1.15rem, 3vw, 1.7rem); padding: 0; }
.trade-picker legend { padding: 0; margin-bottom: .5rem; font-size: .88rem; color: var(--muted); font-weight: 620; }
.trade-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.trade-options label { position: relative; display: inline-flex; cursor: pointer; }
.trade-options input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: inherit; }
.trade-options span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .5rem .94rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-weight: 650; }
.trade-options label:hover span { background: #e7eef8; }
.trade-options input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.trade-options input:focus-visible + span { outline: 3px solid #2668b2; outline-offset: 3px; }
.trade-example-heading { margin-bottom: 1rem; }
.trade-example-heading h3 { font-size: clamp(1.24rem, 2.8vw, 1.8rem); }
.trade-example-heading p { margin-top: .45rem; color: var(--muted); }
.calendar-shot > a { display: block; }
.calendar-shot img { width: 100%; height: auto; border: 1px solid #bcc7d4; border-radius: var(--radius); background: var(--paper); }
.calendar-shot figcaption { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: .88rem; color: var(--ink); font-weight: 650; }
.calendar-hint { display: none; }
.drill-example { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); align-items: center; gap: clamp(1rem, 4vw, 3.25rem); margin-top: clamp(1.5rem, 3vw, 2.5rem); padding-top: clamp(1.5rem, 3vw, 2.4rem); border-top: 1px solid var(--line); }
.drill-example h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
.drill-example p { margin-block: .6rem .9rem; color: var(--muted); }
.drill-example a { font-weight: 650; }
.drill-example img { width: 100%; height: auto; border: 1px solid #bcc7d4; border-radius: var(--radius); }
.drill-example.is-stock img { aspect-ratio: 16 / 10; object-fit: cover; }

.section-heading { max-width: 50rem; margin-bottom: 2rem; }
.section-heading p, .feature p, .flow-list p, .questions p { margin-top: .7rem; color: var(--muted); }
.feature-grid, .pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.55rem); }
.feature { padding-block: 1.15rem 0; border-top: 2px solid #d9dfe7; }
.feature-icon { display: inline-grid; place-items: center; width: 2.3rem; height: 2.3rem; margin-bottom: .85rem; border-radius: 7px; background: #fff2bc; color: #272719; font-size: 1.17rem; font-weight: 780; }
.flow { background: var(--paper); }
.flow-layout { display: grid; grid-template-columns: .86fr 1fr; gap: clamp(2rem, 7vw, 7rem); }
.flow-layout .section-heading { margin-bottom: 0; }
.flow-list { margin: 0; padding: 0; list-style: none; }
.flow-list li { position: relative; margin-left: .45rem; padding: 0 0 1.25rem 1.55rem; border-left: 1px solid #cbd4e0; }
.flow-list li::before { content: ''; position: absolute; top: .22rem; left: -.37rem; width: .7rem; height: .7rem; background: var(--yellow); border: 1px solid #80631c; border-radius: 50%; }
.flow-list li:last-child { padding-bottom: 0; }
.price-plan { padding: clamp(1.15rem, 2.35vw, 1.85rem); border-radius: var(--radius); border: 1px solid var(--line); display: grid; align-content: start; gap: 1rem; }
.price-featured { border-color: #203957; background: #f4f7fc; }
.price { color: var(--muted); }
.price strong { font-size: clamp(1.65rem, 3vw, 2.4rem); letter-spacing: -.055em; color: var(--ink); line-height: 1; }
.price-plan ul { padding-left: 1.15rem; margin: .15rem 0 .65rem; }
.price-plan li { margin: .28rem 0; }
.price-plan .button { justify-self: stretch; }
.pricing-custom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 1.5rem; padding: clamp(1rem, 2.35vw, 1.6rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.pricing-custom p { margin-top: .4rem; color: var(--muted); }
.questions { border-top: 1px solid var(--line); display: grid; grid-template-columns: .65fr 1.2fr; gap: 1.45rem; }
details { border-bottom: 1px solid var(--line); padding: .85rem 0; }
summary { cursor: pointer; font-weight: 650; }
details p { padding-left: 1.1rem; }
.site-footer { background: var(--navy-deep); color: #e6eef9; }
.footer-grid { padding-block: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-grid > :not(.brand) { font-size: .875rem; }

dialog { width: min(100% - 1.4rem, 32rem); max-height: calc(100dvh - 1.75rem); overflow: auto; padding: clamp(1rem, 4vw, 1.8rem); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: #fff; box-shadow: 0 18px 45px #07122145; }
dialog::backdrop { background: #0c192cc0; }
.dialog-title { display: flex; justify-content: space-between; align-items: start; gap: .45rem; }
.dialog-title h2 { font-size: clamp(1.45rem, 3.4vw, 2.05rem); }
.dialog-title > button { padding-inline: .5rem; margin-top: -.35rem; }
dialog > p { color: var(--muted); margin: .6rem 0 1rem; }
dialog form { display: grid; gap: .85rem; }
dialog label { display: grid; gap: .25rem; font-weight: 590; }
dialog :is(input, select) { width: 100%; min-height: 2.75rem; padding: .5rem .66rem; border-radius: 7px; border: 1px solid #aab6c4; color: var(--ink); background-color: #fff; }
dialog select { appearance: none; padding-right: 2rem; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: right .95rem center, right .65rem center; background-size: .3rem .32rem; background-repeat: no-repeat; }
dialog form button { justify-self: start; margin-top: .3rem; }
.form-result { margin-top: 1rem; padding: .95rem; border-radius: 8px; background: #eef3f9; outline-offset: 1px; }
.form-result > * + * { margin-top: .55rem; }
.demo-link { display: inline-block; margin-top: .95rem; font-weight: 600; }
.order-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.price-plan li .button-text { min-height: 0; padding: 0; text-align: left; text-decoration: underline; }
#website-order textarea { resize: vertical; width: 100%; font: inherit; padding: .65rem; border-radius: 6px; border: 1px solid #9baaba; }
#website-order .order-confirm { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: .55rem; }
#website-order .order-confirm input { width: auto; min-height: 0; margin-top: .3rem; }

@media (max-width: 850px) {
  .hero-grid { gap: 1.8rem; min-height: auto; }
}

@media (max-width: 680px) {
  .shell { width: calc(100% - 2rem); }
  .header-bar { min-height: 0; gap: .6rem; flex-wrap: wrap; padding-block: .68rem; }
  .header-bar nav { order: 3; flex-basis: 100%; justify-content: space-between; padding-top: .55rem; border-top: 1px solid var(--line); }
  .header-actions > .button-yellow { display: none; }
  .hero-grid, .flow-layout, .questions, .drill-example { grid-template-columns: minmax(0, 1fr); }
  .hero-copy h1 { max-width: 15ch; }
  .calendar-shot > a { overflow-x: auto; border-radius: var(--radius); }
  .calendar-shot img { min-width: 52rem; }
  .calendar-hint { display: block; flex-basis: 100%; color: var(--muted); font-weight: 400; }
  .feature-grid, .pricing-grid { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .feature { padding-top: .95rem; }
  .footer-grid { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}
