/* ClearTime landing — tokens from design/tokens.json site + brand. */

:root {
  --paper: #f7f4ef;
  --white: #ffffff;
  --ink: #16323b;
  --caption: #4c5c61;
  --tide: #1f6673;
  --mist: #d9e8eb;
  --glass: #9ccfd6;
  --bezel: #a7d4dc;
  --download: #e9f0f1;
  --footer: #1f6673;
  --footer-link: #d6eaee;
  --footer-mark: #a7d4dc;
  --badge: #000000;
  --green: #1e5e3a;
  --green-bezel: #aad9bf;
  --pad: clamp(20px, 5.5vw, 80px);
  --section-y: clamp(56px, 8vw, 96px);
  --radius-card: 16px;
  --radius-feature: 20px;
  --max: 1440px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--footer);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--tide);
}

a:hover {
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 20;
  background: var(--ink);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
  color: var(--white);
}

/* Nav */

.nav {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--ink);
}

.brand img,
.brand svg {
  width: 18px;
  height: 18px;
}

.brand-name {
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.025em;
  line-height: 1;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--caption);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.btn-pill:hover {
  color: var(--white);
  background: #0f242b;
}

.nav-cta-full {
  display: none;
}

.nav-cta-short {
  display: inline-flex;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 24px var(--pad) 56px;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.hero-rings {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.hero-rings-desktop {
  display: none;
}

.hero-rings-mobile {
  display: block;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero h1 {
  margin: 0;
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.lede {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--caption);
  max-width: 40rem;
}

.hero-dial {
  width: min(280px, 72vw);
  height: auto;
}

.showreel {
  background: var(--paper);
  padding: 0 0 clamp(40px, 7vw, 80px);
}

.showreel-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0;
}

.showreel-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--ink);
  vertical-align: middle;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.badge {
  display: inline-flex;
  line-height: 0;
}

.badge img {
  height: 40px;
  width: auto;
}

.fine {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--caption);
}

/* Shared section chrome */

.section {
  padding: var(--section-y) var(--pad);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 720px;
}

.section h2,
.closing h2 {
  margin: 0;
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-head p,
.card p,
.how-step p,
.plan p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--caption);
}

.section-head p {
  font-size: 17px;
}

.band-white {
  background: var(--white);
}

.band-paper {
  background: var(--paper);
}

.band-download {
  background: var(--download);
}

/* Everywhere */

.platforms {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.platform {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.platform h3,
.how-step h3,
.feature h3,
.plan h3 {
  margin: 0;
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
}

.shot {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.shot-mac {
  background: #cfd6da;
}

.mac-window {
  position: absolute;
  left: 24px;
  top: 28px;
  width: 300px;
  height: 300px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(22, 50, 59, 0.08);
}

.mac-titlebar {
  height: 26px;
  background: #f6f6f7;
  border-bottom: 1px solid rgba(22, 50, 59, 0.08);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 6px;
}

.mac-dot {
  width: 9px;
  height: 9px;
  border-radius: 5px;
  background: #dcdcde;
}

.mac-lines {
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mac-lines span {
  display: block;
  height: 8px;
  border-radius: 3px;
  background: #e7eaec;
}

.mac-lines span:first-child {
  height: 12px;
  width: 50%;
  background: #d9dee1;
}

.mac-lines span:nth-child(2) { width: 92%; }
.mac-lines span:nth-child(3) { width: 100%; }
.mac-lines span:nth-child(4) { width: 84%; }
.mac-lines span:nth-child(5) { width: 96%; }
.mac-lines span:nth-child(6) { width: 70%; }

.mac-float {
  position: absolute;
  right: 18px;
  top: 36px;
  width: 140px;
}

.shot-phone {
  background: #9fb4bc;
}

.phone-orb {
  position: absolute;
  left: -60px;
  top: 120px;
  width: 260px;
  height: 260px;
  border-radius: 130px;
  background: #8ba3ac;
}

.phone-widget {
  position: absolute;
  left: 50%;
  top: 28px;
  transform: translateX(-50%);
  width: min(292px, 92%);
  height: 120px;
  border-radius: 28px;
  border: 1px dashed rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  box-sizing: border-box;
}

.phone-widget img {
  width: 96px;
  height: 96px;
}

.phone-widget-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.phone-time {
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.9), 0 0 6px rgba(255, 255, 255, 0.9);
}

.phone-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.9);
}

.phone-island {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  align-items: center;
}

.phone-island img {
  width: 36px;
  height: 36px;
}

.island-name {
  font-weight: 600;
  font-size: 11px;
  color: var(--white);
}

.island-time {
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--white);
}

.shot-watch,
.shot-tv {
  background: #101418;
  display: flex;
  align-items: center;
  justify-content: center;
}

.watch-body {
  width: 148px;
  height: 180px;
  border-radius: 36px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 5px #1c1f22, 0 0 0 6px #3a3e42;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.watch-body img {
  width: 112px;
  height: 112px;
}

.watch-time,
.tv-time {
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--white);
}

.watch-time {
  font-size: 16px;
}

.tv-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.tv-stage img {
  width: 128px;
  height: 128px;
}

