/* Time Flies: Living Clock™ — public website
   Brand tokens from the approved brand package (v1.0). */
:root {
  --midnight: #0B2D4A;
  --gold: #D4AF37;
  --forest: #2E7D32;
  --cream: #FAF9F6;
  --deep-navy: #061C2B;
  --charcoal: #1E1E1E;
  --soft-gold: #E5C76B;
  --olive: #687A43;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-ui: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-tagline: "Lora", Georgia, serif;

  --radius: 18px;
  --gutter: 16px;
  --maxw: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.0625rem; /* 17px at default size */
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.7rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 820px; }
.center { text-align: center; }
.center-row { justify-content: center; }
.muted { opacity: .75; font-size: .95rem; }
.note { text-align: center; font-size: .9rem; opacity: .7; margin-top: 1.5rem; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--midnight); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .6rem;
}
.section--cream .eyebrow { color: #8a6d14; } /* gold darkened for AA contrast on cream */
.lead { font-size: 1.15rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px; font-weight: 600; font-size: .95rem;
  text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: .5em 1.1em; font-size: .85rem; }
.btn--gold { background: var(--gold); color: var(--midnight); }
.btn--gold:hover { background: var(--soft-gold); }
.btn--ghost { border-color: rgba(212,175,55,.6); color: var(--cream); }
.btn--ghost:hover { background: rgba(212,175,55,.12); }
.btn--navy { background: var(--midnight); color: var(--cream); cursor: default; }
.btn--navy:hover { transform: none; }
.btn--outline { border-color: var(--midnight); color: var(--midnight); }
.btn--outline:hover { background: var(--midnight); color: var(--cream); }
.link-gold { color: var(--gold); font-weight: 600; text-decoration: none; }
.link-gold:hover { text-decoration: underline; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 28, 43, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212,175,55,.25); color: var(--cream);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: .04em; }
.nav__brand img { width: 44px; height: auto; border-radius: 6px; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a:not(.btn) { text-decoration: none; font-size: .92rem; font-weight: 500; opacity: .9; }
.nav__links a:not(.btn):hover { color: var(--gold); }
.nav__toggle { display: none; background: none; border: 1px solid rgba(212,175,55,.6); color: var(--cream); border-radius: 999px; padding: .4em 1em; font: inherit; font-size: .85rem; }
@media (max-width: 860px) {
  .nav__toggle { display: inline-block; }
  .nav__links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 16px;
    background: var(--deep-navy); border-bottom: 1px solid rgba(212,175,55,.25);
  }
  .nav__links.open { display: flex; }
  .nav__links a:not(.btn) { padding: 12px 0; border-bottom: 1px solid rgba(250,249,246,.08); }
  .nav__links .btn { margin-top: 12px; }
}

