/* ============================================================
   yourtime — landing page
   ============================================================ */

/* landing page — hero styles below; avoid overflow-x on body (breaks sticky scrub) */

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ============================================================
   hero — light "garden" theme above the fold
   ============================================================ */

.hero {
  --g-ink: #1c2418;
  --g-dim: rgba(28, 36, 24, 0.62);
  --g-faint: rgba(28, 36, 24, 0.38);
  --g-green: #4a7c3a;
  --g-green-deep: #2e5424;
  --g-pill: #b6e04c;
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--g-ink);
  background: #f3f1ea url("../assets/hero-garden-bg.jpg") center bottom / cover no-repeat;
  overflow: hidden;
}
.hero ::selection { background: rgba(182, 224, 76, 0.6); color: #1c2418; }

/* soften the top-left foliage so the logo reads clearly */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(520px, 55vw);
  height: 220px;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 95% 90% at 8% 18%, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.72) 38%, rgba(255, 255, 255, 0.28) 62%, transparent 78%);
}

/* foreground foliage: same image re-drawn on top of the phone, masked
   to the bottom strip so the bushes overlap the phone bottom */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: url("../assets/hero-garden-bg.jpg") center bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent 72%, rgba(0, 0, 0, 0.7) 86%, #000 96%);
  mask-image: linear-gradient(to bottom, transparent 72%, rgba(0, 0, 0, 0.7) 86%, #000 96%);
  pointer-events: none;
}

/* --- nav (lives inside the light hero) --- */

.nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 34px;
}
.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.brand-mark {
  display: block;
  height: 34px;
  width: auto;
  object-fit: contain;
  flex: none;
}
.brand-word {
  font-family: "Archivo", sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--g-ink);
  line-height: 1;
}
.brand-tld { color: var(--g-green); }
@media (max-width: 720px) {
  .brand-mark { height: 28px; }
  .brand-word { font-size: 16px; }
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--g-dim);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--g-ink); }
.nav-links a .idx { color: var(--g-faint); margin-right: 6px; }
.nav-cta {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--g-green-deep);
  background: linear-gradient(180deg, #c8e970, #a8d63e);
  border: 1px solid rgba(46, 84, 36, 0.25);
  border-radius: 999px;
  padding: 12px 22px;
  box-shadow: 0 10px 24px rgba(74, 124, 58, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(74, 124, 58, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
@media (max-width: 940px) {
  .nav-links a .idx { display: none; }
  .nav-links { gap: 16px; }
}
@media (max-width: 720px) {
  .nav { padding: 18px 20px; }
  .nav-links { display: none; }
}

/* --- hero layout --- */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 30px;
  align-items: center;
  position: relative;
  /* no z-index here: the phone and floating cards must be able to layer
     on either side of the .hero::after foliage overlay */
  flex: 1;
  padding-top: 26px;
  padding-bottom: 40px;
  width: 100%;
}
.hero-copy { position: relative; z-index: 2; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
}

.kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  color: var(--g-dim);
  border: 1px solid rgba(28, 36, 24, 0.14);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 30px;
  box-shadow: 0 4px 14px rgba(28, 36, 24, 0.06);
}
.kicker-pill i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--g-green);
  box-shadow: 0 0 0 3px rgba(74, 124, 58, 0.18);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 5.6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--g-ink);
  margin-bottom: 26px;
}
.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--g-green);
}
.hero p.sub {
  font-family: "Archivo", sans-serif;
  font-weight: 300;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--g-dim);
  max-width: 42ch;
  margin-bottom: 34px;
}

/* quick-scan points with icons + hairline dividers */
.hero-points {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0 0 30px;
  max-width: 560px;
}
.hero-points li {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: "Archivo", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.35;
  color: var(--g-dim);
  padding: 2px 14px;
  border-left: 1px solid rgba(28, 36, 24, 0.14);
}
.hero-points li:first-child { padding-left: 0; border-left: none; }
.hero-points li svg { width: 20px; height: 20px; color: var(--g-ink); opacity: 0.8; }

.hero-statement {
  font-family: "Archivo", sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.6;
  color: var(--g-dim);
  margin-bottom: 30px;
}
.hero-statement em { font-style: italic; color: var(--g-green); }

.hero-cta-row { display: flex; align-items: center; gap: 20px; }
.beta-note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--g-faint);
}

