/* Rooktick — pkc-dev.com/rooktick
   The app's own colours: the board green, one gold accent, and the clock's
   dark housing. Light sections follow the visitor's light or dark setting;
   the green ones are the board in both. */

:root {
  --green: #0d7055;
  --green-deep: #0a4f3d;
  --board: #0b5c47;
  --gold: #f6c453;
  --on-gold: #3a2a00;
  --housing: #10231d;
  --face: #f7f6f6;

  --paper: #fbfaf6;
  --paper-tint: #f0f3ee;
  --card: #ffffff;
  --ink: #10231d;
  --muted: #55635d;
  --line: rgba(16, 35, 29, 0.12);
  --accent-ink: #0d7055;

  --round: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c1512;
    --paper-tint: #101c18;
    --card: #15231e;
    --ink: #eef3f0;
    --muted: #a3b3ab;
    --line: rgba(255, 255, 255, 0.12);
    --accent-ink: #4cc298;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--on-gold); padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--round); letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.6rem); line-height: 1.06; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); line-height: 1.1; font-weight: 800; }
h3 { font-size: 1.12rem; line-height: 1.3; font-weight: 700; }
.lead { font-size: clamp(1.06rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 38em; }
.kicker, .eyebrow {
  font-family: var(--round);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 12px;
}

/* The board: the green squares behind the hero, Pro and the closing. */
.board {
  position: absolute;
  inset: 0;
  background:
    conic-gradient(rgba(255, 255, 255, 0.05) 25%, transparent 0 50%, rgba(255, 255, 255, 0.05) 0 75%, transparent 0) 0 0 / 112px 112px,
    linear-gradient(160deg, var(--green-deep), var(--green) 55%, var(--board));
  z-index: 0;
}
.hero, .pro, .closing { position: relative; color: #fff; overflow: hidden; }
.hero > .wrap, .pro > .wrap, .closing > .wrap { position: relative; z-index: 1; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--green-deep) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #fff;
}
.nav-row { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--round); font-weight: 800; font-size: 1.15rem; }
.brand img { border-radius: 9px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 0.95rem; }
.nav-links a { text-decoration: none; color: rgba(255, 255, 255, 0.82); }
.nav-links a:hover { color: #fff; }

/* Getting the app: Apple's badge, a QR code beside it where there is a
   second device to scan with, and the small button in the nav. */
.get { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.badge { display: inline-block; border-radius: 10px; transition: transform 0.15s ease; }
.badge img { height: 56px; width: auto; }
.badge:hover { transform: translateY(-2px); }
.badge:active { transform: scale(0.97); }
.qr {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 236px;
  padding: 8px 16px 8px 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
}
.qr img { width: 84px; height: 84px; padding: 5px; border-radius: 10px; background: #fff; image-rendering: pixelated; }
.get-small {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--housing);
  font-family: var(--round);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.get-small:hover { transform: translateY(-1px); }
.text-link { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.text-link.dark { color: var(--accent-ink); border-color: currentColor; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero .eyebrow { color: var(--gold); }
.hero h1 span { color: var(--gold); }
.hero .lead { color: rgba(255, 255, 255, 0.84); margin-top: 22px; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; margin-top: 32px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.facts li { font-size: 0.86rem; font-weight: 600; padding: 5px 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); }
.hero-demo { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.demo-hint { font-size: 0.92rem; color: rgba(255, 255, 255, 0.78); text-align: center; }

/* A phone: the frame every screenshot and the demo clock sit in. */
.phone {
  width: min(300px, 74vw);
  aspect-ratio: 660 / 1434;
  padding: 9px;
  border-radius: 50px;
  background: var(--housing);
  box-shadow: 0 30px 60px -18px rgba(0, 0, 0, 0.45), inset 0 0 0 1.5px rgba(255, 255, 255, 0.14);
}
.phone > * { width: 100%; height: 100%; border-radius: 41px; overflow: hidden; }
.phone.shot img { object-fit: cover; }

/* The demo clock: a working one, in the app's Classic theme. */
.demo-clock { display: flex; flex-direction: column; position: relative; background: var(--face); }
.face {
  flex: 1;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: var(--face);
  color: var(--housing);
  transition: background-color 0.18s ease, color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.face[data-side="0"] .face-inner { transform: rotate(180deg); }
.face-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.face-time { font-family: var(--round); font-weight: 800; font-size: clamp(3rem, 15vw, 4.4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.face-meta { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.72; }
.face.is-moving { background: var(--green); color: #fff; }
.face.is-low { background: #b45309; color: #fff; }
.face.is-critical { background: #a4161a; color: #fff; }
.face.is-flagged { background: #9b9797; color: #fff; }
.face:active .face-time { transform: scale(0.97); }
.demo-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  color: var(--housing);
  z-index: 2;
}
.demo-bar button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; display: grid; place-items: center; }
.demo-bar button[data-action="pause"] { background: var(--green); color: #fff; }
.demo-bar svg { width: 20px; height: 20px; fill: currentColor; }
.demo-control { font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.phone[data-running="true"] .icon-play, .phone[data-running="false"] .icon-pause { display: none; }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.tint { background: var(--paper-tint); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section h2 + .lead { margin-top: 16px; }
.split { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.pro .split { grid-template-columns: 0.7fr 1.3fr; }
.split-shot { display: flex; justify-content: center; }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.features article { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.features p, .steps p, .pro-list p { color: var(--muted); font-size: 0.97rem; margin-top: 6px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); counter-reset: step; }
.steps li { counter-increment: step; }
.steps .phone { width: min(250px, 70vw); margin: 0 auto 26px; }
.steps h3::before { content: counter(step) ". "; color: var(--accent-ink); }

/* Pro */
.pro .kicker { color: var(--gold); }
.pro .lead { color: rgba(255, 255, 255, 0.84); }
.pro-list { display: grid; gap: 10px; margin-top: 30px; }
.pro-list li { background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 18px; padding: 16px 18px 16px 52px; position: relative; }
.pro-list li::before { content: ""; position: absolute; left: 18px; top: 20px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.4l3 3 6-6.6' fill='none' stroke='%233a2a00' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.pro-list p { color: rgba(255, 255, 255, 0.76); }
.fine { font-size: 0.86rem; color: rgba(255, 255, 255, 0.7); margin-top: 22px; max-width: 44em; }

/* Themes */
.themes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.swatches button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 6px 6px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); font-size: 0.9rem; font-weight: 600; cursor: pointer; }
.swatches button[aria-pressed="true"] { border-color: var(--accent-ink); box-shadow: 0 0 0 2px var(--accent-ink); }
.swatches i { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(90deg, var(--a) 50%, var(--b) 0); box-shadow: inset 0 0 0 1px rgba(128, 128, 128, 0.35); }
.theme-clock {
  --moving: #0d7055; --moving-ink: #fff; --waiting: #f7f6f6; --waiting-ink: #10231d;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
  border-radius: 30px;
  background: var(--housing);
  box-shadow: 0 30px 60px -22px rgba(0, 0, 0, 0.4);
  max-width: 460px;
  width: 100%;
  justify-self: center;
}
.theme-face { aspect-ratio: 1 / 0.82; border-radius: 21px; display: grid; place-items: center; font-family: var(--round); font-weight: 800; font-size: clamp(2.2rem, 7vw, 3.6rem); font-variant-numeric: tabular-nums; transition: background-color 0.35s ease, color 0.35s ease; }
.theme-moving { background: var(--moving); color: var(--moving-ink); }
.theme-waiting { background: var(--waiting); color: var(--waiting-ink); }

/* Privacy, questions */
.plain { margin: 26px 0; display: grid; gap: 12px; }
.plain li { padding-left: 30px; position: relative; }
.plain li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 10px; height: 10px; border-radius: 3px; background: var(--accent-ink); transform: rotate(45deg); }
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 34px 18px 0; font-family: var(--round); font-weight: 700; font-size: 1.08rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--accent-ink); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { color: var(--muted); padding: 0 0 20px; max-width: 42em; }
.faq a { color: var(--accent-ink); }

/* Closing, footer */
.closing { padding: clamp(64px, 9vw, 110px) 0; text-align: center; }
.closing-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.closing img { filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.3)); }
.footer { background: var(--housing); color: rgba(255, 255, 255, 0.72); font-size: 0.9rem; padding: 26px 0; }
.footer-row { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }

/* Things rise into place as they scroll into view. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .steps li:nth-child(2) { transition-delay: 0.1s; }
.js .steps li:nth-child(3) { transition-delay: 0.2s; }

@media (max-width: 900px) {
  .hero-grid, .split, .pro .split, .themes { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-actions { align-items: center; }
  .facts, .get { justify-content: center; }
  .qr { display: none; }
  .pro .split-shot { order: 2; }
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .steps li { text-align: center; }
  .steps p { max-width: 30em; margin-inline: auto; }
  .nav-links { display: none; }
  .get-small { margin-left: auto; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .badge, .get-small, .face, .theme-face { transition: none; }
}