/* Hero */
.hero {
  color: var(--cream);
  background:
    radial-gradient(900px 500px at 85% 45%, rgba(212,175,55,.10), transparent 60%),
    linear-gradient(180deg, #011a2b 0%, #011a2b 45%, var(--midnight) 100%);
  padding: 48px 0 72px;
  overflow: hidden;
}
.hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.hero__copy { text-align: center; }
/* The approved artwork carries its own dark vignette; feather the edges so it sits in the hero without a visible box. */
.hero__logo {
  width: min(440px, 100%); margin: 0 auto 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(180deg, transparent, #000 4%, #000 98%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(180deg, transparent, #000 4%, #000 98%, transparent);
  mask-composite: intersect;
}
.hero__lede { font-family: var(--font-display); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); max-width: 30ch; margin: 4px auto 14px; }
.hero__status { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hero__status li { padding: .45em 1.1em; border-radius: 999px; border: 1px solid rgba(212,175,55,.45); font-size: .92rem; background: rgba(250,249,246,.04); }
.hero__status strong { color: var(--gold); font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero__promise { font-family: var(--font-tagline); font-style: italic; color: var(--gold); font-size: 1.15rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }

/* iPad frame */
.ipad { margin: 0; }
.ipad__screen {
  position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden;
  box-shadow: 0 0 0 10px #10161c, 0 0 0 11px #2b3440, 0 30px 60px rgba(0,0,0,.45);
}
.ipad--hero figcaption, .shot figcaption, .tile figcaption {
  text-align: center; font-size: .85rem; margin-top: 22px; opacity: .75;
}
.ipad--sm .ipad__screen { box-shadow: 0 0 0 7px #10161c, 0 0 0 8px #2b3440, 0 18px 36px rgba(0,0,0,.25); }

.live-clock {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.45);
}
.live-clock__time { font-family: var(--font-ui); font-weight: 500; font-size: clamp(3rem, 2rem + 6vw, 6.5rem); letter-spacing: .02em; font-variant-numeric: tabular-nums; line-height: 1; }
.live-clock__date { font-size: clamp(.85rem, .7rem + .6vw, 1.15rem); letter-spacing: .12em; text-transform: uppercase; margin-top: 10px; opacity: .9; }

/* Scenes — colour studies, not app renders */
.scene { position: relative; width: 100%; height: 100%; overflow: hidden; }
.scene::after { /* mountain silhouette */
  content: ""; position: absolute; left: -5%; right: -5%; bottom: 0; height: 45%;
  background: var(--ridge, #0d2233);
  clip-path: polygon(0 70%, 12% 40%, 22% 55%, 35% 18%, 47% 48%, 58% 30%, 70% 52%, 82% 22%, 92% 45%, 100% 35%, 100% 100%, 0 100%);
  opacity: .95;
}
.scene--sunny  { background: linear-gradient(180deg, #5aa7e0 0%, #a8d4f2 55%, #e9f3fa 100%); --ridge: #2f4f3a; }
.scene--rain   { background: linear-gradient(180deg, #4b5a68 0%, #7d8c99 60%, #a3afb8 100%); --ridge: #2b3a3f; }
.scene--snow   { background: linear-gradient(180deg, #b9c6d3 0%, #dde5ec 60%, #f4f7fa 100%); --ridge: #6f8193; }
.scene--storm  { background: linear-gradient(180deg, #1b2430 0%, #33404e 60%, #4a5866 100%); --ridge: #121a22; }
.scene--moon   { background: radial-gradient(circle at 75% 22%, #f4f1dc 0 3.5%, rgba(244,241,220,.25) 4%, transparent 14%), linear-gradient(180deg, #061428 0%, #0B2D4A 70%, #18405f 100%); --ridge: #04101c; }
.scene--golden { background: radial-gradient(circle at 50% 78%, #ffd98a 0 6%, rgba(255,190,90,.5) 14%, transparent 45%), linear-gradient(180deg, #2a2f5a 0%, #b45c4a 50%, #f0a55a 78%, #f7cf7a 100%); --ridge: #241a24; }

.fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.fx--rain {
  background-image: repeating-linear-gradient(105deg, transparent 0 14px, rgba(255,255,255,.35) 14px 15px, transparent 15px 34px);
  background-size: 120px 120px; animation: rain .6s linear infinite;
}
.fx--snow {
  background-image:
    radial-gradient(circle, #fff 1.6px, transparent 2.2px),
    radial-gradient(circle, rgba(255,255,255,.8) 1.1px, transparent 1.6px);
  background-size: 60px 60px, 37px 37px; animation: snow 6s linear infinite;
}
.fx--flash { background: #fff; opacity: 0; animation: flash 7s infinite; }
@keyframes rain  { to { background-position: -30px 120px; } }
@keyframes snow  { to { background-position: 20px 60px, -10px 37px; } }
@keyframes flash { 0%, 90%, 94%, 100% { opacity: 0; } 91%, 93% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  .fx--rain, .fx--snow, .fx--flash { animation: none; }
  html { scroll-behavior: auto; }
}

/* Promise strip */
.strip { background: var(--deep-navy); color: var(--cream); border-top: 1px solid rgba(212,175,55,.3); border-bottom: 1px solid rgba(212,175,55,.3); }
.strip__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding-top: 26px; padding-bottom: 26px; text-align: center; }
@media (min-width: 820px) { .strip__grid { grid-template-columns: repeat(4, 1fr); } }
.strip strong { display: block; color: var(--gold); font-weight: 600; letter-spacing: .03em; }
.strip span { font-size: .88rem; opacity: .8; }

/* Sections */
.section { padding: 80px 0; }
.section--cream { background: var(--cream); color: var(--charcoal); }
.section--cream h2 { color: var(--midnight); }
.section--navy { background: var(--midnight); color: var(--cream); }
.section--green { background: linear-gradient(180deg, #1f5a23, var(--forest)); color: var(--cream); }
.section--green .eyebrow { color: var(--soft-gold); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.intro { padding-bottom: 20px; text-align: center; }
.intro h2::after, .section__head h2::after {
  content: ""; display: block; width: 64px; height: 2px; background: var(--gold); margin: 18px auto 0;
}

/* Screenshot slots */
.shots { display: grid; gap: 40px; }
@media (min-width: 820px) { .shots { grid-template-columns: repeat(3, 1fr); } }
.shot { margin: 0; }
.placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--midnight), var(--deep-navy));
  color: rgba(250,249,246,.7); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase;
}
.placeholder span { border: 1px dashed rgba(212,175,55,.5); padding: 8px 14px; border-radius: 999px; }
.shot img { width: 100%; height: 100%; object-fit: cover; }

/* Features */
.features { display: grid; gap: 18px; }
@media (min-width: 680px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature {
  padding: 26px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(250,249,246,.06), rgba(250,249,246,.02));
  border: 1px solid rgba(212,175,55,.22);
}
.feature h3 { color: var(--gold); }
.feature p { margin: 0; opacity: .88; font-size: .97rem; }
.tag {
  font-family: var(--font-ui); font-style: normal; font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  vertical-align: middle; margin-left: 6px; padding: 3px 8px; border-radius: 999px;
  border: 1px solid currentColor; opacity: .85;
}

/* Scenery gallery */
.scenery { display: grid; gap: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .scenery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { margin: 0; }
.tile .scene { height: auto; aspect-ratio: 4 / 3; border-radius: 14px; box-shadow: 0 14px 30px rgba(11,45,74,.18); }
.tile figcaption { margin-top: 10px; font-weight: 600; color: var(--midnight); opacity: 1; }

/* Video */
.video { margin: 28px 0 18px; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(212,175,55,.35); background: var(--deep-navy); }
.video video { width: 100%; height: 100%; object-fit: cover; }
.video__placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.video__placeholder p { margin: 0; letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; opacity: .8; }
.video__play { width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--gold); position: relative; }
.video__play::after { content: ""; position: absolute; left: 29px; top: 22px; border-left: 20px solid var(--gold); border-top: 13px solid transparent; border-bottom: 13px solid transparent; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 2px solid rgba(11,45,74,.15); }
.timeline li { position: relative; padding: 0 0 30px 18px; }
.timeline li::before {
  content: ""; position: absolute; left: -37px; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--cream); border: 2px solid rgba(11,45,74,.3);
}
.timeline li.done::before { background: var(--forest); border-color: var(--forest); }
.timeline li.active::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 6px rgba(212,175,55,.2); }
.timeline time { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #6b5a1e; font-weight: 600; }
.timeline h3 { color: var(--midnight); margin: 4px 0 4px; }
.timeline p { margin: 0; }

/* Plans */
.plans { display: grid; gap: 22px; max-width: 900px; margin: 0 auto; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { padding: 30px; border-radius: var(--radius); border: 1px solid rgba(250,249,246,.18); background: rgba(250,249,246,.04); }
.plan--pro { border-color: var(--gold); background: linear-gradient(180deg, rgba(212,175,55,.1), rgba(212,175,55,.02)); }
.plan h3 { font-size: 1.6rem; color: var(--gold); }
.plan ul, .checks { list-style: none; padding: 0; margin: 0 0 1em; }
.plan li, .checks li { padding: 7px 0 7px 28px; position: relative; }
.plan li::before, .checks li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.checks li::before { color: var(--forest); }

/* App Store */
.appstore__mark { width: 160px; margin: 0 auto 18px; border-radius: 22px; box-shadow: 0 16px 36px rgba(11,45,74,.25); }

/* Community */
.community { display: grid; gap: 16px; }
@media (min-width: 640px) { .community { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .community { grid-template-columns: repeat(4, 1fr); } }
.card {
  display: block; text-decoration: none; padding: 24px; border-radius: var(--radius);
  background: rgba(250,249,246,.08); border: 1px solid rgba(250,249,246,.2); transition: background .15s, transform .15s;
}
.card:hover { background: rgba(250,249,246,.14); transform: translateY(-2px); }
.card h3 { font-family: var(--font-ui); font-weight: 600; font-size: 1.05rem; }
.card p { margin: 0; opacity: .85; font-size: .95rem; }

/* Privacy / contact */
.two-col { display: grid; gap: 48px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; } }
.two-col a { color: var(--midnight); font-weight: 600; }
.contact-email { font-size: 1.1rem; }
.contact-email a { overflow-wrap: anywhere; }
.footer__email { color: var(--gold); text-decoration: none; }
.footer__email:hover { text-decoration: underline; }

/* Footer */
.footer { background: var(--deep-navy); color: rgba(250,249,246,.85); padding: 56px 0 40px; text-align: center; font-size: .9rem; }
.footer img { width: 88px; margin: 0 auto 14px; border-radius: 10px; }
.footer__name { font-family: var(--font-display); font-size: 1.3rem; color: var(--cream); margin-bottom: 2px; }
.footer__tag { font-family: var(--font-tagline); font-style: italic; color: var(--gold); font-size: 1.1rem; }
.footer__legal { max-width: 640px; margin: 18px auto 0; font-size: .78rem; opacity: .6; }

/* Privacy policy and other legal pages */
.legal-hero { background: linear-gradient(180deg, #011a2b, var(--midnight)); color: var(--cream); padding: 64px 0 48px; text-align: center; }
.legal-hero h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem); margin-bottom: .3em; }
.legal-hero__meta { opacity: .8; font-size: .95rem; margin: 0; }
.legal { padding-top: 48px; }
.legal h2 { color: var(--midnight); font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem); margin-top: 2.2em; scroll-margin-top: 84px; }
.legal ul:not(.checks) { padding-left: 1.3em; }
.legal li { margin-bottom: .4em; }
.legal a { color: var(--midnight); font-weight: 600; }
.legal-summary { margin: 32px 0; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid rgba(11,45,74,.12); box-shadow: 0 10px 28px rgba(11,45,74,.08); }
.legal-summary h2 { margin-top: 0; }
.legal-toc { margin: 0 0 8px; padding: 20px 24px; border-left: 3px solid var(--gold); background: rgba(212,175,55,.07); border-radius: 0 12px 12px 0; }
.legal-toc__title { font-weight: 600; margin-bottom: .4em; }
.legal-toc ol { margin: 0; padding-left: 1.4em; columns: 2 16rem; column-gap: 2rem; }
.legal-toc li { margin-bottom: .25em; break-inside: avoid; }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border-radius: 12px; border: 1px solid rgba(11,45,74,.12); }
.legal table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; background: #fff; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid rgba(11,45,74,.1); }
.legal th { background: var(--midnight); color: var(--cream); font-weight: 600; }
.legal tr:last-child td { border-bottom: 0; }
.legal-address { font-style: normal; line-height: 1.8; padding: 20px 24px; background: #fff; border-radius: 12px; border: 1px solid rgba(11,45,74,.12); display: inline-block; }
.legal-back { margin-top: 40px; }
.nav__links a[aria-current="page"] { color: var(--gold); }

/* Large screens and TV browsers (10-foot viewing): scale everything up from the root size. */
@media (min-width: 1800px) {
  html { font-size: 20px; }
  body { font-size: 1.05rem; }
  :root { --maxw: 1560px; }
  .hero__logo { width: min(560px, 100%); }
}
@media (min-width: 2400px) {
  html { font-size: 26px; }
  :root { --maxw: 2100px; }
  .hero__logo { width: min(760px, 100%); }
  .nav__inner { min-height: 96px; }
  .nav__brand img { width: 64px; }
}
/* Remote-control and keyboard navigation: make focus obvious from across the room. */
@media (min-width: 1800px), (hover: none) and (pointer: coarse) {
  :focus-visible { outline-width: 4px; outline-offset: 5px; }
}
