/* Site styles: "Promessa" layout by Olivia (approved by Marconi on 2026-12-02).
   Source of the design: ~/work/appmold/_arquivo/site-novo/pagina-produto/fonte/pp.tpl.html */

@font-face {
  font-family: 'Outfit';
  src: url('../assets/fonts/outfit-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #FAFAFA; }

/* ── Appmold identity (marca/brandguidelines.html) ── */
.pg {
  --midnight: #130F1A;       /* text, structure, dark surface */
  --purple: #5B21B6;         /* Royal Purple: actions, links, highlights */
  --purple-hover: #4C1D95;
  --lilac: #A78BFA;          /* Tech Lilac: dark contexts only */
  --paper: #FAFAFA;
  --alt: #F1F5F9;
  --card: #FFFFFF;
  --body: #475569;           /* body text; darker than the guide's Steel Gray so it passes AA */
  --muted: #64748B;
  --rule: #E2E8F0;
  --on-dark: #FAFAFA;
  --on-dark-2: #B4BCCD;
  --rule-dark: rgba(250, 250, 250, 0.16);
  background: var(--paper); color: var(--midnight);
  font-family: 'Outfit', system-ui, -apple-system, sans-serif; font-size: 18px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow: hidden;
}
:where(.pg) :where(h1, h2, h3, p, ol, ul, dl, dd, figure) { margin: 0; }
:where(.pg) :where(ol, ul) { padding: 0; list-style: none; }
:where(.pg) a { color: inherit; text-decoration: none; }
/* Focus ring: purple on light surfaces, lilac only where the surface is dark */
.pg :focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 4px; }
.banner :focus-visible { outline-color: var(--lilac); }
.wrap { max-width: 1248px; margin: 0 auto; padding: 0 32px; }
.lk { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Banner surface: Midnight with the two purple glows of the Appmold cover art */
.banner {
  position: relative; isolation: isolate; color: var(--on-dark);
  background:
    radial-gradient(60rem 34rem at 92% 108%, rgba(91, 33, 182, 0.55), transparent 62%),
    radial-gradient(40rem 26rem at 2% -14%, rgba(91, 33, 182, 0.32), transparent 64%),
    var(--midnight);
}
.banner__flow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* Buttons: the guide's pill, one solid action and two outlined */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-size: 16px; font-weight: 600; letter-spacing: 0.01em; border: 1.5px solid transparent; transition: background-color 180ms ease, border-color 180ms ease, translate 180ms ease; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--solid { background: var(--purple); border-color: var(--purple); color: #fff; }
.btn--solid:hover { background: #6D31CF; border-color: #6D31CF; translate: 0 -1px; }
.btn--line { border-color: rgba(250, 250, 250, 0.38); color: var(--on-dark); }
.btn--line:hover { border-color: var(--on-dark); translate: 0 -1px; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* Top bar */
.bar { display: flex; align-items: center; gap: 28px; padding: 24px 0; font-size: 15px; }
.bar__name { font-weight: 700; font-size: 19px; line-height: 1.3; letter-spacing: -0.02em; }
.bar__alt { display: block; font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--on-dark-2); }
.bar__role { font-weight: 400; color: var(--on-dark-2); letter-spacing: 0; }
.bar__nav { display: flex; gap: 32px; margin-left: auto; color: var(--on-dark-2); font-weight: 500; }
.bar__nav a:hover { color: var(--on-dark); }

/* Hero */
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr) 430px; column-gap: 40px; align-items: end; padding: 56px 0 0; }
.hero__h { font-size: clamp(44px, 5.3vw, 76px); text-wrap: balance; font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin-bottom: 40px; }
.hero__h span { display: grid; grid-template-columns: 34px 1fr; column-gap: 6px; align-items: start; }
.hero__h span + span { margin-top: 0.14em; }
.hero__h i { font-style: normal; font-size: 18px; line-height: 1; font-weight: 600; letter-spacing: 0; color: var(--lilac); font-variant-numeric: tabular-nums; padding-top: clamp(9px, 1.25vw, 17px); }
.hero .acts { padding: 0 0 80px 40px; }
.hero__fig { position: relative; align-self: end; margin-right: -24px; }
/* The portrait is a cut-out standing on the banner: a purple glow behind it, shoulders fading into the dark */
.hero__fig::before { content: ''; position: absolute; inset: 6% -8% 0 -8%; z-index: -1; background: radial-gradient(closest-side at 50% 58%, rgba(124, 58, 237, 0.55), rgba(91, 33, 182, 0.22) 55%, transparent 100%); }
/* Both photo files share one box: the 430px export is 0.1% off the 760px aspect */
.hero__photo { display: block; width: 100%; height: auto; aspect-ratio: 760 / 927; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 88%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 88%, transparent 100%); }

