/* Home page: seal clock, stats, shelf calculator, timeline, pillars, before/after */

/* seal clock */
.clock { width: 100%; max-width: 200px; }
.clock svg { width: 100%; height: auto; overflow: visible; }
.clock .track { fill: none; stroke: var(--bg-2); stroke-width: 14; }
.clock .arc { fill: none; stroke: var(--purple); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 943; stroke-dashoffset: 943; transform: rotate(-90deg); transform-origin: 200px 200px; }
.clock .top { transform-box: fill-box; transform-origin: 0% 100%; }
.clock-label { text-align: center; font-size: 13px; line-height: 1.4; color: var(--ink-2); font-weight: 600; margin-top: 4px; text-wrap: balance; }
.clock-label b { color: var(--ink); }
.clock.go .top { animation: lid-pop 1s cubic-bezier(.3,1.6,.5,1) .3s forwards; }
.clock.go .arc { animation: arc-run 2.4s cubic-bezier(.6,.05,.3,1) 1s forwards; }
@keyframes lid-pop { to { transform: translate(4px, -16px) rotate(-5deg); } }
@keyframes arc-run { to { stroke-dashoffset: 0; } }

/* stats */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.stat-row > * { min-width: 0; }
.stat { border: var(--stroke); border-radius: 22px; padding: 22px; box-shadow: var(--pop); }
.stat .big { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: 10px; }
.stat p { margin: 0; font-size: 15px; color: var(--ink); opacity: .85; }
.stat:nth-child(1) { background: var(--lavender); transform: rotate(-1deg); }
.stat:nth-child(2) { background: var(--card); }
.stat:nth-child(3) { background: var(--lime); transform: rotate(1deg); }

