html { scroll-behavior: smooth; }
.masthead { position: relative; z-index: 1; }
.landing-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(290px, .85fr); align-items: center; gap: clamp(32px, 6vw, 88px); padding: 72px 0 100px; }
.landing-copy h1, .feature-section h2, .plate-examples h2, .closing-cta h2 { font-family: Georgia, serif; letter-spacing: -.05em; }
.landing-copy h1 { font-size: clamp(48px, 6vw, 76px); line-height: 1.06; margin: 18px 0 26px; max-width: 700px; }
.landing-copy > p:not(.eyebrow, .small-print) { font-size: 19px; line-height: 1.65; max-width: 550px; }
.landing-copy .button { margin-top: 22px; }
.small-print { color: #667b69; font-size: 13px; margin-top: 18px; }
.hero-phone { display: flex; align-items: flex-start; justify-content: center; overflow: hidden; height: 620px; padding: 48px 30px 0; border-radius: 36px; background: radial-gradient(circle at 76% 15%, #dce4d7 0, #c2d2c1 42%, #a6bca7 100%); }
.hero-phone img { display: block; width: min(100%, 300px); height: auto; border: 8px solid #1a2b20; border-radius: 42px; box-shadow: 0 30px 70px #1d342a3b; }
.preview-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 320px); align-items: center; gap: clamp(32px, 6vw, 88px); border-top: 1px solid #d9dfd2; padding: 82px 0 94px; }
.preview-section h2 { font: 700 clamp(38px, 5vw, 58px)/1.12 Georgia, serif; letter-spacing: -.05em; margin: 14px 0 24px; }
.preview-section p:not(.eyebrow) { font-size: 18px; line-height: 1.65; max-width: 550px; }
.preview-section video { display: block; width: 100%; height: auto; border: 8px solid #1a2b20; border-radius: 36px; background: #1a2b20; box-shadow: 0 18px 42px #1d342a25; }
.feature-section { border-top: 1px solid #d9dfd2; padding: 82px 0 94px; }
.feature-section h2, .plate-examples h2, .closing-cta h2 { font-size: clamp(38px, 5vw, 58px); line-height: 1.12; margin: 14px 0 32px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature-card { padding: 26px 0 30px; border-top: 2px solid #355a43; }
.feature-number { color: #aa8150; font-size: 13px; font-weight: 700; letter-spacing: .15em; }
.feature-card h3 { font: 700 24px/1.2 Georgia, serif; margin: 18px 0 12px; }
.feature-card p { line-height: 1.65; max-width: 300px; margin: 0; }
.plate-examples { border-top: 1px solid #d9dfd2; padding: 82px 0 94px; }
.plate-examples > p:not(.eyebrow) { max-width: 660px; font-size: 18px; line-height: 1.65; }
.example-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 38px 0 28px; }
.example-card { border-radius: 24px; padding: 28px; background: #e8e9de; }
.example-card h3 { font: 700 26px/1.2 Georgia, serif; margin: 0 0 12px; }
.example-card p { line-height: 1.6; }
.example-card .plate-stack { font-size: 20px; font-weight: 700; margin-bottom: 0; }
.plate-stack span { display: block; color: #667b69; font-size: 14px; font-weight: 500; }
.table-hint { display: none; }
.schedule-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 34px 0 24px; border-radius: 20px; border: 1px solid #d9dfd2; }
.schedule-table { width: 100%; min-width: 620px; border-collapse: collapse; text-align: left; }
.schedule-table caption { padding: 18px 22px; background: #e8e9de; font-weight: 700; text-align: left; }
.schedule-table th, .schedule-table td { padding: 16px 22px; border-top: 1px solid #d9dfd2; }
.schedule-table thead th { color: #45674e; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.schedule-table tbody th { width: 110px; font-variant-numeric: tabular-nums; }
.tool-intro { max-width: 780px; padding: 78px 0 42px; }
.tool-intro h1 { font: 700 clamp(46px, 6vw, 72px)/1.08 Georgia, serif; letter-spacing: -.05em; margin: 18px 0 24px; }
.tool-intro > p:not(.eyebrow) { font-size: 19px; line-height: 1.65; max-width: 700px; }
.printable-log { border-top: 1px solid #d9dfd2; padding: 82px 0 94px; }
.printable-log-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 30px; }
.printable-log-heading h2 { font: 700 clamp(38px, 5vw, 58px)/1.12 Georgia, serif; letter-spacing: -.05em; margin: 14px 0 18px; }
.printable-log-heading p:not(.eyebrow) { max-width: 620px; font-size: 18px; line-height: 1.65; }
.printable-log-heading .button { flex: none; border: 0; cursor: pointer; font: inherit; }
.printable-log-heading .button:focus-visible { outline: 3px solid #aa8150; outline-offset: 4px; }
.print-sheet { padding: 30px; border: 1px solid #d9dfd2; border-radius: 24px; background: #fff; color: #202920; }
.print-sheet-header { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.print-sheet > p { margin: 22px 0; }
.print-sheet .schedule-table { width: 100%; }
.workout-log-page .print-sheet .schedule-table caption { background: #e8e9de; color: #202920; }
.print-sheet .schedule-table td { height: 54px; min-width: 80px; }
.calculator-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr); gap: 34px; padding: clamp(24px, 5vw, 48px); border-radius: 32px; background: #e8e9de; }
.calculator-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 24px 18px; }
.calculator-fields .field:last-child { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.field input, .field select { width: 100%; min-height: 54px; padding: 12px 14px; border: 1px solid #b7c3b6; border-radius: 14px; background: #fff; color: #23372a; font: inherit; font-size: 17px; }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid #aa8150; outline-offset: 2px; }
.field-hint { display: block; color: #667b69; font-size: 13px; line-height: 1.5; margin-top: 8px; }
.inventory-details { grid-column: 1 / -1; border-top: 1px solid #b7c3b6; padding-top: 16px; }
.inventory-details summary { cursor: pointer; font-weight: 700; }
.inventory-details p { color: #667b69; font-size: 14px; line-height: 1.5; }
.inventory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.inventory-field { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.inventory-field input { width: 72px; min-height: 44px; padding: 8px; border: 1px solid #b7c3b6; border-radius: 12px; background: #fff; color: #23372a; font: inherit; }
.inventory-field input:focus-visible { outline: 3px solid #aa8150; outline-offset: 2px; }
.plate-result-stack { font-size: 20px; font-weight: 700; line-height: 1.5; }
.calculator-result { align-self: stretch; display: flex; flex-direction: column; justify-content: center; min-height: 260px; padding: clamp(24px, 4vw, 40px); border-radius: 26px; background: #294c39; color: #f5f3e9; }
.calculator-result .eyebrow { color: #bad3b8; }
.calculator-result > p:not(.eyebrow), .result-detail { line-height: 1.55; }
.result-action { margin: 18px 0 0; font-size: 15px; line-height: 1.5; }
.result-action a { color: inherit; font-weight: 700; text-underline-offset: 4px; }
.result-action a:focus-visible { outline: 3px solid #f5f3e9; outline-offset: 4px; }
.cycle-toggle label { display: flex; align-items: center; gap: 10px; min-height: 54px; margin-bottom: 0; }
.cycle-toggle input { flex: none; width: 20px; min-height: 20px; padding: 0; border: 0; border-radius: 4px; background: transparent; accent-color: #294c39; }
.cycle-toggle .field-hint { margin-left: 30px; }
.cycle-intro-result { min-height: 220px; }
.cycle-summary { font: 700 clamp(29px, 3vw, 42px)/1.2 Georgia, serif; letter-spacing: -.03em; }
.cycle-output { padding: 34px 0 56px; }
.cycle-print-actions { display: flex; justify-content: flex-end; margin-bottom: 20px; }
.cycle-print-actions[hidden] { display: none; }
.cycle-print-actions .button { border: 0; cursor: pointer; font: inherit; }
.cycle-print-actions .button:focus-visible { outline: 3px solid #aa8150; outline-offset: 4px; }
.cycle-print-credit { display: none; }
.cycle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cycle-grid[hidden] { display: none; }
.cycle-week { padding: clamp(22px, 3vw, 32px); border: 1px solid #d9dfd2; border-radius: 26px; background: #f4f4ec; }
.cycle-week h3 { margin: 0 0 14px; font: 700 clamp(25px, 3vw, 34px)/1.2 Georgia, serif; }
.cycle-warmups { min-height: 3em; margin: 0 0 18px; color: #667b69; font-size: 14px; line-height: 1.5; }
.cycle-sets { list-style: none; padding: 0; margin: 0; }
.cycle-sets li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid #d9dfd2; }
.cycle-sets strong { font-size: 23px; font-variant-numeric: tabular-nums; }
.cycle-sets span { color: #667b69; text-align: right; white-space: nowrap; }
.cycle-extra { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid #d9dfd2; font-weight: 700; }
.result-label { margin: 16px 0 0; }
.result-number { font: 700 clamp(48px, 6vw, 72px)/1 Georgia, serif; letter-spacing: -.05em; margin: 10px 0 20px; font-variant-numeric: tabular-nums; }
.result-number span { font: 500 22px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 0; }
.result-error { color: #f7d1bd; }
.screen-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 52px; }
.screen-pair figure { margin: 0; padding: 36px 28px 22px; border-radius: 30px; background: #e8e9de; text-align: center; overflow: hidden; }
.screen-pair figure:nth-child(2) { background: #dce7db; }
.screen-pair img { display: block; width: min(100%, 260px); height: auto; margin: 0 auto; border: 6px solid #1a2b20; border-radius: 34px; box-shadow: 0 18px 36px #1d342a25; }
.screen-pair figcaption { font: 700 21px Georgia, serif; margin-top: 24px; }
.closing-cta { padding: 66px clamp(26px, 7vw, 82px) 72px; border-radius: 36px; color: #f5f3e9; background: #294c39; }
.closing-cta .eyebrow { color: #bad3b8; }
.closing-cta h2 { margin-bottom: 20px; }
.closing-cta p:not(.eyebrow) { font-size: 18px; line-height: 1.6; max-width: 650px; }
.closing-cta .button { background: #f3f1e7; color: #294c39; }
.closing-cta .button:hover { background: #dfe6d7; }
.closing-cta p.feedback-invite { margin: 24px 0 0; color: #cbdacb; font-size: 14px; }
.closing-cta .feedback-invite a { color: #f3f1e7; text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid #aa8150; outline-offset: 4px; }
@media (max-width: 760px) {
  .printable-log { padding: 66px 0 76px; }
  .printable-log-heading { align-items: start; flex-direction: column; }
  .table-hint { display: block; margin-bottom: -14px; color: #667b69; font-size: 14px !important; }
  .landing-hero { grid-template-columns: 1fr; gap: 40px; padding: 58px 0 76px; }
  .landing-copy h1 { font-size: clamp(46px, 11vw, 66px); }
  .landing-copy > p:not(.eyebrow, .small-print) { font-size: 17px; }
  .hero-phone { height: 450px; padding-top: 36px; }
  .hero-phone img { width: min(70%, 260px); }
  .preview-section { grid-template-columns: 1fr; justify-items: center; padding: 66px 0 76px; }
  .preview-section > div { justify-self: stretch; }
  .preview-section video { width: min(100%, 300px); }
  .feature-section { padding: 66px 0 76px; }
  .plate-examples { padding: 66px 0 76px; }
  .feature-grid { grid-template-columns: 1fr; gap: 0; }
  .tool-intro { padding: 42px 0 24px; }
  .tool-intro > p:not(.eyebrow) { font-size: 17px; }
  .calculator-panel { grid-template-columns: 1fr; }
  .calculator-result { min-height: 220px; }
  .cycle-grid { grid-template-columns: 1fr; }
  .example-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 22px 0; }
  .feature-card p { max-width: 520px; }
  .screen-pair { gap: 14px; margin-top: 32px; }
  .screen-pair figure { padding: 18px 10px 16px; border-radius: 22px; }
  .screen-pair img { border-width: 4px; border-radius: 24px; }
  .screen-pair figcaption { font-size: 15px; }
}
@media (max-width: 480px) {
  .masthead nav { gap: 12px; font-size: 13px; }
  .hero-phone { height: 390px; }
  .screen-pair { grid-template-columns: 1fr; }
  .calculator-fields { grid-template-columns: 1fr; }
  .calculator-fields .field:last-child { grid-column: auto; }
  .inventory-grid { grid-template-columns: 1fr; }
  .screen-pair img { max-height: 400px; width: auto; max-width: 100%; }
}
@media (prefers-color-scheme: dark) {
  .small-print { color: #adbdad; }
  .hero-phone { background: radial-gradient(circle at 76% 15%, #3f654d 0, #2c4c39 50%, #1b3426 100%); }
  .preview-section { border-color: #33453a; }
  .feature-section { border-color: #33453a; }
  .plate-examples { border-color: #33453a; }
  .printable-log { border-color: #33453a; }
  .example-card { background: #263c2d; }
  .calculator-panel { background: #263c2d; }
  .calculator-result { background: #213b2d; }
  .cycle-week { background: #263c2d; border-color: #33453a; }
  .cycle-sets li, .cycle-extra { border-color: #33453a; }
  .cycle-warmups, .cycle-sets span { color: #adbdad; }
  .field input, .field select { background: #17261c; color: #f5f3e9; border-color: #66806c; }
  .field-hint { color: #adbdad; }
  .inventory-details { border-color: #66806c; }
  .inventory-details p { color: #adbdad; }
  .inventory-field input { background: #17261c; color: #f5f3e9; border-color: #66806c; }
  .plate-stack span { color: #adbdad; }
  .table-hint { color: #adbdad; }
  .schedule-table-wrap, .schedule-table th, .schedule-table td { border-color: #33453a; }
  .schedule-table caption { background: #263c2d; }
  .schedule-table thead th { color: #adbdad; }
  .feature-card { border-color: #80b597; }
  .screen-pair figure { background: #263c2d; }
  .screen-pair figure:nth-child(2) { background: #324535; }
  .closing-cta { background: #213b2d; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  @page { size: A4; margin: 12mm; }
  :root { background: #fff; color: #202920; }
  .cycle-calculator-page { background: #fff; color: #202920; }
  .cycle-calculator-page .page { max-width: none; padding: 0; }
  .cycle-calculator-page .masthead, .cycle-calculator-page .calculator-fields, .cycle-calculator-page .cycle-print-actions, .cycle-calculator-page .plate-examples, .cycle-calculator-page .closing-cta, .cycle-calculator-page footer, .cycle-calculator-page .tool-intro > p { display: none; }
  .cycle-calculator-page .tool-intro { max-width: none; padding: 0 0 8mm; }
  .cycle-calculator-page .tool-intro h1 { margin: 0; font-size: 28px; }
  .cycle-calculator-page .calculator-panel { display: block; padding: 0; background: none; }
  .cycle-calculator-page .calculator-result { min-height: 0; padding: 0; color: #202920; background: none; }
  .cycle-calculator-page .calculator-result .eyebrow { display: none; }
  .cycle-calculator-page .cycle-summary { margin: 0; font-size: 18px; }
  .cycle-calculator-page .cycle-output { padding: 7mm 0 0; }
  .cycle-calculator-page .cycle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5mm; }
  .cycle-calculator-page .cycle-week { break-inside: avoid; padding: 5mm; border-radius: 12px; background: #fff; }
  .cycle-calculator-page .cycle-week h3 { font-size: 20px; }
  .cycle-calculator-page .cycle-warmups { min-height: 0; font-size: 11px; color: #45674e; }
  .cycle-calculator-page .cycle-sets li { padding: 6px 0; }
  .cycle-calculator-page .cycle-sets strong { font-size: 16px; }
  .cycle-calculator-page .cycle-sets span { font-size: 11px; color: #45674e; }
  .cycle-calculator-page .cycle-extra { padding-top: 8px; margin-top: 8px; font-size: 11px; }
  .cycle-calculator-page .cycle-print-credit { display: block; margin: 7mm 0 0; font-size: 11px; color: #45674e; }
  .workout-log-page { background: #fff; color: #202920; }
  .workout-log-page .masthead, .workout-log-page .landing-hero, .workout-log-page .preview-section, .workout-log-page .feature-section, .workout-log-page .closing-cta, .workout-log-page footer, .workout-log-page .printable-log-heading .button { display: none; }
  .workout-log-page .page { max-width: none; padding: 0; }
  .workout-log-page .printable-log { border: 0; padding: 0; }
  .workout-log-page .printable-log-heading { margin-bottom: 16px; }
  .workout-log-page .printable-log-heading h2 { font-size: 28px; margin: 0; }
  .workout-log-page .printable-log-heading p { display: none; }
  .workout-log-page .table-hint { display: none; }
  .workout-log-page .print-sheet { border: 0; padding: 0; }
  .workout-log-page .schedule-table-wrap { overflow: visible; border-color: #999; }
  .workout-log-page .schedule-table { min-width: 0; }
  .workout-log-page .schedule-table th, .workout-log-page .schedule-table td { border-color: #999; }
  .workout-log-page .schedule-table caption { background: #eee; }
}