.tv-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tv-label {
  font-size: 13px;
  font-weight: 600;
  color: #9aa7ab;
}

.tv-time {
  font-size: 22px;
}

.tv-pills {
  display: flex;
  gap: 8px;
}

.tv-pills span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
}

/* How */

.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.how-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.how-step .dial {
  width: min(220px, 70vw);
}

.how-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.kicker {
  font-family: Manrope, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--tide);
}

.how-step p {
  max-width: 320px;
}

/* ADHD */

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--paper);
  border-radius: var(--radius-feature);
  padding: 28px 28px 30px;
}

.feature-visual {
  height: 120px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-visual.center {
  justify-content: flex-start;
}

.blocks-row img {
  flex: 0 0 auto;
}

.note-card {
  background: var(--white);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 0 0 1px rgba(22, 50, 59, 0.08);
  min-width: 220px;
}

.note-card strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--caption);
  margin-bottom: 8px;
}

.note-card p {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--ink);
}

.heads-labels {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--tide);
}

.feature-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill-plus {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--tide);
  font-family: Manrope, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Maker */

.note-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.note-kicker {
  font-family: Manrope, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--tide);
  line-height: 1.3;
}

.note-body {
  margin: 0;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  color: var(--ink);
}

.maker {
  display: flex;
  align-items: center;
  gap: 16px;
}

.maker img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px var(--bezel);
}

.maker strong {
  display: block;
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 700;
  font-size: 16px;
}

.maker span {
  color: var(--caption);
  font-size: 14px;
}

/* Colors */

.swatches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 16px;
}

.swatch {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.swatch .dial {
  display: block;
  width: 100%;
  max-width: 148px;
  aspect-ratio: 1;
  min-height: 96px;
  object-fit: contain;
  height: auto;
}

.swatch figcaption {
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

/* Pricing */

.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.plan {
  background: var(--paper);
  border-radius: var(--radius-feature);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan.plus {
  background: var(--ink);
  color: var(--white);
}

.plan.plus p,
.plan.plus li {
  color: #d6eaee;
}

.plan.plus h3 {
  color: var(--white);
}

.plan ul {
  margin: 8px 0 0;
  padding: 0 0 0 1.15em;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan li {
  font-size: 15px;
  line-height: 1.45;
  color: var(--caption);
}

.plan-meta {
  font-size: 14px;
  font-weight: 600;
  color: var(--tide);
}

.plan.plus .plan-meta {
  color: var(--bezel);
}

/* Closing */

.closing {
  padding: clamp(72px, 10vw, 112px) var(--pad);
  text-align: center;
}

.closing-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.closing h2 {
  font-size: clamp(32px, 4vw, 48px);
}

.closing .dial {
  width: min(200px, 56vw);
}

.store-name {
  margin: 0;
  font-size: 13px;
  color: var(--caption);
}

/* Footer */

main {
  flex: 1 0 auto;
}

.footer {
  flex-shrink: 0;
  background: var(--footer);
  padding: 32px var(--pad);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--white);
  text-decoration: none;
}

.footer-brand svg,
.footer-brand img {
  width: 16px;
  height: 16px;
}

.footer-brand span {
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.025em;
  color: var(--white);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
}

.footer-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--footer-link);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-copy {
  margin: 0;
  font-size: 13px;
  color: var(--footer-link);
}

/* Desktop / tablet */

@media (min-width: 480px) {
  .swatches {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 720px) {
  .nav {
    height: 84px;
  }

  .brand img,
  .brand svg {
    width: 22px;
    height: 22px;
  }

  .brand-name {
    font-size: 24px;
  }

  .nav-links {
    display: flex;
  }

  .nav-cta-short {
    display: none;
  }

  .nav-cta-full {
    display: inline-flex;
    min-height: 40px;
    padding: 0 20px;
    font-size: 15px;
  }

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    padding: 56px var(--pad) 96px;
    text-align: left;
  }

  .hero-copy {
    align-items: flex-start;
    gap: 22px;
  }

  .lede {
    font-size: 20px;
  }

  .badges {
    justify-content: flex-start;
  }

  .badge img {
    height: 48px;
  }

  .hero-dial {
    width: min(520px, 100%);
  }

  .hero-rings-mobile {
    display: none;
  }

  .hero-rings-desktop {
    display: block;
    width: 277%;
    max-width: none;
    left: 50%;
    top: 50%;
    transform: translate(-73.3%, -46.5%);
  }

  .hero-visual {
    display: flex;
    justify-content: center;
  }

  .showreel-inner {
    padding: 0 var(--pad);
  }

  .showreel-video {
    border-radius: 16px;
  }

  .shot {
    height: 260px;
  }

  .mac-float {
    width: 160px;
    right: 26px;
    top: 40px;
  }

  .phone-widget img {
    width: 112px;
    height: 112px;
  }

  .phone-widget {
    height: 132px;
    top: 32px;
  }

  .phone-time {
    font-size: 34px;
  }

  .maker img {
    width: 72px;
    height: 72px;
  }

  .swatches {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }

  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
  }
}

@media (min-width: 960px) {
  .swatches {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .platforms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .how-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px;
  }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .section-inner {
    gap: 56px;
  }

  .hero {
    gap: 64px;
  }
}