/* CTA — green pill in hero, dark-theme fallback elsewhere */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--hairline-strong);
  padding: 16px 26px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s;
}
.cta:hover { background: var(--ink); color: #000; }
.cta.solid { background: var(--ink); color: #000; }
.cta.solid:hover { background: transparent; color: var(--ink); }
.cta.hero-cta {
  color: var(--g-green-deep);
  background: linear-gradient(180deg, #c8e970, #a8d63e);
  border: 1px solid rgba(46, 84, 36, 0.25);
  border-radius: 999px;
  padding: 17px 34px;
  box-shadow: 0 14px 30px rgba(74, 124, 58, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta.hero-cta:hover {
  background: linear-gradient(180deg, #d2ef82, #b2df49);
  color: var(--g-green-deep);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(74, 124, 58, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

/* ============================================================
   3D phone mock + floating glass cards
   ============================================================ */

.hero-visual {
  position: relative;
  justify-self: center;
  padding: 10px 40px 0 10px;
  margin-bottom: -74px; /* phone dips into the foliage strip */
}
@media (max-width: 960px) { .hero-visual { padding-right: 10px; margin-bottom: 0; } }

.phone3d {
  position: relative;
  z-index: 1; /* behind the .hero::after foliage overlay */
  width: min(320px, 78vw);
  aspect-ratio: 320 / 650;
  border-radius: 48px;
  background: linear-gradient(215deg, #3d4238, #14170f 55%, #2c3126);
  padding: 11px;
  transform: perspective(1500px) rotateY(-8deg) rotateX(4deg) rotateZ(3.5deg);
  transform-style: preserve-3d;
  box-shadow:
    7px 7px 0 -1px rgba(12, 15, 9, 0.9),
    14px 14px 1px -2px rgba(12, 15, 9, 0.55),
    36px 60px 80px rgba(28, 36, 24, 0.38),
    70px 110px 140px rgba(28, 36, 24, 0.22);
}
.phone3d::before {
  /* screen glass reflection — light from the top-left */
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 38px;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0.04) 20%, transparent 42%);
  pointer-events: none;
  z-index: 3;
}
.phone3d::after {
  /* notch */
  content: "";
  position: absolute;
  top: 20px; left: 50%;
  width: 88px; height: 21px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #14170f;
  z-index: 4;
}

.phone-screen {
  position: absolute;
  inset: 11px;
  border-radius: 38px;
  background: #fbfaf6;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: "Archivo", sans-serif;
  color: #26301f;
}
.ph-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 50px 16px 10px;
}
.ph-month { font-size: 13px; font-weight: 400; }
.ph-month i { font-style: normal; color: rgba(38, 48, 31, 0.45); font-size: 11px; }
.ph-icons { display: inline-flex; align-items: center; gap: 9px; color: rgba(38, 48, 31, 0.6); }
.ph-icons svg { width: 13px; height: 13px; }
.ph-wk {
  font-size: 8.5px;
  font-weight: 600;
  background: #26301f;
  color: #fbfaf6;
  border-radius: 5px;
  padding: 3px 5px;
}
.ph-days {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 4px 10px 8px 34px;
  border-bottom: 1px solid rgba(38, 48, 31, 0.09);
}
.ph-days span {
  text-align: center;
  font-size: 10px;
  color: #26301f;
  display: grid;
  gap: 2px;
}
.ph-days span b {
  font-size: 6.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(38, 48, 31, 0.45);
}
.ph-grid {
  position: relative;
  flex: 1;
  background:
    linear-gradient(90deg, rgba(38, 48, 31, 0.05) 1px, transparent 1px) 34px 0 / calc((100% - 34px) / 5) 100% no-repeat padding-box,
    repeating-linear-gradient(to bottom, rgba(38, 48, 31, 0.07) 0 1px, transparent 1px 20%);
}
.ph-h {
  position: absolute;
  left: 7px;
  font-size: 6.8px;
  color: rgba(38, 48, 31, 0.45);
}
.ph-e {
  position: absolute;
  border-radius: 7px;
  padding: 5px 7px;
  font-size: 8px;
  font-weight: 500;
  line-height: 1.25;
  overflow: hidden;
  border: 1px solid;
  border-left-width: 3px;
  box-shadow: 0 2px 6px rgba(38, 48, 31, 0.08);
}
.ph-e b { display: block; font-weight: 400; font-size: 7px; opacity: 0.65; margin-top: 1px; }
.ph-e.green  { background: #ddefd2; border-color: #8cbf74; color: #2e5424; }
.ph-e.blue   { background: #d9e8f7; border-color: #7fa8d4; color: #274a70; }
.ph-e.pink   { background: #f7dde5; border-color: #d78ba1; color: #7c2e46; }
.ph-e.orange { background: #fbe9cd; border-color: #dfae62; color: #7a531a; }
.ph-e.purple { background: #e6def5; border-color: #a58ed3; color: #46307c; }

/* --- floating glass cards over the phone --- */

.float-card {
  position: absolute;
  z-index: 6;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  box-shadow:
    0 24px 50px rgba(28, 36, 24, 0.22),
    0 6px 16px rgba(28, 36, 24, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-family: "Archivo", sans-serif;
  color: #26301f;
}

.float-log {
  /* higher + left of phone, slight clockwise tilt matching ref */
  --fl-x: -54%;
  --fl-nudge: translate(30px, -15px);
  --fl-tilt: perspective(1400px) rotateY(-8deg) rotateX(4deg) rotateZ(3.5deg);
  left: 22%;
  bottom: 128px;
  min-width: 286px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 24px 14px 17px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    0 28px 56px rgba(18, 28, 14, 0.2),
    0 12px 28px rgba(18, 28, 14, 0.12),
    0 3px 10px rgba(18, 28, 14, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateX(var(--fl-x)) var(--fl-nudge) var(--fl-tilt) scale(1.15);
  transform-origin: center center;
  animation: floatLog 6s 1.2s ease-in-out infinite;
}
.float-log .fl-icon {
  width: 19px;
  height: 19px;
  color: rgba(72, 88, 62, 0.72);
  flex: none;
}
.fl-txt {
  display: grid;
  gap: 2px;
  font-size: 11px;
  line-height: 1.25;
  color: rgba(38, 48, 31, 0.52);
  white-space: nowrap;
}
.fl-txt b {
  font-size: 13px;
  font-weight: 500;
  color: #26301f;
  letter-spacing: -0.01em;
}
.fl-sub { font-size: 11px; color: rgba(38, 48, 31, 0.48); }
.float-log .fl-dot { margin-left: auto; }
.fl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6cc24a;
  box-shadow: 0 0 0 0 rgba(108, 194, 74, 0.45);
  animation: logPulse 2s infinite;
  flex: none;
}
@keyframes logPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(108, 194, 74, 0.45); }
  50% { box-shadow: 0 0 0 7px rgba(108, 194, 74, 0); }
}
@keyframes floatLog {
  0%, 100% { transform: translateX(var(--fl-x)) var(--fl-nudge) var(--fl-tilt) scale(1.15) translateY(0); }
  50% { transform: translateX(var(--fl-x)) var(--fl-nudge) var(--fl-tilt) scale(1.15) translateY(-8px); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@media (prefers-reduced-motion: reduce) {
  .float-log { animation: none; }
}
@media (max-width: 960px) {
  .float-log {
    --fl-x: -50%;
    --fl-tilt: perspective(1000px) rotateY(-6deg) rotateX(3deg) rotateZ(2.5deg);
    left: 30%;
    bottom: 36px;
    min-width: 0;
    max-width: calc(100% - 16px);
    padding: 12px 20px 12px 15px;
  }
}

/* --- works-with strip --- */

.works-bar {
  position: relative;
  z-index: 4; /* above the foliage overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 34px;
  margin: 0 auto 34px;
  padding: 15px 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 34px rgba(28, 36, 24, 0.12);
  width: fit-content;
  max-width: calc(100% - 40px);
}
.wb-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--g-faint);
}
.wb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Archivo", sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--g-ink);
}
.wb-item svg { width: 15px; height: 15px; }
.wb-soon { color: var(--g-dim); font-weight: 400; }
.wb-soon em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--g-green);
  border: 1px solid rgba(74, 124, 58, 0.35);
  border-radius: 999px;
  padding: 3px 9px;
  margin-left: 4px;
}
@media (max-width: 720px) {
  .works-bar { gap: 10px 18px; padding: 13px 20px; border-radius: 24px; }
}

/* ---------------- feature sections ---------------- */

.features { border-top: 1px solid var(--hairline); }
.feature {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(300px, 430px);
  align-items: center;
  gap: 44px;
  padding: 84px 0;
  border-bottom: 1px solid var(--hairline);
}
@media (max-width: 1100px) {
  .feature { grid-template-columns: 1fr; gap: 26px; padding: 64px 0; }
  .feature .viz { justify-self: start; }
}
@media (max-width: 720px) {
  .feature { gap: 22px; padding: 56px 0; }
}
.feature .ref { font-size: 10px; letter-spacing: 0.2em; color: var(--ink-faint); }
.feature h2 {
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  margin-bottom: 22px;
}
.feature p {
  font-family: "Archivo", sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-dim);
  max-width: 62ch;
}

/* inline keyboard key */
.key {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1;
  padding: 4px 9px 5px;
  border: 1px solid var(--hairline-strong);
  border-radius: 6px;
  color: var(--ink);
  background: var(--bg-panel);
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.08);
  vertical-align: baseline;
}

/* coming-soon chip */
.soon {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--life-a);
  border: 1px solid rgba(151, 118, 29, 0.45);
  border-radius: 999px;
  padding: 5px 12px;
  margin-left: 6px;
  white-space: nowrap;
}

/* ============================================================
   feature visuals — small looping product animations.
   JS re-adds .run every loop; elements sequence themselves
   with plain animation-delays (--d) and `both` fill.
   ============================================================ */

.viz {
  position: relative;
  width: 100%;
  max-width: 430px;
  aspect-ratio: 5 / 4;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: linear-gradient(180deg, #0c0c0c, #060606);
  overflow: hidden;
  font-family: var(--mono);
  justify-self: end;
}
.viz.run { animation: vizEnd var(--loop, 9s) linear both; }
@keyframes vizEnd { 0%, 96% { opacity: 1; } 100% { opacity: 0; } }

.vz-label {
  position: absolute;
  top: 12px; left: 14px;
  font-size: 8.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* shared entrance moves */
@keyframes vzPop { from { opacity: 0; transform: scaleY(0.25); } 60% { opacity: 1; transform: scaleY(1.05); } to { opacity: 1; transform: scaleY(1); } }
@keyframes vzUp { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@keyframes vzIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes vzOut { from { opacity: 1; } to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .viz.run, .viz.run * { animation-duration: 0.01s !important; animation-delay: 0s !important; }
}

/* ---------- 001 auto-log: device activity → calendar blocks ---------- */

.viz-autolog { display: flex; }
.al-sources {
  flex: 1;
  padding: 36px 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.al-s {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 9.5px;
  color: var(--ink-dim);
  white-space: nowrap;
}
.al-s b { margin-left: auto; font-weight: 400; color: var(--ink-faint); }
.al-s .dev {
  font-style: normal;
  font-size: 7.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 2px 4px;
  color: var(--ink-faint);
}
.viz.run .al-s { animation: srcGlow 1.8s var(--d) both; }
@keyframes srcGlow {
  0% { border-color: var(--hairline); }
  25% { border-color: rgba(122, 134, 208, 0.9); color: var(--ink); box-shadow: 0 0 18px rgba(72, 84, 158, 0.35); }
  100% { border-color: var(--hairline); color: var(--ink-dim); box-shadow: none; }
}

.al-day {
  width: 52%;
  position: relative;
  border-left: 1px solid var(--hairline);
}
.al-day::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 25%);
  background-position: 0 11%;
}
.al-h { position: absolute; left: 8px; font-size: 7.5px; color: var(--ink-faint); }
.al-b {
  position: absolute;
  left: 17%; right: 7%;
  border: 1px dashed;
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 9px;
  line-height: 1.2;
  color: var(--ink);
  opacity: 0;
  transform-origin: top;
  overflow: hidden;
}
.al-b b { display: block; font-weight: 400; font-size: 8px; color: var(--ink-dim); margin-top: 2px; }
.al-b.work { background: rgba(72, 84, 158, 0.3); border-color: rgba(122, 134, 208, 0.75); }
.al-b.life { background: rgba(163, 128, 31, 0.28); border-color: rgba(212, 175, 76, 0.7); }
.al-b.health { background: rgba(63, 138, 99, 0.28); border-color: rgba(112, 190, 148, 0.7); }
.viz.run .al-b { animation: vzPop 0.5s var(--d) both; }

/* ---------- 002 transcripts: meeting writes its own notes ---------- */

.tr-card {
  position: absolute;
  inset: 18px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(122, 134, 208, 0.4);
  border-radius: 10px;
  background: rgba(72, 84, 158, 0.1);
}
.tr-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--hairline);
  font-size: 10.5px;
}
.tr-head b { font-weight: 700; }
.tr-head .tr-time { margin-left: auto; font-size: 8.5px; color: var(--ink-faint); }
.tr-rec {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #d0483e;
  animation: recPulse 1.6s infinite;
}
@keyframes recPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(208, 72, 62, 0.5); } 50% { box-shadow: 0 0 0 5px rgba(208, 72, 62, 0); } }

.tr-body {
  flex: 1;
  padding: 14px 13px 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.tr-l {
  display: flex;
  gap: 9px;
  font-family: "Archivo", sans-serif;
  font-weight: 300;
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink-dim);
  opacity: 0;
}
.tr-l b {
  flex: none;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 2px;
  width: 38px;
}
.tr-l.tr-action {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--life-a);
  border: 1px solid rgba(151, 118, 29, 0.45);
  border-radius: 7px;
  padding: 8px 10px;
}
.tr-foot {
  padding: 10px 13px;
  border-top: 1px solid var(--hairline);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  opacity: 0;
}
.viz.run .tr-l, .viz.run .tr-foot { animation: vzUp 0.5s var(--d) both; }

/* ---------- 003 availability: press A, drag, message drafts itself ---------- */

.av-key {
  position: absolute;
  top: 12px; right: 14px;
  z-index: 2;
  font-size: 12px;
  padding: 5px 10px 6px;
  border: 1px solid var(--hairline-strong);
  border-radius: 6px;
  background: var(--bg-panel);
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.08);
}
.viz.run .av-key { animation: keyPress 1.1s 0.3s both; }
@keyframes keyPress {
  0%, 100% { transform: none; background: var(--bg-panel); color: var(--ink); box-shadow: 0 2px 0 rgba(255, 255, 255, 0.08); }
  35%, 55% { transform: translateY(2px); background: var(--ink); color: #000; box-shadow: none; }
}

.av-grid {
  position: absolute;
  inset: 38px 16px 84px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background-image:
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px),
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 20%);
  background-size: 20% 100%, 100% 100%;
}
.av-days { display: flex; }
.av-days span {
  flex: 1;
  text-align: center;
  padding: 6px 0;
  font-size: 7.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.av-b {
  position: absolute;
  width: 15%;
  border: 1px solid rgba(64, 200, 180, 0.85);
  border-radius: 5px;
  background: rgba(64, 200, 180, 0.22);
  opacity: 0;
  transform-origin: top;
}
.av-b1 { left: 22.5%; top: 30%; height: 42%; }
.av-b2 { left: 62.5%; top: 22%; height: 42%; }
.viz.run .av-b1 { animation: vzPop 1s 1.6s both; }
.viz.run .av-b2 { animation: vzPop 1s 3.6s both; }

.av-cursor {
  position: absolute;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.55);
  opacity: 0;
}
.viz.run .av-cursor { animation: avCursor 4s 1.2s both; }
@keyframes avCursor {
  0% { opacity: 0; left: 28%; top: 26%; }
  8%, 10% { opacity: 1; left: 28%; top: 26%; }
  35% { left: 30%; top: 70%; }
  45% { opacity: 1; left: 30%; top: 70%; }
  55%, 60% { opacity: 1; left: 68%; top: 20%; }
  85% { opacity: 1; left: 69%; top: 62%; }
  95%, 100% { opacity: 0; left: 69%; top: 62%; }
}

.av-msg {
  position: absolute;
  left: 16px; right: 16px; bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--hairline);
  border-radius: 9px;
  padding: 10px 12px;
  background: #0d0d0d;
  font-size: 9px;
  opacity: 0;
}
.viz.run .av-msg { animation: vzUp 0.55s 5.6s both; }
.av-msg p { flex: 1; color: var(--ink-dim); line-height: 1.5; }
.av-link { display: block; color: var(--life-a); }
.av-copy {
  position: relative;
  flex: none;
  border: 1px solid var(--hairline-strong);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.av-copy .c2 {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(64, 200, 180);
  opacity: 0;
}
.viz.run .av-copy .c1 { animation: vzOut 0.25s 7.4s both; }
.viz.run .av-copy .c2 { animation: vzIn 0.25s 7.4s both; }

/* ---------- 004 todos: drag a task onto the grid ---------- */

.td-list {
  position: absolute;
  left: 16px; top: 16px; bottom: 16px;
  width: 43%;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 36px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.td-list .vz-label { top: 13px; left: 12px; }
.td-i {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 9px 9px;
  font-size: 9px;
  color: var(--ink-dim);
  white-space: nowrap;
  overflow: hidden;
}
.td-i i {
  flex: none;
  width: 9px; height: 9px;
  border: 1px solid var(--hairline-strong);
  border-radius: 3px;
}
.viz.run .td-i1 { animation: tdDone 0.4s 2.3s both; }
@keyframes tdDone {
  to { color: var(--ink-faint); text-decoration: line-through; border-color: var(--hairline); }
}
.viz.run .td-i1 i { animation: tdTick 0.4s 2.3s both; }
@keyframes tdTick { to { background: rgba(122, 134, 208, 0.8); border-color: rgba(122, 134, 208, 0.8); } }

.td-cal {
  position: absolute;
  right: 16px; top: 16px; bottom: 16px;
  left: calc(43% + 28px);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  overflow: hidden;
}
.td-cal::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 20%);
  background-position: 0 30px;
}
.td-cal .vz-label { top: 13px; left: 12px; }
.td-static, .td-block {
  position: absolute;
  left: 8%; right: 8%;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 9px;
  line-height: 1.2;
}
.td-static, .td-block { border: 1px solid rgba(122, 134, 208, 0.75); background: rgba(72, 84, 158, 0.3); }
.td-static { top: 15%; height: 15%; }
.td-static b, .td-block b { display: block; font-weight: 400; font-size: 8px; color: var(--ink-dim); margin-top: 2px; }
.td-block { top: 46%; height: 22%; opacity: 0; transform-origin: top; }
.viz.run .td-block { animation: vzPop 0.45s var(--d) both; }

.td-ghost {
  position: absolute;
  left: 26px; top: 56px;
  width: 38%;
  border: 1px solid rgba(122, 134, 208, 0.9);
  border-radius: 8px;
  background: rgba(72, 84, 158, 0.45);
  padding: 9px 9px;
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.6);
  opacity: 0;
}
.viz.run .td-ghost { animation: tdFly 1.4s 0.9s both; }
@keyframes tdFly {
  0% { opacity: 0; transform: none; }
  15% { opacity: 1; transform: translate(6px, 2px) rotate(1deg); }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate(215px, 108px) rotate(2deg); }
}

/* ---------------- time intelligence ---------------- */

.ti-head {
  text-align: center;
  padding: 110px 0 70px;
}
.ti-head h2 {
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(34px, 5vw, 60px);
}
.ti-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  margin-bottom: 120px;
}
@media (max-width: 980px) { .ti-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ti-grid { grid-template-columns: 1fr; } }
.ti-cell {
  background: var(--bg);
  padding: 36px 28px 44px;
  position: relative;
  overflow: hidden;
}
.ti-cell::after {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--grain);
  background-size: 240px 240px;
  opacity: 0.1;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.ti-cell .step {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 46px;
}
.ti-cell h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 25px;
  line-height: 1.18;
  margin-bottom: 18px;
}
.ti-cell p {
  font-family: "Archivo", sans-serif;
  font-weight: 300;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-dim);
}
.ti-cell .accent { position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.ti-cell:nth-child(1) .accent { background: linear-gradient(90deg, var(--life-a), transparent); }
.ti-cell:nth-child(2) .accent { background: linear-gradient(90deg, var(--work-a), transparent); }
.ti-cell:nth-child(3) .accent { background: linear-gradient(90deg, var(--health-a), transparent); }
.ti-cell:nth-child(4) .accent { background: linear-gradient(90deg, var(--sleep-a), transparent); }

/* ---------------- closing ---------------- */

.closing {
  text-align: center;
  padding: 140px 0 120px;
  border-top: 1px solid var(--hairline);
  position: relative;
  background: radial-gradient(55% 60% at 50% 100%, rgba(163, 128, 31, 0.12), transparent 75%);
}
.closing h2 {
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(38px, 6vw, 78px);
  line-height: 1.08;
  margin-bottom: 48px;
}
.closing .tag { display: block; margin-bottom: 22px; }

/* ---------------- footer ---------------- */

footer {
  border-top: 1px solid var(--hairline);
  padding: 30px 0 60px;
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.foot-row a:hover { color: var(--ink); }
