/* Gongfu Timer — landing page. Cal-AI-style conversion structure, calm tea identity. */

:root {
  --paper: #f6f2ea;
  --paper-2: #efe9dc;
  --card: #fffdf8;
  --ink: #2b271f;
  --ink-soft: #5a5348;
  --ink-faint: #8b8273;
  --line: #e4dccb;
  --tea: #5f8767;
  --tea-deep: #47694f;
  --clay: #b0764f;
  --dark: #14181a;
  --shadow: 0 24px 60px rgba(43, 39, 31, 0.16);
  --shadow-sm: 0 8px 24px rgba(43, 39, 31, 0.1);
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--tea-deep);
  text-decoration: none;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}
section {
  padding: 0 24px;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 12px;
  font-family: var(--sans);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--tea-deep);
  color: #f4faf5;
  box-shadow: 0 8px 22px rgba(71, 105, 79, 0.28);
}
.btn-primary:hover {
  background: #3c5b43;
}
.btn-ghost {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--tea);
  color: var(--tea-deep);
}
.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}
.btn-lg {
  padding: 14px 26px;
  font-size: 16px;
}

/* Download buttons — the primary CTAs, with an OS icon */
.btn-dl {
  background: var(--tea-deep);
  color: #f4faf5;
  padding: 11px 20px;
  font-size: 15px;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(71, 105, 79, 0.26);
}
.btn-dl:hover {
  background: #3c5b43;
}
.btn-dl-sm {
  padding: 8px 15px;
  font-size: 13.5px;
  gap: 8px;
  box-shadow: none;
}
.os-ico {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.btn-dl-sm .os-ico {
  width: 15px;
  height: 15px;
}

/* Subtle "view source" text line (not a button) */
.gh-line {
  margin: 15px 0 0;
  font-size: 14px;
}
.gh-line-center {
  text-align: center;
}
.gh-line a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-faint);
  transition: color 0.15s ease;
}
.gh-line a:hover {
  color: var(--tea-deep);
}
.gh-line svg {
  opacity: 0.85;
}

/* ---------------------------------------------------------------- nav */
.nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
  font-weight: 600;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
}
.nav-links a {
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.nav-links a:hover {
  color: var(--tea-deep);
}
.nav-gh {
  display: inline-flex;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------------- proof bar */
.proofbar {
  max-width: 1080px;
  margin: 6px auto 0;
  padding: 10px 24px;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.dots {
  display: inline-flex;
}
.dots i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-left: -6px;
  border: 2px solid var(--paper);
  background: linear-gradient(140deg, var(--tea), var(--clay));
  display: inline-block;
}
.dots i:first-child {
  margin-left: 0;
}

/* ---------------------------------------------------------------- hero */
.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 72px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--clay);
  margin: 0 0 16px;
  font-weight: 700;
}
.hero h1 {
  font-size: clamp(36px, 5.6vw, 58px);
  margin-bottom: 20px;
}
.lede {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 36ch;
  margin: 0 0 28px;
}
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.cta-center {
  justify-content: center;
}
.fine {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--ink-faint);
}
.hero-shot {
  display: flex;
  justify-content: center;
}
.hero-photo {
  position: relative;
  width: 100%;
  max-width: 460px;
}
.hero-photo > img:first-child {
  width: 100%;
  display: block;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.hero-widget {
  position: absolute;
  right: -22px;
  bottom: -30px;
  width: 158px;
  filter: drop-shadow(0 16px 32px rgba(20, 24, 26, 0.45));
}

/* ---------------------------------------------------------------- story */
.story {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: 76px;
  padding-bottom: 76px;
}
.story h2,
.how h2,
.community h2,
.showcase h2,
.get h2 {
  font-size: clamp(28px, 4vw, 40px);
  text-align: center;
  margin-bottom: 34px;
}

/* ---------------------------------------------------------------- UI showcase */
.showcase {
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 90px;
  padding-bottom: 40px;
  text-align: center;
}
.showcase h2 {
  margin-bottom: 18px;
}
.showcase-sub {
  max-width: 60ch;
  margin: 0 auto 44px;
  font-size: 18px;
  color: var(--ink-soft);
}
.shots {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}
.shots figure {
  margin: 0;
  width: 216px;
}
.shots img {
  width: 216px;
  height: auto;
  filter: drop-shadow(0 18px 36px rgba(20, 24, 26, 0.28));
}
.shots figcaption {
  margin-top: 18px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.45;
}

/* ---------------------------------------------------------------- banner */
.banner {
  padding: 0;
  margin: 84px 0 0;
}
.banner img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}
.prose {
  max-width: 600px;
  margin: 0 auto;
  font-size: 18.5px;
  color: var(--ink-soft);
}
.prose p {
  margin: 0 0 20px;
}
.prose em {
  color: var(--ink);
  font-style: italic;
}
.prose p:last-child {
  color: var(--ink);
}

