/* Recado de fé — site. Tokens from the app's morning palette (src/theme/palettes.ts) and fonts (Aleo + Nunito,
   Dancing Script for the handwritten touches, as in the images).
   Layout: one column on phones (most visitors come from WhatsApp), two from 900px. The thesis is shown, not told:
   a family chat receives the recado. Big Play buttons only in the hero, the Clube and the end; a fixed bar on phones.
   Light only, like the app. */
:root {
  --bg: #fffaf2;
  --bg-deep: #ffead2;
  --surface: #ffffff;
  --arc: #fbddb5;
  --border: #f0d2ae;
  --tile: #e8b45a;
  --ink: #181614;
  --ink-soft: #5e4434;
  --muted: #6b6560;
  --primary: #a3470f;
  --primary-ink: #ffffff;
  --rose: #b0274a;
  --chat-bg: #efe7dd;
  --chat-out: #d9fdd3;
  --tick: #53bdeb;
  --todo: #fff3a6;
  --display: 'Aleo', Georgia, 'Times New Roman', serif;
  --body: 'Nunito', 'Segoe UI', Roboto, Arial, sans-serif;
  --script: 'Dancing Script', 'Brush Script MT', cursive;
  --radius: 10px;
  --max: 1160px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 1.125rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.play:focus-visible, .more:focus-visible, .copy:focus-visible { border-radius: 999px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; color: var(--ink); }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 20px; }
.lead { font-size: 1.22rem; color: var(--ink-soft); max-width: 34em; }
.eyebrow { font: 800 0.8rem/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); }
.hand { font-family: var(--script); font-weight: 700; color: var(--rose); }
.todo { background: var(--todo); padding: 0 4px; border-radius: 3px; }

/* Buttons are the app's Button (src/components/button.tsx): pills, Nunito SemiBold, no shadow, 64 tall for the
   one main action and 56 for the rest. Primary = terracota; soft = secondary fill + border; secondary = white +
   border. A touch sinks the button a little; hover only darkens it, nothing changes place. */
