/*
 * Check-in da SOP: site público (página inicial e suporte).
 * Sem nenhuma dependência externa: a fonte Inter é servida por nós (public/fonts/inter).
 * Cores e tipografia seguem a marca "Flor do ciclo" do app (roxo, rosa e ameixa).
 */

@font-face {
    font-family: "Inter";
    src: url("../fonts/inter/Inter-Variable.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #1b1724;
    --ink-soft: #5d536b;
    --paper: #fbf8fe;
    --lilac: #f4edfb;
    --line: #e9e1f3;
    --purple: #9333ea;
    --purple-deep: #7e22ce;
    --fuchsia: #c026d3;
    --pink: #ec4899;
    --pink-soft: #fbcfe8;
    --pink-ink: #9d174d;
    --plum: #130e1c;
    --plum-2: #1c1428;
    --plum-line: #35294a;
    --on-plum: #f4eefa;
    --on-plum-soft: #cfc6db;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --radius: 18px;
    --gutter: max(16px, 4vw);
    --header-h: 68px;
    color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    font-optical-sizing: auto;
}

img { max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--purple-deep); text-underline-offset: 3px; }
a:hover { color: var(--fuchsia); }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
    position: absolute; left: -9999px; top: 8px; z-index: 100;
    background: var(--purple-deep); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { left: 16px; color: #fff; }
main:focus { outline: none; }

/* Tipografia */
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 1rem + 5vw, 4.75rem); font-weight: 800; line-height: 1.03; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.25rem); font-weight: 800; line-height: 1.06; letter-spacing: -0.035em; }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; }
p { text-wrap: pretty; max-width: 62ch; }
.lead { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); line-height: 1.55; color: var(--ink-soft); max-width: 54ch; }

