:root {
    --rose-950: #650c31;
    --rose-900: #7f123d;
    --rose-850: #910c3f;
    --rose-800: #aa2856;
    --rose-700: #c12c5d;
    --rose-600: #e03769;
    --rose-500: #e74d78;
    --rose-400: #ed6c90;
    --rose-300: #f59db2;
    --rose-200: #fab9c6;
    --rose-150: #fbcbd3;
    --rose-100: #fbd6db;
    --rose-50: #fbe6e8;
    --blush: #fff5f6;
    --paper: #fffafb;
    --white: #ffffff;

    --ink: #4c1930;
    --ink-soft: #6e4054;
    --ink-muted: #8e6476;

    --border: rgba(145, 12, 63, 0.14);
    --border-strong: rgba(145, 12, 63, 0.24);
    --glass: rgba(255, 255, 255, 0.64);
    --glass-strong: rgba(255, 255, 255, 0.82);

    --font-display: "Elsie", Georgia, "Times New Roman", serif;
    --font-body: "Montserrat", Arial, Helvetica, sans-serif;

    --container: 1180px;
    --header-height: 84px;
    --radius-xs: 10px;
    --radius-sm: 16px;
    --radius-md: 24px;
    --radius-lg: 36px;
    --radius-xl: 52px;

    --shadow-soft: 0 24px 80px rgba(170, 40, 86, 0.12);
    --shadow-card: 0 18px 50px rgba(145, 12, 63, 0.1);
    --shadow-strong: 0 30px 90px rgba(145, 12, 63, 0.2);

    --transition: 280ms cubic-bezier(0.2, 0.75, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 28px);
    background: var(--paper);
}

body {
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 4%, rgba(245, 157, 178, 0.22), transparent 25rem),
        var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.dialog-open {
    overflow: hidden;
}


/*
 * Contenção horizontal global. Evita a faixa lateral causada por
 * elementos decorativos, transformações GSAP e trilhas mais largas.
 */
@supports (overflow: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

body,
main,
.site-header,
.site-footer,
.hero,
.section,
.gallery,
.legal-main {
    max-width: 100%;
}

.project-page,
.legal-page {
    min-height: 100%;
    isolation: isolate;
}

::selection {
    background: var(--rose-300);
    color: var(--rose-950);
}

img,
svg {
    display: block;
}

img {
    max-width: 100%;
}

button,
a,
input,
textarea,
select {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: 0;
    background: none;
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid rgba(224, 55, 105, 0.48);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 9999;
    padding: 12px 18px;
    transform: translateY(-150%);
    background: var(--rose-900);
    border-radius: var(--radius-xs);
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 700;
    transition: transform var(--transition);
}

.skip-link:focus {
    transform: translateY(0);
}

.scroll-progress {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 2100;
    height: 3px;
    pointer-events: none;
}

.scroll-progress span {
    width: 100%;
    height: 100%;
    display: block;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, var(--rose-300), var(--rose-600), var(--rose-850));
    box-shadow: 0 0 14px rgba(224, 55, 105, 0.5);
}

.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    transform: translate3d(-50%, -50%, 0);
    background: radial-gradient(circle, rgba(245, 157, 178, 0.2), rgba(245, 157, 178, 0.06) 42%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    will-change: transform;
}

.section-shell,
.header-shell,
.footer-shell {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 2000;
    height: var(--header-height);
    border-bottom: 1px solid transparent;
    transition:
        height var(--transition),
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition),
        backdrop-filter var(--transition);
}

.site-header.is-scrolled {
    height: 72px;
    background: rgba(255, 250, 251, 0.82);
    border-color: var(--border);
    box-shadow: 0 10px 34px rgba(145, 12, 63, 0.06);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

.header-shell {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--rose-850);
}

.brand-mark {
    width: 22px;
    height: 28px;
    display: grid;
    place-items: center;
}

.brand-mark svg {
    width: 100%;
    height: 100%;
    fill: url(#none);
}

.brand-mark path {
    fill: var(--rose-500);
}

.brand-name {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
}

.brand-name span {
    color: var(--rose-500);
}

.site-menu {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(22px, 3vw, 48px);
}

.global-navigation {
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.9vw, 28px);
}

.global-navigation a {
    position: relative;
    padding: 10px 0;
    color: var(--ink-soft);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color var(--transition);
}

.global-navigation a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 4px;
    left: 0;
    height: 1px;
    transform: scaleX(0);
    transform-origin: right center;
    background: var(--rose-500);
    transition: transform var(--transition);
}

.global-navigation a:hover {
    color: var(--rose-850);
}

.global-navigation a:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.social-links a,
.social-links button {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    background: transparent;
    border: 1px solid rgba(145, 12, 63, 0.2);
    border-radius: 50%;
    color: var(--rose-800);
    cursor: pointer;
    transition:
        color var(--transition),
        border-color var(--transition);
}

.social-links svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

/*
 * O hover altera somente a borda circular e o ícone central,
 * repetindo as cores usadas no portfólio principal.
 */
.social-link-linkedin:hover,
.social-link-linkedin:focus-visible {
    color: #0a66c2;
    border-color: #0a66c2;
}

.social-link-instagram:hover,
.social-link-instagram:focus-visible {
    color: #c13584;
    border-color: #c13584;
}

.social-link-github:hover,
.social-link-github:focus-visible {
    color: #f97316;
    border-color: #f97316;
}

.social-link-whatsapp:hover,
.social-link-whatsapp:focus-visible {
    color: #25d366;
    border-color: #25d366;
}

.social-link-share:hover,
.social-link-share:focus-visible {
    color: #38bdf8;
    border-color: #38bdf8;
}

.header-back {
    min-height: 42px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    color: var(--rose-850);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition:
        transform var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.header-back svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.header-back:hover {
    transform: translateY(-2px);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.menu-toggle {
    width: 44px;
    height: 44px;
    display: none;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
}

.menu-toggle span {
    position: absolute;
    width: 18px;
    height: 1.5px;
    background: var(--rose-850);
    transition: transform var(--transition);
}

.menu-toggle span:first-child {
    transform: translateY(-4px);
}

.menu-toggle span:last-child {
    transform: translateY(4px);
}

.menu-toggle.is-open span:first-child {
    transform: rotate(45deg);
}

.menu-toggle.is-open span:last-child {
    transform: rotate(-45deg);
}

.section-rail {
    position: fixed;
    top: 50%;
    right: 22px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform: translateY(-50%);
}

.section-rail a {
    position: relative;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: var(--rose-800);
    font-size: 0.58rem;
    font-weight: 700;
    opacity: 0.38;
    transition:
        opacity var(--transition),
        transform var(--transition),
        color var(--transition);
}

.section-rail a::before {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid currentColor;
    border-radius: 50%;
    transform: scale(0.5);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
}

.section-rail a span {
    transform: scale(0.86);
}

.section-rail a:hover,
.section-rail a.is-active {
    transform: scale(1.08);
    opacity: 1;
    color: var(--rose-600);
}

.section-rail a.is-active::before {
    transform: scale(1);
    opacity: 1;
}

.hero {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    display: flex;
    align-items: center;
    isolation: isolate;
    background:
        radial-gradient(circle at 75% 34%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.18) 22rem, transparent 40rem),
        radial-gradient(circle at 12% 26%, rgba(250, 185, 198, 0.82), transparent 34rem),
        linear-gradient(145deg, #fff8f9 0%, #fbe6e8 44%, #fbcbd3 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -5;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), transparent 75%);
    opacity: 0.38;
}

.hero-shell {
    position: relative;
    z-index: 10;
    width: min(calc(100% - 64px), 1280px);
    min-height: 100svh;
    margin-inline: auto;
    padding: calc(var(--header-height) + 72px) 0 170px;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(380px, 0.78fr);
    align-items: center;
    gap: clamp(52px, 8vw, 120px);
}

.hero-copy {
    position: relative;
    z-index: 5;
    max-width: 680px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--rose-800);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rose-500);
    box-shadow: 0 0 0 7px rgba(231, 77, 120, 0.12);
}

