/* ------------------------------------------------------------------
   PRIVADINHO — design tokens
   Layout: cream canvas, one big rounded "sheet" per section (like a
   phone screen laid on a table), coral accent, dark plum footer.
   ------------------------------------------------------------------ */
:root {
  --bg: #FBF3F0;          /* blush cream canvas */
  --sheet: #FFE9E3;       /* rounded section sheet */
  --surface: #FFFFFF;     /* cards */
  --ink: #2A1E2E;         /* plum ink */
  --ink-2: #6B5C70;       /* secondary text */
  --line: #F1D9D2;        /* hairlines */
  --accent: #FF5C7A;      /* coral pink */
  --accent-2: #FF8A5B;    /* peach */
  --accent-ink: #FFFFFF;
  --footer: #1C1420;
  --footer-ink: #F6E9EC;
  --shadow: 0 12px 40px rgba(255, 92, 122, .16);
  --radius: 22px;
  --radius-sm: 14px;
  --font-display: "Outfit", "Poppins", "Segoe UI", sans-serif;
  --font-body: "Figtree", "Nunito Sans", "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14101A; --sheet: #1F1724; --surface: #261C2C; --ink: #F6EDF1; --ink-2: #B9A8BF;
    --line: #3A2C41; --accent: #FF6B86; --accent-2: #FF9A6C; --accent-ink: #1C1420;
    --footer: #0D0A10; --footer-ink: #F6E9EC; --shadow: 0 12px 40px rgba(0,0,0,.45); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14101A; --sheet: #1F1724; --surface: #261C2C; --ink: #F6EDF1; --ink-2: #B9A8BF;
  --line: #3A2C41; --accent: #FF6B86; --accent-2: #FF9A6C; --accent-ink: #1C1420;
  --footer: #0D0A10; --footer-ink: #F6E9EC; --shadow: 0 12px 40px rgba(0,0,0,.45); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%; max-width: 1120px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.35rem; border-radius: 999px; border: 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: linear-gradient(100deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 8px 22px rgba(255,92,122,.32); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(255,92,122,.4); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-soft { background: var(--surface); color: var(--accent); border: 1.5px solid var(--line); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: .45rem 1rem; font-size: .92rem; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: -.03em; color: var(--ink); }
.logo svg { width: 26px; height: 26px; }
.nav-links { display: none; gap: 1.6rem; font-weight: 500; color: var(--ink-2); }
.nav-links a:hover { color: var(--accent); }
.nav-cta { display: flex; gap: .5rem; }
.nav-cta .btn-ghost { display: none; }
@media (min-width: 760px) { .nav-links { display: flex; } .nav-cta .btn-ghost { display: inline-flex; } }

/* ---------- Sheet / sections ---------- */
.sheet { background: var(--sheet); border-radius: var(--radius); padding-block: clamp(2rem, 6vw, 4.5rem); margin-block: 1rem; position: relative; overflow: hidden; }
.sheet .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.section { padding-block: clamp(2.5rem, 7vw, 5rem); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.h-xl { font-size: clamp(2.3rem, 7vw, 4.4rem); }
.h-lg { font-size: clamp(1.8rem, 4.6vw, 2.8rem); }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--ink-2); max-width: 36rem; }

/* ---------- Hero ---------- */
.hero { display: grid; gap: 2.5rem; align-items: center; }
.hero-copy { display: grid; gap: 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-proof { display: flex; align-items: center; gap: .75rem; color: var(--ink-2); font-size: .92rem; }
.hero-proof .avatars { display: flex; }
.hero-proof .avatars span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--sheet); margin-left: -8px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.hero-proof .avatars span:first-child { margin-left: 0; }
.hero-proof .avatars img { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--sheet); object-fit: cover; margin-left: -8px; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.1fr .9fr; } }

/* Post card mock (hero + feed) */
.post {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; border: 1px solid var(--line);
}
.post-head { display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem; }
.post-head img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.post-head b { font-family: var(--font-display); font-weight: 600; display: flex; align-items: center; gap: .3rem; }
.post-head small { color: var(--ink-2); display: block; font-size: .82rem; }
.post-head time { margin-left: auto; color: var(--ink-2); font-size: .8rem; }
.post-media { position: relative; aspect-ratio: 4 / 5; max-width: 100%; background: var(--sheet); }
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-text { padding: .9rem 1rem 0; color: var(--ink); }
.post-actions { display: flex; gap: 1.2rem; padding: .8rem 1rem 1rem; color: var(--ink-2); font-size: .9rem; }
.post-actions span { display: inline-flex; align-items: center; gap: .35rem; }
.post-actions svg { width: 20px; height: 20px; }
.verified { width: 16px; height: 16px; color: var(--accent); }

/* Lock overlay */
.locked .post-media img { filter: blur(0); }
.lock {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1rem;
  background: linear-gradient(180deg, rgba(42,30,46,.08), rgba(42,30,46,.55)); color: #fff;
}
.lock-inner { display: grid; gap: .6rem; justify-items: center; }
.lock-inner svg { width: 44px; height: 44px; }
.lock-inner b { font-family: var(--font-display); font-size: 1.15rem; }
.lock-inner p { font-size: .9rem; opacity: .9; }
.hero-tilt { transform: rotate(-2deg); }
@media (prefers-reduced-motion: no-preference) {
  .hero-tilt { animation: floaty 6s ease-in-out infinite; }
  @keyframes floaty { 0%,100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-8px); } }
}

