/* ============================================================
   TimeMole — timemole.com
   One stylesheet, no build step, no external fonts.
   The page is a cross-section of earth: it starts in the sky
   and descends into the burrow. Section order matters.
   ============================================================ */

:root {
  /* palette — taken from the app icon, nowhere else */
  --sky:        #FBF3DD;
  --sky-deep:   #F4E8C8;
  --pine:       #0B5B51;
  --ink:        #17342E;
  --ink-soft:   #4A5F58;
  --grass:      #3FAE63;
  --grass-deep: #2C8A4B;
  --soil:       #3C2C25;
  --soil-deep:  #2A1D16;
  --soil-line:  #4E3A30;
  --nose:       #F27A9E;
  --paw:        #E8B99C;
  --cream-text: #F5E9DC;
  --cream-dim:  #C9B4A4;

  /* type */
  --display: "Futura", "Avenir Next", "Century Gothic", "Trebuchet MS", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius: 14px;
  --max: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sky);
  overflow-x: clip;
}

img { max-width: 100%; display: block; }

a { color: var(--pine); text-underline-offset: 3px; }
a:hover { color: var(--grass-deep); }

:focus-visible {
  outline: 3px solid var(--grass);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- type roles ---------- */

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 700;
  color: var(--pine);
  line-height: 1.04;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; line-height: 1.3; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grass-deep);
  display: block;
  margin-bottom: 14px;
}

.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 34em; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 28px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease, color 120ms ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--grass-deep); color: var(--sky); }
.btn-primary:hover { background: var(--pine); color: var(--sky); }

.btn-quiet { border-color: var(--pine); color: var(--pine); background: transparent; }
.btn-quiet:hover { background: rgba(11, 91, 81, 0.08); color: var(--pine); }

/* on dark soil */
.btn-lantern { background: var(--paw); color: var(--soil-deep); }
.btn-lantern:hover { background: var(--sky); color: var(--soil-deep); }
.btn-quiet-dark { border-color: var(--paw); color: var(--paw); background: transparent; }
.btn-quiet-dark:hover { background: rgba(232, 185, 156, 0.12); color: var(--cream-text); }

/* ---------- header ---------- */

.site-header { padding: 22px 0; }
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--pine);
}
.logo img { width: 34px; height: 34px; }

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}
.site-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav .btn { padding: 10px 20px; font-size: 0.9rem; }

@media (max-width: 640px) {
  .site-nav a:not(.btn) { display: none; }
}
@media (max-width: 480px) {
  .site-header .wrap { gap: 12px; }
  .logo { font-size: 1.1rem; }
  .logo img { width: 28px; height: 28px; }
  .site-nav .btn { padding: 9px 14px; font-size: 0.85rem; }
}

/* ---------- hero (sky) ---------- */

.hero { padding: 56px 0 96px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 72px; }
}

.hero h1 { margin: 0 0 22px; }
.hero .lede { margin-bottom: 32px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }

.hero-trust {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.hero-trust span + span::before { content: "·"; margin-right: 10px; color: var(--grass); }

/* the day card the mole peeks over */
.day-card-holder { position: relative; padding-top: 74px; }

.day-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 2px solid var(--pine);
  border-radius: var(--radius);
  box-shadow: 0 14px 0 -6px var(--sky-deep), 0 16px 40px rgba(60, 44, 37, 0.18);
  padding: 22px 22px 18px;
}

/* peeks from BEHIND the card's top edge, rising out of it on load */
.mole-peek {
  position: absolute;
  top: -8px;
  right: 42px;
  width: 148px;
  z-index: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .mole-peek {
    animation: peek 900ms cubic-bezier(0.22, 1.2, 0.36, 1) 400ms backwards;
  }
  @keyframes peek {
    from { transform: translateY(88px); }
    to   { transform: translateY(0); }
  }
}

.day-card-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.day-card-title strong { color: var(--pine); font-size: 0.85rem; }

.day-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 58px;
  gap: 12px;
  align-items: center;
  padding: 7px 0;
  font-size: 0.88rem;
}
.day-row time, .day-row .dur {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
}
.day-row .dur { text-align: right; }

.day-seg {
  border-radius: 6px;
  padding: 4px 10px;
  color: var(--sky);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.seg-a { background: var(--pine); width: 96%; }
.seg-b { background: var(--grass-deep); width: 78%; }
.seg-c { background: var(--paw); color: var(--soil); width: 55%; }
.seg-d { background: var(--grass); width: 88%; }
.seg-e { background: var(--soil); width: 66%; }

@media (prefers-reduced-motion: no-preference) {
  .day-seg {
    transform-origin: left center;
    animation: grow 500ms ease-out backwards;
  }
  .day-row:nth-child(2) .day-seg { animation-delay: 150ms; }
  .day-row:nth-child(3) .day-seg { animation-delay: 250ms; }
  .day-row:nth-child(4) .day-seg { animation-delay: 350ms; }
  .day-row:nth-child(5) .day-seg { animation-delay: 450ms; }
  .day-row:nth-child(6) .day-seg { animation-delay: 550ms; }
  @keyframes grow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }
}

.day-card-foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1.5px dashed var(--sky-deep);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.day-card-foot .sum { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-soft); }
.day-card-foot .chip {
  background: var(--sky);
  border: 1.5px solid var(--grass-deep);
  color: var(--grass-deep);
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
}

/* ---------- grass horizon ---------- */

