/*
  Aalixer Alarm Clock, aalixer.com/alarmclock/
  Shared by index.php and the generated legal pages (privacy-policy.html, terms.html).
  The legal pages' markup comes from gradle/legal-html.gradle.kts, so a class renamed here
  has to be renamed there too.

  The palette is sampled from the app's own artwork: brushed gold on near-black, warm
  rather than neutral, so the page and the store listing read as one object.
*/

:root {
  --pitch:     #0a0908;
  --surface:   #15120e;
  --surface-2: #1e1913;
  --surface-3: #2a231a;
  --gold:      #d4af6a;
  --gold-hi:   #f2ddab;
  --gold-dim:  #6b5730;
  --cream:     #ece5d7;
  --muted:     #a69a85;

  --display: "Cinzel", Georgia, "Times New Roman", serif;
  --body: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --measure: 68ch;
  --gutter: clamp(1rem, 4vw, 3rem);
  --radius: 14px;
  --nav-h: 64px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
  background: var(--pitch);
  color: var(--cream);
  font-family: var(--body);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.09rem);
  line-height: 1.7;
  margin: 0;
  overflow-x: hidden;
}

img { max-width: 100%; }

/* ── Type ───────────────────────────────────────────────────────────────── */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-hi); }

:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
}

.skip {
  background: var(--gold);
  color: var(--pitch);
  left: 1rem;
  padding: 0.5rem 1rem;
  position: absolute;
  top: -3rem;
  z-index: 100;
}
.skip:focus { top: 1rem; }

/* An eyebrow is a label, so it is set like one: letterspaced small caps, never a heading. */
.eyebrow {
  color: var(--gold);
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.section-title {
  color: var(--cream);
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem);
  margin-bottom: 1rem;
}

.section-lede {
  color: var(--muted);
  font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem);
  margin: 0;
  max-width: 58ch;
}

.center { text-align: center; }
.center .section-lede { margin-inline: auto; }

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* ── Layout ─────────────────────────────────────────────────────────────── */

.wrap {
  margin-inline: auto;
  max-width: 1140px;
  padding-inline: var(--gutter);
}

.wrap-narrow {
  margin-inline: auto;
  max-width: var(--measure);
  padding-inline: var(--gutter);
}

.band { padding-block: clamp(4rem, 9vw, 7rem); }
.band-tint { background: var(--surface); }

/*
  The minute track. Two stacked repeating gradients, a short tick every 11px and a long
  one every 55px, which is the minute/five-minute marking off the clock face in the app's
  own icon. It is the page's one ornament.
*/
.track {
  background-image:
    repeating-linear-gradient(90deg, var(--gold) 0 1px, transparent 1px 55px),
    repeating-linear-gradient(90deg, var(--gold-dim) 0 1px, transparent 1px 11px);
  background-position: 0 0, 0 center;
  background-repeat: repeat-x, repeat-x;
  background-size: 100% 14px, 100% 7px;
  border: 0;
  height: 14px;
  margin: 0;
  opacity: 0.55;
}

/* ── Top bar ────────────────────────────────────────────────────────────── */

.topbar {
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  background: rgba(10, 9, 8, 0.82);
  border-bottom: 1px solid rgba(107, 87, 48, 0.45);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar .wrap {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  height: var(--nav-h);
  justify-content: space-between;
}

.brand {
  align-items: center;
  color: var(--cream);
  display: inline-flex;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 600;
  gap: 0.65rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--gold-hi); }
.brand img { border-radius: 9px; height: 34px; width: 34px; }

.navlinks {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navlinks a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}
.navlinks a:hover { color: var(--gold-hi); }

@media (max-width: 900px) { .navlinks { display: none; } }

@media (max-width: 440px) {
  .topbar .wrap { gap: 0.75rem; }
  .topbar .brand { font-size: 0.86rem; gap: 0.5rem; letter-spacing: 0; min-width: 0; }
  .topbar .brand img { height: 28px; width: 28px; }
  .topbar .btn-sm { font-size: 0.82rem; padding: 0.45rem 0.85rem; }
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  align-items: center;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-hi);
  display: inline-flex;
  font-weight: 700;
  gap: 0.5rem;
  justify-content: center;
  letter-spacing: 0.02em;
  padding: 0.7rem 1.4rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-2); color: var(--gold-hi); }