/* ---------- Steps / grids ---------- */
.grid-3 { display: grid; gap: 1rem; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: .7rem; min-width: 0; }
.card .num { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--accent); line-height: 1; }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--ink-2); }

/* Creators grid */
.creators { display: grid; gap: 1rem; }
@media (min-width: 560px) { .creators { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .creators { grid-template-columns: repeat(4, 1fr); } }
.creator { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; min-width: 0; }
.creator .cover { height: 92px; background: linear-gradient(120deg, var(--accent), var(--accent-2)); }
.creator .cover img { width: 100%; height: 100%; object-fit: cover; }
.creator .body { padding: 0 1.1rem 1.1rem; display: grid; gap: .35rem; }
.creator .avatar { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--surface); margin-top: -32px; object-fit: cover; background: var(--sheet); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: var(--accent); }
.creator b { font-family: var(--font-display); display: flex; align-items: center; gap: .3rem; }
.creator small { color: var(--ink-2); }
.creator .price { margin-top: .5rem; display: flex; justify-content: space-between; align-items: center; font-size: .92rem; }
.creator .price strong { font-family: var(--font-display); }
.creator.featured { outline: 2px solid var(--accent); }

/* Plans */
.plans { display: grid; gap: 1rem; }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 1rem; min-width: 0; }
.plan.hot { border-color: var(--accent); box-shadow: var(--shadow); position: relative; }
.plan .tag { position: absolute; top: -12px; left: 1.5rem; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .25rem .7rem; border-radius: 999px; }
.plan .amount { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; line-height: 1; }
.plan .amount small { font-size: 1rem; font-weight: 500; color: var(--ink-2); }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; color: var(--ink-2); }
.plan li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: .5rem; }

/* FAQ */
.faq { display: grid; gap: .6rem; max-width: 720px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.2rem; }
.faq summary { font-family: var(--font-display); font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); margin-top: .6rem; }

/* Footer */
.footer { background: var(--footer); color: var(--footer-ink); margin-top: 2rem; padding-block: 3rem 2rem; }
.footer .wrap { display: grid; gap: 2rem; }
.footer .logo { color: var(--footer-ink); font-size: 2rem; }
.footer-cols { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .footer .wrap { grid-template-columns: 1fr 2fr; } .footer-cols { grid-template-columns: repeat(3, 1fr); } }
.footer h4 { margin: 0 0 .6rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; opacity: .6; font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.footer ul a { opacity: .85; } .footer ul a:hover { opacity: 1; color: var(--accent); }
.footer .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.2rem; font-size: .82rem; opacity: .6; }

/* ---------- Profile page ---------- */
.cover-wrap { position: relative; }
.cover { height: clamp(150px, 32vw, 300px); border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; background: var(--sheet); }
.cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.profile-head { display: grid; gap: .9rem; padding-top: 0; }
.profile-avatar { width: clamp(96px, 22vw, 136px); height: clamp(96px, 22vw, 136px); border-radius: 50%; border: 4px solid var(--bg); object-fit: cover; margin-top: calc(clamp(96px, 22vw, 136px) / -2); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.profile-name { display: flex; align-items: center; gap: .4rem; font-size: clamp(1.5rem, 4vw, 2rem); }
.profile-name svg { width: 22px; height: 22px; color: var(--accent); }
.handle { color: var(--ink-2); font-size: .95rem; }
.bio { max-width: 40rem; }
.stats { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.stats div { display: grid; }
.stats b { font-family: var(--font-display); font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.stats small { color: var(--ink-2); }
.profile-grid { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 900px) { .profile-grid { grid-template-columns: 1fr 340px; } .sub-card { position: sticky; top: 84px; } }

.sub-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: .9rem; box-shadow: var(--shadow); }
.sub-card .amount { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1; }
.sub-card .amount small { font-size: .95rem; color: var(--ink-2); font-weight: 500; }
.sub-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .4rem; color: var(--ink-2); font-size: .95rem; }
.sub-card li::before { content: "🔓"; margin-right: .45rem; }
.sub-card .fine { font-size: .78rem; color: var(--ink-2); }
.bundle { display: grid; gap: .5rem; }
.bundle label { display: flex; align-items: center; justify-content: space-between; gap: .6rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .65rem .85rem; cursor: pointer; font-size: .95rem; }
.bundle label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.bundle input { accent-color: var(--accent); }
.bundle .off { font-size: .75rem; font-weight: 700; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); padding: .15rem .5rem; border-radius: 999px; }