.hero-title {
    margin-top: 24px;
    display: flex;
    align-items: flex-start;
    color: var(--rose-850);
    font-family: var(--font-display);
    font-size: clamp(5.1rem, 11vw, 10.5rem);
    font-weight: 600;
    letter-spacing: -0.075em;
    line-height: 0.72;
    text-shadow: 0 24px 70px rgba(145, 12, 63, 0.12);
}

.hero-title-word,
.hero-title-plus {
    display: inline-block;
}

.hero-title-plus {
    margin-top: 0.02em;
    margin-left: 0.03em;
    color: var(--rose-500);
    font-family: var(--font-body);
    font-size: 0.52em;
    font-weight: 500;
    letter-spacing: -0.08em;
}

.hero-tagline {
    margin-top: 42px;
    color: var(--ink-soft);
    font-size: clamp(1.04rem, 1.7vw, 1.38rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.9;
    text-transform: uppercase;
}

.hero-tagline strong {
    color: var(--rose-850);
    font-weight: 600;
}

.hero-status {
    width: 100%;
    max-width: 100%;
    margin-top: 26px;
}

.download-links {
    width: 100%;
    max-width: 414px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.download-button {
    width: 130px;
    height: 40px;
    flex: 0 0 130px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    box-shadow: 0 10px 24px rgba(145, 12, 63, 0.12);
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        opacity var(--transition);
}

.download-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(145, 12, 63, 0.18);
}

.download-button:active {
    transform: translateY(-1px);
}

.download-button img {
    width: 130px;
    height: 40px;
    display: block;
    object-fit: cover;
    border-radius: inherit;
}

.hero-technologies {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.hero-technologies span {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(145, 12, 63, 0.13);
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.hero-actions,
.closing-actions {
    margin-top: 38px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    position: relative;
    min-height: 54px;
    padding: 0 24px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition),
        color var(--transition),
        box-shadow var(--transition);
}

.button::before {
    content: "";
    position: absolute;
    top: -100%;
    bottom: -100%;
    left: -35%;
    width: 28%;
    transform: rotate(18deg);
    background: rgba(255, 255, 255, 0.25);
    transition: left 650ms ease;
}

.button:hover::before {
    left: 120%;
}

.button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.button-primary {
    background: linear-gradient(135deg, var(--rose-600), var(--rose-800));
    color: var(--white);
    box-shadow: 0 16px 36px rgba(170, 40, 86, 0.24);
}

.button-primary:hover {
    background: linear-gradient(135deg, var(--rose-500), var(--rose-700));
    box-shadow: 0 20px 42px rgba(170, 40, 86, 0.32);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid var(--border-strong);
    color: var(--rose-850);
    backdrop-filter: blur(10px);
}

.button-secondary:hover {
    background: var(--white);
    border-color: rgba(145, 12, 63, 0.3);
    box-shadow: var(--shadow-card);
}

.hero-visual {
    position: relative;
    width: min(100%, 520px);
    aspect-ratio: 0.76;
    justify-self: end;
}

.hero-image-card {
    position: absolute;
    inset: 8% 12% 5%;
    z-index: 3;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.98), rgba(251, 230, 232, 0.84) 48%, rgba(250, 185, 198, 0.72));
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 42% 42% 30% 30% / 26% 26% 16% 16%;
    box-shadow:
        0 35px 100px rgba(145, 12, 63, 0.2),
        inset 0 0 60px rgba(255, 255, 255, 0.52);
    transform-style: preserve-3d;
    will-change: transform;
}

.hero-image-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.32), transparent 42%);
    pointer-events: none;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.image-fallback {
    position: absolute;
    inset: 0;
    display: none;
    place-items: center;
    align-content: center;
    gap: 10px;
    background:
        radial-gradient(circle at 50% 40%, var(--white), transparent 35%),
        linear-gradient(150deg, var(--rose-50), var(--rose-150));
    color: var(--rose-850);
    text-align: center;
}

.image-fallback.is-visible {
    display: grid;
}

.image-fallback-logo svg {
    width: 58px;
    fill: var(--rose-500);
}

.image-fallback-logo strong {
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 1;
}

.image-fallback-logo strong span {
    color: var(--rose-500);
}

.image-fallback small {
    max-width: 180px;
    color: var(--ink-muted);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.visual-ring {
    position: absolute;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 50%;
    pointer-events: none;
}

.visual-ring-outer {
    inset: 1% -8% 2% -8%;
    box-shadow: 0 0 80px rgba(255, 255, 255, 0.5);
}

.visual-ring-inner {
    inset: 16% 0 14%;
    border-color: rgba(231, 77, 120, 0.28);
}

.visual-dot {
    position: absolute;
    z-index: 4;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.95);
}

.visual-dot-one { top: 8%; left: 9%; }
.visual-dot-two { top: 53%; right: -2%; width: 10px; height: 10px; background: var(--rose-500); }
.visual-dot-three { right: 16%; bottom: 3%; width: 12px; height: 12px; }

.floating-note {
    position: absolute;
    z-index: 6;
    min-width: 180px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 11px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(145, 12, 63, 0.13);
    backdrop-filter: blur(16px);
}

.floating-note svg {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    fill: none;
    stroke: var(--rose-600);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.floating-note span:not(.floating-number) {
    display: grid;
    color: var(--ink-muted);
    font-size: 0.58rem;
    line-height: 1.45;
}

.floating-note strong {
    color: var(--rose-850);
    font-size: 0.68rem;
}

.floating-note-privacy {
    left: -8%;
    bottom: 14%;
}

.floating-note-languages {
    top: 20%;
    right: -10%;
}

.floating-number {
    color: var(--rose-600);
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.hero-orbit {
    position: absolute;
    z-index: -2;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 50%;
    pointer-events: none;
}

.hero-orbit span {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.9);
}

.hero-orbit-one {
    top: 11%;
    left: -12%;
    width: 72vw;
    height: 72vw;
}

.hero-orbit-one span {
    top: 12%;
    right: 18%;
}

.hero-orbit-two {
    right: -18%;
    bottom: -18%;
    width: 55vw;
    height: 55vw;
    border-color: rgba(231, 77, 120, 0.16);
}

.hero-orbit-two span {
    top: 34%;
    left: 2%;
    background: var(--rose-300);
}

.hero-glow {
    position: absolute;
    z-index: -3;
    border-radius: 50%;
    filter: blur(10px);
    pointer-events: none;
}

.hero-glow-one {
    top: 10%;
    right: 12%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.62);
}