/* Facts */
.facts { display: grid; grid-template-columns: 1.45fr 0.9fr 1.3fr 1.5fr 0.55fr; border-bottom: 1px solid var(--rule); }
.facts > div { padding: 22px 20px 24px 0; }
.facts > div + div { padding-left: 20px; border-left: 1px solid var(--rule); }
.facts dt { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--purple); margin-bottom: 6px; }
.facts dd { font-size: 15px; line-height: 1.45; }

/* How I work */
.how { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); column-gap: 72px; padding: 72px 0 0; }
.how__lead { font-size: 28px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; text-wrap: balance; }
.how__list { display: grid; gap: 24px; }
.how__list > div { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; }
.how__list b { font-size: 20px; font-weight: 600; color: var(--purple); line-height: 1.5; font-variant-numeric: tabular-nums; }
.how__list p { color: var(--body); }

/* Proof: measured results */
.proof { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 72px; border-top: 2px solid var(--midnight); }
.proof > a { padding: 28px 28px 30px 0; }
.proof > a + a { padding-left: 28px; border-left: 1px solid var(--rule); }
.proof b { display: block; font-size: clamp(44px, 5.2vw, 72px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: var(--purple); font-variant-numeric: tabular-nums; white-space: nowrap; }
.proof span { display: block; margin-top: 12px; font-size: 17px; line-height: 1.4; }
.proof small { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); }
.proof > a:hover span { color: var(--purple); }

/* Section heading */
.sec { padding: 96px 0 0; scroll-margin-top: 8px; }
.sec__h { font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; }
.sec__p { margin-top: 12px; color: var(--body); max-width: 40rem; }

/* Cases: the hook is always visible, the full story opens on demand */
.cases { margin-top: 32px; border-top: 2px solid var(--midnight); }
.case { border-bottom: 1px solid var(--rule); scroll-margin-top: 8px; }
.case summary { display: grid; grid-template-columns: 56px minmax(0, 1fr) 300px 40px; column-gap: 32px; align-items: start; padding: 30px 0; cursor: pointer; list-style: none; }
.case summary::-webkit-details-marker { display: none; }
.case__n { grid-row: 1 / span 2; font-size: 40px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: var(--purple); font-variant-numeric: tabular-nums; }
.case__t { grid-column: 2; grid-row: 1; font-size: 28px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.14; text-wrap: balance; }
.case summary:hover .case__t { color: var(--purple); }
.case__m { grid-column: 2; grid-row: 2; display: block; margin-top: 10px; font-size: 15px; font-weight: 400; letter-spacing: 0; line-height: 1.14; text-wrap: balance; color: var(--muted); }
.case__r { grid-column: 3; grid-row: 1 / span 2; font-size: 19px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; padding-top: 4px; }
.case__x { grid-column: 4; grid-row: 1 / span 2; width: 40px; height: 40px; border: 1.5px solid var(--rule); border-radius: 50%; position: relative; }
.case__x::before, .case__x::after { content: ''; position: absolute; left: 12px; right: 12px; top: 18px; height: 2px; background: var(--purple); transition: rotate 200ms ease-out; }
.case__x::after { rotate: 90deg; }
.case[open] .case__x::after { rotate: 0deg; }
.case[open] .case__x { border-color: var(--purple); }
.case__body { padding: 0 0 40px 88px; max-width: 820px; color: var(--body); }
.case__body p + p { margin-top: 16px; }
.case__body strong { font-weight: 600; color: var(--midnight); }
@media (prefers-reduced-motion: reduce) { .case__x::before, .case__x::after { transition: none; } }

/* Career */
.jobs { margin-top: 32px; border-top: 2px solid var(--midnight); }
.job { display: grid; grid-template-columns: 220px minmax(0, 720px); column-gap: 48px; padding: 30px 0; border-bottom: 1px solid var(--rule); }
.job__when { font-size: 15px; font-weight: 600; color: var(--purple); font-variant-numeric: tabular-nums; padding-top: 5px; }
.job h3 { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.job h3 svg { width: 24px; height: 24px; flex: none; color: var(--midnight); }
.job__role { font-size: 15px; color: var(--muted); margin-top: 2px; }
.job__text { margin-top: 10px; color: var(--body); }
.jobs__end { padding: 24px 0 0 268px; }

/* Stack */
.stack { margin-top: 32px; border-top: 2px solid var(--midnight); padding: 30px 0 0 268px; color: var(--body); }
.stack p { max-width: 720px; }
.stack p + p { margin-top: 16px; }

/* Closing banner and footer */
.close { margin-top: 104px; }
.close__in { padding: 88px 0 96px; display: grid; grid-template-columns: minmax(0, 1.1fr) auto; column-gap: 72px; align-items: end; }
.close h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; }
.close__p { font-size: 24px; font-weight: 500; line-height: 1.3; letter-spacing: -0.015em; margin-top: 16px; max-width: 26ch; text-wrap: balance; }
.close__note { margin-top: 18px; color: var(--on-dark-2); font-size: 16px; }
.ft { border-top: 1px solid var(--rule-dark); padding: 26px 0 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 15px; color: var(--on-dark-2); }
.ft svg { width: 24px; height: 24px; color: var(--on-dark); }
.ft b { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; color: var(--on-dark); margin-right: 6px; }
.ft a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