.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; overflow-x: auto; }
.tab { background: none; border: 0; padding: .8rem 1rem; font-family: var(--font-display); font-weight: 600; color: var(--ink-2); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab[aria-selected="true"] { color: var(--accent); border-color: var(--accent); }
.feed { display: grid; gap: 1.25rem; }
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.media-grid .tile { position: relative; aspect-ratio: 1; max-width: 100%; border-radius: 10px; overflow: hidden; background: var(--sheet); }
.media-grid .tile img { width: 100%; height: 100%; object-fit: cover; }
.media-grid .tile .lock { padding: .4rem; }
.media-grid .tile .lock svg { width: 26px; height: 26px; }
.about { display: grid; gap: 1rem; max-width: 40rem; }
.about dl { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; margin: 0; }
.about dt { color: var(--ink-2); } .about dd { margin: 0; }

.unlocked-banner { display: none; background: linear-gradient(100deg, var(--accent), var(--accent-2)); color: #fff; border-radius: var(--radius-sm); padding: .9rem 1.1rem; font-weight: 600; align-items: center; gap: .6rem; }
body.is-subscribed .unlocked-banner { display: flex; }
body.is-subscribed .lock { display: none; }
body.is-subscribed .locked .post-media img { filter: none; }
body.is-subscribed .sub-card .btn-primary, body.is-subscribed .sticky-cta { display: none; }

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: .7rem max(16px, env(safe-area-inset-right, 0px)) calc(.7rem + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
}
.sticky-cta b { font-family: var(--font-display); }
.sticky-cta small { display: block; color: var(--ink-2); font-size: .8rem; }
@media (min-width: 900px) { .sticky-cta { display: none; } }
body.has-sticky { padding-bottom: 92px; }
@media (min-width: 900px) { body.has-sticky { padding-bottom: 0; } }

/* ---------- Modals ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: none; align-items: flex-end; justify-content: center; padding: 0; background: rgba(28,20,32,.6); backdrop-filter: blur(6px); }
.modal.open { display: flex; }
.modal-box { background: var(--surface); color: var(--ink); width: 100%; max-width: 480px; border-radius: var(--radius) var(--radius) 0 0; padding: 1.4rem; display: grid; gap: 1rem; max-height: 92dvh; overflow: auto; padding-bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px)); animation: up .25s ease; }
@media (min-width: 600px) { .modal { align-items: center; padding: 1rem; } .modal-box { border-radius: var(--radius); padding-bottom: 1.4rem; } }
@keyframes up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-box h3 { font-size: 1.4rem; }
.modal-close { position: absolute; top: .9rem; right: .9rem; background: var(--sheet); border: 0; width: 36px; height: 36px; border-radius: 50%; font-size: 1.2rem; color: var(--ink); }
.modal-box { position: relative; }
.field { display: grid; gap: .3rem; font-size: .9rem; color: var(--ink-2); }
.field input { font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .75rem .9rem; min-height: 46px; width: 100%; }
.field input:focus { border-color: var(--accent); outline: none; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.summary { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; background: var(--sheet); border-radius: var(--radius-sm); font-family: var(--font-display); font-weight: 600; }
.pay-methods { display: flex; gap: .4rem; }
.pay-methods button { flex: 1; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--radius-sm); padding: .6rem; font-weight: 600; font-size: .9rem; }
.pay-methods button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.secure { font-size: .78rem; color: var(--ink-2); text-align: center; }

/* ---------- PRANK ---------- */
.prank { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; text-align: center; padding: max(16px, env(safe-area-inset-left, 0px)); overflow: auto;
  background: radial-gradient(circle at 50% 30%, #FF8A5B 0%, #FF5C7A 45%, #B5123E 100%); color: #fff; }
.prank.open { display: grid; }
.prank-inner { display: grid; gap: 1rem; justify-items: center; max-width: 640px; width: 100%; }
.prank h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 8.2vw, 5rem); line-height: .95; letter-spacing: -.03em; text-transform: uppercase; text-shadow: 0 6px 0 rgba(0,0,0,.18), 0 18px 40px rgba(0,0,0,.3); max-width: 100%; overflow-wrap: anywhere; }
.prank { overflow-x: hidden; }
.prank h2 span { display: block; font-size: .5em; letter-spacing: .2em; font-weight: 700; opacity: .95; }
.prank-photo { width: min(72vw, 320px); aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 8px solid #fff; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.prank p { font-size: clamp(1rem, 2.6vw, 1.3rem); font-weight: 600; max-width: 28rem; }
.prank .btn { background: #fff; color: #B5123E; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.prank .credit { font-size: .7rem; opacity: .7; }
@media (prefers-reduced-motion: no-preference) {
  .prank.open .prank-photo { animation: wobble .7s ease-in-out infinite alternate, pop .5s cubic-bezier(.2,1.6,.4,1) both; }
  .prank.open h2 { animation: shake .35s ease-in-out 3; }
  @keyframes wobble { from { transform: rotate(-8deg) scale(1); } to { transform: rotate(8deg) scale(1.06); } }
  @keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
  @keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-10px) rotate(-1deg); } 75% { transform: translateX(10px) rotate(1deg); } }
}
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -10px; width: 10px; height: 16px; background: #fff; opacity: .9; border-radius: 2px; animation: fall linear infinite; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--bg); padding: .7rem 1.1rem; border-radius: 999px; font-weight: 600; opacity: 0; transition: .25s; z-index: 70; pointer-events: none; white-space: nowrap; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%); }
