:root {
    color-scheme: light;
    font-family: ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", Arial, sans-serif;
    color: #263d35;
    background: #ecefe5;
    --ink: #263d35;
    --green: #325c46;
    --muted: #667268;
    --line: #dedfd2;
    --orange: #b95c29;
    --blue: #27799b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-block: 20px 100px; }
body { max-width: 520px; min-height: 100vh; margin: 0 auto; padding-bottom: calc(88px + env(safe-area-inset-bottom)); background: #f8f7ef; }
a { color: inherit; text-underline-offset: 4px; }
button, input { font: inherit; }
button, a, summary, .difficulty label { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .65; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(440px, calc(100% - 36px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -80px; left: 16px; z-index: 5; padding: 14px; background: white; }
.skip-link:focus { top: 10px; }
.site-header { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; font-size: 10px; font-weight: 800; letter-spacing: 1px; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #f8f7ef; font-family: Georgia, serif; font-size: 23px; letter-spacing: -2px; padding-bottom: 4px; }
nav a { display: inline-flex; gap: 8px; align-items: center; min-height: 48px; text-decoration: none; font-size: 12px; font-weight: 700; }
.hero { display: flex; flex-direction: column; gap: 28px; padding-block: 26px 40px; }
.hero > * { width: 100%; min-width: 0; }
h1, h2, h3, p { margin-top: 0; }
.hero-copy { text-align: center; }
.app-intro { display: flex; justify-content: center; align-items: center; gap: 12px; text-align: left; font-size: 14px; font-weight: 700; }
.app-intro img { display: block; }
.app-intro small { display: block; margin-top: 5px; font-size: 10px; letter-spacing: 1.2px; color: var(--muted); }
.hero h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 9vw, 46px); line-height: 1.1; letter-spacing: -1.6px; font-weight: 400; margin-block: 20px 16px; }
.hero h1 em { color: var(--orange); font-weight: 400; }
.lead { max-width: 340px; margin: 0 auto 20px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.button { display: inline-flex; gap: 12px; align-items: center; justify-content: center; min-height: 54px; padding: 14px 18px; border: 1px solid transparent; border-radius: 12px; text-decoration: none; font-size: 14px; font-weight: 700; line-height: 1.4; transition: background .15s; }
.primary { background: var(--green); color: white; }
.primary:hover { background: #244835; }
.button span { font-size: 19px; line-height: 1; }
.hero-cta { width: 100%; }
.small-note { margin: 12px 0 2px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.demo-link { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-size: 13px; font-weight: 700; }
.eyebrow { margin: 0; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; line-height: 1.6; }
.practice { background: #eeeee1; border: 1px solid #dedfcf; border-radius: 22px; padding: 20px; text-align: center; scroll-margin-top: 16px; }
.practice-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 16px; }
.demo-label { font-size: 11px; color: var(--muted); }
.difficulty { min-width: 0; border: 0; margin: 0 0 16px; padding: 4px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #e1e3d5; border-radius: 10px; }
.difficulty label { position: relative; cursor: pointer; }
.difficulty input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.difficulty span { display: grid; place-items: center; min-height: 48px; padding: 6px 2px; border-radius: 7px; font-size: 12px; font-weight: 700; }
.difficulty input:checked + span { background: #fffef8; box-shadow: 0 2px 5px #263d3510; }
.difficulty input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.task-label { font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.practice h2 { display: grid; place-items: center; font-family: Georgia, serif; font-weight: 400; font-size: 28px; line-height: 1.15; min-height: 65px; margin: 0 0 10px; }
.clock-area { position: relative; width: min(100%, 260px); margin-inline: auto; }
.clock-face { display: block; width: 100%; overflow: visible; user-select: none; }
.clock-rim { fill: #e5c07d; }
.clock-paper { fill: #fffdf5; stroke: #c1a66f; stroke-width: 1; }
.clock-tick { stroke: #c4c9bb; stroke-width: 1.5; stroke-linecap: round; }
.clock-tick.major { stroke: #687a6b; stroke-width: 2.5; }
.clock-number { font-family: "Trebuchet MS", Arial, sans-serif; font-size: 21px; fill: var(--ink); font-weight: 700; text-anchor: middle; dominant-baseline: middle; }
.hand { cursor: grab; touch-action: none; }
.hand:active { cursor: grabbing; }
.hand-hit { stroke: transparent; stroke-width: 68px; stroke-linecap: round; pointer-events: stroke; }
.hand-line { stroke-width: 11px; stroke-linecap: round; pointer-events: none; }
.hour .hand-line { stroke: var(--orange); }
.minute .hand-line { stroke: var(--blue); stroke-width: 8px; }
.hand:focus-visible { outline: none; }
.hand:focus-visible .hand-hit, .hand:active .hand-hit { stroke: #27799b20; }
.clock-pin { fill: var(--ink); pointer-events: none; }
.success-stamp { position: absolute; bottom: 4px; right: 2px; width: 52px; height: 52px; border-radius: 50%; border: 4px solid #eeeee1; color: white; background: var(--green); display: grid; place-items: center; font-size: 27px; }
.clock-instruction { margin: 12px 0 16px; font-size: 12px; color: var(--muted); }
.clock-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.clock-controls > div { display: grid; grid-template-columns: 48px 48px; justify-content: center; gap: 8px; }
.clock-controls span { display: flex; align-items: center; justify-content: center; gap: 6px; grid-row: 1; grid-column: 1 / -1; font-size: 13px; }
.clock-controls button:first-child { grid-row: 2; grid-column: 1; }
.clock-controls button:last-child { grid-row: 2; grid-column: 2; }
.hand-dot { width: 7px; height: 7px; border-radius: 50%; }
.hour-dot { background: var(--orange); }
.minute-dot { background: var(--blue); }
.step { width: 48px; min-height: 48px; background: #fffef8; color: var(--ink); border: 1px solid #d7dacc; border-radius: 9px; font-size: 24px; }
.step:hover { background: #e2e8d8; }
.feedback { min-height: 38px; margin: 12px 0 4px; font-size: 13px; line-height: 1.5; display: grid; place-items: center; color: #8a3e22; }
.feedback.success { color: var(--green); font-weight: 700; }
.check-button { width: 100%; justify-content: space-between; }
.learning { padding-block: 28px 16px; border-top: 1px solid var(--line); }
.section-heading h2, .faq h2 { font-family: Georgia, serif; font-weight: 400; font-size: 32px; line-height: 1.15; letter-spacing: -1px; margin-block: 12px 16px; }
.section-heading > p:last-child { color: var(--muted); font-size: 15px; line-height: 1.7; }
.learning-steps article { position: relative; padding: 20px 0 20px 38px; border-top: 1px solid var(--line); }
.step-number { position: absolute; left: 0; top: 22px; font-family: Georgia, serif; font-size: 19px; color: var(--orange); }
.learning-steps h3 { font-size: 16px; margin-bottom: 8px; }
.learning-steps p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0; }
.app-section { color: #fffdf2; background: var(--green); }
.app-inner { padding-block: 32px; }
.app-identity { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.app-identity img { width: 64px; height: 64px; }
.app-identity .eyebrow { color: #d1dfbf; font-size: 9px; }
.app-copy h2 { font-family: Georgia, serif; font-weight: 400; font-size: 34px; line-height: 1.13; letter-spacing: -1px; margin-bottom: 16px; }
.app-copy > p { color: #dce6d5; font-size: 15px; line-height: 1.7; }
.app-facts { padding-left: 0; list-style: none; margin: 22px 0; font-size: 14px; }
.app-facts li { margin: 14px 0; }
.app-facts li::before { content: "✓"; color: #dfd69b; margin-right: 10px; }
.app-download { width: 100%; color: var(--ink); background: #f8ecc9; }
.app-download:hover { background: #fff7e1; }
.app-copy .purchase-note { font-size: 12px; margin: 14px 0 0; }
.faq { padding-block: 32px; }
.faq-items { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { padding: 20px 26px 20px 0; cursor: pointer; font-size: 14px; font-weight: 700; position: relative; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 17px; font-size: 22px; font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { font-size: 14px; line-height: 1.7; color: var(--muted); padding-right: 12px; margin-bottom: 20px; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding-block: 20px; border-top: 1px solid var(--line); }
.site-footer .brand { font-size: 10px; }
.site-footer > span { display: none; }
.site-footer > div { display: flex; gap: 16px; font-size: 12px; color: var(--muted); }
.install-bar { position: fixed; z-index: 3; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 520px); display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fffdf6; box-shadow: 0 -4px 18px #263d3508; }
.install-bar > div { display: flex; gap: 8px; align-items: center; font-size: 11px; font-weight: 700; }
.install-bar img { flex-shrink: 0; }
.install-bar small { display: block; margin-top: 4px; font-size: 10px; font-weight: 400; color: var(--muted); }
.install-bar .button { flex-shrink: 0; min-height: 48px; padding: 10px 14px; font-size: 13px; }

@media (max-width: 350px) {
    .wrap { width: calc(100% - 28px); }
    .practice { padding: 16px; }
    .difficulty span { font-size: 11px; }
    .demo-label { font-size: 10px; }
    .hero h1 { font-size: 33px; }
    .install-bar { padding-inline: 12px; }
    .install-bar img { width: 30px; height: 30px; }
    .install-bar .button { gap: 8px; padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
