/* PotsLog — site styles.
   Colours are lifted verbatim from the app's own palette
   (shared/.../designsystem/theme/PotsColors.kt and PotsColorScheme.kt) so the
   site and the product read as one thing. No web fonts, no third-party
   requests: the app makes no network call, and neither should the page that
   says so. */

:root {
  --bg-top: #EAF3F4;
  --bg-mid: #E2ECEE;
  --bg-bot: #DFE9EE;

  --ink: #1D2733;
  --body: #4A5560;
  --muted: #6B7684;
  --subtle: #8A94A0;

  --teal: #2FB8AC;
  --teal-deep: #0F5850;
  --teal-ink: #0F3D38;
  --blue: #6E93B5;
  --green: #4CAF7D;
  --amber: #E0A857;
  --coral: #E2694F;

  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.80);
  --glass-border: rgba(255, 255, 255, 0.70);
  --divider: rgba(29, 39, 51, 0.09);
  --shadow-rgb: 30, 55, 60;

  --panel-top: #173238;
  --panel-mid: #1C3A45;
  --panel-bot: #0F2429;
  --on-panel: #FFFFFF;
  --on-panel-muted: rgba(255, 255, 255, 0.74);
  --panel-glass: rgba(255, 255, 255, 0.10);
  --panel-border: rgba(255, 255, 255, 0.18);

  --bezel: #16262B;

  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1120px;
  --prose: 43rem;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-top: #111B1F;
    --bg-mid: #15212A;
    --bg-bot: #0E181D;

    --ink: #E4E8ED;
    --body: #BBC3CD;
    --muted: #8B95A1;
    --subtle: #6A7581;

    --teal: #3CCCC0;
    --teal-deep: #5DE0D4;
    --teal-ink: #7AEEE4;
    --blue: #89ABCA;
    --green: #5CC28D;
    --amber: #EBB96E;
    --coral: #EC8068;

    --glass: rgba(30, 42, 48, 0.55);
    --glass-strong: rgba(30, 42, 48, 0.80);
    --glass-border: rgba(255, 255, 255, 0.10);
    --divider: rgba(255, 255, 255, 0.10);
    --shadow-rgb: 0, 0, 0;

    --panel-top: #0C161A;
    --panel-mid: #101F25;
    --panel-bot: #0A1317;
    --panel-border: rgba(255, 255, 255, 0.12);

    color-scheme: dark;
  }
}

/* ── Base ──────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg-mid);
  background-image: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 45%, var(--bg-bot) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.021em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 5.6vw, 3.5rem); letter-spacing: -0.032em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); letter-spacing: -0.026em; }
h3 { font-size: 1.16rem; letter-spacing: -0.015em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal-deep); text-decoration-color: rgba(47, 184, 172, 0.45); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

img { max-width: 100%; height: auto; display: block; }

strong { color: var(--ink); font-weight: 650; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg-top);
  padding: 0.7em 1.1em; border-radius: 0 0 10px 0; z-index: 100;
}
.skip:focus { left: 0; }

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

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

section { padding: clamp(56px, 8vw, 104px) 0; }
section + section { padding-top: 0; }

.eyebrow {
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin: 0 0 14px;
}

.lede { font-size: clamp(1.06rem, 2vw, 1.24rem); color: var(--body); max-width: 40rem; }

/* ── Header ────────────────────────────────────────────────────────────── */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg-top) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--divider);
}
.site-head .wrap {
  display: flex; align-items: center; gap: 20px;
  min-height: 62px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--ink); text-decoration: none;
  letter-spacing: -0.02em; font-size: 1.06rem;
  margin-right: auto;
}
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: var(--muted); text-decoration: none; font-size: 0.925rem; font-weight: 550;
  padding: 7px 11px; border-radius: 9px;
}
.site-nav a:hover { color: var(--ink); background: var(--glass); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--glass); }

/* Four nav items and a wordmark do not fit one line on a phone, and forcing them
   to made the last item overlap the brand. Below this width the nav takes its own
   row, pulled left so its first label lines up with the brand icon above it. */