/* calculator */
.calc { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; margin-top: 32px; align-items: start; }
.calc > * { min-width: 0; }
.panel { background: var(--card); border: var(--stroke); border-radius: 26px; padding: 8px; box-shadow: var(--pop); }
.row { display: grid; grid-template-columns: 1fr auto 104px; gap: 12px; align-items: center; padding: 11px 12px; }
.row + .row { border-top: 1.5px dashed var(--soft-line); }
.row .who { display: flex; gap: 12px; align-items: center; min-width: 0; }
.row .sw { width: 22px; height: 26px; border-radius: 7px; flex: none; border: 2px solid var(--line); }
.row .nm { font-weight: 700; font-size: 15px; line-height: 1.25; }
.row .ds { font-size: 12.5px; color: var(--ink-3); line-height: 1.3; }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 999px; background: var(--card); }
.stepper button { appearance: none; border: 0; background: none; color: var(--ink); width: 32px; height: 32px; font: 800 17px var(--font); cursor: pointer; border-radius: 999px; }
.stepper button:hover { background: var(--bg-2); }
.stepper output { min-width: 24px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.price { display: flex; align-items: center; gap: 3px; border: 2px solid var(--line); border-radius: 999px; padding: 0 12px; height: 36px; background: var(--card); }
.price span { color: var(--ink-3); font-size: 14px; font-weight: 600; }
.price input { width: 100%; min-width: 0; border: 0; background: none; color: var(--ink); font: 700 15px var(--font); outline: none; font-variant-numeric: tabular-nums; }
.price .ea { white-space: nowrap; font-size: 11.5px; }
.price:focus-within, .stepper:focus-within { box-shadow: 0 0 0 3px var(--lavender); }
.finish { padding: 16px 12px 10px; border-top: 2px solid var(--line); margin-top: 4px; }
.finish label { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.finish label b { background: var(--lime); border: 2px solid var(--line); border-radius: 999px; padding: 0 9px; font-variant-numeric: tabular-nums; }
.finish input[type=range] { width: 100%; accent-color: var(--purple); }
.finish .hint { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

.result { position: sticky; top: 84px; background: var(--card); border: var(--stroke); border-radius: 26px; padding: 24px; box-shadow: 0 6px 0 var(--purple); }
.result .lbl { font-size: 14px; color: var(--ink-2); font-weight: 600; margin-bottom: 2px; }
.result .num { font-size: clamp(40px, 5vw, 52px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.result .num.warn { color: var(--coral); }
.result .split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; padding-top: 18px; border-top: 1.5px dashed var(--soft-line); }
.result .split .num { font-size: 32px; }
.result .note { font-size: 13.5px; color: var(--ink-2); margin: 16px 0 0; }
.mini-shelf { display: flex; align-items: flex-end; gap: 8px; height: 130px; margin: 22px 0 0; padding: 0 6px; }
.mini-shelf .jar { flex: 1; border: 2px solid var(--line); border-bottom: 0; border-radius: 10px 10px 3px 3px; height: 8px; min-height: 8px; transition: height .6s cubic-bezier(.3,1.3,.5,1); }
.mini-shelf .jar.round { border-radius: 40px 40px 3px 3px; }
.mini-board { height: 8px; border-radius: 6px; background: var(--ink); }

/* timeline */
.tl { margin-top: 32px; background: var(--card); border: var(--stroke); border-radius: 26px; padding: 22px 24px 16px; box-shadow: var(--pop); }
.tl-row { display: grid; grid-template-columns: 160px 1fr; gap: 14px; align-items: center; padding: 8px 0; }
.tl-row > * { min-width: 0; }
.tl-row .nm { font-weight: 700; font-size: 15px; }
.tl-row .pao { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.tl-bar { position: relative; height: 30px; background: var(--bg-2); border-radius: 999px; }
.tl-fill { position: absolute; inset: 0 auto 0 0; border: 2px solid var(--line); border-radius: 999px; display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; font-size: 12.5px; font-weight: 800; color: var(--ink); white-space: nowrap; transition: width 1.2s cubic-bezier(.5,0,.2,1); }
.tl-fill.out { padding-right: 0; }
.tl-fill.out span { position: absolute; left: calc(100% + 10px); color: var(--ink-2); }
.tl-axis { display: grid; grid-template-columns: 160px 1fr; gap: 14px; margin-top: 6px; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.tl-axis .ticks { display: flex; justify-content: space-between; }
.tl-say { font-size: 17px; color: var(--ink-2); margin: 22px 0 0; max-width: 62ch; }
.tl-say b { color: var(--ink); }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.pillars > * { min-width: 0; }
.pillar { border: var(--stroke); border-radius: 26px; padding: 24px; box-shadow: var(--pop); }
.pillar:nth-child(1) { background: var(--lavender); transform: rotate(-1.2deg); }
.pillar:nth-child(2) { background: var(--card); }
.pillar:nth-child(3) { background: var(--lime); transform: rotate(1.2deg); }
.pillar .badge { display: inline-block; font-weight: 800; font-size: 13px; background: var(--card); border: 2px solid var(--line); border-radius: 999px; padding: 3px 11px; margin-bottom: 22px; }
.pillar:nth-child(2) .badge { background: var(--coral); color: #fff; }
.pillar h3 { font-size: 22px; margin-bottom: 8px; }
.pillar p { margin: 0; font-size: 15px; color: var(--ink); opacity: .85; }

/* before / after */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.vs > div { min-width: 0; border-radius: 26px; padding: 24px; border: var(--stroke); }
.vs .without { background: var(--bg-2); border-style: dashed; }
.vs .with { background: var(--card); box-shadow: 0 6px 0 var(--purple); }
.vs h3 { font-size: 16px; letter-spacing: -0.01em; margin-bottom: 16px; }
.vs .without h3 { color: var(--ink-3); }
.vs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.vs li { display: flex; gap: 12px; font-size: 15px; color: var(--ink-2); }
.vs .with li { color: var(--ink); font-weight: 600; }
.vs li svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.vs .without svg { color: var(--ink-3); }
.vs .with svg { color: var(--purple); }

@media (max-width: 860px) {
  .calc, .stat-row, .pillars, .vs { grid-template-columns: 1fr; }
  .result { position: static; }
  .tl-row, .tl-axis { grid-template-columns: 1fr; gap: 6px; }
  .tl-axis > span:first-child { display: none; }
}
@media (max-width: 520px) {
  .row { grid-template-columns: 1fr auto; }
  .row .price { grid-column: 1 / -1; }
  .tl { padding: 18px 16px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .clock.go .top, .clock.go .arc { animation-duration: .01s; animation-delay: 0s; }
  .tl-fill, .mini-shelf .jar { transition: none; }
}

/* Large screens: each section owns a full screen, so give content more presence */
@media (min-width: 1100px) and (min-height: 760px) {
  .wrap { max-width: 1160px; }
  h1 { font-size: 58px; }
  h2 { font-size: 46px; max-width: 760px; }
  .sub, .lede { font-size: 18.5px; }
  .tag { font-size: 14px; padding: 5px 14px; }
  .phone { width: 340px; }
  .item .n { font-size: 14.5px; } .item .m { font-size: 12.5px; }
  .stk { font-size: 14px; padding: 6px 13px; }

  .pao { grid-template-columns: 260px 1fr; gap: 64px; }
  .clock { max-width: 260px; }
  .clock-label { font-size: 14px; }
  .stat-row { gap: 24px; margin-top: 48px; }
  .stat { padding: 28px; }
  .stat .big { font-size: 40px; }
  .stat p { font-size: 16px; }

  .calc { margin-top: 40px; gap: 28px; }
  .row { padding: 13px 14px; }
  .row .nm { font-size: 16px; }
  .result { padding: 30px; }
  .result .num { font-size: 60px; }
  .mini-shelf { height: 160px; }

  .tl { margin-top: 40px; padding: 28px 30px 20px; }
  .tl-row { padding: 10px 0; }
  .tl-bar { height: 36px; }
  .tl-row .nm { font-size: 16px; }

  .pillars, .vs, .steps { gap: 26px; margin-top: 48px; }
  .pillar { padding: 32px 30px; min-height: 300px; display: flex; flex-direction: column; }
  .pillar .badge { margin-bottom: auto; align-self: flex-start; }
  .pillar h3 { font-size: 28px; margin-top: 40px; }
  .pillar p { font-size: 16.5px; }
  .vs > div { padding: 32px; }
  .vs h3 { font-size: 18px; margin-bottom: 20px; }
  .vs li { font-size: 17px; }
  .vs ul { gap: 16px; }
  .step { padding: 32px 30px; min-height: 280px; }
  .step h3 { font-size: 24px; }
  .step p { font-size: 16.5px; }
  .checks li { font-size: 17px; padding: 15px 22px; }
  .closing h2 { font-size: 56px; max-width: 820px; }
  .closing img { width: 72px; height: 72px; }
}
