/* Static pockado.app pages. Brand: coral CTA with dark text (white text fails WCAG contrast on coral). */
:root {
  --coral: #ff7b7b;
  --ink: #2c2c2e;
  --muted: #5f5f66;
  --line: #ececf0;
  --bg: #ffffff;
  --soft: #fff5f4;
  --radius: 16px;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 12px; }
.top-right { display: flex; align-items: center; gap: 4px; }
.lang-mini { display: flex; }
.lang-mini a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 48px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); text-decoration: none; }
.lang-mini a:hover, .lang-mini a:focus-visible { color: var(--ink); text-decoration: underline; }
.lang-mini a[aria-current="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.lang-mini a:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; border-radius: 6px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.35rem; }
.brand img { width: 36px; height: 36px; }

/* Top bar pages: in the bar on tablets and desktops, in the ☰ menu on phones. */
.top-links { display: none; gap: 4px; margin-right: auto; margin-left: 20px; }
.top-links a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; font-weight: 600; color: var(--muted); text-decoration: none; border-radius: 10px; }
.top-links a:hover, .top-links a:focus-visible { color: var(--ink); text-decoration: underline; }
@media (min-width: 760px) { .top-links { display: flex; } .menu { display: none; } }
/* Pop-overs (language, menu): <details>, so they work without script; site.js closes them on Escape or a tap
   elsewhere. */
.pop { position: relative; }
.pop > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-width: 48px; min-height: 48px; justify-content: center; padding: 0 8px; border-radius: 12px; cursor: pointer; font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.pop > summary::-webkit-details-marker { display: none; }
.pop > summary:hover, .pop[open] > summary { background: var(--soft); }
.pop > summary:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.pop-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; display: flex; flex-direction: column; min-width: 200px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.pop-panel a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 10px; font-weight: 600; text-decoration: none; color: var(--ink); }
.pop-panel a:hover, .pop-panel a:focus-visible { background: var(--soft); }
.pop-panel a[aria-current="true"] { background: var(--soft); text-decoration: underline; text-underline-offset: 5px; }
/* The language list is a pop-over panel now (the .lang-mini rules below are for the 404 page's plain row). */
.lang-pick .lang-mini { display: flex; }
/* On phones the globe sits mid-bar: open its list to the right so it stays on screen. */
@media (max-width: 759px) { .lang-pick .pop-panel { right: auto; left: 0; } }
.pop-panel a { white-space: nowrap; }
.lang-pick .lang-mini a { min-width: 0; justify-content: flex-start; font-size: 1rem; letter-spacing: 0; text-transform: none; }

