/* «One day of a cattery»: the page is a day; the phone stays, the hour changes. */
:root {
  --d-morning: #fff3e3;
  --d-day: #fbfaf7;
  --d-evening: #ffe1c9;
  --d-night: #0d1222;
}

/* Hero = dawn: the pitch on the left, the phone at 06:58 on the right */
.d-hero { min-height: calc(100svh - 64px); display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center;
  width: 100%; padding: clamp(32px, 5vw, 72px) max(16px, calc((100% - 1180px) / 2)) 96px;
  background: radial-gradient(90% 90% at 80% 100%, #ffd2a8 0%, #fff3e3 50%, var(--l-bg) 100%); position: relative; overflow: hidden; }
.d-hero-kicker { font-weight: 800; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: #b4661f !important; margin-bottom: 20px; }
.d-hero-title { font-size: clamp(2.5rem, 5.4vw, 4.6rem); line-height: 1.02; letter-spacing: -.045em; }
.d-hero-title span { color: #b9ad9e; }
.d-hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 40ch; margin-top: 22px; }
.d-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.d-hero-proof { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 600px; }
.d-hero-proof li { background: rgba(255, 255, 255, .75); border-radius: 18px; padding: 14px 16px; box-shadow: 0 1px 2px rgba(60, 40, 20, .05); }
.d-hero-proof b { display: block; font-size: .95rem; }
.d-hero-proof span { font-size: .82rem; color: var(--l-muted); line-height: 1.35; display: block; margin-top: 2px; }

.d-lock { justify-self: center; width: min(340px, 100%); aspect-ratio: 9 / 18.5; border-radius: 48px; padding: 12px; background: #1d1a16;
  box-shadow: 0 40px 80px rgba(120, 60, 10, .28), 0 0 0 2px #3a342c inset; transform: rotate(2deg); }
.d-lock-screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; padding: 22px 14px 18px; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #2b2f5c 0%, #8a5a8c 38%, #f2a07a 70%, #ffd29e 100%); color: #fff; }
.d-lock-top { text-align: center; font-weight: 700; font-size: .85rem; opacity: .9; margin-top: 18px; }
.d-lock-clock { text-align: center; font-size: 4.6rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.d-lock-clock i { font-style: normal; animation: d-blink 1.2s ease-in-out infinite; }
@keyframes d-blink { 50% { opacity: .35; } }
.d-lock-pushes { margin-top: auto; display: grid; gap: 8px; }
.d-lpush { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: start; background: rgba(255, 255, 255, .86); color: var(--l-ink);
  border-radius: 20px; padding: 11px 12px; backdrop-filter: blur(12px); box-shadow: 0 6px 18px rgba(30, 20, 40, .18);
  animation: d-push-in .7s cubic-bezier(.2, .9, .25, 1) both; animation-delay: var(--d, 0s); }
.d-lpush img { width: 32px; height: 32px; border-radius: 9px; }
.d-lpush b { display: block; font-size: .82rem; line-height: 1.25; }
.d-lpush span { display: block; font-size: .75rem; color: #5f574d; line-height: 1.3; margin-top: 2px; }
.d-lpush em { font-style: normal; font-size: .68rem; color: #8b8176; font-weight: 600; white-space: nowrap; }
@keyframes d-push-in { from { opacity: 0; transform: translateY(-18px) scale(.96); } }
.d-lock-bar { width: 38%; height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .85); margin: 14px auto 0; }
.d-scroll { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); font-weight: 700; color: var(--l-ink); padding: 10px 18px;
  border-radius: 99px; background: #fff; box-shadow: var(--l-shadow); font-size: .9rem; }

@media (max-width: 900px) {
  .d-hero { grid-template-columns: minmax(0, 1fr); text-align: left; padding-bottom: 90px; min-height: 0; }
  .d-hero-copy { min-width: 0; max-width: 640px; justify-self: center; }
  .d-hero { padding-inline: clamp(16px, 5vw, 40px); }
  .d-lock { width: min(300px, 82vw); transform: none; }
  .d-hero-proof { max-width: none; }
}
@media (max-width: 600px) { .d-hero-proof { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .d-hero-title { font-size: clamp(2rem, 9.4vw, 2.6rem); }
  .d-hero-title span { white-space: normal; }
  .d-hero-proof { gap: 8px; }
  .d-hero-cta { flex-direction: column; }
  .d-hero-cta .l-btn { width: 100%; }
}

/* The day: background follows the hour */
.d-day { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr) 380px; gap: clamp(24px, 4vw, 64px);
  padding: 0 max(24px, calc((100% - 1160px) / 2)); background: var(--d-morning); transition: background-color 1.2s ease; }
.d-day[data-phase="day"] { background: var(--d-day); }
.d-day[data-phase="evening"] { background: var(--d-evening); }
.d-day[data-phase="night"] { background: var(--d-night); }

.d-moment { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; max-width: 560px; opacity: .22;
  transition: opacity .6s ease, transform .6s ease; transform: translateY(12px); }
.d-moment.is-on { opacity: 1; transform: none; }
.d-time { font-size: clamp(3.4rem, 8vw, 6.4rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; margin-bottom: 18px;
  font-variant-numeric: tabular-nums; color: var(--l-ink) !important; }
.d-moment h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.1; margin-bottom: 14px; }
.d-moment p:not(.d-time) { font-size: 1.12rem; }
.d-day[data-phase="night"] .d-moment h2, .d-day[data-phase="night"] .d-time { color: #fff !important; }
.d-day[data-phase="night"] .d-moment p:not(.d-time) { color: #a8b0ca; }
.d-moment[data-step="5"] .d-time { color: #ff9d5c !important; }

/* Rail: the whole day at a glance, the current hour lit */
.d-rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 6px; position: sticky; }
.d-rail::before { content: ''; position: absolute; left: 7px; top: 50%; height: 300px; margin-top: -150px; width: 2px; background: rgba(29, 26, 22, .1); }
.d-rail a { position: relative; display: grid; padding: 8px 0 8px 26px; opacity: .38; transition: opacity .4s, transform .4s; }
.d-rail a::before { content: ''; position: absolute; left: 2px; top: 15px; width: 12px; height: 12px; border-radius: 50%; background: var(--d-morning);
  box-shadow: 0 0 0 2px rgba(29, 26, 22, .25); transition: background .4s, box-shadow .4s; }
.d-rail b { font-size: 1rem; font-variant-numeric: tabular-nums; color: var(--l-ink); }
.d-rail span { font-size: .78rem; color: var(--l-muted); }
.d-rail a.is-on { opacity: 1; transform: translateX(4px); }
.d-rail a.is-on::before { background: var(--l-or); box-shadow: 0 0 0 4px rgba(255, 138, 61, .25); }
.d-day[data-phase="night"] .d-rail b { color: #fff; }
.d-day[data-phase="night"] .d-rail span { color: #8f98b6; }
.d-day[data-phase="night"] .d-rail::before { background: rgba(255, 255, 255, .15); }
.d-day[data-phase="night"] .d-rail a::before { background: var(--d-night); box-shadow: 0 0 0 2px rgba(255, 255, 255, .3); }
.d-day[data-phase="night"] .d-rail a.is-on::before { background: #ff9d5c; box-shadow: 0 0 0 4px rgba(255, 157, 92, .3); }

/* Sticky phone */
.d-stage { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; }
.d-phone { width: 300px; height: 620px; border-radius: 50px; background: #111; padding: 12px; position: relative;
  box-shadow: 0 50px 90px rgba(40, 25, 10, .28), 0 0 0 2px #2b2b2b inset; transition: box-shadow 1s; }
.d-day[data-phase="night"] .d-phone { box-shadow: 0 0 0 2px #2b2b2b inset, 0 0 120px rgba(255, 157, 92, .28), 0 50px 90px rgba(0, 0, 0, .5); }
.d-notch { position: absolute; top: 20px; left: 50%; width: 92px; height: 26px; margin-left: -46px; background: #111; border-radius: 20px; z-index: 3; }
.d-screens { position: relative; height: 100%; border-radius: 39px; overflow: hidden; background: #f2f2f7; }
.d-scr { position: absolute; inset: 0; padding: 54px 16px 16px; font-size: 12px; color: #111; opacity: 0; transform: translateY(14px) scale(.98);
  transition: opacity .5s ease, transform .5s ease; pointer-events: none; }
.d-scr.is-on { opacity: 1; transform: none; }
.d-scr-night { background: #10131d; color: #fff; }

/* Screen pieces (iOS-like, matching the app) */
.d-s-date { color: #8e8e93; font-size: 11px; }
.d-s-h { font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin: 4px 0 12px; }
.d-s-h-sm { font-size: 22px; margin-top: 8px; }
.d-s-lbl { color: #8e8e93; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; margin: 14px 4px 6px; }
.d-s-card { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 18px; padding: 12px; }
.d-s-green { box-shadow: 0 0 0 2px #2fb36e; }
.d-s-card img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; }
.d-s-card > div { flex: 1; display: grid; } .d-s-card small { color: #8e8e93; } .d-s-card b { font-size: 15px; }
.d-ok { font-style: normal; margin-top: 4px; width: max-content; background: rgba(47, 179, 110, .14); color: #1f8a52; font-weight: 700; font-size: 10px; padding: 3px 8px; border-radius: 99px; }
.d-big { display: grid; text-align: center; font-size: 24px; font-weight: 800; color: #ff3b30; line-height: 1; flex: none; }
.d-big small { font-size: 9px; color: #8e8e93; font-weight: 600; }
.d-s-list { background: #fff; border-radius: 16px; overflow: hidden; }
.d-s-list > div { display: grid; grid-template-columns: 28px 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 9px 12px; border-bottom: 1px solid #eee; }
.d-s-list > div:last-child { border-bottom: 0; }
.d-s-list i { grid-row: span 2; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-style: normal; font-size: 13px; }
.d-s-list small { color: #8e8e93; font-size: 10.5px; grid-column: 2; }
.d-s-list em { grid-row: span 2; grid-column: 3; font-style: normal; font-size: 10px; font-weight: 800; color: #ff3b30; background: rgba(255, 59, 48, .12); padding: 3px 8px; border-radius: 99px; }
.c-or { background: #ff9500; } .c-in { background: #5856d6; } .c-gr { background: #34c759; } .c-rd { background: #ff3b30; }
.d-alert b { color: #ff3b30; }
.d-push { display: flex; gap: 10px; align-items: center; background: rgba(255, 255, 255, .95); border-radius: 18px; padding: 10px 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12); margin-bottom: 6px; animation: d-drop .6s ease both; }
.d-push i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-style: normal; flex: none; }
.d-push div { display: grid; } .d-push small { color: #8e8e93; font-size: 10.5px; }
.d-push-night { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: 0 0 40px rgba(255, 157, 92, .25); }
.d-push-night small { color: #a8b0ca; }
@keyframes d-drop { from { transform: translateY(-20px); opacity: 0; } }
.d-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.d-chips span { background: #fff; padding: 6px 10px; border-radius: 99px; font-weight: 600; }
.d-chips .on { background: #ff9500; color: #fff; }
.d-form { background: #fff; border-radius: 14px; overflow: hidden; }
.d-form > div { display: flex; justify-content: space-between; padding: 11px 12px; border-bottom: 1px solid #eee; }
.d-form > div:last-child { border-bottom: 0; } .d-form span { color: #8e8e93; }
.d-btn { margin-top: 12px; background: #ff9500; color: #fff; text-align: center; font-weight: 800; padding: 12px; border-radius: 14px; }
.d-hist { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 12px; padding: 9px 12px; margin-bottom: 6px; }
.d-hist b { background: rgba(255, 149, 0, .14); color: #c26a00; padding: 3px 8px; border-radius: 7px; font-size: 11px; }
.d-chart { background: #fff; border-radius: 16px; padding: 10px; margin-bottom: 10px; }
.d-chart svg { width: 100%; height: 90px; display: block; }
.d-chart polyline { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.d-chart .l1 { stroke: #ff9500; } .d-chart .l2 { stroke: #5856d6; } .d-chart .l3 { stroke: #ff3b30; stroke-dasharray: 4 4; }
.d-window { background: #fff; border-radius: 16px; padding: 14px; margin-top: 10px; display: grid; gap: 2px; }
.d-window small { color: #8e8e93; } .d-window b { font-size: 22px; letter-spacing: -.02em; } .d-window span { color: #ff2d55; font-weight: 700; }
.d-bar { height: 8px; border-radius: 9px; background: #eee; margin-top: 8px; position: relative; overflow: hidden; }
.d-bar i { position: absolute; left: 80%; right: 4%; top: 0; bottom: 0; background: rgba(255, 45, 85, .35); border-radius: 9px; }
.d-sync { display: flex; justify-content: space-around; margin: 18px 0; }
.d-ph { width: 62px; height: 104px; border-radius: 14px; border: 3px solid #1d1d1f; display: grid; place-items: end center; padding-bottom: 8px; font-weight: 700; font-size: 11px; background: #fff; position: relative; }
.d-ph::before { content: ''; position: absolute; top: 18px; left: 10px; right: 10px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, #34c759, #5ac8fa); animation: d-pulse 2s ease-in-out infinite; }
.d-ph:nth-child(2)::before { animation-delay: .3s; } .d-ph:nth-child(3)::before { animation-delay: .6s; }
@keyframes d-pulse { 50% { opacity: .45; } }
.d-ok-big { text-align: center; font-weight: 800; color: #1f8a52; margin-bottom: 4px; }
.d-born { text-align: center; margin: 22px 0 12px; display: grid; }
.d-born b { font-size: 72px; line-height: 1; letter-spacing: -.05em; color: #ff9d5c; }
.d-born span { color: #a8b0ca; }
.d-kits { display: flex; justify-content: center; gap: 8px; margin-bottom: 18px; }
.d-kits span { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffd9b8, #e09a5f); box-shadow: 0 0 18px rgba(255, 157, 92, .45); }
.d-scr-night .d-btn { background: linear-gradient(100deg, #ff9d5c, #ff5f7e); }

/* Morning after */
.d-after { text-align: center; padding: clamp(80px, 12vw, 160px) 16px; background: linear-gradient(180deg, var(--d-night) 0%, #3b2a3a 30%, #ffcfa3 75%, var(--l-bg) 100%); }
.d-after .d-time { color: #fff !important; }
.d-after h2 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.08; max-width: 18ch; margin: 0 auto 18px; letter-spacing: -.04em; }
.d-after p { color: #f6e6d8; max-width: 46ch; margin: 0 auto; font-size: 1.1rem; }
.d-after-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

@media (prefers-reduced-motion: reduce) {
  .d-lock-clock i, .d-lpush, .d-ph::before, .d-push { animation: none; }
  .d-moment, .d-scr, .d-day { transition: none; }
}

/* Phones: the phone sits on top, moments scroll under it */
@media (max-width: 1080px) {
  .d-day { grid-template-columns: minmax(0, 1fr) 360px; }
  .d-rail { display: none; }
}
@media (max-width: 860px) {
  .d-day { grid-template-columns: 1fr; padding: 0 16px; }
  .d-stage { order: -1; position: sticky; top: 64px; height: auto; padding: 14px 0 8px; z-index: 2; background: inherit; margin: 0 -16px; }
  .d-phone { width: 190px; height: 392px; border-radius: 34px; padding: 8px; }
  .d-screens { border-radius: 27px; }
  .d-notch { top: 14px; width: 62px; height: 18px; margin-left: -31px; }
  .d-scr { transform-origin: top left; width: 158%; height: 158%; transform: scale(.633); }
  .d-scr.is-on { transform: scale(.633); }
  .d-moment { min-height: 100svh; justify-content: flex-end; padding-bottom: 14svh; }
  .d-time { font-size: 3.2rem; margin-bottom: 10px; }
}

/* Showcase: records become a kitten card */
.d-show { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.d-show-list { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 14px; }
.d-show-list li { display: grid; gap: 2px; padding-left: 30px; position: relative; }
.d-show-list li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: #e6f6ed; color: #2fb36e; font-weight: 900; font-size: .72rem; display: grid; place-items: center; }
.d-show-list b { font-size: 1rem; } .d-show-list span { font-size: .92rem; color: var(--l-muted); }
.d-show-card { justify-self: center; width: min(360px, 100%); background: #fff; border-radius: 28px; overflow: hidden; color: inherit;
  box-shadow: 0 2px 4px rgba(60, 40, 20, .05), 0 30px 70px rgba(60, 40, 20, .16); transform: rotate(-2deg); transition: transform .3s; }
.d-show-card:hover { transform: rotate(0) translateY(-4px); }
.d-show-photo { position: relative; aspect-ratio: 4 / 3.3; }
.d-show-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.d-show-status { position: absolute; top: 14px; left: 14px; background: #fff; color: #2fb36e; font-weight: 800; font-size: .78rem; padding: 6px 11px; border-radius: 99px; }
.d-show-strip { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 6px; }
.d-show-strip img { width: 42px; height: 42px; border-radius: 11px; border: 2px solid #fff; object-fit: cover; }
.d-show-body { padding: 18px 20px 20px; display: grid; gap: 8px; }
.d-show-top { display: flex; justify-content: space-between; align-items: baseline; }
.d-show-top b { font-size: 1.35rem; letter-spacing: -.02em; } .d-show-top span { color: var(--l-muted); font-weight: 600; font-size: .88rem; }
.d-show-body p { font-size: .92rem; }
.d-show-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.d-show-tags span { font-size: .74rem; font-weight: 800; padding: 4px 9px; border-radius: 8px; background: #e9f7ef; color: #1f8a52; }
.d-show-tags span:last-child { background: #f4efe8; color: var(--l-muted); }
.d-show-chart { width: 100%; height: 56px; margin: 4px 0; }
.d-show-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--l-line); padding-top: 12px; }
.d-show-foot span { display: grid; font-size: .82rem; color: var(--l-muted); font-weight: 600; } .d-show-foot b { color: var(--l-ink); font-size: .92rem; }
.d-show-foot i { font-style: normal; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9rem;
  background: radial-gradient(closest-side, #fff 76%, transparent 78%), conic-gradient(#f4b740 94%, #f0e8dd 0); }
@media (max-width: 900px) { .d-show { grid-template-columns: 1fr; } .d-show-card { transform: none; } }
