/* Pontime site, Sereno design system: tokens shared with the app (light and dark). */
:root {
  --surface: #F7F8F7; --raised: #FFFFFF; --sunken: #EEF1F0; --line: #DDE3E1; --line-strong: #7F8B88;
  --ink: #1B2120; --muted: #5B6664;
  --primary: #2E6A68; --on-primary: #FFFFFF; --primary-soft: #E3EFED;
  --success: #2F7A4A; --success-soft: #E7F3EB;
  --sans: Figtree, "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px;
  color-scheme: light;
}
/* Dark: the device's choice, unless the visitor picked a theme with the header button. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #121514; --raised: #1A1E1D; --sunken: #0D0F0F; --line: #2A302F; --line-strong: #6F7B78;
    --ink: #E7ECEA; --muted: #9AA6A3;
    --primary: #7FC4BD; --on-primary: #0D2221; --primary-soft: #1C3332;
    --success: #6FCF97; --success-soft: #15291D;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --surface: #121514; --raised: #1A1E1D; --sunken: #0D0F0F; --line: #2A302F; --line-strong: #6F7B78;
  --ink: #E7ECEA; --muted: #9AA6A3;
  --primary: #7FC4BD; --on-primary: #0D2221; --primary-soft: #1C3332;
  --success: #6FCF97; --success-soft: #15291D;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 16px/24px var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: var(--radius-sm); }
b, strong { font-weight: 600; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* SiteNav */
header.top { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 16px 0; }
header.top a.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
/* The logo keeps its light colours, on a soft Lago tile in both themes. */
.mark { width: 40px; height: 40px; border-radius: var(--radius-md); background: #E3EFED; display: grid; place-items: center; }
.mark img { width: 28px; height: 28px; }
.brand b { font-size: 18px; line-height: 24px; font-weight: 600; }
header.top nav { margin-left: auto; display: flex; gap: 4px; }
header.top nav a { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 9999px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted); text-decoration: none; transition: background-color .15s ease-out, color .15s ease-out; }
header.top nav a:hover { color: var(--ink); background: var(--sunken); }
header.top nav a[aria-current="page"] { color: var(--ink); background: var(--primary-soft); }
/* Theme switch (Sereno ghost icon button): shows the moon in light, the sun in dark. */
.theme { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 9999px; background: transparent; color: var(--ink); cursor: pointer; transition: background-color .15s ease-out; }
.theme:hover { background: var(--sunken); }
.theme:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.theme .sun { display: none; }
:root[data-theme="dark"] .theme .sun { display: block; }
:root[data-theme="dark"] .theme .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .sun { display: block; }
  :root:not([data-theme="light"]) .theme .moon { display: none; }
}

/* Type scale */
h1, h2, h3 { font-weight: 600; margin: 0; }
h2 { font-size: 22px; line-height: 28px; margin: 48px 0 16px; }
h3 { font-size: 18px; line-height: 24px; }

.hero { padding: 48px 0 32px; max-width: 760px; }
.hero h1 { font-size: clamp(40px, 6vw, 56px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 16px; text-wrap: balance; }
.hero p { font-size: 18px; line-height: 28px; color: var(--muted); max-width: 62ch; margin: 0 0 24px; }

/* Official Google Play badge (Google's artwork, unchanged). The PNG keeps a little
   space above and below the badge; the negative margins take it back. */
.play { display: inline-block; margin: -10px 0; border-radius: var(--radius-md); }
.play img { display: block; width: auto; height: 84px; }
.play:focus-visible { outline: 2px solid var(--primary); outline-offset: -8px; }
.hero .req { font-size: 14px; line-height: 20px; margin: 12px 0 0; }

/* Buttons: one filled per section. */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 16px; border-radius: var(--radius-md); border: 1px solid transparent; background: var(--primary); color: var(--on-primary); font-size: 14px; line-height: 20px; font-weight: 500; text-decoration: none; }
.btn.soon { background: transparent; color: var(--ink); border-color: var(--line-strong); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 16px 0; }
.card { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 20px; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.plan { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.plan.pro { border-color: var(--primary); }
.plan .price { font-family: var(--mono); font-weight: 500; font-size: 30px; line-height: 36px; font-variant-numeric: tabular-nums; margin: 0; }
.plan .price small { display: block; font-family: var(--sans); font-weight: 400; font-size: 14px; line-height: 20px; color: var(--muted); margin-top: 4px; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; line-height: 20px; }
.plan li { display: flex; gap: 8px; }
.plan li::before { content: ""; flex: none; width: 20px; height: 20px; background: var(--success); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.plan li.no { color: var(--muted); }
.plan li.no::before { background: var(--muted); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E"); }
.note { font-size: 14px; line-height: 20px; color: var(--muted); margin: 16px 0 0; }

footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 24px 0 48px; font-size: 14px; line-height: 20px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }
footer .tm { flex-basis: 100%; font-size: 12px; line-height: 16px; }

/* Legal pages */
.doc { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 8px 32px 32px; margin: 8px 0 0; max-width: 820px; overflow-wrap: break-word; }
.doc h1 { font-size: 30px; line-height: 36px; letter-spacing: -0.01em; margin: 24px 0 4px; }
.doc h2 { font-size: 22px; line-height: 28px; margin: 32px 0 8px; }
.doc p, .doc li { line-height: 26px; }
.doc .version { color: var(--muted); font-size: 14px; line-height: 20px; margin: 0 0 24px; }
.table-scroll { overflow-x: auto; margin: 0 -8px; }
.doc table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 8px; border-bottom: 1px solid var(--line); }
.doc th { font-size: 12px; line-height: 16px; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; color: var(--muted); }
.callout { background: var(--primary-soft); border-radius: var(--radius-lg); padding: 16px; margin: 16px 0; }

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  header.top { flex-wrap: wrap; gap: 8px; }
  header.top .theme { margin-left: auto; }
  header.top nav { order: 3; margin-left: -12px; width: calc(100% + 12px); }
  .hero { padding: 32px 0 24px; }
  .card, .plan { padding: 16px; }
  .doc { padding: 4px 16px 24px; }
  /* One link per line, each a full-height tap target. */
  footer { flex-direction: column; gap: 0; }
  footer a { display: flex; align-items: center; min-height: 44px; }
  footer > span { padding: 12px 0; }
  footer .tm { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) { header.top nav a, .theme { transition: none; } }
