/*
 * The guides (pt/open-finance/, pt/controle-de-faturas/, pt/parcelas/…, written by scripts/gen-guides.py): one topic
 * people search for, read top to bottom, with the app's screen beside it and the App Store at both ends. The home page's
 * colors (home.css), its wordmark and its theme (the visitor's choice there, else the system's).
 */

:root {
  color-scheme: light;
  --bg: #f5f6f8;
  --text: #0b0b0c;
  --text-2: #6e6e73;
  --rule: rgba(15, 23, 42, 0.1);
  --card: #ffffff;
  --card-line: rgba(15, 23, 42, 0.06);
  --brand: #2065da;
  --on-brand: #ffffff;
  --shadow: 0 24px 60px -24px rgba(15, 23, 42, 0.28);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --text: #f5f5f7;
  --text-2: #98989d;
  --rule: rgba(255, 255, 255, 0.12);
  --card: #1c1c1e;
  --card-line: rgba(255, 255, 255, 0.07);
  --brand: #5b93f5;
  --on-brand: #000000;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* The wordmark's and the badge's dark drawings on the dark theme. */
.dark,
:root[data-theme="dark"] .light {
  display: none;
}
:root[data-theme="dark"] .dark {
  display: block;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) clamp(16px, 2.6vw, 32px) 0;
}
.top .home img {
  width: 64px;
  height: auto;
}
.top .get {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.top .get:hover {
  text-decoration: none;
  opacity: 0.9;
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(16px, 2.6vw, 32px);
}

/* The opening: the words, and the app's screen beside them (under them on a phone). */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding: clamp(40px, 8vw, 88px) 0 clamp(32px, 6vw, 64px);
}
.crumbs {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-2);
}
.crumbs a {
  color: var(--text-2);
}
.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}
h1 {
  margin: 0;
  font-size: clamp(34px, 5.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}
.lede {
  margin: 18px 0 26px;
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.5;
  color: var(--text-2);
  text-wrap: pretty;
}
.store {
  display: inline-block;
}
.store img {
  width: 162px;
  height: 54px;
}

.shot {
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 320px;
}
/* The phone: the capture in the iPhone 18 Pro's artwork (assets/device), placed as home.css places its screens: the glass
   at the artwork's own screen (4.249% in, 1.767% down, 91.502% by 96.503%), its corners just inside the artwork's. */
.shot .device {
  position: relative;
  aspect-ratio: 1318 / 2717;
}
.shot .device::before {
  content: "";
  position: absolute;
  inset: 0.4% 1.2%;
  border-radius: 15% / 7.3%;
  box-shadow: var(--shadow);
  pointer-events: none;
}
.shot .device::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url(/assets/device/iphone-18-pro-black.webp) center / 100% 100% no-repeat;
  pointer-events: none;
}
.shot .glass {
  position: absolute;
  left: 4.249%;
  top: 1.767%;
  width: 91.502%;
  height: 96.503%;
  overflow: hidden;
  border-radius: 11.5% / 5.3%;
  background: #000;
}
.shot .glass img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shot figcaption {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  color: var(--text-2);
}

/* The text: one readable column. */
article {
  max-width: 680px;
  padding-bottom: 24px;
}
article section {
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}
h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}
article p,
article li {
  font-size: 17px;
  text-wrap: pretty;
}
article p {
  margin: 0 0 14px;
}
article ul,
article ol {
  margin: 0 0 14px;
  padding-left: 22px;
}
article li {
  margin-bottom: 8px;
}
article li::marker {
  color: var(--brand);
}
/* A comparison, side by side (the alternative-to pages): Zelo's column first, in the brand's color. */
.compare {
  overflow-x: auto;
  margin: 4px 0 16px;
  border-radius: 18px;
  border: 1px solid var(--card-line);
  background: var(--card);
}
.compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}
.compare th,
.compare td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--rule);
}
.compare thead th {
  border-top: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-2);
}
.compare thead th:nth-child(2) {
  color: var(--brand);
}
.compare tbody th {
  font-weight: 600;
  width: 26%;
}
.compare td:nth-child(2) {
  font-weight: 500;
}
.checked {
  font-size: 14px;
  color: var(--text-2);
}
.faq h3 {
  margin: 22px 0 6px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 650;
}
.faq h3:first-of-type {
  margin-top: 4px;
}
.faq p {
  color: var(--text-2);
}

/* A hub's opening (/guides/, /pt/guias/): its title and line, without a phone beside them. */
.intro {
  max-width: 680px;
  padding: clamp(40px, 8vw, 88px) 0 8px;
}
.more.hub {
  margin-bottom: 32px;
}
.more .all {
  margin: 14px 0 0;
  font-size: 15px;
  font-weight: 600;
}

/* The end: the App Store again, then the other guides. */
.closing {
  max-width: 680px;
  margin: 16px 0 40px;
  padding: clamp(24px, 4vw, 36px);
  border-radius: 28px;
  background: var(--card);
  border: 1px solid var(--card-line);
}
.closing h2 {
  margin-bottom: 8px;
}
.closing p {
  margin: 0 0 20px;
  color: var(--text-2);
  font-size: 17px;
}
.more {
  max-width: 680px;
  margin: 0 0 56px;
}
.more h2 {
  font-size: 20px;
}
.more ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.more a {
  display: block;
  padding: 16px 20px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--card-line);
  color: var(--text);
}
.more a:hover {
  text-decoration: none;
  border-color: var(--brand);
}
.more b {
  display: block;
  font-size: 16px;
}
.more span {
  font-size: 14px;
  color: var(--text-2);
}

footer {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 24px clamp(16px, 2.6vw, 32px) max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--text-2);
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
footer a {
  color: var(--text-2);
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .shot {
    max-width: 260px;
  }
}
