/*
 * The marketing site. Colours come from tokens.css, a copy of brand/tokens.css
 * (the site is deployed on its own, outside the app): copy it again when the
 * brand changes. Type is the system font, as in the app, until a display face
 * for marketing is chosen (brand/README.md).
 */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--app-bg);
    color: var(--app-text);
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, ui-sans-serif, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--app-brand);
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 800;
    text-wrap: balance;
}

p {
    margin: 0;
    text-wrap: pretty;
}

.wrap {
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .wrap {
        padding: 0 1.5rem;
    }
}

.muted {
    color: var(--app-muted);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: var(--app-brand);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Buttons: the moon-yellow one is the main action, as in the app. */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0 1.25rem;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.1s, background-color 0.15s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-sun {
    background: var(--app-accent);
    color: var(--app-on-accent);
}

.btn-sun:hover {
    background: #ffcc00;
}

.btn-brand {
    background: var(--app-brand);
    color: var(--app-on-brand);
}

.btn-ghost {
    background: transparent;
    color: var(--app-text);
    box-shadow: inset 0 0 0 1.5px var(--app-line-strong);
}

.btn-ghost:hover {
    background: var(--app-surface-2);
}

.btn-sm {
    min-height: 2.5rem;
    padding: 0 1rem;
    font-size: 0.95rem;
}

/* Header */

.header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--app-bg) 88%, transparent);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--app-line);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 4rem;
}

.logo {
    flex: none;
}

.logo img {
    height: 2rem;
    width: auto;
}

.logo .on-dark,
.dark .logo .on-light {
    display: none;
}

.dark .logo .on-dark {
    display: block;
}

.nav {
    display: none;
    gap: 0.25rem;
    margin-right: auto;
}

.nav a {
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    color: var(--app-text);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}

.nav a:hover {
    background: var(--app-surface-2);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.header-actions .login {
    display: none;
}

/* "Comece grátis" is wide enough to push the menu off a 320px phone. */
@media (max-width: 374px) {
    .header-inner {
        gap: 0.75rem;
    }

    .logo img {
        height: 1.75rem;
    }

    .header-actions .btn-sm {
        padding: 0 0.85rem;
    }
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--app-text);
    cursor: pointer;
}

.menu-toggle:hover {
    background: var(--app-surface-2);
}

.mobile-nav {
    display: none;
    padding: 0.5rem 0 1rem;
    border-top: 1px solid var(--app-line);
}

.mobile-nav.open {
    display: grid;
}

.mobile-nav a {
    padding: 0.75rem 0.25rem;
    color: var(--app-text);
    font-weight: 600;
    text-decoration: none;
}

.mobile-nav .btn {
    margin-top: 0.5rem;
}

@media (min-width: 900px) {
    /* Equal side columns keep the nav centred on the page, whatever the widths of
       the logo and the buttons. */
    .header-inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
    }

    .logo {
        justify-self: start;
    }

    .nav {
        display: flex;
        margin-right: 0;
    }

    .header-actions {
        grid-column: 3;
        justify-self: end;
        margin-left: 0;
    }

    .header-actions .login {
        display: inline-flex;
    }

    .menu-toggle,
    .mobile-nav,
    .mobile-nav.open {
        display: none;
    }
}

/* Hero */

.hero {
    padding: 3.5rem 0 4rem;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.25rem, 6vw, 3.75rem);
}

.hero h1 em {
    font-style: normal;
    color: var(--app-brand);
}

.hero .lead {
    margin-top: 1.25rem;
    max-width: 34rem;
    font-size: 1.2rem;
    color: var(--app-muted);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--app-muted);
}