/* Buttons (48px tap targets) */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent;
}
.btn-primary { background: var(--coral); color: var(--ink); }
.btn-primary:hover, .btn-primary:focus-visible { filter: brightness(0.96); }
.btn-ghost { border-color: var(--line); }
.btn:focus-visible, .foot a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* Hero */
.hero { background: var(--soft); }
.hero .wrap { display: grid; gap: 32px; padding-top: 56px; padding-bottom: 56px; align-items: center; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.2fr 0.8fr; } }
.overline { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; font-weight: 700; color: var(--muted); margin: 0 0 8px; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.12; margin: 0 0 16px; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 24px; max-width: 38em; }
.note { font-size: 0.95rem; color: var(--muted); margin: 16px 0 0; }
.hero-art { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.hero-logo { width: min(180px, 45vw); }
/* Maya's card: the app's hero illustration (MarketingHeroIllustration). */
.maya { position: relative; width: min(340px, 90vw); padding-bottom: 40px; text-align: left; }
.maya-card { background: #fff; border-radius: 18px; padding: 16px 18px; box-shadow: 0 6px 24px rgba(0,0,0,0.12); }
.maya-top { display: flex; align-items: center; gap: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--coral); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.maya-name { font-weight: 700; flex: 1; }
.maya-balance { font-size: 1.6rem; font-weight: 800; text-align: right; line-height: 1.1; }
.maya-balance small { display: block; font-size: 0.75rem; font-weight: 500; color: var(--muted); }
.maya-week { display: flex; justify-content: space-between; font-size: 0.85rem; margin-top: 14px; }
.maya-week span:last-child { color: var(--muted); }
.bar { height: 6px; border-radius: 3px; background: var(--line); margin: 6px 0 10px; overflow: hidden; }
.bar span { display: block; width: 75%; height: 100%; background: #2e9d5b; }
.maya ul { list-style: none; margin: 0; padding: 0; }
.maya li { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; padding: 4px 0; }
.tick { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #b9b9c0; flex: none; }
.done .tick, .maya-toast .tick { border-color: #2e9d5b; background: #2e9d5b radial-gradient(circle, #fff 0 2px, transparent 3px); }
.maya-toast { position: absolute; left: 24px; right: -12px; bottom: 0; display: flex; gap: 10px; align-items: center; background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 14px; box-shadow: 0 6px 18px rgba(0,0,0,0.2); }
.maya-toast strong { display: block; font-size: 0.9rem; }
.maya-toast small { display: block; font-size: 0.78rem; opacity: 0.8; }

/* Sections */
section { padding: 56px 0; }
/* Phones: the bar keeps the logo and the name, the language and the menu; Sign in (or Open Pockado) moves into the
   menu, and the page's own buttons offer it too (see data-visitor below). Below 340px (iPhone SE zoomed) the name goes, the link keeps aria-label. */
.menu-sign-in { display: none !important; }
@media (max-width: 479px) {
  .top-sign-in { display: none; }
  .menu-sign-in { display: flex !important; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
}
@media (max-width: 339px) { .brand span { display: none; } }
/* Phones: the bar holds the logo, the language, Sign in and ☰; nothing may push the page wider than the screen. */
.top .wrap > * { min-width: 0; }
.top-right { flex-shrink: 0; }
/* Phones: less dead space around the hero and between blocks. */
@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero .wrap { padding-top: 24px; padding-bottom: 8px; gap: 20px; }
  .brand { font-size: 1.2rem; gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  .lang-mini a { min-width: 34px; }
  .top .btn { padding: 0 14px; font-size: 0.95rem; }
  .pop > summary { min-width: 44px; padding: 0 6px; }
  section { padding: 36px 0; }
  .maya { padding-bottom: 30px; }
  .top .wrap { min-height: 60px; }
}
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin: 0 0 8px; }
.sub { color: var(--muted); margin: 0 0 32px; }
.center { text-align: center; }
.center .sub { max-width: 40em; margin-left: auto; margin-right: auto; }
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; text-align: left; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.icon-box { display: inline-flex; width: 40px; height: 40px; border-radius: 12px; background: var(--soft); color: #c9473f; align-items: center; justify-content: center; margin-bottom: 12px; }
.icon { width: 22px; height: 22px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }
/* Pricing: two plan cards side by side from tablet width; feature lists left-aligned. */
@media (min-width: 640px) { .grid.plans { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; } }
.plans .card h2 { margin: 0 0 6px; font-size: 1.3rem; }
.plans .card p + p { margin-top: 12px; color: var(--ink); }
.plans .card ul { margin: 12px 0 0; padding-left: 1.2em; }
.plans .card p.trial { margin: 12px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--soft); font-weight: 700; color: var(--ink); }
.plans .card li { margin: 4px 0; }
ol.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; text-align: left; }
ol.steps li { counter-increment: step; position: relative; padding-left: 44px; min-height: 32px; }
ol.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: inline-flex; width: 32px; height: 32px; border-radius: 50%; background: var(--coral); color: var(--ink); font-weight: 800; align-items: center; justify-content: center; }
ol.steps p { margin: 0; padding-top: 4px; }
.cta { background: var(--soft); text-align: center; }
.cta p { color: var(--muted); margin: 0 0 24px; }
/* The explainer video (home page): full width up to the text column, the poster until the visitor presses play. */
.video video { display: block; width: 100%; max-width: 880px; height: auto; margin: 24px auto 0; border-radius: var(--radius); background: var(--soft); box-shadow: 0 6px 24px rgba(0,0,0,0.12); }
/* Two shapes of the same video; only the one that fits the window is shown. A hidden player (display: none) loads
   nothing, and neither has preload, so the other one costs no bandwidth. Tall = a narrow window held upright (a
   phone); wide = everything else (desktop, a tablet, a phone on its side). */
.video .explainer-tall { display: none; }
@media (orientation: portrait) and (max-width: 700px) {
  .video .explainer-wide { display: none; }
  .video .explainer-tall { display: block; width: auto; max-width: 100%; max-height: 78vh; aspect-ratio: 9 / 16; }
}
/* FAQ answers: hidden ones (a feature that is off) stay hidden whatever the layout says. */
[hidden] { display: none !important; }
.qa h2 { font-size: 1.3rem; margin-top: 32px; }
/* A Help article: intro, steps (numbered or bullets), the note, "Take me there" for signed-in visitors. */
.qa-steps { margin: 12px 0; padding-left: 1.4em; }
.qa-steps li { margin: 6px 0; padding-left: 4px; }
.qa-note { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--soft); }
.qa-go { margin: 14px 0 0; }
.doc a[href^="mailto:"] { font-weight: 600; }

/* Legal pages */
.doc { padding: 40px 0 56px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.doc h2 { font-size: 1.3rem; margin-top: 32px; }
.doc h3 { font-size: 1.1rem; margin-top: 24px; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.doc blockquote { margin: 16px 0; padding: 12px 18px; border-left: 4px solid var(--coral); background: var(--soft); border-radius: 8px; }
.doc blockquote p { margin: 0; }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; background: #f4f4f6; padding: 1px 5px; border-radius: 4px; word-break: break-word; }
.table { overflow-x: auto; margin: 16px 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: #fafafb; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 0.95rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot a { display: inline-flex; align-items: center; min-height: 48px; }

/* App Store button: only on iPhone/iPad (site.js sets <html data-ios="1">). There it comes first and the web
   "Get started" becomes the secondary choice. */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta .actions { justify-content: center; }
.ios-only { display: none; }
html[data-ios="1"] .ios-only { display: inline-flex; }
html[data-ios="1"] .web-start { background: transparent; border-color: var(--line); }

/* What this browser has done before (site.js sets <html data-visitor>; the page never redirects):
   "signed-in": Open Pockado first (Get started hidden; on iPhone/iPad the App Store button becomes the second choice);
   "returning" (signed in here before, signed out now): Sign in first, Get started second; on iPhone/iPad the App Store
   button stays first and Sign in replaces Get started. No mark: a new visitor, as before. */
html:not([data-visitor="signed-in"]) .signed-in-only { display: none !important; }
html[data-visitor="signed-in"] .not-signed-in { display: none !important; }
html:not([data-visitor="returning"]) .returning-only { display: none !important; }
html[data-visitor="signed-in"] .visit-open { order: -1; }
html[data-ios="1"][data-visitor="signed-in"] .ios-only { background: transparent; border-color: var(--line); }
html[data-visitor="returning"] .visit-sign-in { order: -1; }
html[data-visitor="returning"] .web-start { background: transparent; border-color: var(--line); }
html[data-ios="1"][data-visitor="returning"] .visit-sign-in { order: 0; background: transparent; border-color: var(--line); }
html[data-ios="1"][data-visitor="returning"] .web-start { display: none !important; }

/* Analytics choice (only on builds with a Tag Manager container). */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--paper, #fff); color: var(--ink); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08); padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 320px; font-size: 0.95rem; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.foot-link { display: inline-flex; align-items: center; min-height: 48px; background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.foot-link[hidden] { display: none; }
.foot-link:focus-visible, .consent a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
