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

:root {
  font-family: 'DM Sans', 'Manrope', ui-rounded, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #25334e;
  background: #f7f8fc;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --ink: #25334e;
  --muted: #768198;
  --indigo: #596caa;
  --coral: #ed776b;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 76% 30%, rgba(225, 231, 255, .72), transparent 34rem),
    radial-gradient(ellipse at 8% 90%, rgba(249, 226, 216, .36), transparent 30rem),
    #f7f8fc;
}
button, a { font: inherit; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid #7e90d1; outline-offset: 4px; }
.page-shell { width: min(1240px, 100%); min-height: 100vh; margin: 0 auto; padding: 28px 56px 20px; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 50px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: #25334e; text-decoration: none; font-size: 21px; font-weight: 800; letter-spacing: -.8px; }
.brand-mark { width: 38px; height: 38px; }
.brand-dot { color: var(--coral); }
.top-note { display: inline-flex; align-items: center; gap: 9px; color: #778198; font-size: 12px; font-weight: 600; letter-spacing: .015em; }
.status-dot, .live-pill span { width: 7px; height: 7px; border-radius: 50%; background: #7dbb91; box-shadow: 0 0 0 3px rgba(125, 187, 145, .14); }
.hero-layout { flex: 1; display: grid; grid-template-columns: minmax(280px, .84fr) minmax(440px, 1.16fr); align-items: center; gap: clamp(42px, 7vw, 98px); padding: 32px 0 24px; }
.intro { max-width: 440px; padding: 10px 0 0; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 21px; color: #6678b5; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.eyebrow-sparkle { color: #e59178; font-size: 17px; }
h1 { margin: 0; color: #25334e; font-size: clamp(48px, 5.5vw, 68px); line-height: 1.04; letter-spacing: -.065em; font-weight: 800; }
h1 span { color: #7383ba; }
.intro-copy { max-width: 370px; margin: 22px 0 27px; color: #768198; font-size: 15px; line-height: 1.75; }
.tip-card { display: flex; gap: 14px; max-width: 380px; padding: 16px 17px; border: 1px solid #e9eaf4; border-radius: 17px; background: rgba(255,255,255,.73); box-shadow: 0 8px 22px rgba(52, 64, 103, .035); }
.tip-icon { flex: 0 0 32px; display: grid; width: 32px; height: 32px; place-items: center; border-radius: 11px; background: #fff0e9; color: #df806a; font-size: 20px; font-weight: 700; }
.tip-card strong { display: block; padding-top: 1px; color: #34415d; font-size: 13px; }
.tip-card p { margin: 4px 0 0; color: #818ba0; font-size: 12px; line-height: 1.55; }
.legend { display: flex; align-items: center; gap: 21px; margin-top: 30px; }
.legend-item { display: flex; align-items: center; gap: 10px; }
.legend-item strong, .legend-item small { display: block; }
.legend-item strong { color: #47536d; font-size: 11px; font-weight: 700; }
.legend-item small { margin-top: 2px; color: #929bad; font-size: 10px; }
.legend-divider { height: 26px; width: 1px; background: #e0e4ed; }
.legend-hand { position: relative; display: block; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px #e9ebf2; }
.legend-hand::before { content: ''; position: absolute; bottom: 9px; left: 10px; width: 3px; border-radius: 4px; background: #34466f; transform-origin: bottom; }
.legend-hand-hour::before { height: 8px; transform: rotate(-42deg); }
.legend-hand-minute::before { height: 11px; width: 2px; background: #ed776b; transform: rotate(27deg); }
.clock-panel { width: 100%; max-width: 570px; justify-self: end; padding: 20px 24px 17px; border: 1px solid rgba(231, 234, 243, .95); border-radius: 28px; background: rgba(255, 255, 255, .88); box-shadow: 0 23px 65px rgba(57, 70, 111, .10), 0 3px 12px rgba(57, 70, 111, .04); backdrop-filter: blur(12px); }
.clock-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 1px 3px 3px; }
.panel-kicker { margin: 0; color: #9aa3b6; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.clock-panel-head h2 { margin: 3px 0 0; color: #37445f; font-size: 16px; font-weight: 700; letter-spacing: -.025em; }
.live-pill { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid #e7f1e9; border-radius: 99px; color: #72a785; background: #fbfefb; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.clock-stage { width: min(100%, 466px); margin: 0 auto; padding: 2px 0 0; }
.clock-svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: none; user-select: none; -webkit-user-select: none; }
#hour-sectors { filter: url(#dial-shadow); }
.minute-label { fill: #77839d; font-size: 8px; font-weight: 700; letter-spacing: -.02em; }
.hour-label { fill: #293957; font-size: 21px; font-weight: 800; letter-spacing: -.055em; }
.hand { cursor: grab; outline: none; }
.hand:active, .hand.is-dragging { cursor: grabbing; }
.hand-hit { stroke: transparent; stroke-width: 24; stroke-linecap: round; pointer-events: stroke; }
.hand-outline { fill: none; stroke: white; stroke-linecap: round; }
.hand-outline-hour { stroke-width: 12; }
.hand-outline-minute { stroke-width: 10; }
.hand-core { fill: none; stroke-linecap: round; transition: filter .12s ease; }
.hand-core-hour { stroke: #293857; stroke-width: 7; }
.hand-core-minute { stroke: #27334b; stroke-width: 5.3; }
.hand.is-dragging .hand-core { filter: drop-shadow(0 2px 3px rgba(43, 52, 76, .3)); }
.time-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 4px; padding: 13px 17px; border: 1px solid #eef0f7; border-radius: 17px; background: linear-gradient(110deg, #fbfbff, #fff9f7); }
.spoken-time { margin: 4px 0 0; color: #63708b; font-size: 12px; font-weight: 600; }
.digital-time { color: #596ca8; font-size: 31px; font-weight: 800; line-height: 1; letter-spacing: -.07em; font-variant-numeric: tabular-nums; }
.clock-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 4px 0; }
.keyboard-hint { margin: 0; color: #a0a8b9; font-size: 9px; }
kbd { display: inline-grid; min-width: 16px; height: 17px; place-items: center; padding: 0 3px; border: 1px solid #e5e8ef; border-radius: 4px; background: #fafbfe; color: #737f97; font: inherit; font-weight: 700; }
.reset-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 37px; padding: 0 13px; border: 1px solid #e6e8f0; border-radius: 11px; background: white; color: #68748e; cursor: pointer; font-size: 10px; font-weight: 700; transition: background .18s ease, transform .18s ease, border-color .18s ease; }
.reset-button:hover { border-color: #d7dcef; background: #f9faff; transform: translateY(-1px); }
.reset-button:active { transform: translateY(0) scale(.98); }
.reset-button svg { width: 15px; height: 15px; }
.reset-button.is-resetting svg { animation: rotate-once .42s ease; }
.page-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 11px; border-top: 1px solid rgba(223, 227, 237, .75); color: #a0a8b8; font-size: 10px; }
@keyframes rotate-once { to { transform: rotate(-360deg); } }
@media (min-width: 1280px) { .page-shell { padding-left: 70px; padding-right: 70px; } }
@media (max-width: 900px) {
  .page-shell { padding-left: 32px; padding-right: 32px; }
  .hero-layout { grid-template-columns: minmax(220px, .72fr) minmax(370px, 1.28fr); gap: 28px; }
  .clock-panel { padding: 18px 18px 15px; }
  .intro-copy { font-size: 14px; }
  .legend { gap: 13px; }
}
@media (max-width: 700px) {
  .page-shell { padding: 15px 18px 14px; }
  .topbar { min-height: 44px; }
  .brand { font-size: 19px; }
  .brand-mark { width: 34px; height: 34px; }
  .top-note { font-size: 10px; gap: 7px; }
  .hero-layout { display: flex; flex-direction: column; align-items: stretch; gap: 19px; padding: 27px 0 17px; }
  .intro { max-width: none; padding: 0 3px; }
  .eyebrow { margin-bottom: 12px; font-size: 9px; }
  h1 { font-size: clamp(39px, 10vw, 53px); line-height: 1.02; }
  .intro-copy { max-width: 440px; margin: 12px 0 15px; font-size: 13px; line-height: 1.55; }
  .tip-card { max-width: none; padding: 11px 13px; gap: 11px; border-radius: 14px; }
  .tip-icon { width: 29px; height: 29px; flex-basis: 29px; }
  .tip-card strong { font-size: 12px; }
  .tip-card p { font-size: 11px; }
  .legend { display: none; }
  .clock-panel { max-width: 520px; margin: 0 auto; padding: 15px 14px 12px; border-radius: 23px; }
  .clock-panel-head { padding: 1px 2px; }
  .clock-panel-head h2 { font-size: 14px; }
  .live-pill { padding: 6px 8px; font-size: 7px; }
  .clock-stage { width: min(100%, 420px); }
  .time-card { margin: 0 2px; padding: 11px 13px; border-radius: 14px; }
  .spoken-time { font-size: 11px; }
  .digital-time { font-size: 27px; }
  .clock-actions { padding: 10px 2px 0; }
  .keyboard-hint { max-width: 155px; font-size: 8px; line-height: 1.5; }
  .reset-button { min-height: 36px; padding: 0 10px; font-size: 9px; }
  .page-footer { font-size: 9px; }
}
@media (max-width: 360px) {
  .page-shell { padding-left: 12px; padding-right: 12px; }
  .top-note { font-size: 9px; }
  .intro-copy { font-size: 12px; }
  .clock-panel { padding-left: 10px; padding-right: 10px; }
  .clock-actions { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