.hero-proof li {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.hero-proof svg {
    color: var(--app-diaper);
}

@media (min-width: 900px) {
    .hero {
        padding: 5rem 0 6rem;
    }

    .hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

/* The phone: a drawing of the app's home screen, not a screenshot, so it follows the theme. */

.phone-stage {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-stage::before {
    content: '';
    position: absolute;
    inset: 8% -10% 0;
    background: radial-gradient(closest-side, var(--app-brand-soft), transparent);
    z-index: 0;
}

.phone {
    position: relative;
    z-index: 1;
    width: min(20rem, 100%);
    padding: 0.75rem;
    border-radius: 2.75rem;
    background: var(--app-text);
    box-shadow: 0 30px 60px -20px rgba(42, 37, 64, 0.35);
}

.dark .phone {
    background: #0c0b1a;
    box-shadow: 0 0 0 1px var(--app-line-strong), 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.screen {
    display: grid;
    gap: 0.75rem;
    padding: 1.25rem 0.9rem 1rem;
    border-radius: 2.1rem;
    background: var(--app-bg);
    font-size: 0.85rem;
    line-height: 1.35;
}

.screen-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.screen-baby {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
}

.screen-baby .avatar {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: var(--app-brand-soft);
    font-size: 1rem;
}

.screen-baby small {
    display: block;
    color: var(--app-muted);
    font-weight: 600;
    font-size: 0.72rem;
}

.mock-card {
    padding: 0.85rem;
    border: 1px solid var(--app-line);
    border-radius: 1.1rem;
    background: var(--app-surface);
}

.running {
    border-color: color-mix(in srgb, var(--app-sleep) 45%, transparent);
    background: color-mix(in srgb, var(--app-sleep) 10%, var(--app-surface));
}

.running .label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--app-sleep);
    font-weight: 800;
}

.running .label .dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: var(--app-sleep);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    50% {
        opacity: 0.35;
    }
}

@media (prefers-reduced-motion: reduce) {
    .running .label .dot {
        animation: none;
    }
}

.running .time {
    margin: 0.25rem 0 0.1rem;
    font-size: 2rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.running .since {
    color: var(--app-muted);
    font-size: 0.75rem;
}

.running .btn {
    width: 100%;
    min-height: 2.6rem;
    margin-top: 0.7rem;
    font-size: 0.9rem;
}

.quick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.quick .mock-card {
    display: grid;
    gap: 0.15rem;
    padding: 0.7rem;
}

.quick .ico {
    display: grid;
    place-items: center;
    width: 1.9rem;
    height: 1.9rem;
    margin-bottom: 0.25rem;
    border-radius: 0.6rem;
    color: #fff;
}

.dark .quick .ico {
    color: var(--app-bg);
}

.quick b {
    font-weight: 800;
}

.quick small {
    color: var(--app-muted);
    font-size: 0.72rem;
}

.bg-feed { background: var(--app-feed); }
.bg-bottle { background: var(--app-bottle); }
.bg-sleep { background: var(--app-sleep); }
.bg-diaper { background: var(--app-diaper); }
.bg-brand { background: var(--app-brand); }
.bg-other { background: var(--app-other); }

.mock-assistant {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    background: var(--app-brand-soft);
    border-color: transparent;
}

.mock-assistant img {
    flex: none;
    width: 1.6rem;
    height: 1.6rem;
}

/* Sections */

.section {
    padding: 4.5rem 0;
}

.section-alt {
    background: var(--app-surface);
    border-top: 1px solid var(--app-line);
    border-bottom: 1px solid var(--app-line);
}

.section-head {
    max-width: 42rem;
    margin-bottom: 2.5rem;
}

.section-head h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.section-head p {
    margin-top: 0.85rem;
    font-size: 1.1rem;
    color: var(--app-muted);
}

.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* The questions a mother asks, each answered as the app shows it */

.answers {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .answers {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1000px) {
    .answers {
        gap: 1.25rem;
        max-width: 56rem;
        margin: 0 auto;
    }
}

.answer {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.4rem;
    border: 1px solid var(--app-line);
    border-radius: 1.5rem;
    background: var(--app-bg);
}

.answer .ask {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.reply {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem;
    border-radius: 1.1rem;
    background: var(--app-surface);
    box-shadow: 0 8px 24px -14px rgba(42, 37, 64, 0.35);
}

.reply .ico,
.tiles .ico {
    flex: none;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.8rem;
    color: #fff;
}

.dark .reply .ico,
.dark .tiles .ico {
    color: var(--app-bg);
}

.reply .big {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.reply span {
    display: block;
    font-size: 0.85rem;
    line-height: 1.35;
    color: var(--app-muted);
}

.answer .hint {
    margin-top: auto;
    font-size: 0.9rem;
    color: var(--app-muted);
}

/* A day of sleep, drawn like the app's day track. */
.track {
    position: relative;
    height: 0.75rem;
    margin-top: auto;
    border-radius: 999px;
    background: var(--app-surface-2);
    overflow: hidden;
}

.track i {
    position: absolute;
    top: 0;
    bottom: 0;
    border-radius: 999px;
    background: var(--app-sleep);
}

.curve {
    width: 100%;
    height: 2.75rem;
    margin-top: auto;
    color: var(--app-brand);
    overflow: visible;
}

/* Benefits */

.benefits {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .benefits {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1000px) {
    .benefits {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.benefit {
    padding: 1.5rem;
    border-radius: 1.5rem;
    background: var(--app-surface);
    border: 1px solid var(--app-line);
}

.benefit .ico {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
    background: var(--app-brand-soft);
    color: var(--app-brand);
}

.benefit h3 {
    font-size: 1.15rem;
}

.benefit p {
    margin-top: 0.35rem;
    color: var(--app-muted);
}

/* Feature tiles: icon, name, a few words. The detail lives in the app. Nine, so three by three. */

.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr));
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 900px) {
    .tiles {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tiles li {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.85rem;
    align-items: center;
    padding: 0.9rem 1rem;
    border: 1px solid var(--app-line);
    border-radius: 1.25rem;
    background: var(--app-surface);
}

.tiles .ico {
    grid-row: span 2;
}

.tiles b {
    line-height: 1.25;
}

.tiles span:not(.ico) {
    font-size: 0.9rem;
    line-height: 1.3;
    color: var(--app-muted);
}

.fine {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: 0.92rem;
    color: var(--app-muted);
}

.fine svg {
    flex: none;
    margin-top: 0.2rem;
    color: var(--app-brand);
}

/* Split blocks (text + illustration) */

.split {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 900px) {
    .split {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .split.reverse > :first-child {
        order: 2;
    }
}

.split h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.split .lead {
    margin-top: 0.85rem;
    font-size: 1.1rem;
    color: var(--app-muted);
}

/* Chat illustration */

.chat {
    display: grid;
    gap: 0.75rem;
    padding: 1.25rem;
    border: 1px solid var(--app-line);
    border-radius: 1.75rem;
    background: var(--app-surface);
    font-size: 0.97rem;
}

.section-alt .chat {
    background: var(--app-bg);
}

.bubble {
    max-width: 88%;
    padding: 0.75rem 1rem;
    border-radius: 1.25rem;
}

.bubble.me {
    justify-self: end;
    border-bottom-right-radius: 0.4rem;
    background: var(--app-brand);
    color: var(--app-on-brand);
}

.bubble.her {
    border-bottom-left-radius: 0.4rem;
    background: var(--app-surface-2);
}

.bubble-head {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
    font-weight: 800;
    font-size: 0.85rem;
}

.bubble-head img {
    width: 1.25rem;
    height: 1.25rem;
}

/* Sleep rhythm illustration: the nap reminder, the home card and the nights, as the app draws them. */

.running .usual {
    margin-top: 0.45rem;
    color: var(--app-muted);
    font-size: 0.72rem;
    line-height: 1.35;
}

.split .lead + .lead {
    margin-top: 0.75rem;
}

.rhythm {
    display: grid;
    gap: 0.75rem;
    max-width: 26rem;
    width: 100%;
    margin: 0 auto;
}

.rhythm .mock-card {
    padding: 1rem;
    border-radius: 1.25rem;
}

.notice {
    display: flex;
    gap: 0.7rem;
    padding: 0.85rem 1rem;
    border-radius: 1.25rem;
    background: color-mix(in srgb, var(--app-surface) 82%, transparent);
    box-shadow: 0 10px 28px -12px rgba(42, 37, 64, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 0.88rem;
    line-height: 1.35;
}

.notice img {
    flex: none;
    width: 2.25rem;
    height: 2.25rem;
}

.notice b,
.notice span {
    display: block;
}

.notice .notice-app {
    color: var(--app-muted);
    font-size: 0.75rem;
}

.forecast {
    display: grid;
    gap: 0.75rem;
}

.forecast-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.forecast-head .ico {
    flex: none;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 1rem;
    background: var(--app-surface-2);
    color: var(--app-sleep);
}

.forecast-head b {
    display: block;
    font-weight: 800;
    line-height: 1.25;
}

.forecast-head span,
.forecast small,
.nights p {
    color: var(--app-muted);
    font-size: 0.85rem;
}

.forecast .bar {
    height: 0.5rem;
    border-radius: 999px;
    background: var(--app-surface-2);
    overflow: hidden;
}

.forecast .bar i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--app-sleep);
}

.nights {
    display: grid;
    gap: 0.4rem;
}

.nights b {
    font-weight: 800;
}

.nights dl {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
}

.nights dl div {
    display: grid;
    grid-template-columns: 3rem 1fr auto;
    gap: 0.5rem;
}

.nights dt {
    font-weight: 700;
}

.nights dd {
    margin: 0;
}

.nights dd span {
    color: var(--app-muted);
}

.nights .slept {
    font-weight: 700;
    text-align: right;
}

/* Family illustration */

.people {
    display: grid;
    gap: 0.75rem;
}

.person {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--app-line);
    border-radius: 1.25rem;
    background: var(--app-surface);
}

.person .avatar {
    flex: none;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    font-weight: 800;
    color: #fff;
}

.dark .person .avatar {
    color: var(--app-bg);
}

.person .who {
    flex: 1;
    min-width: 0;
}

.person .who b {
    display: block;
}

.person .who span {
    font-size: 0.9rem;
    color: var(--app-muted);
}

.role {
    flex: none;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: var(--app-brand-soft);
    color: var(--app-brand);
    font-size: 0.8rem;
    font-weight: 800;
}

/* Plans: one table, the two plans side by side. What both have takes two rows; the rows
   that differ are marked in brand colour and the paid column is tinted all the way down. */

.plans-wrap {
    max-width: 52rem;
    margin: 0 auto;
}

.plans {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    font-size: 0.97rem;
}

.plans thead td {
    width: 38%;
}

@media (min-width: 640px) {
    .plans thead td {
        width: 44%;
    }
}

.plans th,
.plans td {
    padding: 0.8rem 0.5rem;
    border-bottom: 1px solid var(--app-line);
    text-align: center;
    vertical-align: middle;
}

.plans thead td,
.plans thead th {
    border-bottom: 0;
}

.plans thead th {
    padding: 1.25rem 0.5rem;
    vertical-align: bottom;
    font-weight: 400;
}

.plans th[scope='row'] {
    padding-left: 0;
    text-align: left;
    font-weight: 600;
}

.plans th[scope='row'] small {
    display: block;
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--app-muted);
}

/* The two things the paid plan is bought for: a step bigger, with their icon. */
.plans .star th[scope='row'] {
    font-size: 1.08rem;
    font-weight: 800;
}

.plans .row-ico {
    display: inline-block;
    vertical-align: -2px;
    color: var(--app-brand);
}

.plans tbody tr:last-child th,
.plans tbody tr:last-child td {
    border-bottom: 0;
}

/* The paid column: brand header, a tint all the way down, rounded at both ends. */
.plans .featured {
    background: color-mix(in srgb, var(--app-brand) 8%, transparent);
}

.plans thead .featured {
    border-radius: 1.5rem 1.5rem 0 0;
    background: var(--app-brand);
    color: var(--app-on-brand);
}

.plans tbody tr:last-child .featured {
    border-radius: 0 0 1.5rem 1.5rem;
}

.plans .differs td {
    font-weight: 600;
    color: var(--app-muted);
}

.plans .differs td.featured {
    font-size: 0.95rem;
    color: var(--app-brand);
}

.plan-name {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
}

.plan-price {
    display: block;
    margin-top: 0.5rem;
    font-size: clamp(1.15rem, 5vw, 2.25rem);
    white-space: nowrap;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.plan-price small {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0;
    opacity: 0.75;
}

/* On a phone the paid column is narrow: "/mês" goes under the price. */
@media (max-width: 639px) {
    .plan-price small {
        display: block;
    }
}

.plan-billing {
    display: block;
    font-size: 0.8rem;
    opacity: 0.75;
}

#planos .monthly,
#planos:has(#ciclo-mensal:checked) .annual {
    display: none;
}

#planos:has(#ciclo-mensal:checked) .monthly {
    display: block;
}

.plans .btn {
    width: 100%;
    min-height: 2.75rem;
    margin-top: 1rem;
    padding: 0.5rem 0.6rem;
    font-size: 0.8rem;
    line-height: 1.2;
    white-space: normal;
}

.plans thead .featured .btn-ghost {
    color: inherit;
}

@media (min-width: 640px) {
    .plans th,
    .plans td {
        padding: 0.9rem 1rem;
    }

    .plans thead th {
        padding: 1.75rem 1.25rem 1.5rem;
    }

    .plan-name {
        font-size: 1.3rem;
    }

    .plans .btn {
        font-size: 0.95rem;
    }

    .plans .differs td.featured {
        font-size: 1.05rem;
    }
}

.yes,
.no {
    display: inline-grid;
    place-items: center;
    vertical-align: middle;
}

.yes {
    color: var(--app-diaper);
}

/* What only the paid plan has: a filled brand dot, the strongest mark in the table. */
.differs .featured .yes {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: var(--app-brand);
    color: var(--app-on-brand);
}

.differs .featured .yes svg {
    width: 18px;
    height: 18px;
}

.no {
    color: var(--app-line-strong);
}

.assure {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 2rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
    font-weight: 600;
}

.assure li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.assure svg {
    color: var(--app-brand);
}

/* Billing switch: two radios styled as one pill, annual first and checked. */

.billing {
    display: flex;
    width: fit-content;
    margin: 0 auto 1.5rem;
    padding: 0.3rem;
    border: 1px solid var(--app-line);
    border-radius: 999px;
    background: var(--app-surface);
}

.billing input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.billing label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.5rem;
    padding: 0 1.1rem;
    border-radius: 999px;
    font-weight: 700;
    color: var(--app-muted);
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.billing input:checked + label {
    background: var(--app-brand);
    color: var(--app-on-brand);
}

.billing input:focus-visible + label {
    outline: 2px solid var(--app-brand);
    outline-offset: 2px;
}

.billing .save {
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: var(--app-accent);
    color: var(--app-on-accent);
    font-size: 0.72rem;
    font-weight: 800;
}

/* FAQ */

.faq {
    display: grid;
    gap: 0.75rem;
    max-width: 48rem;
    margin: 0 auto;
}

.faq details {
    border: 1px solid var(--app-line);
    border-radius: 1.25rem;
    background: var(--app-surface);
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: '+';
    flex: none;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1;
    color: var(--app-brand);
}

.faq details[open] summary::after {
    content: '–';
}

.faq details p {
    padding: 0 1.25rem 1.15rem;
    color: var(--app-muted);
}

/* Closing call */

.closing {
    padding: 3rem 1.5rem;
    border-radius: 2rem;
    background: var(--app-brand);
    color: var(--app-on-brand);
    text-align: center;
}

.closing h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.closing p {
    margin: 0.85rem auto 0;
    max-width: 32rem;
    opacity: 0.85;
    font-size: 1.1rem;
}

.closing .btn {
    margin-top: 1.75rem;
}

/* Legal pages (termos, privacidade): one readable column */

.legal {
    max-width: 46rem;
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.legal h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
}

.legal h2 {
    margin-top: 2.5rem;
    font-size: 1.3rem;
}

.legal p,
.legal ul {
    margin-top: 0.9rem;
}

.legal ul {
    padding-left: 1.25rem;
}

.legal li + li {
    margin-top: 0.45rem;
}

.legal-updated {
    color: var(--app-muted);
    font-size: 0.92rem;
}

.footer p a {
    color: inherit;
}

.footer nav a[aria-current="page"] {
    color: var(--app-text);
    font-weight: 700;
}

/* Footer */

.footer {
    padding: 3rem 0 2.5rem;
    border-top: 1px solid var(--app-line);
    font-size: 0.92rem;
    color: var(--app-muted);
}

.footer-inner {
    display: grid;
    gap: 1.5rem;
}

.footer .signoff {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--app-text);
    font-weight: 700;
}

.footer .signoff img {
    width: 1.75rem;
    height: 1.75rem;
}

.social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.social a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.9rem 0.45rem 0.6rem;
    border-radius: 999px;
    background: var(--app-brand-soft);
    color: var(--app-brand);
    font-weight: 700;
    text-decoration: none;
}

.social a:hover {
    background: var(--app-brand);
    color: var(--app-on-brand);
}

.footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

.footer nav a {
    color: var(--app-muted);
    text-decoration: none;
}

.footer nav a:hover {
    color: var(--app-text);
}

@media (min-width: 720px) {
    .footer-inner {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Analytics consent (analytics.js): asked once, at the bottom, without covering the page.
   A dark card that stands out from the cream page, with both answers the same size
   (LGPD: saying no must be as easy as saying yes). */

.consent {
    position: fixed;
    z-index: 50;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    left: 1rem;
    max-width: 28rem;
    padding: 1.25rem 1.25rem 1.1rem;
    border: 1px solid rgb(255 255 255 / 0.08);
    border-radius: 1.25rem;
    background: #2a2540;
    color: #ffffff;
    box-shadow: 0 16px 40px rgb(0 0 0 / 0.28);
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
}

/* On the night sky the ink card would vanish: a lighter violet keeps it apart. */
.dark .consent {
    border-color: rgb(255 255 255 / 0.12);
    background: #3a3470;
}

.consent p {
    margin: 0;
}

.consent a {
    color: #ffffff;
    opacity: 0.8;
}

.consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
}

.consent-actions .btn {
    border-radius: 0.75rem;
}

.consent-deny {
    background: #ffffff;
    color: #2a2540;
}

.consent-deny:hover {
    background: #f3f0f8;
}

@media (min-width: 640px) {
    .consent {
        right: auto;
        left: 1.5rem;
        bottom: calc(1.5rem + env(safe-area-inset-bottom));
    }
}

/* WhatsApp: a floating way to talk to us, on every page. It steps aside while the consent
   box is open, which takes the bottom of the screen on phones. */

.whatsapp {
    position: fixed;
    z-index: 40;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 8px 24px rgb(0 0 0 / 0.18);
    transition: transform 0.15s ease;
}

.whatsapp:hover {
    transform: scale(1.06);
}

body:has(.consent) .whatsapp {
    display: none;
}

@media (min-width: 640px) {
    .whatsapp {
        right: 1.5rem;
        bottom: calc(1.5rem + env(safe-area-inset-bottom));
    }
}
