/* Pagesa Plus — warm cream, dark ink, deep green; serif headings like a printed page.
   System fonts, so the page reads like the phone it is about. */
:root {
  /* warm cream paper, dark ink, one deep green — the colour of saving, not of a tech startup */
  --paper: #FAF7F0;
  --card: #FFFFFF;
  --ink: #1F2421;
  --muted: #57605A;
  --faint: #8B918B;
  --line: #E5E1D6;
  --line-strong: #CBC6B8;
  --accent: #1F5C45;
  --accent-soft: #E6EFE9;
  --amber: #9A5F12;
  --amber-soft: #F6EEDF;
  --ok: #1F5C45;
  --bad: #A23B2A;
  /* headings in a book serif that every phone and computer already has: nothing is downloaded */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Noto Serif", serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { max-width: 1060px; margin: 0 auto; padding-inline: 20px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.01em; }
h1 { font-size: clamp(42px, 6.2vw, 68px); line-height: 1.05; font-weight: 600; }
h2 { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.15; font-weight: 600; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── header ─────────────────────────────────────────────── */
.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.top-nav { display: flex; align-items: center; gap: 18px; }
/* the language: two small flags, the current one bright, the other one a link */
.flags { display: inline-flex; align-items: center; gap: 6px; }
.flag { display: inline-flex; border-radius: 3px; overflow: hidden; line-height: 0; opacity: .45; }
.flag img { display: block; width: 21px; height: 16px; object-fit: cover; }
.flag.on { opacity: 1; box-shadow: 0 0 0 1.5px var(--accent); }
.top-link, .top nav a { font-size: 15px; font-weight: 600; color: var(--accent); text-decoration: none; }

/* ── hero ───────────────────────────────────────────────── */
.hero { padding-block: clamp(40px, 7vw, 84px) clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; } }
.hero-text { display: grid; gap: 22px; max-width: 560px; }
.kicker { font-size: 15px; font-weight: 600; color: var(--accent); }
.lede { font-size: clamp(17px, 2vw, 19px); color: var(--muted); }

/* the form: a label above each field and a single underline, like filling in a paper form */
.capture { display: grid; gap: 14px; margin-top: 8px; max-width: 440px; }
form.join { display: grid; gap: 18px; }
.field { display: grid; gap: 4px; }
.field span { font-size: 14px; font-weight: 600; color: var(--muted); }
.field em { font-style: normal; font-weight: 400; color: var(--faint); }
.field input {
  min-width: 0; font: inherit; font-size: 17px; color: var(--ink);
  background: transparent; border: none; border-bottom: 1.5px solid var(--line-strong);
  border-radius: 0; padding: 8px 0;
}
.field input:focus { outline: none; border-bottom-color: var(--accent); }
form.join button { justify-self: start; margin-top: 4px; }
button {
  flex: 0 0 auto;
  font: inherit; font-weight: 700; font-size: 16px; cursor: pointer;
  border: none; border-radius: 8px; padding: 13px 28px;
  color: #FFFFFF; background: var(--accent); letter-spacing: .01em;
}
button:disabled { opacity: .5; cursor: default; }

.hp { position: absolute; left: -9999px; }
.fine { font-size: 14.5px; color: var(--faint); }
/* the offer under the first form: the main reason to sign up, so it reads clearly */
.hero .fine strong { color: var(--accent); font-size: 16px; font-weight: 650; }
.result { display: none; font-size: 15.5px; font-weight: 600; color: var(--ok); }
.result.show { display: block; }
.result.bad { color: var(--bad); }

/* the app beside the headline: just the screenshot in a thin frame */
.hero-shot { justify-self: center; width: min(300px, 78vw); }
.phone img { display: block; width: 100%; height: auto; border-radius: 32px; border: 1px solid var(--line); }

/* ── sections ───────────────────────────────────────────── */
section { padding-block: clamp(48px, 7vw, 84px); }
.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 820px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split.flip > :first-child { order: 2; }
}
.prose { display: grid; gap: 16px; max-width: 470px; }
.prose p { color: var(--muted); }

.bills { background: var(--card); border-block: 1px solid var(--line); }

