/* Time Valuer — home page only: dollar-to-time hero, scroll story with the 3D iPhone, closing sections. */

/* ---------- Hero: dollars become time ---------- */
.hero {
  min-height: calc(100vh - 61px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 72px var(--gutter) 88px;
}
.hero h1 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.12; margin: 0 auto 56px; max-width: 20ch; text-wrap: balance; }
.converter { width: min(1100px, 100%); margin: 0 auto 48px; }
.conv-item { font: 500 clamp(14px, 1.3vw, 16px)/1.4 var(--text); color: var(--graphite); min-height: 1.4em; }
.conv-row {
  display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; white-space: nowrap;
  gap: clamp(10px, 2.2vw, 32px);
  font: 700 clamp(28px, 7.2vw, 112px)/1.05 var(--block);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  margin: 12px 0 14px;
}
.conv-money { color: var(--ink); }
.conv-time { color: var(--money); }
.conv-eq {
  display: inline-block; width: clamp(30px, 5vw, 76px); height: clamp(12px, 1.8vw, 24px);
  border-top: clamp(4px, .55vw, 8px) solid var(--signal);
  border-bottom: clamp(4px, .55vw, 8px) solid var(--signal);
  transform-origin: left center;
}
.conv-basis { font: 400 clamp(13px, 1.25vw, 16px)/1.5 var(--text); color: var(--graphite); }
.conv-basis b { color: var(--ink); font-weight: 600; }
/* Reveal sequence on each change: price, then the equals sign draws, then the time. */
.converter .conv-money, .converter .conv-time, .converter .conv-item { transition: opacity .35s ease, transform .5s cubic-bezier(.2,.8,.2,1); }
.converter .conv-eq { transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.converter.swap .conv-money, .converter.swap .conv-time, .converter.swap .conv-item { opacity: 0; transform: translateY(14px); }
.converter.swap .conv-eq { transform: scaleX(0); }
.converter:not(.swap) .conv-eq { transition-delay: .25s; }
.converter:not(.swap) .conv-time { transition-delay: .55s; }
.hero .lede { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.6; color: var(--body); max-width: 46ch; margin: 0 auto 36px; }

/* Three things it prices */
.prices {
  max-width: 1180px; margin: 0 auto; padding: 120px var(--gutter) 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px);
}
.prices article { padding-top: 0; }
.prices h2 { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.2; margin: 0 0 10px; }
.prices p { margin: 0; color: var(--body); }
@media (max-width: 760px) { .prices { grid-template-columns: 1fr; padding-top: 64px; } }

/* ---------- Story column + sticky phone ---------- */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
  gap: clamp(32px, 7vw, 120px);
  max-width: 1180px;
  margin: 64px auto 0;
  padding: 0 var(--gutter);
}
.story { min-width: 0; max-width: 620px; }
.phone-rail { position: relative; }
.phone-sticky { position: sticky; top: 61px; height: calc(100vh - 61px); display: grid; place-items: center; }

.chapter { min-height: 88vh; display: flex; flex-direction: column; justify-content: center; padding: 80px 0; }
.chapter h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; margin: 0 0 24px; max-width: 16ch; text-wrap: balance; }
.chapter p { margin: 0 0 18px; color: var(--body); font-size: 19px; }
.chapter p b { color: var(--ink); }
.tab-name { display: inline-flex; align-items: center; gap: 8px; font: 500 14px var(--text); color: var(--graphite); margin-bottom: 18px; }
.tab-name svg { width: 16px; height: 16px; }
.examples { list-style: none; padding: 0; margin: 8px 0 22px; border-top: 1px solid var(--line); }
.examples li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--body); }
.examples b { font: 600 16px var(--text); color: var(--ink); }
.chapter .ledger { font-size: 17px; }