@media (max-width: 620px) {
  .site-head .wrap {
    flex-wrap: wrap;
    gap: 2px 12px;
    min-height: 0;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .brand { width: 100%; margin-right: 0; }
  .site-nav { margin-left: -11px; }
}

/* ── Cards & glass ─────────────────────────────────────────────────────── */

.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 26px 26px 28px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 2px rgba(var(--shadow-rgb), 0.04),
              0 12px 32px -12px rgba(var(--shadow-rgb), 0.14);
}
.card h3 { margin-bottom: 0.35em; }
.card p { font-size: 0.965rem; color: var(--body); }

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

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

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 30px; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px;
  border-radius: 13px;
  font-size: 0.97rem; font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--teal-deep), #0B4640);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(15, 88, 80, 0.55);
}
@media (prefers-color-scheme: dark) {
  .btn-primary { background: linear-gradient(180deg, #1B6E64, #10534B); }
}
.btn-ghost {
  background: var(--glass-strong);
  border-color: var(--glass-border);
  color: var(--ink);
}
.btn-store {
  background: var(--glass-strong);
  border: 1px dashed rgba(var(--shadow-rgb), 0.22);
  color: var(--muted);
  cursor: default;
  font-weight: 600;
}
.btn-store:hover { transform: none; }
.btn-store .store-sub { display: block; font-size: 0.72rem; font-weight: 550; letter-spacing: 0.05em; text-transform: uppercase; color: var(--subtle); }
.btn-store .store-main { display: block; font-size: 0.98rem; color: var(--ink); font-weight: 650; letter-spacing: -0.01em; }

/* ── Chips ─────────────────────────────────────────────────────────────── */

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.845rem; font-weight: 600; color: var(--teal-ink);
  background: rgba(47, 184, 172, 0.16);
  border: 1px solid rgba(47, 184, 172, 0.34);
  padding: 6px 13px; border-radius: 999px;
}
@media (prefers-color-scheme: dark) {
  .chip { color: var(--teal-ink); background: rgba(60, 204, 192, 0.13); border-color: rgba(60, 204, 192, 0.28); }
}

/* ── Device frame ──────────────────────────────────────────────────────── */

.device {
  border-radius: 30px;
  border: 11px solid var(--bezel);
  overflow: hidden;
  background: var(--bezel);
  box-shadow: 0 2px 4px rgba(var(--shadow-rgb), 0.10),
              0 30px 60px -24px rgba(var(--shadow-rgb), 0.42);
  width: 100%;
  max-width: 300px;
  line-height: 0;
}
.device img { border-radius: 20px; width: 100%; }
.device-lg { max-width: 330px; }

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

.hero { padding-top: clamp(48px, 7vw, 84px); position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 620px;
  background: radial-gradient(60% 60% at 30% 20%, rgba(47, 184, 172, 0.20), transparent 70%);
  pointer-events: none; z-index: -1;
}
.hero-grid {
  display: grid; gap: clamp(32px, 5vw, 60px);
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
}
.hero-art { display: flex; justify-content: center; align-items: center; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .device { max-width: 262px; }
}

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

.feature {
  display: grid; gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  padding: clamp(38px, 5vw, 62px) 0;
  border-top: 1px solid var(--divider);
}
.feature:first-of-type { border-top: 0; }
.feature-art { display: flex; justify-content: center; align-items: center; }
.feature.flip .feature-text { order: 2; }
@media (max-width: 800px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-text { order: 0; }
}
.feature h2 { font-size: clamp(1.45rem, 3vw, 1.95rem); }
.feature ul { margin: 1.1em 0 0; padding: 0; list-style: none; }
.feature li {
  position: relative; padding-left: 24px; margin-bottom: 0.5em;
  font-size: 0.965rem;
}
.feature li::before {
  content: ""; position: absolute; left: 3px; top: 0.62em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
}

/* ── Dark panel ────────────────────────────────────────────────────────── */

.panel {
  background: linear-gradient(160deg, var(--panel-top), var(--panel-mid) 55%, var(--panel-bot));
  border-radius: 30px;
  padding: clamp(38px, 6vw, 68px);
  color: var(--on-panel-muted);
  box-shadow: 0 26px 60px -28px rgba(var(--shadow-rgb), 0.55);
  position: relative; overflow: hidden;
}
.panel::after {
  content: ""; position: absolute; top: -30%; right: -10%; width: 60%; height: 120%;
  background: radial-gradient(closest-side, rgba(47, 184, 172, 0.22), transparent);
  pointer-events: none;
}
.panel h2, .panel h3 { color: var(--on-panel); }
.panel .eyebrow { color: #7AEEE4; }
.panel a { color: #7AEEE4; }
.panel .panel-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-top: 34px; position: relative; }
.panel .panel-item {
  background: var(--panel-glass);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.panel .panel-item h3 { font-size: 1rem; margin-bottom: 0.25em; }
.panel .panel-lede { color: var(--on-panel-muted); }
.panel .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  text-decoration: none;
}
.panel .btn-ghost:hover { background: rgba(255, 255, 255, 0.18); }
.panel .panel-item p { font-size: 0.9rem; margin: 0; }

/* ── Plans ─────────────────────────────────────────────────────────────── */

.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(288px, 1fr)); margin-top: 34px; }
.plan { display: flex; flex-direction: column; }
.plan .price { font-size: 1.9rem; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; margin: 2px 0 4px; }
.plan .price small { font-size: 0.9rem; font-weight: 550; color: var(--muted); letter-spacing: 0; }
.plan .price-sm { font-size: 1.22rem; letter-spacing: -0.02em; line-height: 1.3; }
.plan ul { list-style: none; margin: 18px 0 0; padding: 0; }
.plan li { position: relative; padding-left: 26px; margin-bottom: 0.45em; font-size: 0.945rem; }
.plan li::before {
  content: ""; position: absolute; left: 4px; top: 0.42em;
  width: 11px; height: 6px; border: 2px solid var(--teal-deep);
  border-top: 0; border-right: 0; transform: rotate(-45deg);
}
.plan-featured { border-color: rgba(47, 184, 172, 0.42); background: var(--glass-strong); }
.plan-note { font-size: 0.9rem; color: var(--muted); margin-top: 18px; }

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