/* a year of bills, written down */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ledger li {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: baseline;
  padding: 14px 2px; border-bottom: 1px solid var(--line);
}
.ledger .when { grid-column: 1 / -1; font-size: 13px; color: var(--faint); }
.ledger b { font-weight: 600; }
.ledger .amt { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.ledger .yearly .when { color: var(--amber); font-weight: 600; }

.phone.small { width: min(260px, 70vw); justify-self: center; }
.phone.small img { border-radius: 28px; }
@media (max-width: 819px) { .feature .phone.small { order: 2; } }

/* subscriptions: the same ledger, with the yearly total underlined */
.ledger .total { border-bottom: none; border-top: 2px solid var(--ink); margin-top: -1px; }
.ledger .total b, .ledger .total .amt { font-size: 19px; font-weight: 750; }
.ledger .total .when { color: var(--accent); font-weight: 600; }
.note { font-size: 13.5px; color: var(--faint); margin-top: 10px; }

/* everything else, as a quiet two-column list */
.more-list { display: grid; gap: 22px 48px; margin: 28px 0 0; }
@media (min-width: 760px) { .more-list { grid-template-columns: 1fr 1fr; } }
.more-list div { border-top: 1px solid var(--line); padding-top: 14px; }
.more-list dt { font-weight: 650; margin-bottom: 4px; }
.more-list dd { margin: 0; color: var(--muted); }

/* what it does not do */
.nots { padding-top: clamp(24px, 4vw, 40px); }
.nots ul { margin: 24px 0 0; padding-left: 20px; display: grid; gap: 12px; max-width: 680px; }
.nots li { color: var(--muted); }

/* the signup: a full-width green band across the page, the form in cream on green */
.offer { background: var(--accent); color: #F4EFE3; padding-block: clamp(56px, 8vw, 96px); }
.offer-box { display: grid; gap: 16px; max-width: 640px; }
.offer h2 { color: #FFFFFF; }
.offer p { color: #D9E4DC; }
.offer .perks { margin: 4px 0 6px; padding-left: 20px; display: grid; gap: 8px; color: #F4EFE3; }
.offer .perks li::marker { color: #9FC2AE; }
.offer .field span { color: #D9E4DC; }
.offer .field em { color: #9FC2AE; }
.offer .field input { color: #FFFFFF; border-bottom-color: #6E9A84; }
.offer .field input:focus { border-bottom-color: #FFFFFF; }
.offer button { background: #F4EFE3; color: var(--accent); }
.offer .fine { color: #9FC2AE; }
.offer .result { color: #FFFFFF; }
.offer .result.bad { color: #FFD9CF; }

/* questions */
.faq h2 { margin-bottom: 20px; }
.faq .wrap { max-width: 760px; margin-inline: auto; }
.qa { padding: 18px 0; border-top: 1px solid var(--line); }
.qa h3 { font-size: 17px; font-weight: 650; margin-bottom: 6px; }
.qa p { color: var(--muted); max-width: 64ch; }
.qa a { color: var(--accent); }

/* ── guides ───────────────────────────────────────────── */
.guide { max-width: 720px; padding-block: 40px 56px; display: grid; gap: 18px; }
.guide h1 { font-size: clamp(32px, 5vw, 46px); }
.guide h2 { font-size: 24px; margin-top: 18px; }
.guide p, .guide li { color: var(--muted); }
.guide ul, .guide ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.guide strong { color: var(--ink); }
.guide a { color: var(--accent); text-underline-offset: 3px; }
.crumbs { font-size: 14px; }
.guide-app { margin-top: 28px; padding-top: 22px; border-top: 2px solid var(--accent); display: grid; gap: 10px; }
.guide-app h2 { margin-top: 0; }
.guide-cta { font-weight: 700; }
.guide-list { list-style: none; padding: 0 !important; gap: 0 !important; }
.guide-list a { display: grid; gap: 4px; padding: 18px 0; border-top: 1px solid var(--line); text-decoration: none; }
.guide-list b { color: var(--ink); font-family: var(--serif); font-size: 21px; font-weight: 600; }
.guide-list span { color: var(--muted); }

/* ── footer ─────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding-block: 28px 44px; font-size: 14.5px; color: var(--faint); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--muted); text-decoration: none; }

/* ── legal pages ────────────────────────────────────────── */
.legal { max-width: 720px; padding-block: 48px 40px; display: grid; gap: 20px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); }
.legal h2 { font-size: 22px; margin-top: 14px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.legal strong { color: var(--ink); }
.legal a { color: var(--accent); text-underline-offset: 3px; }
.updated { font-size: 14px; color: var(--faint); }
.offer + .faq { padding-top: 0; }

/* ── phones ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  /* top bar on one line: name, guides, flags (the signup form is right below anyway) */
  .top .wrap { height: 56px; gap: 10px; }
  .brand { font-size: 16px; white-space: nowrap; gap: 8px; }
  .brand img { width: 26px; height: 26px; }
  .top-nav { gap: 12px; }
  .top-nav a { white-space: nowrap; font-size: 14px; }
  .top-nav a[href$="#lista"], .top-nav a[href$="#list"] { display: none; }

  /* less empty space between parts of the page */
  section { padding-block: 40px; }
  .hero { padding-block: 28px 40px; }
  .hero-grid { gap: 36px; }
  .hero-text { gap: 18px; }
  .split { gap: 24px; }
  h1 { font-size: 40px; }
  h2 { font-size: 27px; }

  /* the form: closer fields, a button as wide as the screen for the thumb */
  form.join { gap: 14px; }
  .field input { padding: 6px 0; }
  form.join button { justify-self: stretch; padding: 15px; }

  /* the app pictures: the top one shows just the top of the screen; the others smaller */
  .hero-shot { width: 74vw; }
  .hero-shot .phone img { height: 300px; object-fit: cover; object-position: top; border-radius: 28px 28px 0 0; border-bottom: none; }
  .phone.small { width: 48vw; }
  .phone.small img { border-radius: 20px; }

  /* answers and the feature list in a slightly smaller size */
  .qa p, .more-list dd, .nots li { font-size: 15.5px; }
  .qa h3 { font-size: 16.5px; }
  .prose { gap: 12px; }

  .more-list { gap: 16px; }
  .offer { padding-block: 44px; }
  .qa { padding: 14px 0; }
  footer .wrap { flex-direction: column; }
}