/* ---------------------------------------------------------------- how */
.how {
  max-width: 960px;
  margin: 0 auto;
  padding-top: 84px;
  padding-bottom: 40px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 26px 24px;
  box-shadow: var(--shadow-sm);
}
.step h3 {
  font-size: 20px;
  margin: 0 0 10px;
}
.step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

/* ---------------------------------------------------------------- community */
.community {
  max-width: 960px;
  margin: 0 auto;
  padding-top: 90px;
  padding-bottom: 40px;
  text-align: center;
}
.community-sub {
  color: var(--ink-soft);
  font-size: 18px;
  margin: -18px auto 34px;
  max-width: 44ch;
}
.tea-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}
.tea-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.community-note {
  color: var(--ink-faint);
  font-style: italic;
  margin-top: 22px;
  font-size: 15px;
}

/* ---------------------------------------------------------------- get / CTA */
.get {
  max-width: 720px;
  margin: 40px auto 0;
  padding-top: 84px;
  padding-bottom: 96px;
  text-align: center;
}
.get-lede {
  color: var(--ink-soft);
  font-size: 19px;
  margin: -16px auto 30px;
  max-width: 46ch;
}

/* ---------------------------------------------------------------- footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 40px 24px;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 17px;
}
.foot-brand .brand-mark {
  width: 26px;
  height: 26px;
}
.foot-dl {
  display: flex;
  gap: 10px;
}
.foot-links {
  display: flex;
  gap: 24px;
  font-size: 15px;
}
.foot-links a {
  color: var(--ink-soft);
}
.foot-links a:hover {
  color: var(--tea-deep);
}
.foot-copy {
  width: 100%;
  margin: 8px 0 0;
  color: var(--ink-faint);
  font-size: 13.5px;
}

/* ---------------------------------------------------------------- legal pages */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.legal h1 {
  font-size: clamp(30px, 5vw, 42px);
  margin-bottom: 10px;
}
.legal .updated {
  color: var(--ink-faint);
  font-size: 14px;
  margin-bottom: 32px;
}
.legal h2 {
  font-size: 22px;
  margin: 34px 0 10px;
}
.legal p,
.legal li {
  color: var(--ink-soft);
  font-size: 16.5px;
}
.legal ul {
  padding-left: 22px;
}
.legal a {
  text-decoration: underline;
}
.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------------------------------------------------------------- download pages */
.dl-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 24px 96px;
}
.dl-hero {
  text-align: center;
  padding: 28px 0 4px;
}
.os-big {
  width: 46px;
  height: 46px;
  color: var(--tea-deep);
  display: block;
  margin: 0 auto 20px;
}
.dl-hero h1 {
  font-size: clamp(28px, 5vw, 38px);
}
.dl-lede {
  color: var(--ink-soft);
  font-size: 18px;
  margin-top: 14px;
  line-height: 1.5;
}
.dl-lede a {
  text-decoration: underline;
}
.dl-note {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 30px 28px;
  margin-top: 36px;
  box-shadow: var(--shadow-sm);
}
.dl-note h2 {
  font-size: 21px;
  margin: 0 0 12px;
}
.dl-note p {
  color: var(--ink-soft);
  font-size: 16px;
}
.dl-note ol,
.dl-note ul {
  color: var(--ink-soft);
  font-size: 16px;
  padding-left: 22px;
  line-height: 1.7;
}
.dl-note li {
  margin-bottom: 6px;
}
.dl-note a {
  text-decoration: underline;
}
.dl-note code {
  display: inline-block;
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 13.5px;
  margin: 4px 0;
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
    padding-top: 20px;
  }
  .lede {
    margin-left: auto;
    margin-right: auto;
  }
  .cta-row {
    justify-content: center;
  }
  .hero-shot {
    order: -1;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .nav-links a:not(.nav-gh):not(.btn) {
    display: none;
  }
  .tea-gallery {
    grid-template-columns: 1fr;
    max-width: 300px;
  }
  .hero-widget {
    width: 110px;
    right: 0;
  }
}