/* Primary, large: the app's "Terracota com selo" — official Play icon in a white circle. */
.play {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 64px; padding: 7px 28px 7px 7px;
  background: var(--primary); color: var(--primary-ink);
  border-radius: 999px; text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.play:hover { filter: brightness(0.94); }
.play:active { transform: scale(0.97); }
.play .seal { width: 50px; height: 50px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.play .seal img { width: 27px; height: 27px; }
.play span { display: flex; flex-direction: column; line-height: 1.1; }
.play small { font: 600 0.82rem var(--body); opacity: 0.9; }
.play b { font: 600 1.25rem var(--body); }
.play.small { min-height: 44px; padding: 4px 18px 4px 4px; gap: 10px; }
.play.small .seal { width: 36px; height: 36px; }
.play.small .seal img { width: 20px; height: 20px; }
.play.small b { font-size: 1rem; }
.play.light { background: #fff; color: var(--primary); }
.play.light .seal { background: var(--bg-deep); }
/* Soft (the app's Button variant="soft"): for the second action next to a main one. */
.more { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 24px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--arc); color: var(--ink);
  font: 600 1.125rem var(--body); text-decoration: none; -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, filter 0.15s ease; }
.more img { width: 20px; height: 20px; flex: none; }
.more:hover { filter: brightness(0.96); }
.more:active { transform: scale(0.97); }
/* Primary at 56: terracota, the Play icon in a small white circle like the big Play buttons. */
.more.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); padding-left: 8px; }
.more.primary .seal { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.more.primary:hover { filter: brightness(0.94); }
.cta-note { font-size: 0.95rem; color: var(--ink-soft); }

/* Header */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(255, 250, 242, 0.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}
/* ui.js adds .scrolled once the page moves: a soft shadow says the header stays on top. */
.top.scrolled { box-shadow: 0 6px 18px rgba(74, 44, 26, 0.1); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--primary); font: 600 1.3rem var(--display); }
.brand img { width: 40px; height: 40px; }
.top nav { display: flex; align-items: center; gap: 26px; }
.top nav a.link { color: var(--ink-soft); text-decoration: none; font-weight: 700; font-size: 1rem; }
.top nav a.link:hover { color: var(--primary); }
/* Phone menu (ui.js adds the button): a white pill like the app's secondary Button, with icon and word. */
.menu-toggle { display: none; }
@media (max-width: 899px) {
  .top nav { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 14px; border-radius: 999px;
    border: 1px solid var(--border); background: var(--surface); color: var(--ink); font: 600 1rem var(--body); cursor: pointer;
    -webkit-tap-highlight-color: transparent; transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease; }
  .menu-toggle:active { transform: scale(0.97); }
  .menu-toggle.is-open { background: var(--bg-deep); border-color: var(--arc); }
  .menu-toggle .label { min-width: 3.4em; text-align: left; } /* "Menu" and "Fechar" take the same room */
  /* Three lines that fold into an X: the middle one fades, the outer two turn and meet in the middle (250 ms). */
  .burger { position: relative; width: 20px; height: 16px; flex: none; }
  .burger i { position: absolute; left: 0; right: 0; height: 2.4px; border-radius: 2px; background: var(--ink); transition: transform 0.25s ease, opacity 0.2s ease; }
  .burger i:nth-child(1) { top: 0; }
  .burger i:nth-child(2) { top: 6.8px; }
  .burger i:nth-child(3) { bottom: 0; }
  .is-open .burger i:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
  .is-open .burger i:nth-child(2) { opacity: 0; }
  .is-open .burger i:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }
  /* The open panel unrolls from the header (clip, so nothing slides), rows fade in one after another; links are
     56px rows like the app's grouped lists, tinted while pressed. The Play bar at the bottom stays the CTA. */
  .top nav.open { display: grid; gap: 0; position: absolute; top: 100%; left: 0; right: 0; padding: 4px 20px 16px; background: var(--bg);
    border-bottom: 1px solid var(--border); box-shadow: 0 14px 24px rgba(74, 44, 26, 0.12); animation: menu-unroll 0.25s ease both; }
  .top nav.closing { animation: menu-roll-up 0.18s ease both; }
  .top nav.open a.link { display: flex; align-items: center; min-height: 56px; margin-inline: -20px; padding-inline: 20px;
    border-bottom: 1px solid var(--border); color: var(--ink); font-size: 1.125rem; transition: background-color 0.15s ease, color 0.15s ease;
    -webkit-tap-highlight-color: transparent; animation: menu-row 0.2s ease both; }
  .top nav.open a.link:active { background: var(--bg-deep); color: var(--primary); }
  .top nav.open a.link:nth-child(2) { animation-delay: 40ms; }
  .top nav.open a.link:nth-child(3) { animation-delay: 80ms; }
  .top nav.open a.link:nth-child(4) { animation-delay: 120ms; }
  .top nav.open a.link:has(+ .play), .top nav.open a.link:last-child { border-bottom: 0; }
  .top nav.open .play.small { display: none; }
  /* The page behind dims while the menu is open; a tap on it closes the menu (ui.js). */
  .menu-scrim { position: fixed; inset: 0; z-index: 19; background: rgba(40, 20, 10, 0.28); opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
  .menu-open .menu-scrim { opacity: 1; pointer-events: auto; }
}
@keyframes menu-unroll { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 -40px 0); } }
@keyframes menu-roll-up { from { clip-path: inset(0 0 -40px 0); opacity: 1; } to { clip-path: inset(0 0 100% 0); opacity: 0.6; } }
@keyframes menu-row { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Hero: the family chat receives the recado ---------- */
.hero { background: radial-gradient(120% 90% at 85% 10%, var(--arc) 0%, rgba(251, 221, 181, 0) 60%), linear-gradient(var(--bg), var(--bg-deep)); overflow: hidden; }
.hero .wrap { display: grid; gap: 40px; padding-block: 36px 64px; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 1.6rem + 5vw, 4.8rem); letter-spacing: -0.015em; }
.hero h1 .hand { display: block; position: relative; z-index: 1; font-size: 1.12em; line-height: 0.9; margin: -0.36em 0 0 0.9em; transform: rotate(-4deg); transform-origin: left center; letter-spacing: 0; }
/* The handwritten line never wraps. */
.hero h1 .hand { white-space: nowrap; }
/* Hero tag: a white pill with the Play icon, like the app's badges, instead of a shouted uppercase line. */
.tag { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 16px 4px 4px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(74, 44, 26, 0.06);
  font: 600 0.95rem var(--body); color: var(--ink-soft); }
.tag .seal { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-deep); display: grid; place-items: center; flex: none; }
.tag b { color: var(--primary); font-weight: 800; }
.hero .copy { display: grid; gap: 22px; justify-items: start; }
.hero .who { display: flex; align-items: center; gap: 12px; font-size: 0.98rem; color: var(--ink-soft); font-weight: 700; }
.hero .who img { width: 34px; height: 34px; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1fr 1.02fr; padding-block: 64px 96px; gap: 48px; } }