.horizon { display: block; width: 100%; height: auto; margin-bottom: -1px; }

/* ---------- how it works (topsoil) ---------- */

.steps-band { background: var(--grass-deep); padding: 72px 0 84px; }
.steps-band h2 { color: var(--sky); margin-bottom: 8px; }
.steps-band .band-lede { color: rgba(251, 243, 221, 0.85); max-width: 36em; margin-bottom: 48px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  list-style: none;
  counter-reset: step;
}
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

.steps li {
  counter-increment: step;
  background: var(--sky);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  position: relative;
}
.steps li::before {
  content: counter(step);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--sky);
  background: var(--pine);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- underground (the privacy firewall) ---------- */

.underground {
  background: var(--soil-deep);
  color: var(--cream-text);
  padding: 88px 0 96px;
  position: relative;
}
.underground h2 { color: var(--paw); }
.underground .band-lede {
  color: var(--cream-dim);
  max-width: 36em;
  margin: 8px 0 56px;
  font-size: 1.15rem;
}

.firewall {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 880px) { .firewall { grid-template-columns: 1fr; } }

.burrow-facts { list-style: none; display: grid; gap: 22px; }
.burrow-facts li { padding-left: 34px; position: relative; }
.burrow-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--grass);
}
.burrow-facts li.stays::before { background: var(--nose); }
.burrow-facts strong { color: var(--sky); display: block; font-family: var(--display); font-weight: 600; }
.burrow-facts p { color: var(--cream-dim); font-size: 0.95rem; }

.tunnel-diagram { width: 100%; height: auto; }

.firewall-legend {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--cream-dim);
  margin-top: 14px;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.firewall-legend i {
  font-style: normal;
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-right: 7px;
}
.legend-stays i { background: var(--nose); }
.legend-leaves i { background: var(--grass); }

/* ---------- pricing (lanterns in the burrow) ---------- */

.pricing-band {
  background: var(--soil);
  padding: 84px 0 96px;
  border-top: 3px dashed var(--soil-line);
}
.pricing-band h2 { color: var(--sky); }
.pricing-band .band-lede { color: var(--cream-dim); margin: 8px 0 20px; max-width: 36em; }

.billing-toggle {
  display: inline-flex;
  border: 2px solid var(--soil-line);
  border-radius: 999px;
  margin-bottom: 44px;
  background: var(--soil-deep);
}
.billing-toggle button {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 9px 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--cream-dim);
  cursor: pointer;
}
.billing-toggle button[aria-pressed="true"] {
  background: var(--paw);
  color: var(--soil-deep);
}

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 880px) { .tiers { grid-template-columns: 1fr; max-width: 460px; } }

.tier {
  background: var(--sky);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}
.tier-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--pine);
}
.tier-for { font-size: 0.88rem; color: var(--ink-soft); margin: 4px 0 20px; }

.tier-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.tier-price .amount {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.tier-price .per { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-soft); }
.tier-note { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-soft); min-height: 2.2em; margin-bottom: 18px; }

.tier ul { list-style: none; display: grid; gap: 10px; margin-bottom: 28px; font-size: 0.92rem; }
.tier ul li { padding-left: 26px; position: relative; }
.tier ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--grass);
}
.tier ul li.muted { color: var(--ink-soft); }
.tier ul li.muted::before { background: var(--paw); }

.tier .btn { margin-top: auto; text-align: center; }

.tier-featured { outline: 3px solid var(--grass); outline-offset: 3px; position: relative; }
.tier-flag {
  position: absolute;
  top: -14px;
  right: 20px;
  background: var(--grass);
  color: var(--sky);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 12px;
}

.pricing-smallprint {
  margin-top: 36px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--cream-dim);
  max-width: 52em;
}
.pricing-smallprint a { color: var(--paw); }

/* ---------- pricing page extras ---------- */

.page-hero { padding: 40px 0 72px; }
.page-hero h1 { margin-bottom: 18px; }

.compare-section { padding: 76px 0; background: var(--sky); }
.compare-scroll { overflow-x: auto; }
.compare {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.compare th, .compare td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1.5px solid var(--sky-deep);
}
.compare thead th {
  font-family: var(--display);
  color: var(--pine);
  font-size: 1rem;
  border-bottom: 2.5px solid var(--pine);
}
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.compare .yes { color: var(--grass-deep); font-weight: 700; }
.compare .no { color: var(--ink-soft); }
.compare tbody th { font-weight: 500; color: var(--ink); }

.faq-section { padding: 0 0 88px; background: var(--sky); }
.faq-section h2 { margin-bottom: 28px; }
.faq { max-width: 760px; }
.faq details {
  border-bottom: 1.5px solid var(--sky-deep);
  padding: 4px 0;
}
.faq summary {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--pine);
  padding: 14px 4px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--grass-deep);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 4px 18px; color: var(--ink-soft); max-width: 60ch; }
.faq details p + p { margin-top: -6px; }

/* ---------- footer (deepest soil) ---------- */

.site-footer {
  background: var(--soil-deep);
  color: var(--cream-dim);
  padding: 56px 0 40px;
  border-top: 3px dashed var(--soil-line);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  color: var(--cream-text);
}
.footer-brand img { width: 30px; height: 30px; }
.footer-nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 22px; font-size: 0.88rem; }
.footer-nav a { color: var(--cream-dim); text-decoration: none; }
.footer-nav a:hover { color: var(--paw); }
.footer-line {
  width: 100%;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--cream-dim);
}