.faq { margin-top: 30px; border-top: 1px solid var(--divider); }
.faq details { border-bottom: 1px solid var(--divider); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 18px 34px 18px 2px;
  font-weight: 650; color: var(--ink); font-size: 1.02rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 27px;
  width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 31px; }
.faq .answer { padding: 0 34px 20px 2px; font-size: 0.965rem; }

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

.doc-head { padding: clamp(44px, 6vw, 76px) 0 0; }
.doc-meta { font-size: 0.885rem; color: var(--muted); margin-top: 18px; }
.doc-meta span + span::before { content: "·"; margin: 0 9px; color: var(--subtle); }

.toc {
  margin: 34px 0 0; padding: 20px 24px;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
}
.toc p { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 1.25em; }
.toc li { margin-bottom: 4px; font-size: 0.94rem; }

.doc { padding-top: clamp(34px, 4vw, 48px); }
.doc h2 {
  font-size: 1.32rem; letter-spacing: -0.019em;
  margin: 2.1em 0 0.55em; padding-top: 1.5em;
  border-top: 1px solid var(--divider);
}
.doc > .prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc h3 { font-size: 1.02rem; margin: 1.6em 0 0.4em; }
.doc p, .doc li { font-size: 1rem; }
.doc ul, .doc ol { padding-left: 1.35em; margin: 0 0 1.1em; }
.doc li { margin-bottom: 0.45em; }
.doc table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 0.94rem; }
.doc th, .doc td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--divider); vertical-align: top; }
.doc th { color: var(--ink); font-weight: 650; }
.doc-scroll { overflow-x: auto; }

.callout {
  background: rgba(47, 184, 172, 0.11);
  border: 1px solid rgba(47, 184, 172, 0.30);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 1.4em 0;
  font-size: 0.965rem;
}
.callout-warn {
  background: rgba(224, 168, 87, 0.13);
  border-color: rgba(224, 168, 87, 0.34);
}
.callout-prose { max-width: var(--prose); }
.callout-spaced { margin-top: 26px; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { display: block; margin-bottom: 4px; }

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

.site-foot {
  margin-top: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--divider);
  padding: 44px 0 56px;
  font-size: 0.92rem;
}
.foot-grid { display: grid; gap: 30px; grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(150px, 1fr)); }
.foot-grid h4 { font-size: 0.775rem; letter-spacing: 0.11em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 7px; }
.foot-grid a { color: var(--body); text-decoration: none; }
.foot-grid a:hover { color: var(--ink); text-decoration: underline; }
.foot-brand p { font-size: 0.9rem; color: var(--muted); max-width: 30rem; }
.foot-bottom {
  margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--divider);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  color: var(--subtle); font-size: 0.86rem;
}

/* ── Utilities ─────────────────────────────────────────────────────────── */

.section-tall { padding-top: clamp(64px, 10vw, 128px); }
.chips-spaced { margin-top: 30px; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.narrow { max-width: 38rem; }
.center .lede, .center .narrow { margin-left: auto; margin-right: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
