/* Widgets On Top — marketing site
   One stylesheet shared by index.html, privacy.html and support.html. */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f8;
  --ink: #16181d;
  --ink-soft: #5b6070;
  --ink-faint: #8b90a0;
  --line: rgba(20, 22, 28, 0.10);
  --card: #ffffff;
  --card-line: rgba(20, 22, 28, 0.08);
  --brand: #f3b229;
  --brand-ink: #16181d;
  --shadow-sm: 0 1px 2px rgba(16, 18, 24, 0.06), 0 4px 12px rgba(16, 18, 24, 0.06);
  --shadow-lg: 0 12px 40px rgba(16, 18, 24, 0.14);
  --radius: 16px;
  --maxw: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f13;
    --bg-soft: #14161c;
    --ink: #f2f3f7;
    --ink-soft: #a7adbd;
    --ink-faint: #767d90;
    --line: rgba(255, 255, 255, 0.12);
    --card: #191c23;
    --card-line: rgba(255, 255, 255, 0.10);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 14px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 56px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.nav-brand img { width: 26px; height: 26px; border-radius: 6px; }

.nav-links {
  margin-left: auto;
  display: flex;
  gap: 22px;
  font-size: 15px;
  color: var(--ink-soft);
}

.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--ink); }

/* ---------- Hero ---------- */

/* Horizontal padding is repeated here because a shorthand on .hero would
   otherwise cancel the .wrap padding it relies on. */
.hero {
  text-align: center;
  padding: 72px 24px 40px;
}

.hero img.appicon {
  width: 132px;
  height: 132px;
  border-radius: 28px;
  filter: drop-shadow(0 12px 28px rgba(16, 18, 24, 0.22));
}

h1 {
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 22px 0 0;
  font-weight: 700;
}

.tagline {
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--ink-soft);
  max-width: 620px;
  margin: 16px auto 0;
}

