/* WatchLog's site: the app's brass, ivory and espresso, light and dark. */
:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --text: #221c18;
  --muted: #6e645c;
  --line: #e9e1d6;
  --brass: #9a5a18;
  --brass-strong: #7d4813;
  --button-bg: #1a1513;
  --button-text: #ffffff;
  --button-hover: #000000;
  /* The hero and closing band are espresso in both modes, like the App Store screenshots. */
  --espresso: #1f1814;
  --espresso-deep: #110d0b;
  --ivory: #f7f1e8;
  --ivory-muted: #c9bcae;
  --gold: #e3a764;
  --shadow: 0 1px 2px rgba(34, 28, 24, 0.06), 0 8px 24px rgba(34, 28, 24, 0.08);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color-scheme: light dark;
}

/* Avenir Next and SF have no Japanese, Korean or Chinese: name each script's own system font
   after them, so the browser doesn't borrow another language's glyphs. */
html:lang(ja) {
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --display: "Avenir Next", Avenir, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}
html:lang(ko) {
  --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --display: "Avenir Next", Avenir, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
html:lang(zh-Hans) {
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --display: "Avenir Next", Avenir, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141110;
    --surface: #1e1a17;
    --text: #f4eee6;
    --muted: #a99d92;
    --line: #2f2925;
    --brass: #e3a764;
    --brass-strong: #f0bb7e;
    --button-bg: #e3a764;
    --button-text: #1a1513;
    --button-hover: #f0bb7e;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--sans);
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; text-wrap: balance; overflow-wrap: break-word; }

a { color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brass-strong); }

.wrap { width: min(1080px, 100% - 32px); margin: 0 auto; }
.narrow { width: min(720px, 100% - 32px); margin: 0 auto; }
.center { text-align: center; }

/* Header and footer */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 19px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.top nav { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.top nav a { color: inherit; text-decoration: none; opacity: 0.8; }
.top nav a:hover, .top nav a[aria-current] { opacity: 1; color: var(--brass); }
.top nav .pill {
  opacity: 1;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--gold);
  color: #1a1513;
  font-weight: 600;
}
.top nav .pill:hover { background: #f0bb7e; color: #1a1513; }

.hero-band .top { color: var(--ivory); }
.hero-band .top nav a:not(.pill):hover { color: inherit; text-decoration: underline; }

footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
main + footer, .page + footer { margin-top: 72px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: inherit; }
footer .langs {
  justify-content: flex-start;
  align-items: center;
  gap: 6px 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.langs svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.langs a { text-decoration: none; }
.langs a:hover { color: var(--brass); }
.langs a[aria-current] { color: var(--text); font-weight: 600; }

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-text);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  transition: background-color 0.15s, transform 0.15s;
}
.button:hover { color: var(--button-text); background: var(--button-hover); }
.button:active { transform: scale(0.98); }
.note { margin: 12px 0 0; font-size: 14px; color: var(--muted); }

/* Home: hero */

.hero-band, .cta-band {
  --button-bg: var(--gold);
  --button-text: #1a1513;
  --button-hover: #f0bb7e;
  color: var(--ivory);
  background:
    radial-gradient(ellipse 60% 70% at 78% 45%, rgba(220, 148, 66, 0.26), transparent 70%),
    linear-gradient(160deg, var(--espresso), var(--espresso-deep));
}
.hero-band .note, .cta-band .note { color: var(--ivory-muted); }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0 56px;
}
.eyebrow, .kicker {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow { color: var(--gold); }
.kicker { color: var(--brass); }
.hero h1 { font-size: clamp(40px, 6.4vw, 66px); line-height: 1.04; margin: 0 0 20px; letter-spacing: -0.02em; }
.hero .sub { font-size: 20px; line-height: 1.5; margin: 0 0 30px; color: var(--ivory-muted); max-width: 34ch; }

/* A phone around the raw screenshots, so captions stay text rather than baked into the image. */
.phone {
  position: relative;
  justify-self: center;
  width: min(300px, 100%);
  margin: 0;
  padding: 9px;
  border-radius: 50px;
  background: #0b0908;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 30px 70px rgba(0, 0, 0, 0.35);
}
.phone::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  width: 28%;
  height: 22px;
  border-radius: 999px;
  background: #0b0908;
  transform: translateX(-50%);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 41px; }

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 28px 0 36px;
  border-top: 1px solid rgba(247, 241, 232, 0.14);
}
.facts div { display: grid; gap: 2px; }
.facts strong { font-family: var(--display); font-size: 20px; color: var(--ivory); }
.facts span { font-size: 14px; line-height: 1.4; color: var(--ivory-muted); }

/* Home: sections */

section { padding-top: 96px; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.12; margin: 0 0 14px; letter-spacing: -0.015em; }
.lead { color: var(--muted); font-size: 19px; margin: 0 0 32px; max-width: 60ch; }

.problem h2 { max-width: 20ch; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brass);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.split {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 56px;
  align-items: center;
}
.split.flip > div { order: 2; }
.split > div > p { color: var(--muted); max-width: 52ch; }
.split .phone { width: min(290px, 100%); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), var(--shadow), 0 30px 60px rgba(34, 28, 24, 0.14); }