.hero-glow-two {
    bottom: 14%;
    left: 22%;
    width: 220px;
    height: 220px;
    background: rgba(237, 108, 144, 0.18);
}

.scroll-cue {
    position: absolute;
    bottom: 84px;
    left: 50%;
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transform: translateX(-50%);
    color: var(--rose-850);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.scroll-cue i {
    position: relative;
    width: 1px;
    height: 42px;
    overflow: hidden;
    background: rgba(145, 12, 63, 0.2);
}

.scroll-cue i::after {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--rose-600);
    animation: scroll-cue 1.8s ease-in-out infinite;
}

@keyframes scroll-cue {
    0% { transform: translateY(0); }
    100% { transform: translateY(200%); }
}

.hero-waves,
.closing-waves {
    position: absolute;
    right: -5%;
    bottom: -7%;
    left: -5%;
    z-index: 2;
    height: 190px;
    pointer-events: none;
}

.wave,
.closing-waves span {
    position: absolute;
    right: -4%;
    bottom: -45%;
    left: -4%;
    height: 140%;
    border-radius: 50% 50% 0 0 / 42% 42% 0 0;
    transform-origin: center bottom;
}

.wave-one,
.closing-waves span:nth-child(1) {
    background: rgba(245, 157, 178, 0.74);
    transform: rotate(2deg) translateY(14%);
}

.wave-two,
.closing-waves span:nth-child(2) {
    background: rgba(237, 108, 144, 0.42);
    transform: rotate(-3deg) translateY(28%);
}

.wave-three,
.closing-waves span:nth-child(3) {
    background: rgba(224, 55, 105, 0.26);
    transform: rotate(4deg) translateY(43%);
}

.section {
    position: relative;
    padding-block: clamp(96px, 11vw, 160px);
}

.section-heading {
    max-width: 760px;
}

.section-heading-wide {
    max-width: 980px;
}

.section-heading-centered {
    margin-inline: auto;
    text-align: center;
}

.eyebrow {
    display: block;
    color: var(--rose-600);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.section-heading h2,
.privacy-intro h2,
.gallery-heading h2,
.health-notice h2,
.closing-content h2,
.legal-hero h1 {
    margin-top: 18px;
    color: var(--rose-850);
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5.4rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 0.98;
}

.section-heading h2 em,
.privacy-intro h2 em,
.closing-content h2 em {
    color: var(--rose-500);
    font-style: italic;
    font-weight: 500;
}

.section-heading > p,
.privacy-intro > p,
.gallery-heading > div > p,
.challenges-heading > p {
    max-width: 740px;
    margin-top: 26px;
    color: var(--ink-soft);
    font-size: clamp(0.96rem, 1.2vw, 1.08rem);
    line-height: 1.95;
}

.about {
    background:
        radial-gradient(circle at 90% 18%, rgba(250, 185, 198, 0.2), transparent 28rem),
        var(--paper);
}

.project-story-grid {
    margin-top: 74px;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
}

.story-card {
    position: relative;
    grid-column: span 6;
    min-height: 340px;
    padding: clamp(28px, 4vw, 46px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(251, 230, 232, 0.58));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.story-card::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(231, 77, 120, 0.14);
    border-radius: 50%;
    box-shadow: 0 0 0 24px rgba(231, 77, 120, 0.025), 0 0 0 48px rgba(231, 77, 120, 0.018);
}

.story-card:hover {
    transform: translateY(-7px);
    border-color: rgba(145, 12, 63, 0.24);
    box-shadow: var(--shadow-strong);
}

.story-card-featured {
    grid-column: span 7;
    min-height: 390px;
    background:
        radial-gradient(circle at 84% 12%, rgba(255, 255, 255, 0.42), transparent 16rem),
        linear-gradient(140deg, var(--rose-850), var(--rose-600));
    color: var(--white);
}

.story-card:nth-child(2) {
    grid-column: span 5;
}

.story-card-privacy {
    grid-column: span 12;
    min-height: 290px;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: end;
    background:
        radial-gradient(circle at 8% 40%, rgba(255, 255, 255, 0.6), transparent 14rem),
        linear-gradient(110deg, var(--rose-100), var(--rose-50));
}

.story-number {
    position: relative;
    z-index: 2;
    color: var(--rose-500);
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
}

.story-card-featured .story-number {
    color: var(--rose-200);
}

.story-label {
    display: block;
    color: var(--rose-600);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.story-card-featured .story-label {
    color: var(--rose-200);
}

.story-card h3 {
    max-width: 620px;
    margin-top: 12px;
    color: var(--rose-850);
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.65rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.story-card-featured h3 {
    color: var(--white);
}

.story-card p {
    max-width: 740px;
    margin-top: 20px;
    color: var(--ink-soft);
    font-size: 0.9rem;
    line-height: 1.85;
}

.story-card-featured p {
    color: rgba(255, 255, 255, 0.76);
}

.features {
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 10%, rgba(245, 157, 178, 0.18), transparent 25rem),
        linear-gradient(180deg, var(--blush), var(--rose-50));
}

.features::after {
    content: "";
    position: absolute;
    top: 2%;
    right: -15%;
    width: 42vw;
    height: 42vw;
    border: 1px solid rgba(231, 77, 120, 0.12);
    border-radius: 50%;
    box-shadow: 0 0 0 60px rgba(231, 77, 120, 0.025), 0 0 0 120px rgba(231, 77, 120, 0.016);
    pointer-events: none;
}

.features-grid {
    position: relative;
    z-index: 2;
    margin-top: 68px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.feature-card {
    position: relative;
    min-height: 284px;
    padding: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(145, 12, 63, 0.11);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 38px rgba(145, 12, 63, 0.06);
    backdrop-filter: blur(14px);
    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.feature-card::after {
    content: "";
    position: absolute;
    right: -54px;
    bottom: -54px;
    width: 126px;
    height: 126px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(237, 108, 144, 0.14), transparent 68%);
    transition: transform 500ms ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(145, 12, 63, 0.22);
    box-shadow: 0 24px 60px rgba(145, 12, 63, 0.12);
}

.feature-card:hover::after {
    transform: scale(1.55);
}

.feature-card-highlight {
    background: linear-gradient(145deg, var(--rose-800), var(--rose-500));
    border-color: transparent;
    color: var(--white);
}

.feature-card-highlight:hover {
    background: linear-gradient(145deg, var(--rose-850), var(--rose-500));
}

.feature-card-account {
    grid-column: span 2;
    min-height: 230px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 22px;
}

.feature-card-account .feature-index {
    position: absolute;
}

.feature-card-account .feature-icon {
    grid-row: span 2;
    width: 70px;
    height: 70px;
    margin-top: 0;
}

.feature-index {
    position: absolute;
    top: 24px;
    right: 24px;
    color: rgba(145, 12, 63, 0.36);
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.feature-card-highlight .feature-index {
    color: rgba(255, 255, 255, 0.55);
}

.feature-icon {
    width: 54px;
    height: 54px;
    margin-top: 24px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--rose-50), var(--white));
    border: 1px solid rgba(145, 12, 63, 0.12);
    border-radius: 18px;
    color: var(--rose-600);
    box-shadow: 0 12px 24px rgba(145, 12, 63, 0.08);
}

.feature-card-highlight .feature-icon {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.24);
    color: var(--white);
    box-shadow: none;
}

.feature-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.55;
}