@media (max-width: 900px) {
  .pg { font-size: 17px; }
  .wrap { padding: 0 20px; }
  .bar { flex-wrap: wrap; gap: 4px 16px; padding: 18px 0; }
  .bar__nav { display: none; }
  .bar__role { display: block; font-size: 15px; }
  .bar__dot { display: none; }
  .hero__in { grid-template-columns: 1fr; padding-top: 36px; }
  .hero__h { margin-bottom: 28px; }
  .hero__h span { grid-template-columns: 22px 1fr; }
  .hero .acts { padding: 0 0 36px; }
  .hero__fig { margin: 0 auto; width: min(100%, 340px); }
  .acts .btn { flex: 1 1 auto; }
  .facts { grid-template-columns: 1fr; }
  .facts > div, .facts > div + div { display: grid; grid-template-columns: 116px 1fr; column-gap: 14px; padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .facts > div:last-child { border-bottom: 0; }
  .facts dt { margin: 3px 0 0; font-size: 11px; }
  .how { grid-template-columns: 1fr; row-gap: 28px; padding-top: 48px; }
  .how__lead { font-size: 24px; }
  .proof { grid-template-columns: 1fr; margin-top: 48px; }
  .proof > a, .proof > a + a { padding: 22px 0 24px; border-left: 0; }
  .proof > a + a { border-top: 1px solid var(--rule); }
  .sec { padding-top: 64px; }
  .case summary { grid-template-columns: 34px minmax(0, 1fr) 36px; column-gap: 12px; padding: 22px 0; }
  .case__n { font-size: 28px; }
  .case__t { font-size: 21px; }
  .case__m { font-size: 14px; }
  .case__r { grid-column: 2; grid-row: 3; font-size: 17px; margin-top: 12px; padding-top: 0; }
  .case__x { grid-column: 3; grid-row: 1 / span 2; width: 36px; height: 36px; }
  .case__x::before, .case__x::after { left: 10px; right: 10px; top: 16px; }
  .case__body { padding: 0 0 28px 46px; }
  .job { grid-template-columns: 1fr; row-gap: 6px; padding: 24px 0; }
  .job__when { padding-top: 0; }
  .jobs__end, .stack { padding-left: 0; }
  .close { margin-top: 72px; }
  .close__in { grid-template-columns: 1fr; row-gap: 32px; padding: 56px 0 64px; }
  .close__p { font-size: 21px; }
}

/* Contacts spelled out: paper only (on screen the buttons do this job) */
.print-contacts { display: none; }

/* Text only for screen readers */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Print and "save as PDF": dark banners become plain paper so no text is lost.
   The inline script opens every case before printing. */
@media print {
  .pg { overflow: visible; font-size: 12pt; }
  .banner { background: none; color: var(--midnight); }
  .banner__flow, .bar__nav, .acts, .case__x, .hero__fig::before { display: none; }
  .bar__role, .bar__alt, .close__note, .ft { color: var(--body); }
  .ft svg, .ft b, .ft a { color: var(--midnight); }
  .hero__h i { color: var(--purple); }
  .hero__h { font-size: 34pt; }
  .sec { padding-top: 32px; }
  .close { margin-top: 32px; }
  .close__in { padding: 24px 0; }
  .close { break-inside: avoid; }
  .case summary { break-inside: avoid; break-after: avoid; }
  /* Small photo to the right of name and role, no mask and no glow (Olivia, 2026-12-02) */
  .hero .wrap { position: relative; }
  .bar { padding-right: 140px; }
  .hero__in { display: block; padding-top: 40px; }
  .hero__fig { position: absolute; top: 20px; right: 32px; width: 120px; margin: 0; }
  .hero__photo { -webkit-mask-image: none; mask-image: none; }
  .print-contacts { display: block; margin-top: 6px; padding-right: 140px; font-size: 10.5pt; color: var(--midnight); }
  .print-contacts a { color: var(--purple); text-decoration: none; white-space: nowrap; }
  .close .print-contacts { margin-top: 12px; padding-right: 0; }
  .job, .proof > a, .facts > div { break-inside: avoid; }
}