/* Cabeçalho */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(251, 248, 254, 0.88);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 12px 28px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand-on-dark, .brand-on-dark:hover { color: #fff; }
.brand-name { font-size: 1.1rem; white-space: nowrap; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { padding: 10px 14px; border-radius: 999px; color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.main-nav a:hover { color: var(--purple-deep); background: var(--lilac); }
.pill {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
    border: 2px dashed var(--purple); color: var(--purple-deep); font-weight: 700; font-size: 0.9rem; white-space: nowrap;
}
.pill-action { border: 0; background: linear-gradient(90deg, var(--purple-deep), var(--fuchsia)); color: #fff; text-decoration: none; }
.pill-action:hover { color: #fff; filter: brightness(1.08); }

/* Botões de download */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store {
    display: inline-flex; flex-direction: column; justify-content: center; min-height: 58px; padding: 8px 22px;
    border-radius: 14px; line-height: 1.15; text-decoration: none; flex: 0 1 190px; min-width: 0;
}
.store-small { font-size: 0.75rem; font-weight: 500; opacity: 0.85; }
.store-big { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; }
.stores-dark .store { background: var(--plum); color: #fff; }
a.store:hover { transform: translateY(-2px); transition: transform 0.15s; color: inherit; }
.stores-dark a.store:hover { color: #fff; }
.stores-dark .store.is-soon { background: transparent; color: var(--ink); border: 2px dashed var(--purple); }
.stores-light .store { background: #fff; color: var(--plum); }
.stores-light a.store:hover { color: var(--plum); }
.stores-light .store.is-soon { background: transparent; color: #fff; border: 2px dashed rgba(255, 255, 255, 0.75); }

/* Telas do app dentro de um aparelho */
.phone {
    position: relative; padding: clamp(5px, 1.1vw, 8px); border-radius: clamp(26px, 5vw, 40px); background: var(--plum);
    box-shadow: 0 44px 70px -30px rgba(76, 29, 149, 0.5), 0 14px 26px -14px rgba(19, 14, 28, 0.4);
}
.phone img { display: block; width: 100%; border-radius: clamp(20px, 4vw, 32px); }
.peek {
    position: relative; height: clamp(270px, 30vw, 380px); overflow: hidden;
    -webkit-mask-image: linear-gradient(#000 72%, transparent);
    mask-image: linear-gradient(#000 72%, transparent);
}
.peek .phone { width: min(76%, 250px); margin-inline: auto; }
.peek-tall { height: clamp(340px, 42vw, 540px); }
.peek-tall .phone { width: min(70%, 300px); }

/* Abertura */
.hero { overflow: hidden; padding-block: clamp(36px, 7vw, 104px) clamp(56px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-copy .lead { margin-top: 24px; }
.hero-trust { margin-top: 24px; font-size: 0.95rem; color: var(--ink-soft); max-width: 46ch; }
.hero-art { position: relative; display: grid; place-items: center; width: 100%; max-width: 520px; margin-inline: auto; min-height: clamp(360px, 44vw, 600px); }
.bloom { position: absolute; left: 62%; top: 50%; width: 230%; max-width: none; transform: translate(-50%, -50%); overflow: visible; }
.nowrap { white-space: nowrap; }
.phone-hero { position: relative; z-index: 1; width: min(64vw, 320px); }

.bloom-petal { transform: rotate(var(--r)); transform-box: view-box; transform-origin: 50px 50px; mix-blend-mode: multiply; animation: bloom 1s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(0.1s + var(--i) * 0.11s); }
.bloom-core { transform-box: fill-box; transform-origin: center; animation: pop 0.5s cubic-bezier(0.3, 1.4, 0.5, 1) both; animation-delay: 0.85s; }
.bloom-check { stroke-dasharray: 40; animation: draw 0.45s ease-out both; animation-delay: 1.15s; }

@keyframes bloom {
    from { transform: rotate(calc(var(--r) - 50deg)) scale(0.1); opacity: 0; }
    to { transform: rotate(var(--r)) scale(1); opacity: 1; }
}
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes draw { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }

/* Pétalas interativas */
.petals-section { background: var(--lilac); padding-block: clamp(56px, 8vw, 112px); }
.petals-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.petals-copy p { margin-top: 20px; font-size: 1.15rem; color: var(--ink-soft); }
.legend { margin-top: 28px; display: grid; gap: 10px; font-size: 0.98rem; }
.legend li { display: flex; align-items: center; gap: 12px; }
.dot { flex: none; width: 18px; height: 18px; border-radius: 50%; }
.dot-done { background: var(--purple); }
.dot-skip { background: var(--pink-soft); border: 2px solid var(--pink); }
.dot-empty { background: transparent; border: 2px dashed var(--purple); }

.flower { position: relative; width: min(100%, 440px); aspect-ratio: 1; margin-inline: auto; isolation: isolate; }
.petal { position: absolute; inset: 0; padding: 0; border: 0; background: none; pointer-events: none; }
.petal:focus-visible { outline: none; }
.petal svg { width: 100%; height: 100%; overflow: visible; }
.petal .shape {
    pointer-events: auto; cursor: pointer; fill: rgba(255, 255, 255, 0.55); stroke: var(--purple); stroke-width: 1.2; stroke-dasharray: 3 3;
    transition: fill 0.25s, stroke 0.25s;
}
.petal .shape:hover { fill: rgba(255, 255, 255, 0.95); }
.petal .num { font-size: 7px; font-weight: 800; fill: var(--purple-deep); pointer-events: none; transition: fill 0.25s; }
.petal .check { stroke: #fff; opacity: 0; transition: opacity 0.25s; pointer-events: none; }
.petal:focus-visible .shape { stroke: var(--ink); stroke-width: 2; stroke-dasharray: none; }

.petal[data-state="done"] .shape { stroke: transparent; stroke-dasharray: none; mix-blend-mode: multiply; }
.petal[data-state="done"][data-tone="purple"] .shape { fill: rgba(147, 51, 234, 0.92); }
.petal[data-state="done"][data-tone="pink"] .shape { fill: rgba(236, 72, 153, 0.9); }
.petal[data-state="done"] .num { fill: #fff; }
.petal[data-state="skip"] .shape { fill: var(--pink-soft); stroke: var(--pink); stroke-dasharray: none; }
.petal[data-state="skip"] .num { fill: var(--pink-ink); }

.petal-core .shape { fill: #fff; stroke-width: 1.6; }
.petal-core .num { font-size: 12px; }
.petal-core[data-state="done"] .shape { fill: var(--purple-deep); mix-blend-mode: normal; }
.petal-core[data-state="done"] .num { opacity: 0; }
.petal-core[data-state="done"] .check { opacity: 1; }
.petal-core[data-state="skip"] .shape { fill: var(--pink-soft); }

.flower-status { margin: 24px auto 0; text-align: center; font-weight: 700; font-size: 1.05rem; min-height: 3.2em; max-width: 34ch; }

/* Passos */
.steps-section { padding-block: clamp(56px, 8vw, 112px); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); margin-top: clamp(32px, 5vw, 56px); }
.step:nth-child(even) { margin-top: clamp(0px, 4vw, 56px); }
.step-number {
    display: grid; place-items: center; width: 32px; height: 32px; margin: 22px 0 10px; border-radius: 50%;
    background: linear-gradient(135deg, var(--purple-deep), var(--fuchsia)); color: #fff; font-weight: 800; font-size: 0.95rem;
}
.step h3 { margin-bottom: 8px; }
.step p:last-child { color: var(--ink-soft); font-size: 1rem; }

/* Cuidado */
.care-section { background: var(--plum); color: var(--on-plum); padding-block: clamp(56px, 8vw, 112px); }
.care-section a { color: var(--pink-soft); }
.care-section a:hover { color: #fff; }
.care-section :focus-visible { outline-color: var(--pink-soft); }
.care-section .phone { box-shadow: 0 0 0 1px var(--plum-line), 0 44px 70px -30px rgba(0, 0, 0, 0.6); }
.care-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.care-copy h2 { color: #fff; margin-bottom: clamp(24px, 3vw, 40px); }
.care-item { padding-block: 22px; border-top: 1px solid var(--plum-line); }
.care-item:last-child { border-bottom: 1px solid var(--plum-line); }
.care-item dt { font-size: 1.25rem; font-weight: 700; color: #fff; letter-spacing: -0.015em; }
.care-item dd { margin-top: 6px; color: var(--on-plum-soft); max-width: 56ch; }
.care-item dd a { display: inline-block; margin-top: 6px; font-weight: 600; }

/* Método */
.method-section { padding-block: clamp(56px, 8vw, 112px); }
.method-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 6vw, 88px); align-items: end; }
.method-copy { display: grid; gap: 16px; color: var(--ink-soft); font-size: 1.1rem; }

/* Perguntas */
.faq-section { background: var(--lilac); padding-block: clamp(56px, 8vw, 112px); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.faq-heading { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); margin-bottom: 8px; }
.faq-item { border-top: 1px solid #d9cbe9; }
.faq-item:last-of-type { border-bottom: 1px solid #d9cbe9; }
.faq-item summary {
    cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 20px 0; min-height: 56px; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; font-size: 1.6rem; font-weight: 400; line-height: 1; color: var(--purple-deep); transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 0 22px; color: var(--ink-soft); display: grid; gap: 10px; }
.faq-answer ul { list-style: disc; padding-left: 1.3em; display: grid; gap: 4px; }
.faq-more { margin-top: 24px; color: var(--ink-soft); }

/* Convite final */
.cta-section { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, #7e22ce 0%, #c026d3 62%, #ec4899 100%); padding-block: clamp(64px, 9vw, 128px); }
.cta-section::before {
    content: ""; position: absolute; right: -8%; top: 50%; width: min(62vw, 640px); aspect-ratio: 1; transform: translateY(-50%); opacity: 0.14;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%23fff'%3E%3Cellipse cx='50' cy='29' rx='11.5' ry='21'/%3E%3Cellipse cx='50' cy='29' rx='11.5' ry='21' transform='rotate(60 50 50)'/%3E%3Cellipse cx='50' cy='29' rx='11.5' ry='21' transform='rotate(120 50 50)'/%3E%3Cellipse cx='50' cy='29' rx='11.5' ry='21' transform='rotate(180 50 50)'/%3E%3Cellipse cx='50' cy='29' rx='11.5' ry='21' transform='rotate(240 50 50)'/%3E%3Cellipse cx='50' cy='29' rx='11.5' ry='21' transform='rotate(300 50 50)'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
    pointer-events: none;
}
.cta-inner { position: relative; }
.cta-inner .lead { color: rgba(255, 255, 255, 0.92); margin-top: 18px; }
.cta-section a { color: #fff; }
.cta-section :focus-visible { outline-color: #fff; }
.cta-notify { margin-top: 24px; font-size: 1rem; color: rgba(255, 255, 255, 0.92); }

/* Rodapé */
.site-footer { background: var(--plum); color: var(--on-plum-soft); padding-block: 56px 36px; font-size: 0.95rem; }
.site-footer a { color: var(--on-plum); text-decoration: none; display: inline-block; padding-block: 6px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--pink-soft); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
.footer-about address { margin-top: 16px; font-style: normal; line-height: 1.7; }
.footer-title { font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-links ul { display: grid; gap: 2px; }
.footer-note { margin-top: 36px; padding: 14px 18px; border: 1px solid var(--plum-line); border-radius: 12px; max-width: 78ch; }
.footer-bottom { margin-top: 24px; font-size: 0.85rem; }
.legal-pending { background: #fde68a; color: #78350f; border: 1px dashed #b45309; border-radius: 4px; padding: 1px 6px; font-weight: 700; }

/* Suporte */
.page-hero { background: var(--lilac); padding-block: clamp(40px, 6vw, 88px); }
.page-hero h1 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem); }
.page-hero .lead { margin-top: 16px; }
.support-section { padding-block: clamp(40px, 6vw, 88px); }
.support-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.support-aside { display: grid; gap: 16px; }
.support-aside h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
.support-email { font-size: clamp(1.15rem, 1rem + 1vw, 1.6rem); font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.support-warning { color: var(--pink-ink); }
.emergency { padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--pink); border-radius: 12px; }
.emergency-title { font-weight: 800; margin-bottom: 6px; }
.support-section .faq-item { border-top-color: var(--line); }
.support-section .faq-item:last-of-type { border-bottom-color: var(--line); }

/* Telas menores */
@media (max-width: 1000px) {
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .step:nth-child(even) { margin-top: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    :root { --header-h: 60px; }
    .main-nav { display: none; }
    .pill { margin-left: auto; }
    .hero-grid, .petals-grid, .care-grid, .method-grid, .faq-grid, .support-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-art { max-width: 440px; min-height: 420px; }
    .bloom { left: 50%; width: 190%; }
    .petals-grid { gap: 28px; }
    .care-art { order: 2; }
    .faq-heading { margin-top: 0; }
}

@media (max-width: 560px) {
    .steps { grid-template-columns: minmax(0, 1fr); }
    .store { flex: 1 1 0; padding-inline: 16px; }
    .footer-grid { grid-template-columns: minmax(0, 1fr); }
    .brand-name { font-size: 1rem; }
    .pill { font-size: 0.8rem; padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