.steps { list-style: none; counter-reset: step; margin: 28px 0 0; padding: 0; display: grid; gap: 22px; }
.steps li { counter-increment: step; position: relative; padding-left: 56px; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brass);
  color: var(--bg);
  font-family: var(--display);
  font-weight: 700;
}
.steps h3 { margin: 0 0 4px; font-size: 19px; }
.steps p { margin: 0; color: var(--muted); }
.fine { margin: 24px 0 0; font-size: 15px; color: var(--muted); }

.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border: solid var(--brass);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}

.extras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.extras > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}
.extras svg { width: 28px; height: 28px; fill: none; stroke: var(--brass); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.extras h3 { margin: 10px 0 6px; font-size: 18px; }
.extras p { margin: 0; color: var(--muted); font-size: 15px; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 36px auto 32px; max-width: 880px; }
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.plan.pro { border: 2px solid var(--brass); }
.plan h3 { margin: 0; font-size: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.plan-sub { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.badge {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brass);
  color: var(--bg);
}
.plan .ticks { margin-top: 20px; font-size: 16px; }

#faq h2 { margin-bottom: 24px; }
.more { margin-top: 20px; color: var(--muted); }

/* Home: closing band, over the App Store header art */

.cta-band {
  position: relative;
  overflow: hidden;
  margin-top: 96px;
  padding: 88px 0 96px;
  text-align: center;
  isolation: isolate;
}
.cta-band > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.55;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(17, 13, 11, 0.55), rgba(17, 13, 11, 0.85));
}
.cta-band h2 { font-size: clamp(30px, 4.6vw, 48px); margin: 18px 0 28px; }
.cta-icon { width: 72px; height: 72px; border-radius: 17px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); }
.cta-band + footer { margin-top: 0; border-top: 0; }

/* Text pages */

.page h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.1; margin: 24px 0 8px; letter-spacing: -0.02em; }
.page .updated { color: var(--muted); margin: 0 0 32px; }
.page h2 { font-size: 22px; margin: 36px 0 8px; }
.page p, .page li { max-width: 68ch; }
.page ul { padding-left: 22px; }

.summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brass);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 0 0 8px;
}
.summary p { margin: 0; }

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 20px;
  margin-bottom: 10px;
}
summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style-position: outside; }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
details > p, details > ul { margin: 0 0 16px; color: var(--muted); }

/* Guide */

.toc { margin: 24px 0 0; color: var(--muted); }
.toc ul { margin: 0; }
.guide h2 { scroll-margin-top: 16px; }
.guide .steps { margin: 20px 0 16px; }
.guide .steps h3 { font-size: 17px; }

.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
table { width: 100%; border-collapse: collapse; font-size: 15px; }
caption { text-align: left; padding: 12px 16px 2px; color: var(--muted); font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 9px 16px; border-top: 1px solid var(--line); }
thead th { border-top: 0; }
th { font-weight: 600; }
td { color: var(--muted); }
.values td, .values th { white-space: nowrap; }

.terms dt { font-weight: 600; margin-top: 16px; }
.terms dd { margin: 2px 0 0; color: var(--muted); max-width: 68ch; }

.guide-cta {
  margin: 48px 0 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brass);
  border-radius: 16px;
}
.guide-cta h2 { margin-top: 0; }
.guide-cta p { color: var(--muted); }

/* Contact form */

form {
  display: grid;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}
label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
label span { font-weight: 400; color: var(--muted); }
input, select, textarea {
  font: inherit;
  color: inherit;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: transparent; }
textarea { resize: vertical; min-height: 140px; }
form button {
  justify-self: start;
  font: inherit;
  font-weight: 600;
  color: var(--button-text);
  background: var(--button-bg);
  border: 0;
  border-radius: 999px;
  padding: 12px 26px;
  cursor: pointer;
}
form button:hover { background: var(--button-hover); }
.hidden { position: absolute; left: -9999px; }

/* Japanese, Korean and Chinese headings: no tight tracking, and room between lines. */
:is(:lang(ja), :lang(ko), :lang(zh-Hans)) :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.3; }
html:lang(ja) :is(h1, h2, h3) { word-break: auto-phrase; }
/* Korean breaks between words, not between syllables. */
html:lang(ko) body { word-break: keep-all; }

@media (max-width: 900px) {
  .extras { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 16px 0 48px; }
  .hero .phone { width: min(270px, 78%); }
  .cards, .plans { grid-template-columns: 1fr; }
  section { padding-top: 72px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.flip > div { order: 0; }
  .split .phone { width: min(260px, 74%); }
}

@media (max-width: 480px) {
  /* Room for the longer French and Russian labels down to 360px. */
  .top { gap: 12px; }
  .brand { gap: 8px; }
  .top nav { gap: 12px; font-size: 14px; }
  .top nav .pill { padding: 6px 11px; }
  /* On translated pages, header links to English-only pages (marked hreflang) move to the footer. */
  .top nav a[hreflang] { display: none; }
  .hero .sub { font-size: 18px; }
  .extras { grid-template-columns: 1fr; }
  .facts { gap: 18px 16px; }
  .facts strong { font-size: 16px; }
  .plan { padding: 22px; }
}

/* The hero's header can't fit four links on 375px phones and smaller; Support stays in the footer. */
@media (max-width: 380px) {
  .hero-band .top nav a[href$="/support/"] { display: none; }
}