.btn-solid {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  border-color: var(--gold-hi);
  color: #1a1309;
}
.btn-solid:hover { background: var(--gold-hi); color: #1a1309; transform: translateY(-1px); }

.btn-sm { font-size: 0.88rem; padding: 0.5rem 1.05rem; }

/* The official Google Play badge, used as Google's guidelines ask: unaltered, with room. */
.play-badge { display: inline-block; line-height: 0; }
.play-badge img { display: block; height: 58px; width: auto; }

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  background:
    radial-gradient(60rem 30rem at 85% 0%, rgba(212, 175, 106, 0.16), transparent 70%),
    radial-gradient(40rem 26rem at 0% 100%, rgba(212, 175, 106, 0.07), transparent 70%);
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 8vw, 6rem);
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.hero h1 {
  color: var(--cream);
  font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4rem);
  margin-bottom: 1.4rem;
}
.hero h1 em { color: var(--gold-hi); font-style: normal; }

.lede {
  color: var(--cream);
  font-size: clamp(1.06rem, 1rem + 0.4vw, 1.25rem);
  margin: 0 0 2rem;
  max-width: 50ch;
  opacity: 0.92;
}

.cta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

.cta-note { color: var(--muted); font-size: 0.9rem; margin: 1.1rem 0 0; }

.assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.assurances li {
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  color: var(--cream);
  font-size: 0.85rem;
  padding: 0.3rem 0.85rem;
}
.assurances li::before { color: var(--gold); content: "\2713\00a0"; }

.hero-phones {
  display: grid;
  justify-items: center;
  min-height: 0;
  position: relative;
}
.hero-phones .phone:first-child { grid-area: 1 / 1; transform: translateX(-26%) rotate(-5deg) scale(0.86); opacity: 0.85; }
.hero-phones .phone:last-child { grid-area: 1 / 1; transform: translateX(22%); z-index: 1; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-phones { margin-top: 1rem; }
  .hero-phones .phone { max-width: 230px; }
  .hero-phones .phone:first-child { transform: translateX(-30%) rotate(-5deg) scale(0.88); }
  .hero-phones .phone:last-child { transform: translateX(26%); }
}

/* ── Phone frame ────────────────────────────────────────────────────────── */

.phone {
  aspect-ratio: 1080 / 2400;
  background: #050403;
  border: 1px solid #3a3022;
  border-radius: 34px;
  box-shadow:
    0 0 0 6px #14110c,
    0 0 0 7px #3a3022,
    0 30px 60px -20px rgba(0, 0, 0, 0.8),
    0 0 80px -30px rgba(212, 175, 106, 0.35);
  margin: 0;
  max-width: 290px;
  overflow: hidden;
  width: 100%;
}
.phone img { display: block; height: 100%; object-fit: cover; object-position: top; width: 100%; }

/* ── Stat strip ─────────────────────────────────────────────────────────── */

.stats {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.stats li { padding: 1.6rem 1rem; text-align: center; }
.stats strong {
  color: var(--gold-hi);
  display: block;
  font-family: var(--body);
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem);
  font-variant-numeric: lining-nums;
  font-weight: 700;
  line-height: 1.1;
}
.stats span { color: var(--muted); font-size: 0.9rem; }

@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ── Feature rows ───────────────────────────────────────────────────────── */

.feature {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}
.feature + .feature { margin-top: clamp(4.5rem, 10vw, 8rem); }
.feature.flip .feature-copy { order: 2; }

.feature-media { display: flex; gap: 1.25rem; justify-content: center; min-width: 0; }
.feature-media .phone { max-width: 270px; }
.feature-media.pair .phone { max-width: 230px; }
.feature-media.pair .phone:nth-child(2) { margin-top: 3rem; }

.feature h3 {
  color: var(--cream);
  font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.15rem);
  margin-bottom: 1rem;
}

.feature-copy > p { color: var(--muted); font-size: 1.05rem; margin: 0 0 1.4rem; max-width: 52ch; }

.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ticks li {
  line-height: 1.55;
  padding: 0.4rem 0 0.4rem 1.7rem;
  position: relative;
}

/* A minute tick, borrowed from the divider, standing in for a bullet. */
.ticks li::before {
  background: var(--gold);
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  top: 1.12em;
  width: 0.9rem;
}

.ticks strong { color: var(--gold-hi); font-weight: 700; }

@media (max-width: 820px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .feature-copy { order: 0; }
  .feature-media .phone { max-width: 240px; }
  .feature-media.pair .phone { max-width: 46%; }
  .feature-media.pair .phone:nth-child(2) { margin-top: 2rem; }
}

/* ── Missions ───────────────────────────────────────────────────────────── */

.missions {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 1.4rem;
}

.mission {
  background: var(--surface-2);
  border: 1px solid rgba(107, 87, 48, 0.6);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}

.mission h4 {
  color: var(--gold-hi);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.mission p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; margin: 0; }