.feature-card h3 {
    margin-top: 26px;
    color: var(--rose-850);
    font-family: var(--font-display);
    font-size: 1.58rem;
    font-weight: 600;
    line-height: 1.08;
}

.feature-card-highlight h3 {
    color: var(--white);
}

.feature-card-account h3 {
    margin-top: 20px;
}

.feature-card p {
    margin-top: 13px;
    color: var(--ink-soft);
    font-size: 0.82rem;
    line-height: 1.75;
}

.feature-card-highlight p {
    color: rgba(255, 255, 255, 0.75);
}

.privacy {
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 20%, rgba(237, 108, 144, 0.2), transparent 28rem),
        linear-gradient(145deg, var(--rose-950), #4e0b27 72%);
    color: var(--white);
}

.privacy::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.14) 0.8px, transparent 0.8px);
    background-size: 26px 26px;
    opacity: 0.12;
    pointer-events: none;
}

.privacy-glow {
    position: absolute;
    top: 12%;
    right: 7%;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    background: rgba(237, 108, 144, 0.14);
    filter: blur(60px);
    pointer-events: none;
}

.privacy-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.05fr);
    gap: clamp(64px, 10vw, 140px);
}

.privacy-intro {
    align-self: start;
}

.privacy-intro .eyebrow {
    color: var(--rose-300);
}

.privacy-intro h2 {
    color: var(--white);
}

.privacy-intro h2 em {
    color: var(--rose-300);
}

.privacy-intro > p {
    color: rgba(255, 255, 255, 0.68);
}

.privacy-device {
    position: relative;
    width: min(100%, 380px);
    aspect-ratio: 1;
    margin-top: 62px;
    display: grid;
    place-items: center;
}

.privacy-orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
}

.privacy-orbit span {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--rose-300);
    box-shadow: 0 0 22px rgba(245, 157, 178, 0.75);
}

.privacy-orbit-a {
    inset: 3%;
}

.privacy-orbit-a span {
    top: 11%;
    right: 18%;
}

.privacy-orbit-b {
    inset: 18%;
    border-color: rgba(245, 157, 178, 0.24);
}

.privacy-orbit-b span {
    bottom: 8%;
    left: 22%;
    width: 8px;
    height: 8px;
    background: var(--white);
}

.privacy-lock {
    position: relative;
    z-index: 2;
    width: 132px;
    height: 132px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(245, 157, 178, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 40px;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.22), inset 0 0 34px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
}

.privacy-lock svg {
    width: 62px;
    height: 62px;
    fill: none;
    stroke: var(--rose-200);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.privacy-caption {
    position: absolute;
    bottom: 8%;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.privacy-list {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.privacy-item {
    padding: 30px 0;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.privacy-item > span {
    color: var(--rose-300);
    font-family: var(--font-display);
    font-size: 1.15rem;
}

.privacy-item h3 {
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    font-weight: 600;
    line-height: 1.1;
}

.privacy-item p {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.84rem;
    line-height: 1.8;
}

.technologies {
    background:
        radial-gradient(circle at 10% 70%, rgba(245, 157, 178, 0.16), transparent 30rem),
        var(--paper);
}

.technology-stack {
    max-width: 960px;
    margin: 78px auto 0;
    display: grid;
    gap: 16px;
}

.technology-card {
    position: relative;
    padding: clamp(26px, 4vw, 42px);
    display: grid;
    grid-template-columns: minmax(250px, 0.58fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 6vw, 76px);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.technology-card::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: linear-gradient(var(--rose-300), var(--rose-600));
    transform: scaleY(0.4);
    transition: transform var(--transition);
}

.technology-card:hover {
    transform: translateX(8px);
    border-color: rgba(145, 12, 63, 0.23);
    box-shadow: var(--shadow-strong);
}

.technology-card:hover::after {
    transform: scaleY(1);
}

.technology-title {
    display: flex;
    align-items: center;
    gap: 18px;
}

.technology-code {
    width: 70px;
    height: 70px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--rose-50), var(--rose-100));
    border: 1px solid rgba(145, 12, 63, 0.12);
    border-radius: 22px;
    color: var(--rose-700);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(145, 12, 63, 0.08);
}

.technology-title > div > span {
    display: block;
    color: var(--ink-muted);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.technology-title h3 {
    margin-top: 5px;
    color: var(--rose-850);
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 2.8vw, 2.35rem);
    font-weight: 600;
    line-height: 1;
}

.technology-card > p {
    color: var(--ink-soft);
    font-size: 0.86rem;
    line-height: 1.85;
}

.gallery {
    position: relative;
    overflow: hidden;
    padding-top: clamp(96px, 10vw, 150px);
    background:
        radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.7), transparent 30rem),
        linear-gradient(145deg, var(--rose-50), var(--rose-150));
}

.gallery-heading {
    position: relative;
    z-index: 4;
    margin-bottom: clamp(10px, 1.4vw, 18px);
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
}

.gallery-heading > div:first-child {
    max-width: 800px;
}

.gallery-heading h2 {
    font-size: clamp(3rem, 5.8vw, 5.2rem);
}