.demo { position: relative; min-height: 600px; display: grid; justify-items: end; align-items: center; }
.demo .portrait { position: absolute; left: 0; top: 0; width: 74%; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; transform: rotate(-3deg); box-shadow: 0 20px 40px rgba(74, 44, 26, 0.22); border: 6px solid #fff; }
.demo .portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 20%; }
.demo .note { position: absolute; z-index: 3; left: 2%; bottom: 10px; font: 700 1.35rem/1.1 var(--script); color: var(--rose); transform: rotate(-4deg); max-width: 7.2em; }
.demo .note svg { display: block; margin: 6px 0 0 40%; }

/* A real phone: 9 × 19.5, about the size it would be in her hand next to the photo. */
.chat { position: relative; z-index: 2; width: 248px; aspect-ratio: 9 / 19.5; border-radius: 36px; background: #1a1512; padding: 7px; box-shadow: 0 30px 60px rgba(40, 20, 10, 0.35); margin-top: 120px; margin-right: 8px; }
.chat::before { content: ''; position: absolute; top: 14px; left: 50%; width: 64px; height: 18px; margin-left: -32px; border-radius: 999px; background: #1a1512; z-index: 3; }
.chat .screen { height: 100%; border-radius: 30px; overflow: hidden; background: var(--chat-bg); display: flex; flex-direction: column; }
.chat .status { display: flex; justify-content: space-between; padding: 12px 22px 2px; font: 800 0.7rem var(--body); background: #f7f3ee; color: var(--ink); }
.chat header { display: flex; align-items: center; gap: 8px; padding: 8px 12px 10px; background: #f7f3ee; border-bottom: 1px solid #e6ddd2; }
.chat header .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--bg-deep); display: grid; place-items: center; flex: none; }
.chat header .avatar img { width: 20px; height: 20px; }
.chat header b { display: block; font-size: 0.82rem; line-height: 1.2; }
.chat header small { display: block; font-size: 0.62rem; color: var(--muted); line-height: 1.2; }
/* Newest messages stay at the bottom, like a real chat; older ones slide off the top. */
.chat .msgs { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 8px 8px 6px; flex: 1; min-height: 0; overflow: hidden; }
.msg { align-self: flex-start; flex: none; max-width: 86%; padding: 5px 8px 3px; border-radius: 9px; background: #fff; font-size: 0.7rem; line-height: 1.35; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08); justify-self: start; }
.msg .from { display: block; font-weight: 800; font-size: 0.64rem; }
.msg time { display: block; text-align: right; font-size: 0.56rem; color: #8a8178; margin-top: 2px; }
.msg.out { align-self: flex-end; background: var(--chat-out); padding: 3px; position: relative; }
.msg.out img { width: 158px; border-radius: 6px; }
.msg.out time { padding-right: 4px; }
.msg.out time i { color: var(--tick); font-style: normal; letter-spacing: -3px; margin-left: 3px; }
.reactions { position: absolute; left: 8px; bottom: -12px; background: #fff; border-radius: 999px; padding: 0 6px; font-size: 0.66rem; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); }
.msg.out + .msg { margin-top: 12px; }
.chat .composer { flex: none; display: flex; align-items: center; gap: 6px; padding: 6px 8px 14px; background: var(--chat-bg); }
.chat .composer .field { flex: 1; display: flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px; border-radius: 999px; background: #fff; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08); }
.chat .composer .placeholder { flex: 1; font-size: 0.72rem; color: #8a8178; }
.chat .composer .mic { width: 30px; height: 30px; border-radius: 50%; background: #1f8f5f; display: grid; place-items: center; flex: none; }
.chat .day { align-self: center; flex: none; background: #fff; border-radius: 8px; padding: 2px 10px; font-size: 0.62rem; font-weight: 800; color: var(--muted); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06); }
.f1 { color: #b0274a; } .f2 { color: #2c6ca8; } .f3 { color: #3e7d43; }
/* The conversation plays once on load (2.8s) and then stays; still for reduced motion. */
@keyframes arrive { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }
.chat .msgs > * { animation: arrive 0.45s ease both; }
.chat .msgs > :nth-child(-n + 4) { animation: none; }
.chat .msgs > :nth-child(5) { animation-delay: 0.5s; }
.chat .msgs > :nth-child(6) { animation-delay: 1.5s; }
.chat .msgs > :nth-child(7) { animation-delay: 2.3s; }
.chat .reactions { animation: arrive 0.4s ease 1.1s both; }
/* Below 900px the note sits in the empty corner left of the phone, under the photo, its arrow pointing at the
   recado in the chat. The photo is capped so it always ends above that corner. */
@media (max-width: 899px) {
  .demo .portrait { width: min(70%, 360px); }
  .demo .note { left: 10px; bottom: 28px; max-width: calc(100% - 300px); font-size: 1.25rem; }
  .demo .note svg { margin: 8px 0 0 45%; }
}
@media (max-width: 560px) {
  .demo { min-height: 0; justify-items: end; }
  .demo .portrait { width: 70%; }
  .demo .note { left: 10px; bottom: 20px; max-width: calc(100% - 232px); font-size: 1.1rem; }
  .demo .note svg { width: 56px; margin-left: 30%; }
  .chat { width: 210px; margin-top: 90px; }
  .hero h1 .hand { margin: -0.12em 0 0 1.2em; font-size: 1em; }
  .msg.out img { width: 132px; }
}

/* ---------- Wall of premium recados, sliding ---------- */
section { padding-block: 80px; }
.section-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 46em; }
.center { text-align: center; justify-items: center; margin-inline: auto; }
.wall { background: var(--surface); border-block: 1px solid var(--border); overflow: hidden; }
.rows { display: grid; gap: 34px; padding-block: 8px 12px; }
.row { display: flex; gap: 30px; width: max-content; animation: slide 70s linear infinite; }
.row.back { animation-direction: reverse; animation-duration: 80s; }
.rows:hover .row, .rows.paused .row { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.polaroid { --r: 0deg; --y: 0px; background: #fff; padding: 10px 10px 0; border-radius: 4px; box-shadow: 0 12px 26px rgba(74, 44, 26, 0.18); margin: 0; width: clamp(200px, 22vw, 270px); flex: none; position: relative; transform: rotate(var(--r)) translateY(var(--y)); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.polaroid figcaption { font: 700 1.15rem/1 var(--script); color: var(--ink-soft); text-align: center; padding: 12px 0 14px; }
.polaroid:nth-child(3n + 1) { --r: -2.4deg; }
.polaroid:nth-child(3n + 2) { --r: 1.8deg; --y: 10px; }
.polaroid:nth-child(3n) { --r: -0.8deg; --y: -6px; }
/* Under the mouse a polaroid lifts and straightens a little, like picking it up. */
@media (hover: hover) {
  .polaroid:hover { z-index: 3; transform: rotate(calc(var(--r) * 0.4)) translateY(calc(var(--y) - 6px)); box-shadow: 0 20px 36px rgba(74, 44, 26, 0.24); }
}
.polaroid .tape { position: absolute; top: -10px; left: 50%; width: 74px; height: 22px; margin-left: -37px; background: rgba(251, 221, 181, 0.85); transform: rotate(-3deg); }
.wall .foot { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: center; }

/* ---------- Ready-made messages hub (links to the SEO pages) ---------- */
.hub-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .hub-grid { grid-template-columns: repeat(4, 1fr); } }
.hub-card { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: 0 10px 24px rgba(74, 44, 26, 0.08); transition: transform 0.25s ease, box-shadow 0.25s ease; }
@media (hover: hover) { .hub-card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(74, 44, 26, 0.14); } }
.hub-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.hub-card span { padding: 14px 16px 16px; font: 600 1.05rem/1.25 var(--display); }

/* ---------- Made for her ---------- */
.her { background: linear-gradient(var(--bg-deep), var(--bg)); }
.her .wrap { display: grid; gap: 40px; align-items: center; }
.her figure { margin: 0; position: relative; }
.her figure img { border-radius: 24px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; width: 100%; box-shadow: 0 24px 50px rgba(74, 44, 26, 0.2); }
.her figcaption { position: absolute; left: 18px; right: 18px; bottom: 18px; background: rgba(255, 255, 255, 0.94); border-radius: 14px; padding: 14px 18px; font: 700 1.45rem/1.2 var(--script); color: var(--rose); }
.her .copy { display: grid; gap: 22px; }
.her ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.her li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; }
.her li img { width: 48px; height: 48px; }
.her li b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.12rem; }
.her li span { color: var(--ink-soft); font-size: 1rem; }
@media (min-width: 900px) { .her .wrap { grid-template-columns: 0.9fr 1.1fr; gap: 64px; } }

/* "Veja como ficaria o seu recado": a small recado maker */
.build { padding-top: 72px; }
.maker { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 24px; display: grid; gap: 22px; max-width: 980px; margin-inline: auto; justify-items: start; }
.step-label { display: inline-flex; align-items: center; gap: 10px; font: 600 1.08rem var(--display); color: var(--ink); }
.step-label i { font: 800 0.95rem/30px var(--body); font-style: normal; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; text-align: center; flex: none; }
/* Step 4: what only the app does. */
.send { align-self: stretch; justify-self: stretch; margin: 20px -24px -24px; padding: 26px 24px 28px; border-radius: 0 0 22px 22px; background: linear-gradient(120deg, var(--bg-deep), var(--arc)); display: grid; gap: 14px; justify-items: center; text-align: center; }
.send .send-text { display: grid; gap: 6px; justify-items: center; }
.send p:not(.step-label) { color: var(--ink-soft); max-width: 30em; }
@media (min-width: 760px) {
  .send { margin: 24px -40px -40px; padding: 28px 40px; grid-template-columns: 1fr auto; align-items: center; justify-items: start; text-align: left; gap: 24px; }
  .send .send-text { justify-items: start; }
}
.maker-grid { width: 100%; }
.maker-grid { display: grid; gap: 24px; }
.maker .controls { display: grid; gap: 30px; align-content: start; }
.maker .field { display: grid; gap: 14px; }
.maker input { font: 600 1.1rem var(--body); min-height: 54px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); width: 100%; box-shadow: inset 0 1px 2px rgba(74, 44, 26, 0.06); }
.maker input:focus-visible { outline: 3px solid var(--primary); outline-offset: 1px; }
.maker fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; min-width: 0; }
.maker-grid > * { min-width: 0; }
.maker legend { padding: 0; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips button { font: 700 1rem var(--body); min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.chips button:active { transform: scale(0.97); }
.chips button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
/* The preview as the app's share screen: a polaroid with tape, the Cartão style and the free-plan signature. */
.polaroid-preview { position: relative; margin: 28px 6px 0; background: #fff; padding: 12px 12px 0; border-radius: 4px; box-shadow: 0 16px 34px rgba(74, 44, 26, 0.2); transform: rotate(-1.5deg); width: calc(100% - 12px); }
.polaroid-preview .tape { position: absolute; top: -12px; left: 50%; width: 92px; height: 26px; margin-left: -46px; background: rgba(251, 221, 181, 0.9); transform: rotate(-4deg); z-index: 3; }
.polaroid-preview figcaption { font: 700 1.3rem/1 var(--script); color: var(--ink-soft); text-align: center; padding: 14px 0 16px; overflow-wrap: anywhere; }
.preview { position: relative; aspect-ratio: 1; background-size: cover; background-position: center; display: grid; place-items: center; padding: 11%; container-type: inline-size; }
.preview .card { position: relative; background: #fffdf8; border-radius: 6px; padding: 9% 8% 8%; display: grid; gap: 3cqw; text-align: center; box-shadow: 0 6px 16px rgba(74, 44, 26, 0.18); width: 100%; transform: rotate(-1deg); }
.preview .card-sticker { position: absolute; top: -5cqw; right: -4cqw; width: 13cqw; height: 13cqw; transform: rotate(12deg); filter: drop-shadow(0 2px 3px rgba(74, 44, 26, 0.25)); }
.preview .greet { font: 700 7.4cqw/1.05 var(--script); color: var(--accent); overflow-wrap: anywhere; }
.preview .verse { font: 500 5cqw/1.32 var(--display); color: var(--ink); }
.preview.long .verse { font-size: 4.2cqw; }
.preview .ref { font: 800 2.5cqw var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: #6b6560; }
.preview .made { position: absolute; right: 2.5%; bottom: 2.2%; display: inline-flex; align-items: center; gap: 1cqw; padding: 0.8cqw 2.2cqw 0.8cqw 1cqw; border-radius: 999px; background: rgba(255, 253, 248, 0.9); font: 600 2.7cqw var(--body); color: #6e5140; }
.preview .made img { width: 5.5cqw; height: 5.5cqw; }
.preview .made b { font: 600 2.7cqw var(--display); color: var(--primary); }
@media (min-width: 760px) { .maker .polaroid-preview { margin-top: 8px; } .maker { padding: 40px; } .maker-grid { grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 40px; } }

/* ---------- Clube: an invitation ---------- */
.club .card { display: grid; gap: 36px; align-items: center; border-radius: 24px; padding: 28px; position: relative; overflow: hidden;
  /* The app's GlowBorder: a light that runs around the border in the morning colours (3.2 s a turn). */
  border: 3px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              conic-gradient(from var(--glow-angle), var(--primary) 0deg, var(--primary) 80deg, #f5b971 140deg, #fbddb5 180deg, #f5b971 220deg, var(--primary) 280deg, var(--primary) 360deg) border-box;
  box-shadow: 0 18px 40px rgba(163, 71, 15, 0.16);
  animation: glow-spin 3.2s linear infinite; }
@property --glow-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes glow-spin { to { --glow-angle: 360deg; } }
/* The app's Button shine: a band of light that sweeps across now and then. */
.play.shine, .dock .play, .top .play.small { position: relative; overflow: hidden; }
.play.shine::after, .dock .play::after, .top .play.small::after { content: ''; position: absolute; top: -30px; bottom: -30px; left: 0; width: 60px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0)); transform: translateX(-90px) rotate(20deg); animation: shine 3.6s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 0%, 55% { transform: translateX(-90px) rotate(20deg); } 85%, 100% { transform: translateX(460px) rotate(20deg); } /* far enough to cross the widest (420px phone bar) */ }
.club .stack { position: relative; height: 340px; }
.club .stack .polaroid { position: absolute; width: 220px; }
.club .stack .polaroid:nth-child(1) { left: 0; top: 30px; --r: -7deg; --y: 0px; }
.club .stack .polaroid:nth-child(2) { left: 50%; margin-left: -110px; top: 0; --r: 2deg; --y: 0px; z-index: 2; }
.club .stack .polaroid:nth-child(3) { right: 0; top: 40px; --r: 8deg; --y: 0px; }
.club .copy { display: grid; gap: 18px; justify-items: start; }
.price { display: grid; gap: 10px; }
.price .launch { font: 800 0.78rem/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); }
.price strong { font: 600 2.4rem/1.05 var(--display); }
.price strong small { font: 700 1.1rem var(--body); color: var(--ink-soft); margin-left: 2px; }
.club ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.club li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 1.02rem; }
.club li::before { content: ''; width: 22px; height: 22px; border-radius: 50%; background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; margin-top: 2px; }
.club .free { font-size: 0.95rem; color: var(--ink-soft); }
@media (max-width: 560px) { .club .stack { height: 280px; } .club .stack .polaroid { width: 170px; } .club .stack .polaroid:nth-child(2) { margin-left: -85px; } }
@media (min-width: 900px) { .club .card { grid-template-columns: 1fr 1fr; padding: 48px; } }

/* ---------- FAQ: the usual accordion ---------- */
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; font: 600 1.2rem/1.3 var(--display); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--bg-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3470f' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform 0.2s ease; }
.faq details[open] summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3470f' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E"); }
.faq summary:hover { color: var(--primary); }
.faq summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 8px; }
.faq details p { padding: 0 60px 22px 4px; color: var(--ink-soft); }
/* The answer opens smoothly (browsers that can animate <details>) and fades in; elsewhere it just fades in. */
@keyframes answer-in { from { opacity: 0; } to { opacity: 1; } }
.faq details[open] p { animation: answer-in 0.25s ease both; }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 0.25s ease, content-visibility 0.25s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}

/* ---------- Final: Bible, coffee and the phone ---------- */
.final { position: relative; color: #fff; text-align: center; padding-block: 110px; background: #3b1e0e url("img/save.jpg") center / cover; }
.final::before { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(59, 30, 14, 0.78), rgba(163, 71, 15, 0.82)); }
.final .wrap { position: relative; display: grid; gap: 22px; justify-items: center; }
.final h2 { color: #fff; max-width: 16em; }
.final p { color: rgba(255, 255, 255, 0.9); font-size: 1.2rem; }

/* Footer: the brand with one line about the app, then three labelled groups and the credits apart.
   Every link is a 44px row (easy to hit with a finger), plain until touched; warm band so the page ends calmly. */
.site-foot { background: var(--bg-deep); border-top: 1px solid var(--border); padding-block: 56px 120px; color: var(--ink-soft); font-size: 1rem; }
.foot-top { display: grid; gap: 36px; }
.foot-brand { display: grid; gap: 14px; justify-items: start; align-content: start; max-width: 22em; }
.foot-brand p { line-height: 1.5; }
.foot-title { font: 800 0.8rem/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; }
.foot-col a { display: flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 700; text-decoration: none; text-underline-offset: 4px; transition: color 0.2s ease; }
.foot-col a:hover { color: var(--primary); text-decoration: underline; }
.foot-col a:active { color: var(--primary); }
.site-foot .credits { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.site-foot .credits a { color: inherit; text-underline-offset: 3px; }
.site-foot .credits a:hover { color: var(--primary); }
.site-foot .credits + .credits { margin-top: 8px; padding-top: 0; border-top: 0; }
/* Phones: the groups stack, each with a thin line on top, like the app's grouped lists. */
@media (max-width: 699px) { .foot-col { border-top: 1px solid var(--border); padding-top: 22px; } }
/* Below 900px the fixed Play bar is always on screen; a second button here would only repeat it. */
@media (max-width: 899px) { .foot-brand .play { display: none; } }
@media (min-width: 700px) { .foot-top { grid-template-columns: 1fr 1fr; gap: 40px 48px; } }
@media (min-width: 1000px) { .foot-top { grid-template-columns: 1.3fr 1fr 0.8fr 1fr; } }
@media (min-width: 900px) { .site-foot { padding-block: 64px 48px; } }

/* Fixed Play bar on phones */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--border);
  display: flex; justify-content: center;
}
.dock .play { width: 100%; max-width: 420px; justify-content: center; min-height: 56px; }
.dock .play b { font-size: 1.05rem; }
@media (min-width: 900px) { .dock { display: none; } }

/* Legal pages */
.doc { padding-block: 40px 72px; }
.doc .wrap { max-width: 780px; display: grid; gap: 28px; }
.doc .section-head { margin-bottom: 0; }
.doc h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); }
.doc h2 { font-size: 1.5rem; margin-top: 12px; }
/* Each topic is a card: title, then short paragraphs and lists with air between them. */
.doc .qa { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: grid; gap: 12px; }
.doc .qa h3 { font-size: 1.25rem; }
.doc .qa p, .doc .qa li { color: var(--ink-soft); }
.doc .qa ul { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; }
.doc .qa li::marker { color: var(--primary); }
.doc .box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: grid; gap: 12px; }
.doc ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .play { transition: none; }
  .play:hover { transform: none; }
  .chat .msgs > *, .chat .reactions { animation: none; }
  .row { animation: none; }
  .club .card, .play.shine::after, .dock .play::after, .top .play.small::after { animation: none; display: none; }
  .rows { overflow-x: auto; }
  /* Same feedback, without movement: a touch darkens instead of sinking, things appear instead of sliding. */
  .play, .share, .chips button, .polaroid, .hub-card, .top, .foot-col a { transition: none; }
  .play, .more { transition: none; }
  .play:active, .share:active, .more:active, .chips button:active { transform: none; filter: brightness(0.9); }
  .polaroid:hover { transform: rotate(var(--r)) translateY(var(--y)); }
  .hub-card:hover { transform: none; }
  .faq details[open] p, .top nav.open, .top nav.open a.link, .top nav.closing { animation: none; }
  .menu-toggle, .burger i, .menu-scrim, .top nav.open a.link { transition: none; }
  .faq details::details-content { transition: none; }
}

/* ---------- Content pages (bom dia, boa noite, aniversário, versículo do dia) ---------- */
.content { padding-top: 24px; }
.content > .wrap { display: grid; gap: 28px; padding-bottom: 64px; }
.content h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.4rem); }
.content .section-head { margin-bottom: 0; }
.crumbs { font-size: 0.92rem; color: var(--muted); }
.crumbs a { color: var(--ink-soft); font-weight: 700; }
.topics { display: flex; flex-wrap: wrap; gap: 10px; }
.topics a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font-weight: 700; text-decoration: none; }
.topics a:hover { border-color: var(--primary); color: var(--primary); }
.recados { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .recados { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .recados { grid-template-columns: repeat(3, 1fr); } }
.recado { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; display: grid; align-content: start; box-shadow: 0 10px 24px rgba(74, 44, 26, 0.08); }
.recado > img { width: 100%; height: auto; aspect-ratio: 1; }
.recado figcaption { padding: 16px 18px 18px; display: grid; gap: 8px; }
.recado .verse { font: 500 1.02rem/1.45 var(--display); color: var(--ink); }
.recado .ref { font: 800 0.78rem var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 6px; }
.share { font: 600 1.125rem var(--body); min-height: 56px; padding: 0 24px; border-radius: 999px; border: 0; background: var(--primary); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  /* Wide enough for "Escolha onde mandar", so the label can change without moving the link beside it. */
  min-width: 15.5em; -webkit-tap-highlight-color: transparent; transition: transform 0.15s ease, filter 0.15s ease; }
.share:active { transform: scale(0.97); }
.share[aria-busy="true"] { filter: saturate(0.85) brightness(1.05); cursor: progress; }
.share::before { content: ''; width: 22px; height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='M8.6 10.5l6.8-4M8.6 13.5l6.8 4'/%3E%3C/svg%3E") center / contain no-repeat; }
.share:hover { filter: brightness(0.94); }
/* Stacked buttons, all the same width: recado cards and the Versículo do dia. */
.recado .actions, .actions.stack { flex-direction: column; align-items: stretch; gap: 10px; }
.actions.stack { max-width: 24rem; }
.recado .actions :is(.share, .more), .actions.stack :is(.share, .more) { width: 100%; min-width: 0; }
.mid-cta { grid-column: 1 / -1; background: linear-gradient(120deg, var(--bg-deep), var(--arc)); border-radius: 22px; padding: 28px; display: grid; gap: 10px; justify-items: start; }
.mid-cta .hand { font-size: 2rem; line-height: 1.1; }
.mid-cta p:not(.hand) { color: var(--ink-soft); max-width: 36em; }
.page-faq { display: grid; gap: 18px; padding-block: 24px 0; }
.page-faq .faq { margin-inline: 0; }
.daily { display: grid; gap: 32px; align-items: center; }
.daily .polaroid-preview { max-width: 460px; justify-self: center; width: 100%; }
@media (min-width: 900px) { .daily { grid-template-columns: 1fr 1fr; } }
/* Secondary (variant="secondary"): white with a border, for a quiet way on. */
.more.quiet { background: var(--surface); }
/* Verse cards, like the app's verse picker: white card, radius 10, Aleo text, muted reference. */
.verse-theme { display: grid; gap: 16px; padding-top: 12px; }
.verse-theme h2 { font-size: 1.6rem; }
.verse-cards { display: grid; gap: 14px; }
@media (min-width: 700px) { .verse-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .verse-cards { grid-template-columns: repeat(3, 1fr); } }
.verse-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.verse-card p { font: 500 1.1rem/1.45 var(--display); color: var(--ink); }
.verse-card span { font: 800 0.95rem var(--body); color: var(--ink-soft); }

/* ---------- Salmos ---------- */
.content .wrap > section:not(.page-faq) { padding-block: 32px 0; }
/* One psalm block: heading, card, heading line, copy button and text, evenly spaced and the same width. */
.content .wrap > section:has(ol.psalm) { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.content .wrap > section:has(ol.psalm) > * { margin: 0; }
.content .wrap > section:has(ol.psalm) .verse-card { width: 100%; max-width: 40em; }
.content .wrap > section h2 { margin-bottom: 14px; }
.psalm-title { font-weight: 700; color: var(--ink-soft); margin: 8px 0 0; }
.psalm { margin: 0 0 24px; padding-left: 2.4em; display: grid; gap: 10px; font-size: 1.15rem; line-height: 1.6; max-width: 40em; }
.psalm li::marker { color: var(--muted); font-size: 0.85em; font-weight: 700; }
.psalm li.key { background: var(--surface); border-radius: 10px; padding: 6px 10px; margin-left: -10px; font-weight: 700; }
.psalm-grid a { min-width: 52px; justify-content: center; }
.psalm-img { margin: 0; max-width: 420px; }
.psalm-img img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 6px 20px rgba(60, 30, 10, 0.12); }

/* ---------- Copiar versículo + convite para o app ---------- */
/* Text and reference stay together; the spare height of a taller neighbour goes above the button. */
.verse-card .copy { margin-top: auto; }
.invite { width: min(440px, calc(100vw - 32px)); border: 0; border-radius: 22px; padding: 28px 24px 24px; background: var(--bg); color: var(--ink); text-align: center; box-shadow: 0 30px 60px rgba(60, 30, 10, 0.3); overflow: visible; }
.invite::backdrop { background: rgba(24, 22, 20, 0.55); }
.invite h2 { font: 600 1.7rem/1.15 var(--display); margin: 0 0 8px; }
.invite p { margin: 0 auto 20px; max-width: 30ch; font-size: 1.1rem; color: var(--ink-soft); }
.invite-pics { display: flex; justify-content: center; margin: -70px 0 18px; }
.invite-pics .polaroid { width: 132px; padding: 7px 7px 0; }
.invite-pics .polaroid + .polaroid { margin-left: -34px; }
.invite-pics .polaroid:nth-child(2) { z-index: 2; }
.invite-pics .polaroid figcaption { font-size: 0.9rem; padding: 8px 0 9px; }
.invite-actions { display: grid; gap: 10px; }
.invite-actions .play, .invite-actions .more { width: 100%; justify-content: center; }
.invite-actions .play { padding-right: 28px; }
.invite-actions .play b { font-size: 1.1rem; }
.invite h2:focus { outline: none; }
@media (prefers-reduced-motion: no-preference) {
  .invite[open] { animation: invite-in 0.25s ease-out; }
  .invite[open]::backdrop { animation: fade-in 0.25s ease-out; }
  .invite.closing { animation: invite-out 0.18s ease-in forwards; }
  @keyframes invite-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
  @keyframes invite-out { to { opacity: 0; transform: translateY(8px); } }
  @keyframes fade-in { from { opacity: 0; } }
}
.content .copy { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: var(--ink); font: 800 0.95rem var(--body); cursor: pointer; transition: background 0.2s, color 0.2s; }
.content .copy:hover { border-color: var(--primary); color: var(--primary); }
.content .copy.done { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
section > .copy { margin: 0 0 14px; }
.psalm li { cursor: pointer; border-radius: 10px; }
.psalm li.picked { background: var(--hl, #fff3d6); outline: 2px solid var(--border); padding: 6px 10px; margin-left: -10px; }
.psalm li .copy { display: flex; width: fit-content; align-items: center; margin-top: 8px; font-size: 0.95rem; line-height: 1; }