/* ---------- 3D phone ---------- */
.scene { perspective: 1600px; width: min(290px, 100%); }
.phone {
  --ry: -16deg; --rx: 6deg; --tx: 0deg; --ty: 0deg;
  position: relative; width: 100%; aspect-ratio: 9 / 19.2;
  transform-style: preserve-3d;
  transform: rotateY(calc(var(--ry) + var(--ty))) rotateX(calc(var(--rx) + var(--tx)));
  transition: transform 1.1s cubic-bezier(.2,.8,.2,1);
}
.phone.tracking { transition: transform .25s ease-out; }
.body, .edge, .back { position: absolute; border-radius: 15% / 7%; }
.body { inset: 0; background: #1b1b1d; padding: 3.3%; transform: translateZ(9px); box-shadow: inset 0 0 0 2px #3a3a3e, inset 0 0 0 4px #0c0c0d; }
.back { inset: 0; background: #2a2a2d; transform: translateZ(-9px); box-shadow: 30px 50px 80px rgba(20, 40, 25, .28); }
.edge { inset: 0; background: linear-gradient(90deg, #4a4a4f, #2c2c30 40%, #4a4a4f); }
.edge.e1 { transform: translateZ(-6px); } .edge.e2 { transform: translateZ(-3px); }
.edge.e3 { transform: translateZ(0); } .edge.e4 { transform: translateZ(3px); } .edge.e5 { transform: translateZ(6px); }
.screen { color: #000; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; position: relative; width: 100%; height: 100%; border-radius: 12.5% / 5.9%; overflow: hidden; background: #fff; container-type: inline-size; }
.glare {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, rgba(255,255,255,0) 40%, rgba(255,255,255,.22) 50%, rgba(255,255,255,0) 60%);
  transform: translateX(var(--glare, 0%)); transition: transform 1.1s cubic-bezier(.2,.8,.2,1); z-index: 5;
}

/* App UI inside the phone, sized to the screen width (cqw) */
.status { position: absolute; top: 0; left: 0; right: 0; height: 12cqw; display: flex; align-items: center; justify-content: space-between; padding: 0 8cqw; font: 600 4cqw -apple-system, BlinkMacSystemFont, system-ui, sans-serif; z-index: 3; }
.island { position: absolute; top: 3cqw; left: 50%; transform: translateX(-50%); width: 30cqw; height: 8.5cqw; border-radius: 6cqw; background: #000; z-index: 4; }
.status-right { display: flex; gap: 1.5cqw; align-items: center; }
.battery { width: 7cqw; height: 3.4cqw; border-radius: 1cqw; background: #000; }
.view {
  position: absolute; inset: 12cqw 0 0; padding: 4cqw 6cqw 26cqw;
  opacity: 0; transform: translateY(3%) scale(.985);
  transition: opacity .45s ease, transform .55s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}
.view.on { opacity: 1; transform: none; pointer-events: auto; }
.tabbar {
  position: absolute; left: 4cqw; right: 4cqw; bottom: 4cqw; z-index: 3;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 1.6cqw; border-radius: 9cqw;
  background: rgba(250,250,250,.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 6px 18px rgba(0,0,0,.08);
}
.tab { appearance: none; border: 0; background: transparent; cursor: pointer; display: grid; justify-items: center; gap: .6cqw; padding: 2cqw 0 1.6cqw; border-radius: 7cqw; font: 500 2.9cqw -apple-system, BlinkMacSystemFont, system-ui, sans-serif; color: #111; transition: background .3s; }
.tab svg { width: 6.4cqw; height: 6.4cqw; }
.tab[aria-selected="true"] { background: rgba(0,0,0,.07); }
.app-title { font: 800 8cqw/1.05 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; letter-spacing: -.02em; margin: 2cqw 0 1cqw; }
.app-sub { font-size: 3.6cqw; color: #6b6b70; margin: 0 0 4cqw; }

.profile { border: 1px solid #e3e3e6; border-radius: 4cqw; padding: 3.6cqw 4.4cqw; margin-bottom: 3cqw; display: flex; justify-content: space-between; align-items: center; }
.profile b { display: block; font: 800 6.4cqw/1.1 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.profile small { color: #8a8a90; font-size: 3.4cqw; }
.period { font-size: 3.2cqw; color: #6b6b70; text-decoration: underline; text-underline-offset: .6cqw; text-align: right; }
.goal { display: inline-block; margin-left: 1.4cqw; border: 1px solid #c9c9cd; border-radius: 1.6cqw; padding: .3cqw 1.4cqw; font-weight: 700; font-size: 2.8cqw; color: #111; text-decoration: none; }
.add { position: absolute; right: 6cqw; top: 1cqw; width: 11cqw; height: 11cqw; border-radius: 50%; background: var(--money); color: #fff; display: grid; place-items: center; font: 400 7cqw/1 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; }

.sw-label { text-align: center; font-size: 3.6cqw; color: #6b6b70; margin-top: 16cqw; }
.sw-money { font: 700 15cqw/1 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; color: #2e7d3e; text-align: center; margin: 2cqw 0 12cqw; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.flip { display: flex; justify-content: center; align-items: center; gap: 1.4cqw; padding: 3cqw; border-radius: 4cqw; box-shadow: 0 0 0 1px #ececef, 0 4px 14px rgba(0,0,0,.05); }
.digit { width: 9.6cqw; height: 13cqw; border-radius: 1.8cqw; background: #f1f1f5; box-shadow: inset 0 0 0 1px #dcdce2; display: grid; place-items: center; font: 600 7.4cqw -apple-system, BlinkMacSystemFont, system-ui, sans-serif; color: #1b1d4a; position: relative; font-variant-numeric: tabular-nums; }
.digit::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.08); }
.sep { font: 700 6cqw -apple-system, BlinkMacSystemFont, system-ui, sans-serif; color: #4b4d74; }
.flip-labels { display: flex; justify-content: space-around; font-size: 2.6cqw; color: #9a9aa0; margin-top: 1.4cqw; }
.pause { margin: 12cqw auto 0; width: 70%; border-radius: 4cqw; background: #f1f1f2; box-shadow: inset 0 0 0 1px #e1e1e4; text-align: center; padding: 4cqw 0 3cqw; font: 700 3.6cqw -apple-system, BlinkMacSystemFont, system-ui, sans-serif; letter-spacing: .1em; }
.pause i { display: block; font-style: normal; font-size: 9cqw; line-height: 1; margin-bottom: 1cqw; }

.dots { display: grid; grid-template-columns: repeat(19, 1fr); gap: 1cqw; margin-top: 2cqw; }
.dot { aspect-ratio: 1; border-radius: 50%; background: #8e8e93; box-shadow: 0 0 0 .5cqw #ececee; }
.dot.left { background: #4f8f5c; box-shadow: 0 0 0 .5cqw #dcebdf; }
.yearbar { height: 1.4cqw; border-radius: 1cqw; background: #bfdcc5; margin-top: 4cqw; overflow: hidden; }
.yearbar span { display: block; height: 100%; background: #8e8e93; }

.x { width: 10cqw; height: 10cqw; border-radius: 50%; box-shadow: 0 0 0 1px #e3e3e6, 0 2px 6px rgba(0,0,0,.06); display: grid; place-items: center; font: 400 5cqw/1 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; margin: 2cqw 0 4cqw; }
.g-label { display: flex; justify-content: space-between; font-size: 3.4cqw; color: #8a8a90; margin-top: 5cqw; }
.g-value { font: 500 7.4cqw/1.15 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.g-margin { color: #4fbf5a; }
.g-total { border-top: 1px solid #e3e3e6; margin-top: 3cqw; }
.slider { position: relative; height: 1.4cqw; border-radius: 1cqw; background: #e5e5e8; margin: 7cqw 2cqw 2cqw; }
.slider .fill { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: #111; }
.slider .knob { position: absolute; top: 50%; width: 10cqw; height: 6.4cqw; border-radius: 4cqw; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.18); transform: translate(-50%, -50%); }
.g-hint { font-size: 3.6cqw; margin-top: 6cqw; }
.g-minute { font-size: 3.3cqw; color: #6b6b70; margin-top: 3cqw; }

/* Delegate + project screens */
.d-row { display: flex; justify-content: space-between; align-items: center; padding: 3.6cqw 4cqw; border-radius: 4cqw; background: #f4f4f5; margin-top: 3cqw; font-size: 3.8cqw; }
.d-row small { display: block; color: #8a8a90; font-size: 3cqw; }
.d-row b { font: 700 6.4cqw -apple-system, BlinkMacSystemFont, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.d-verdict { margin-top: 5cqw; padding: 4cqw; border-radius: 4cqw; background: #e9f5ea; color: #2e7d3e; font-size: 3.6cqw; text-align: center; }
.d-verdict b { display: block; font: 800 7.6cqw/1.15 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; margin-top: 1cqw; font-variant-numeric: tabular-nums; }
.p-list { list-style: none; margin: 0; padding: 0; }
.p-list li { display: flex; justify-content: space-between; padding: 2cqw 0; border-top: 1px solid #ececef; font-size: 3.5cqw; }
.p-list small { color: #8a8a90; }
.p-list b { font-variant-numeric: tabular-nums; }
.p-sum { margin-top: 2.6cqw; border-top: 2px solid #111; }
.p-sum li { border-top: 0; padding: 1.4cqw 0; font-size: 3.8cqw; }
.p-sum .quote b { color: #2e7d3e; font-size: 5.6cqw; }
.p-warn { margin-top: 2.4cqw; padding: 2.6cqw 3.4cqw; border-radius: 3cqw; background: #fdecea; color: #a8322b; font-size: 3.3cqw; line-height: 1.35; }

/* ---------- Closing sections ---------- */
.close { max-width: 1180px; margin: 0 auto; padding: 64px var(--gutter) 24px; }
.close > section { padding: 160px 0 0; }
.belief h2 { font-size: clamp(34px, 5.6vw, 76px); line-height: 1.02; margin: 0 0 32px; max-width: 14ch; text-wrap: balance; }
.belief p { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.6; color: var(--body); margin: 0; max-width: 46ch; }

.audience { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px clamp(24px, 4vw, 56px); }
.audience h2, .daily h2, .pricing h2, .faq-title { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.08; margin: 0; max-width: 18ch; }
.audience h2 { grid-column: 1 / -1; }
.audience h3 { font-size: 18px; line-height: 1.25; margin: 0 0 12px; }
.audience p { margin: 0 0 12px; color: var(--body); }
@media (max-width: 860px) { .audience { grid-template-columns: 1fr; } }

.daily { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 96px); }
.daily h2 { margin-bottom: 20px; }
.daily > div > p { color: var(--body); margin: 0 0 16px; max-width: 32ch; }
.daily .steps { margin-top: 8px; }
@media (max-width: 860px) { .daily { grid-template-columns: 1fr; } }

.pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); }
.pricing h2 { margin-bottom: 20px; }
.pricing .intro > p { margin: 0 0 28px; color: var(--body); font-size: 19px; max-width: 32ch; }
.price-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.price-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--body); }
.price-list li > span small { display: block; font: 400 13px var(--text); color: var(--graphite); }
.price-list b { font: 600 18px/1.3 var(--text); color: var(--ink); text-align: right; }
.price-list b small { display: block; font-weight: 400; font-size: 13px; color: var(--graphite); }
.price-list .hero-price b { color: var(--money); }
.privacy { display: flex; align-items: flex-start; gap: 14px; margin: 48px 0 0; font-size: 17px; color: var(--body); }
.privacy svg { flex: none; width: 22px; height: 22px; margin-top: 3px; }
.privacy b { color: var(--ink); }
.faq-title { margin-bottom: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { min-height: 0; padding: 56px var(--gutter) 64px; }
  .stage { display: flex; flex-direction: column; margin-top: 32px; }
  .story { display: contents; }
  .phone-rail { order: -1; }
  .chapter { order: 2; }
  .phone-sticky { position: relative; top: 0; height: auto; padding: 8px 0; }
  .scene { width: min(240px, 64vw); }
  .chapter { min-height: 0; padding: 48px 0; }
  .pricing { grid-template-columns: 1fr; }
  .close > section { padding: 112px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .phone, .glare, .view, .converter * { transition: none !important; }
}