.gallery-controls {
    flex: 0 0 auto;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.gallery-controls button {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    color: var(--rose-850);
    cursor: pointer;
    transition:
        transform var(--transition),
        background var(--transition),
        opacity var(--transition);
}

.gallery-controls button:hover:not(:disabled) {
    transform: translateY(-3px);
    background: var(--white);
}

.gallery-controls button:disabled {
    opacity: 0.36;
    cursor: not-allowed;
}

.gallery-controls svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.gallery-controls span {
    min-width: 62px;
    color: var(--rose-850);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.gallery-pin {
    position: relative;
    width: 100%;
    max-width: 100%;

    /*
     * A área fixada ocupa somente o espaço disponível abaixo
     * do cabeçalho. O conteúdo começa no topo dessa área para
     * manter as capturas próximas ao título da galeria.
     */
    height: calc(100svh - 72px);
    min-height: 430px;
    padding-block: 10px 24px;

    display: flex;
    align-items: flex-start;
    overflow: hidden;
}



/* ScrollTrigger cria este invólucro ao fixar a galeria no desktop. */
.gallery > .pin-spacer {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
}

.gallery-pin::before,
.gallery-pin::after {
    content: "";
    position: absolute;
    z-index: 3;
    top: 0;
    bottom: 0;
    width: 8vw;
    pointer-events: none;
}

.gallery-pin::before {
    left: 0;
    background: linear-gradient(90deg, var(--rose-100), transparent);
}

.gallery-pin::after {
    right: 0;
    background: linear-gradient(-90deg, var(--rose-100), transparent);
}

.gallery-track {
    position: relative;
    z-index: 2;
    width: max-content;
    padding: 8px max(7vw, 48px) 14px;
    display: flex;
    align-items: center;
    gap: clamp(24px, 3.5vw, 54px);
    will-change: transform;
}

.screen-card {
    /*
     * A largura acompanha a altura disponível da janela.
     * Assim, cada captura permanece inteira mesmo em telas baixas.
     */
    /* Aproximadamente 7% menor que a versão anterior. */
    width: clamp(149px, 28.8svh, 228px);
    flex: 0 0 auto;
}

.phone-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 19.5;
    padding: 0;
    overflow: hidden;
    background: #3d1328;
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: clamp(28px, 3.2vw, 44px);
    box-shadow:
        0 26px 62px rgba(145, 12, 63, 0.2),
        inset 0 0 0 2px rgba(255, 255, 255, 0.08);
    cursor: zoom-in;
    transform: translateZ(0);
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.phone-frame:hover {
    transform: translateY(-5px) scale(1.012);
    border-color: rgba(255, 255, 255, 0.82);
    box-shadow:
        0 34px 76px rgba(145, 12, 63, 0.27),
        inset 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.phone-frame:focus-visible {
    outline: 3px solid var(--rose-500);
    outline-offset: 6px;
}

.phone-frame::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 50%;
    z-index: 4;
    width: 21%;
    height: 4px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    pointer-events: none;
}

.phone-frame img {
    width: 100%;
    height: 100%;
    /* Preenche integralmente a moldura. A imagem original permanece
       disponível no visualizador ao clicar. */
    object-fit: cover;
    object-position: center top;
    background: var(--rose-50);
    border-radius: inherit;
}

.phone-frame .image-fallback {
    inset: 0;
    border-radius: inherit;
}

.phone-frame .image-fallback span {
    color: var(--rose-600);
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 1;
}

.screen-card figcaption {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--ink-soft);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.screen-card figcaption span {
    color: var(--rose-600);
    font-family: var(--font-display);
    font-size: 1rem;
}

.gallery-help {
    display: none;
    padding: 0 24px 46px;
    color: var(--ink-muted);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

.challenges {
    background:
        radial-gradient(circle at 84% 8%, rgba(245, 157, 178, 0.17), transparent 28rem),
        var(--paper);
}

.challenges-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.2fr);
    gap: clamp(56px, 9vw, 130px);
}

.challenges-heading {
    align-self: start;
}

.challenges-list {
    display: grid;
    gap: 16px;
}

.challenge-card {
    position: relative;
    padding: clamp(28px, 4vw, 42px);
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(251, 230, 232, 0.56));
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.challenge-card:hover {
    transform: translateY(-6px);
    border-color: rgba(145, 12, 63, 0.24);
    box-shadow: var(--shadow-strong);
}

.challenge-card-estimate {
    background: linear-gradient(145deg, var(--rose-850), var(--rose-700));
    border-color: transparent;
}

.challenge-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.challenge-topline > span {
    color: var(--rose-500);
    font-family: var(--font-display);
    font-size: 1.2rem;
}

.challenge-topline svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: var(--rose-500);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.45;
}

.challenge-card-estimate .challenge-topline > span,
.challenge-card-estimate .challenge-topline svg {
    color: var(--rose-200);
    stroke: var(--rose-200);
}

.challenge-card h3 {
    margin-top: 30px;
    color: var(--rose-850);
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.55rem);
    font-weight: 600;
    line-height: 1.05;
}

.challenge-card-estimate h3 {
    color: var(--white);
}

.challenge-card p {
    margin-top: 18px;
    color: var(--ink-soft);
    font-size: 0.87rem;
    line-height: 1.9;
}

.challenge-card-estimate p {
    color: rgba(255, 255, 255, 0.72);
}

.health-notice {
    position: relative;
    overflow: hidden;
    padding-block: clamp(92px, 11vw, 150px);
    background: linear-gradient(145deg, var(--rose-100), var(--rose-50));
}

.health-notice-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 720px;
    height: 720px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(231, 77, 120, 0.16);
    border-radius: 50%;
    box-shadow: 0 0 0 70px rgba(231, 77, 120, 0.025), 0 0 0 140px rgba(231, 77, 120, 0.016);
}

.health-notice-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
}

.health-notice-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 28px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border);
    border-radius: 24px;
    color: var(--rose-600);
    box-shadow: var(--shadow-card);
}

.health-notice-icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.55;
}

.health-notice h2 {
    font-size: clamp(2.7rem, 5.3vw, 4.8rem);
}

.health-notice p {
    max-width: 720px;
    margin: 26px auto 0;
    color: var(--ink-soft);
    font-size: clamp(0.96rem, 1.4vw, 1.12rem);
    line-height: 1.9;
}

.closing-cta {
    position: relative;
    min-height: 78svh;
    overflow: hidden;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.92), transparent 24rem),
        linear-gradient(145deg, var(--blush), var(--rose-150));
}

.closing-content {
    position: relative;
    z-index: 4;
    padding-block: 140px 220px;
    text-align: center;
}

.closing-content h2 {
    font-size: clamp(4rem, 9vw, 8rem);
}

.closing-actions {
    justify-content: center;
}

.closing-orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
}

.closing-orbit-one {
    top: -35%;
    left: 50%;
    width: 850px;
    height: 850px;
    transform: translateX(-50%);
}

.closing-orbit-two {
    right: -12%;
    bottom: -35%;
    width: 600px;
    height: 600px;
    border-color: rgba(231, 77, 120, 0.16);
}

.site-footer {
    position: relative;
    z-index: 10;
    background: #3f1026;
    color: var(--white);
}

.footer-shell {
    padding-block: 58px 34px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 42px;
}

.footer-brand .brand-name {
    color: var(--white);
    font-size: 2.5rem;
}

.footer-brand p {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.78rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 12px 30px;
}

.footer-links a {
    position: relative;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.72rem;
    font-weight: 600;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--rose-200);
}

.footer-copy {
    grid-column: 1 / -1;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.68rem;
}

.share-dialog {
    width: min(calc(100% - 32px), 520px);
    padding: 0;
    overflow: hidden;
    background: rgba(255, 250, 251, 0.96);
    border: 1px solid rgba(145, 12, 63, 0.18);
    border-radius: 28px;
    color: var(--ink);
    box-shadow: 0 34px 100px rgba(76, 25, 48, 0.28);
    backdrop-filter: blur(24px);
}