.cta {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-appstore:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-appstore small { display: block; font-size: 11px; font-weight: 500; opacity: 0.8; line-height: 1.2; }
.btn-appstore strong { display: block; font-size: 17px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }

@media (prefers-color-scheme: dark) {
  .btn-appstore { background: #fff; color: #000; }
}

.price-note { font-size: 14px; color: var(--ink-faint); }

/* ---------- Widget showcase ---------- */

.showcase {
  margin: 20px auto 0;
  padding: 44px 24px 52px;
  border-radius: 28px;
  background:
    radial-gradient(120% 120% at 15% 10%, #ffd97a 0%, transparent 55%),
    radial-gradient(120% 120% at 85% 20%, #8fb8ff 0%, transparent 50%),
    linear-gradient(160deg, #f4c46a 0%, #7fa6f0 55%, #6f7cd8 100%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

/* A widget card, styled to match the app's real cards. */
.widget {
  --accent: #297af2;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(20, 22, 28, 0.08);
  box-shadow: 0 10px 30px rgba(16, 18, 24, 0.22);
  padding: 15px 16px;
  color: #16181d;
  font-size: 13px;
  text-align: left;
}

.widget.tint-yellow { background: #fdf0cf; }
.widget.tint-mint   { background: #dbf3e6; }
.widget.tint-coral  { background: #fde0da; }
.widget.tint-blue   { background: #dbe8fd; }
.widget.tint-dark   { background: #111214; color: #f2f3f7; border-color: rgba(255,255,255,0.10); }

.w-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 650;
  font-size: 15px;
  margin-bottom: 8px;
}

.w-sub { font-size: 11px; color: #6a7080; font-weight: 500; }
.widget.tint-dark .w-sub { color: #9aa0b0; }

.w-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 0;
}

.box {
  width: 16px; height: 16px;
  border-radius: 5px;
  border: 1.5px solid rgba(20, 22, 28, 0.28);
  flex: none;
}

.box.done {
  background: var(--accent);
  border-color: var(--accent);
  position: relative;
}

.box.done::after {
  content: "";
  position: absolute;
  left: 4.5px; top: 1.5px;
  width: 4px; height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.w-row.done span { color: #8b90a0; text-decoration: line-through; }

.w-note-line {
  height: 8px;
  border-radius: 4px;
  background: rgba(20, 22, 28, 0.13);
  margin: 9px 0;
}
.w-note-line.short { width: 55%; }
.w-note-line.mid { width: 78%; }

.w-clock {
  font-size: 42px;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  text-align: center;
  line-height: 1.1;
}

.w-clock-date { text-align: center; font-size: 12px; color: #9aa0b0; }

.ring-wrap { display: flex; justify-content: center; padding: 6px 0 2px; }

.w-big {
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.w-mid { text-align: center; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.w-tiny { text-align: center; font-size: 10.5px; color: #8b90a0; margin-top: 4px; }

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(20, 22, 28, 0.07);
  font-size: 11px;
  font-weight: 650;
}

/* ---------- Sections ---------- */

section { padding: 88px 0; }

/* A bare `section` selector loses to `.wrap`, which would zero out the
   vertical padding on every section that is also a .wrap container. */
section.wrap { padding: 88px 24px; }

/* Air between the widget showcase and the section that follows it. */
.showcase { margin-bottom: 12px; }

h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  font-weight: 700;
}

.section-intro {
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 0 34px;
}

.center { text-align: center; }
.center .section-intro { margin-left: auto; margin-right: auto; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin: 12px 0 6px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.dot {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

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

.feature-list li {
  padding: 11px 0 11px 30px;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: var(--ink-soft);
}

.feature-list li:last-child { border-bottom: 0; }

.feature-list li::before {
  content: "";
  position: absolute;
  left: 6px; top: 20px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.feature-list strong { color: var(--ink); font-weight: 600; }

.band {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.kbd {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 1px 0 var(--line);
}

/* ---------- Article pages ---------- */

/* Keeps .wrap's horizontal padding — a shorthand here would zero it out. */
.article { padding: 56px 24px 72px; max-width: 808px; }
.article h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 6px; }
.article .updated { color: var(--ink-faint); font-size: 14px; margin: 0 0 34px; }
.article h2 { font-size: 22px; margin: 34px 0 8px; }
.article p, .article li { color: var(--ink-soft); }
.article strong { color: var(--ink); }
.article ul { padding-left: 20px; }
.article li { margin: 6px 0; }

.faq {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.faq:last-of-type { border-bottom: 1px solid var(--line); }
.faq h3 { margin: 0 0 6px; font-size: 17px; font-weight: 650; color: var(--ink); }
.faq p { margin: 0; }

.callout {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 26px 0;
}

.callout p:last-child { margin-bottom: 0; }

.mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--brand);
  padding-bottom: 1px;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 46px;
  color: var(--ink-faint);
  font-size: 14px;
}

footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
footer a { text-decoration: none; color: var(--ink-soft); }
footer a:hover { color: var(--ink); }
footer .spacer { margin-left: auto; }

/* ---------- Responsive ---------- */

/* Tablets and small laptops: ease off the generous desktop rhythm. */
@media (max-width: 900px) {
  section,
  section.wrap { padding: 64px 24px; }
  .hero { padding: 56px 24px 32px; }
  .article { padding: 44px 24px 60px; }
  .showcase { padding: 34px 18px 40px; }
}

/* Phones: tighter still, and everything gets a comfortable 20px gutter. */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  section,
  section.wrap { padding: 48px 20px; }
  .hero { padding: 40px 20px 24px; }
  .hero img.appicon { width: 104px; height: 104px; }
  .article { padding: 32px 20px 48px; }
  .article h2 { margin-top: 26px; }
  .nav-brand { font-size: 15px; }
  .nav-links { gap: 15px; font-size: 14px; }
  /* Too many links crowd the brand on a phone; this one duplicates content
     the visitor reaches by scrolling anyway. */
  .nav-links .only-wide { display: none; }
  .showcase {
    margin-top: 12px;
    padding: 22px 14px 26px;
    border-radius: 20px;
  }
  .showcase-grid { gap: 14px; }
  .grid, .split { gap: 14px; }
  .card { padding: 18px; }
  footer { padding: 26px 0 34px; }
  footer .wrap { gap: 10px 18px; }
  footer .spacer { margin-left: 0; flex-basis: 100%; height: 0; }
}