.fine { color: var(--muted); font-size: 0.88rem; margin: 0; max-width: 56ch; }
.fine.gap { margin-top: 1.2rem; }
.closer .section-lede { margin-inline: auto; }

@media (max-width: 480px) { .missions { grid-template-columns: 1fr; } }

/* ── Watch ──────────────────────────────────────────────────────────────── */

.watches {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: center;
  max-width: 440px;
  margin-inline: auto;
}

.watch {
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow:
    0 0 0 7px #14110c,
    0 0 0 8px #3a3022,
    0 24px 50px -20px rgba(0, 0, 0, 0.8);
  margin: 0;
  overflow: hidden;
  width: 100%;
}
.watch img { display: block; height: 100%; object-fit: cover; width: 100%; }
.watches .watch:nth-child(even) { margin-top: 2.5rem; }

/* ── Detail grid ────────────────────────────────────────────────────────── */

.details {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
}

.details li {
  background: var(--surface-2);
  border: 1px solid rgba(107, 87, 48, 0.45);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.3rem;
  transition: border-color 0.2s, transform 0.2s;
}
.details li:hover { border-color: var(--gold-dim); transform: translateY(-2px); }

.details svg {
  color: var(--gold);
  display: block;
  height: 26px;
  margin-bottom: 0.8rem;
  width: 26px;
}

.details strong { color: var(--cream); display: block; font-weight: 700; margin-bottom: 0.25rem; }
.details span { color: var(--muted); display: block; font-size: 0.93rem; line-height: 1.55; }

/* ── Privacy pledge ─────────────────────────────────────────────────────── */

.pledge-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.5rem;
}

.pledge-item {
  border-top: 2px solid var(--gold);
  padding-top: 1.1rem;
}
.pledge-item h3 { color: var(--gold-hi); font-size: 1.2rem; margin-bottom: 0.5rem; }
.pledge-item p { color: var(--muted); margin: 0; }

@media (max-width: 760px) { .pledge-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ── FAQ ────────────────────────────────────────────────────────────────── */

.faq { margin-top: 2.5rem; }

.faq details {
  border-bottom: 1px solid rgba(107, 87, 48, 0.55);
}
.faq details:first-child { border-top: 1px solid rgba(107, 87, 48, 0.55); }

.faq summary {
  color: var(--cream);
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 700;
  list-style: none;
  padding: 1.15rem 2.5rem 1.15rem 0;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  color: var(--gold);
  content: "+";
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1;
  position: absolute;
  right: 0.25rem;
  top: 1.05rem;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--gold-hi); }

.faq details p { color: var(--muted); margin: 0 0 1.25rem; max-width: 70ch; }

/* ── Closing call to action ─────────────────────────────────────────────── */

.closer {
  background:
    radial-gradient(40rem 20rem at 50% 0%, rgba(212, 175, 106, 0.18), transparent 70%),
    var(--surface);
  text-align: center;
}
.closer img.mark { border-radius: 22px; height: 88px; margin-bottom: 1.5rem; width: 88px; }
.closer .cta { justify-content: center; margin-top: 2rem; }

/* ── Legal pages ────────────────────────────────────────────────────────── */

.legal { padding-block: clamp(3rem, 7vw, 5rem); }

.legal h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); margin-bottom: 0.4rem; }

.legal h2 {
  color: var(--gold-hi);
  font-size: 1.15rem;
  margin: 2.5rem 0 0.6rem;
}

.legal p { margin: 0 0 1rem; }

.meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 2.5rem; }

.back {
  color: var(--muted);
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

footer { padding-block: 3rem 3.5rem; }

.foot-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.4fr repeat(2, 1fr);
}

.foot-grid p { color: var(--muted); font-size: 0.92rem; margin: 0.75rem 0 0; max-width: 34ch; }

.foot-col h2 {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
}

.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin: 0 0 0.45rem; }
.foot-col a { color: var(--cream); font-size: 0.94rem; text-decoration: none; }
.foot-col a:hover { color: var(--gold-hi); text-decoration: underline; }

.foot-base {
  border-top: 1px solid rgba(107, 87, 48, 0.45);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
}
.foot-base p { margin: 0; }

@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* The simpler footer the archived Terms pages in terms-archive/ were published with. Those
   pages are a record of what was live, so their markup stays as it was; this keeps it styled. */
.foot-inner {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; }
footer small { color: var(--muted); }

/* ── Motion ─────────────────────────────────────────────────────────────── */

@supports (animation-timeline: view()) {
  .rise {
    animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-timeline: view();
    animation-range: entry 0% cover 20%;
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