.share-dialog::backdrop {
    background: rgba(76, 25, 48, 0.36);
    backdrop-filter: blur(8px);
}

.share-dialog-header {
    padding: 26px 26px 22px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--border);
}

.share-dialog-header span {
    color: var(--rose-600);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.share-dialog-header h2 {
    margin-top: 5px;
    color: var(--rose-850);
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.05;
}

.share-dialog-header button {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
}

.share-dialog-header svg,
.share-options svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.share-options {
    padding: 14px 18px 20px;
    display: grid;
}

.share-options a,
.share-options button {
    min-height: 52px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    color: var(--ink-soft);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: color var(--transition), padding var(--transition);
}

.share-options a:last-child,
.share-options button:last-child {
    border-bottom: 0;
}

.share-options a:hover,
.share-options button:hover {
    padding-left: 16px;
    color: var(--rose-700);
}

.share-feedback {
    min-height: 0;
    padding: 0 28px 20px;
    color: var(--rose-700);
    font-size: 0.72rem;
    font-weight: 600;
}

/* Visualizador ampliado das telas */

.screen-viewer {
    width: min(calc(100% - 28px), 760px);
    max-width: none;
    height: min(calc(100svh - 28px), 1040px);
    max-height: calc(100svh - 28px);
    margin: auto;
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: 0;
    color: var(--ink);
}

.screen-viewer::backdrop {
    background: rgba(49, 8, 27, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.screen-viewer-panel {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 50% 6%, rgba(255, 255, 255, 0.96), transparent 24rem),
        linear-gradient(145deg, var(--rose-50), var(--rose-150));
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 30px;
    box-shadow: 0 40px 120px rgba(49, 8, 27, 0.46);
}

.screen-viewer-header {
    padding: 2px 2px 10px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.screen-viewer-header span {
    color: var(--rose-600);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.screen-viewer-header h2 {
    margin-top: 4px;
    color: var(--rose-850);
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 600;
    line-height: 1;
}

.screen-viewer-close,
.screen-viewer-toolbar button {
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border-strong);
    color: var(--rose-850);
    cursor: pointer;
    transition:
        color var(--transition),
        border-color var(--transition),
        background var(--transition),
        opacity var(--transition);
}

.screen-viewer-close {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 50%;
}

.screen-viewer-close:hover,
.screen-viewer-toolbar button:hover:not(:disabled) {
    color: var(--rose-600);
    border-color: var(--rose-500);
    background: var(--white);
}

.screen-viewer-close svg,
.screen-viewer-toolbar svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.screen-viewer-toolbar {
    padding: 0 2px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.screen-viewer-toolbar button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.screen-viewer-toolbar button:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.screen-viewer-toolbar output {
    min-width: 58px;
    color: var(--rose-850);
    font-size: 0.75rem;
    font-weight: 800;
    text-align: center;
}

.screen-viewer-toolbar .screen-viewer-reset {
    width: auto;
    min-width: 76px;
    padding-inline: 13px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.screen-viewer-image-wrapper {
    position: relative;
    min-width: 0;
    min-height: 0;
    height: 0;
    flex: 1 1 0;
    overflow: hidden;
    display: grid;
    place-items: center;
    background:
        linear-gradient(rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.52)),
        repeating-conic-gradient(
            rgba(145, 12, 63, 0.055) 0 25%,
            transparent 0 50%
        ) 50% / 18px 18px;
    border: 1px solid rgba(145, 12, 63, 0.14);
    border-radius: 22px;
    outline: none;
    touch-action: none;
    cursor: zoom-in;
}

.screen-viewer-image-wrapper:focus-visible {
    outline: 3px solid var(--rose-500);
    outline-offset: 3px;
}

.screen-viewer-image-wrapper.is-zoomed {
    cursor: grab;
}

.screen-viewer-image-wrapper.is-dragging {
    cursor: grabbing;
}

.screen-viewer-image-wrapper img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(145, 12, 63, 0.2);
    transform: translate3d(0, 0, 0) scale(1);
    transform-origin: center;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
}

.screen-viewer-caption {
    padding-top: 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--ink-soft);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.screen-viewer-caption small {
    color: var(--ink-muted);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-align: right;
    text-transform: none;
}

@media (max-width: 640px) {
    .screen-viewer {
        width: calc(100% - 14px);
        height: calc(100svh - 14px);
        max-height: calc(100svh - 14px);
    }

    .screen-viewer-panel {
        padding: 10px;
        border-radius: 22px;
    }

    .screen-viewer-header {
        padding-bottom: 8px;
    }

    .screen-viewer-header h2 {
        font-size: clamp(1.35rem, 7vw, 1.8rem);
    }

    .screen-viewer-close {
        width: 38px;
        height: 38px;
    }

    .screen-viewer-toolbar {
        padding-bottom: 8px;
    }

    .screen-viewer-toolbar button {
        width: 36px;
        height: 36px;
    }

    .screen-viewer-toolbar .screen-viewer-reset {
        min-width: 68px;
        padding-inline: 10px;
    }

    .screen-viewer-image-wrapper {
        border-radius: 17px;
    }

    .screen-viewer-caption {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
        padding: 7px 2px 1px;
    }

    .screen-viewer-caption small {
        display: none;
    }
}

/* Páginas legais */

.legal-page {
    background:
        radial-gradient(circle at 80% 8%, rgba(245, 157, 178, 0.24), transparent 28rem),
        var(--paper);
}

.legal-page .site-header {
    background: rgba(255, 250, 251, 0.86);
    border-bottom-color: var(--border);
    backdrop-filter: blur(20px);
}

.legal-main {
    min-height: 100svh;
    padding-top: var(--header-height);
}

.legal-hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(80px, 10vw, 130px) 68px;
    background: linear-gradient(145deg, var(--rose-50), var(--rose-150));
}

.legal-hero::after {
    content: "";
    position: absolute;
    top: -280px;
    right: -160px;
    width: 620px;
    height: 620px;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 50%;
    box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.08), 0 0 0 120px rgba(255, 255, 255, 0.05);
}

.legal-hero .section-shell {
    position: relative;
    z-index: 2;
}

.legal-hero h1 {
    max-width: 900px;
}

.legal-hero p {
    max-width: 720px;
    margin-top: 24px;
    color: var(--ink-soft);
    line-height: 1.85;
}

.legal-meta {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.legal-meta span {
    padding: 8px 13px;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--rose-850);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.legal-layout {
    padding-block: 74px 120px;
    display: grid;
    grid-template-columns: 250px minmax(0, 780px);
    justify-content: space-between;
    gap: 70px;
}

.legal-toc {
    align-self: start;
    padding: 22px;
    display: grid;
    gap: 7px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.legal-toc strong {
    margin-bottom: 8px;
    color: var(--rose-850);
    font-family: var(--font-display);
    font-size: 1.45rem;
}

.legal-toc a {
    padding: 7px 0;
    color: var(--ink-muted);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.45;
    transition: color var(--transition), transform var(--transition);
}

.legal-toc a:hover {
    transform: translateX(4px);
    color: var(--rose-600);
}

.legal-content {
    display: grid;
    gap: 18px;
}

.legal-section {
    padding: clamp(26px, 4vw, 42px);
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 14px 44px rgba(145, 12, 63, 0.06);
}

.legal-section h2 {
    color: var(--rose-850);
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 600;
    line-height: 1.05;
}

.legal-section h3 {
    margin-top: 24px;
    color: var(--rose-800);
    font-size: 0.9rem;
}

.legal-section p,
.legal-section li {
    color: var(--ink-soft);
    font-size: 0.86rem;
    line-height: 1.85;
}

.legal-section p {
    margin-top: 15px;
}

.legal-section ul,
.legal-section ol {
    margin: 15px 0 0 20px;
    display: grid;
    gap: 8px;
}

.legal-section a {
    color: var(--rose-700);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(224, 55, 105, 0.3);
    text-underline-offset: 3px;
}

.legal-callout {
    padding: 22px;
    background: linear-gradient(145deg, var(--rose-850), var(--rose-600));
    border-radius: var(--radius-sm);
    color: var(--white);
}

.legal-callout p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}

.legal-actions {
    margin-top: 36px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (min-width: 1025px) {
    .privacy-intro,
    .challenges-heading,
    .legal-toc {
        position: sticky;
        top: 112px;
    }
}

@media (max-width: 1180px) {
    :root {
        --container: 1040px;
    }

    .global-navigation {
        display: none;
    }

    .hero-shell {
        grid-template-columns: minmax(0, 0.9fr) minmax(350px, 0.72fr);
        gap: 44px;
    }

    .section-rail {
        right: 8px;
    }

    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-card-account {
        grid-column: span 1;
        min-height: 284px;
        display: block;
    }

    .feature-card-account .feature-icon {
        width: 54px;
        height: 54px;
        margin-top: 24px;
    }
}

@media (max-width: 900px) {
    :root {
        --header-height: 74px;
    }

    .section-shell,
    .header-shell,
    .footer-shell {
        width: min(calc(100% - 36px), var(--container));
    }

    .site-header.is-scrolled {
        height: 68px;
    }

    .menu-toggle {
        position: relative;
        z-index: 2200;
        display: grid;
        margin-left: auto;
    }

    .site-menu {
        position: fixed;
        inset: 0;
        width: 100%;
        max-width: 100%;
        min-height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        z-index: 2100;
        padding: 110px 26px 34px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: space-between;
        gap: 34px;
        transform: translateY(-104%);
        background:
            radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.78), transparent 20rem),
            linear-gradient(145deg, var(--rose-50), var(--rose-150));
        opacity: 0;
        visibility: hidden;
        transition:
            transform 520ms cubic-bezier(0.2, 0.75, 0.25, 1),
            opacity 320ms ease,
            visibility 320ms ease;
    }

    .site-menu.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .global-navigation {
        display: grid;
        gap: 4px;
    }

    .global-navigation a {
        padding: 8px 0;
        color: var(--rose-850);
        font-family: var(--font-display);
        font-size: clamp(2.4rem, 9vw, 4rem);
        font-weight: 600;
        letter-spacing: -0.03em;
        line-height: 1;
        text-transform: none;
    }

    .global-navigation a::after {
        display: none;
    }

    .header-actions {
        align-items: flex-start;
        justify-content: space-between;
    }

    .social-links a,
    .social-links button {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.5);
        border-color: var(--border);
    }

    .header-back {
        min-height: 40px;
    }

    .section-rail {
        display: none;
    }

    .hero-shell {
        width: min(calc(100% - 36px), 720px);
        min-height: auto;
        padding-top: calc(var(--header-height) + 92px);
        padding-bottom: 190px;
        grid-template-columns: 1fr;
        gap: 72px;
    }

    .hero-copy {
        max-width: 650px;
    }

    .hero-title {
        font-size: clamp(5rem, 19vw, 8rem);
    }

    .hero-visual {
        width: min(100%, 470px);
        justify-self: center;
    }

    .hero-orbit-one {
        width: 110vw;
        height: 110vw;
    }

    .hero-orbit-two {
        width: 90vw;
        height: 90vw;
    }

    .scroll-cue {
        display: none;
    }

    .project-story-grid {
        grid-template-columns: 1fr;
    }

    .story-card,
    .story-card-featured,
    .story-card:nth-child(2),
    .story-card-privacy {
        grid-column: 1;
    }

    .story-card-privacy {
        display: flex;
    }

    .privacy-layout,
    .challenges-layout {
        grid-template-columns: 1fr;
    }

    .privacy-device {
        margin-inline: auto;
    }

    .technology-card {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .gallery-pin {
        height: auto;
        min-height: auto;
        padding-block: 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
    }

    .gallery-pin::-webkit-scrollbar {
        display: none;
    }

    .gallery-pin::before,
    .gallery-pin::after {
        display: none;
    }

    .gallery-track {
        padding: 22px 24px 46px;
        gap: 24px;
        transform: none !important;
    }

    .screen-card {
        /* Mantém a redução de aproximadamente 7% no mobile. */
        width: clamp(149px, min(54vw, 28svh), 232px);
        scroll-snap-align: center;
    }

    .gallery-help {
        display: block;
    }

    .legal-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .legal-toc {
        position: static;
    }
}

@media (max-width: 640px) {
    .section-shell,
    .header-shell,
    .footer-shell {
        width: min(calc(100% - 28px), var(--container));
    }

    .brand-name {
        font-size: 1.8rem;
    }

    .header-actions {
        display: grid;
        gap: 18px;
    }

    .header-back {
        justify-self: start;
    }

    .hero-shell {
        width: min(calc(100% - 28px), 560px);
        padding-top: calc(var(--header-height) + 70px);
        padding-bottom: 150px;
        gap: 56px;
    }

    .hero-title {
        margin-top: 20px;
        font-size: clamp(4.5rem, 24vw, 6.8rem);
    }

    .hero-tagline {
        margin-top: 32px;
        font-size: 0.94rem;
        letter-spacing: 0.06em;
    }

    .hero-technologies {
        gap: 7px;
    }

    .hero-actions,
    .closing-actions {
        display: grid;
    }

    .button {
        width: 100%;
    }

    .hero-visual {
        width: min(100%, 400px);
    }

    .hero-image-card {
        inset: 7% 10% 6%;
    }

    .floating-note {
        min-width: 155px;
        padding: 11px 12px;
    }

    .floating-note-privacy {
        left: -2%;
        bottom: 10%;
    }

    .floating-note-languages {
        top: 17%;
        right: -2%;
    }

    .hero-waves,
    .closing-waves {
        height: 130px;
    }

    .section {
        padding-block: 88px;
    }

    .section-heading h2,
    .privacy-intro h2,
    .gallery-heading h2,
    .health-notice h2,
    .legal-hero h1 {
        font-size: clamp(2.6rem, 13vw, 4rem);
    }

    .project-story-grid,
    .features-grid,
    .technology-stack {
        margin-top: 48px;
    }

    .story-card {
        min-height: auto;
        padding: 28px;
    }

    .story-card-featured {
        min-height: 390px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .feature-card-account {
        min-height: 260px;
    }

    .privacy-layout {
        gap: 54px;
    }

    .privacy-device {
        width: 320px;
        max-width: 100%;
        margin-top: 36px;
    }

    .privacy-item {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 14px;
    }

    .technology-card {
        padding: 26px;
    }

    .technology-title {
        align-items: flex-start;
    }

    .technology-code {
        width: 58px;
        height: 58px;
        border-radius: 18px;
    }

    .gallery {
        padding-top: 84px;
    }

    .gallery-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 28px;
    }

    .gallery-controls {
        width: 100%;
        justify-content: space-between;
    }

    .challenges-layout {
        gap: 48px;
    }

    .challenge-card {
        padding: 28px;
    }

    .health-notice-orbit {
        width: 520px;
        height: 520px;
    }

    .closing-content {
        padding-block: 120px 180px;
    }

    .closing-content h2 {
        font-size: clamp(3.4rem, 16vw, 5.5rem);
    }

    .footer-shell {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-copy {
        grid-column: 1;
    }

    .legal-hero {
        padding-block: 70px 52px;
    }

    .legal-layout {
        padding-block: 52px 88px;
    }
}

@media (pointer: coarse), (max-width: 900px) {
    .cursor-glow {
        display: none;
    }
}


/* Ajustes finais de responsividade do Period+ */
@media (max-width: 900px) {
    .gallery-heading {
        margin-bottom: 4px;
    }

    .gallery-track {
        padding-top: 12px;
        padding-inline: max(18px, calc((100dvw - min(54vw, 232px)) / 2));
        gap: 18px;
    }

    .phone-frame:hover {
        transform: none;
    }

    .screen-card figcaption {
        margin-top: 12px;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 68px;
    }

    .header-shell {
        min-height: 68px;
    }

    .brand-mark {
        width: 25px;
    }

    .brand-name {
        font-size: 1.65rem;
    }

    .site-menu {
        padding: 92px 18px 24px;
    }

    .global-navigation a {
        font-size: clamp(2.15rem, 12vw, 3.2rem);
    }

    .social-links {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }

    .social-links a,
    .social-links button {
        width: 38px;
        height: 38px;
    }

    .hero-shell {
        padding-top: calc(var(--header-height) + 54px);
        padding-bottom: 128px;
    }

    .hero-title {
        font-size: clamp(4.1rem, 23vw, 5.8rem);
    }

    .hero-tagline {
        font-size: 0.84rem;
        letter-spacing: 0.045em;
    }

    .section {
        padding-block: 72px;
    }

    .gallery {
        padding-top: 70px;
    }

    .gallery-heading {
        gap: 18px;
    }

    .gallery-controls button {
        width: 42px;
        height: 42px;
    }

    .gallery-track {
        padding-bottom: 34px;
    }

    .screen-card {
        width: clamp(145px, min(53vw, 27svh), 220px);
    }

    .story-card,
    .technology-card,
    .challenge-card {
        padding: 23px;
        border-radius: 24px;
    }

    .feature-card,
    .feature-card-account {
        min-height: 230px;
        padding: 23px;
    }

    .privacy-device {
        width: min(286px, 88vw);
    }

    .closing-content {
        padding-block: 96px 150px;
    }
}



/* Ajustes adicionais para telas estreitas e áreas seguras. */
@media (max-width: 640px) {
    .section-shell,
    .header-shell,
    .footer-shell {
        width: calc(100% - 24px);
        max-width: calc(100% - 24px);
    }

    .site-menu {
        padding-left: max(18px, env(safe-area-inset-left));
        padding-right: max(18px, env(safe-area-inset-right));
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }

    .header-shell {
        gap: 12px;
    }

    .brand {
        min-width: 0;
    }

    .hero-copy,
    .section-heading,
    .privacy-intro,
    .gallery-heading > div:first-child,
    .legal-content {
        min-width: 0;
    }

    .hero-title,
    .section-heading h2,
    .privacy-intro h2,
    .gallery-heading h2,
    .legal-hero h1 {
        overflow-wrap: anywhere;
    }

    .gallery-pin {
        width: 100%;
        max-width: 100%;
    }

    .gallery-track {
        max-width: none;
    }

    .screen-viewer {
        inset: 0;
        max-width: calc(100% - 14px);
    }
}

@media (max-width: 380px) {
    .brand-name {
        font-size: 1.5rem;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
    }

    .global-navigation a {
        font-size: clamp(2rem, 11vw, 2.8rem);
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .header-back {
        width: 100%;
    }

    .hero-title {
        font-size: clamp(3.65rem, 22vw, 5rem);
    }

    .gallery-controls {
        gap: 8px;
    }

    .gallery-controls span {
        min-width: 52px;
    }
}


/* Refinamentos mobile: downloads, textos longos e cartões sem corte lateral. */
@media (max-width: 900px) {
    .hero-copy,
    .hero-status,
    .hero-technologies,
    .challenges-layout,
    .challenges-list,
    .challenge-card {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .download-links,
    .hero-technologies {
        margin-right: 0;
        padding-right: 0;
        justify-content: flex-start;
    }

    .hero-technologies span,
    .challenge-card h3,
    .challenge-card p {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .challenge-card {
        margin-inline: 0;
    }
}

@media (max-width: 640px) {
    .download-links {
        max-width: 268px;
        gap: 8px;
    }

    .hero-technologies {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }

    .hero-technologies span {
        width: 100%;
        padding: 8px 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        line-height: 1.35;
    }

    .about .section-heading h2 {
        font-size: clamp(2.15rem, 10.5vw, 3rem);
        line-height: 1.02;
    }

    .health-notice h2 {
        font-size: clamp(2.05rem, 10vw, 3rem);
        line-height: 1.04;
    }

    .challenges-heading,
    .challenges-list {
        justify-self: stretch;
    }

    .challenge-card h3 {
        font-size: clamp(1.65rem, 8vw, 2.15rem);
        line-height: 1.08;
    }
}

@media (max-width: 480px) {
    .hero-technologies {
        grid-template-columns: 1fr;
    }

    .hero-technologies span {
        justify-content: flex-start;
        text-align: left;
    }

    .about .section-heading h2 {
        font-size: clamp(1.95rem, 9.5vw, 2.55rem);
    }

    .health-notice h2 {
        font-size: clamp(1.85rem, 9vw, 2.4rem);
    }

    .health-notice-content > p {
        font-size: 0.88rem;
        line-height: 1.75;
    }

    .challenge-card {
        padding: 22px;
    }
}

@media (max-width: 300px) {
    .download-links {
        max-width: 130px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .gallery-pin {
        min-height: auto;
        overflow-x: auto;
    }

    .gallery-track {
        transform: none !important;
    }
}
