/* TakeFood Delivery — Landing page styles. No external fonts/CDN: system font stack only. */

:root {
    --font-sans: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --bg: #f7f7f9;
    --bg-alt: #ffffff;
    --surface: #ffffff;
    --surface-2: #f1f1f5;
    --border: #e4e4ea;
    --text: #16161d;
    --text-muted: #5a5a68;
    --text-inverse: #ffffff;

    --brand-black: #0d0d10;
    --brand-orange: #ff7a00;
    --brand-gold: #ffb703;
    --brand-gradient: linear-gradient(135deg, var(--brand-orange), var(--brand-gold));

    --shadow-sm: 0 1px 2px rgba(16, 16, 20, 0.06);
    --shadow-md: 0 8px 24px rgba(16, 16, 20, 0.08);
    --shadow-lg: 0 20px 48px rgba(16, 16, 20, 0.14);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;

    color-scheme: light;
}

:root[data-theme="dark"] {
    --bg: #0b0b0e;
    --bg-alt: #111116;
    --surface: #16161c;
    --surface-2: #1c1c24;
    --border: #2a2a34;
    --text: #f2f2f5;
    --text-muted: #a4a4b3;
    --text-inverse: #16161d;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

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

.container {
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: 20px;
}

.container-narrow { max-width: 760px; }

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--brand-orange);
    color: #fff;
    padding: 10px 16px;
    border-radius: 0 0 8px 0;
    z-index: 200;
}
.skip-link:focus { left: 0; }

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

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--bg-alt) 88%, transparent);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}
.brand img { border-radius: 8px; }
.brand em {
    font-style: normal;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 500;
    font-size: 0.95rem;
}

.main-nav a { color: var(--text-muted); transition: color .15s ease; }
.main-nav a:hover { color: var(--text); }

.nav-cta {
    background: var(--brand-gradient);
    color: #fff !important;
    padding: 9px 18px;
    border-radius: 999px;
    font-weight: 600;
}

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

.theme-toggle, .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-toggle { display: none; flex-direction: column; gap: 4px; }
.nav-toggle span { width: 18px; height: 2px; background: currentColor; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand-gradient); color: #fff; box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding-block: 72px 56px; overflow: hidden; }
.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-orange);
    margin: 0 0 12px;
}
.eyebrow.center { display: block; text-align: center; }

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 18px;
}

.hero .lead {
    font-size: 1.08rem;
    color: var(--text-muted);
    max-width: 54ch;
    margin: 0 0 28px;
}

.hero-trial-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 18px;
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--brand-gradient);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }

.hero-badges {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.hero-badges li { padding-left: 22px; position: relative; }
.hero-badges li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-gradient);
}

/* Phone mock — a real phone-frame photo (public/assets/images/landing/
   phone-frame.png, cropped tight to its own bounding box) with the store
   screenshot layered underneath, positioned/sized to land exactly inside
   the frame's screen cutout. Those percentages were measured directly off
   the frame PNG's own transparent screen region (a quick pixel-alpha scan
   at build time), not eyeballed — re-measure if the frame image is ever
   swapped for a different mockup photo. */
.hero-visual { display: flex; justify-content: center; }
.phone-mock {
    position: relative;
    width: 260px;
    aspect-ratio: 3304 / 6594;
    filter: drop-shadow(var(--shadow-lg));
}
.phone-mock-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.phone-mock-screenshot {
    position: absolute;
    left: 5.33%;
    top: 2.96%;
    width: 89.59%;
    height: 94.1%;
    object-fit: cover;
    object-position: top center;
    border-radius: 28px;
    z-index: 1;
    display: block;
}

/* ---------- Sections ---------- */
.section { padding-block: 76px; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

/* ---------- Legal pages (Termos de Uso / Política de Privacidade / Licença de Uso) ---------- */
.legal-section { padding-block: 48px 76px; }
.legal-container { max-width: 760px; }
.legal-notice {
    background: color-mix(in srgb, var(--brand-orange) 12%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--brand-orange) 30%, var(--border));
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 0.88rem;
    margin: 0 0 28px;
}
.legal-body { font-size: 0.95rem; line-height: 1.7; color: var(--text); }

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}
.section-title.center { text-align: center; }
.section-subtitle {
    color: var(--text-muted);
    max-width: 56ch;
    margin: 0 auto 48px;
}
.section-subtitle.center { text-align: center; }

/* ---------- Clientes parceiros (marquee) ---------- */
.partners-section { padding-top: 0; }
.partners-marquee {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.partners-track {
    display: flex;
    align-items: center;
    gap: 56px;
    width: max-content;
    animation: partners-scroll 32s linear infinite;
}
.partners-marquee:hover .partners-track,
.partners-marquee:focus-within .partners-track { animation-play-state: paused; }
.partner-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 48px;
    filter: grayscale(1);
    opacity: 0.7;
    transition: filter .2s, opacity .2s;
}
.partner-logo:hover, .partner-logo:focus-visible { filter: grayscale(0); opacity: 1; }
.partner-logo img { height: 100%; width: auto; object-fit: contain; }
@keyframes partners-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .partners-track { animation: none; }
}

/* ---------- Trial steps ---------- */
.section-trial { padding-block: 36px; }
.trial-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.trial-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}
.trial-step .feature-icon { margin-bottom: 14px; }
.trial-step h3 { margin: 0 0 6px; font-size: 1rem; }
.trial-step p { margin: 0; color: var(--text-muted); font-size: 0.88rem; }

/* ---------- Features ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--brand-gradient);
    color: #fff;
    margin-bottom: 16px;
}
.feature-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Pricing ---------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: stretch;
}

.price-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.price-card-highlight {
    border-color: transparent;
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        var(--brand-gradient) border-box;
    border: 2px solid transparent;
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.price-badge {
    position: absolute;
    top: -14px;
    left: 28px;
    background: var(--brand-gradient);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
}

.price-card h3 { margin: 4px 0 6px; font-size: 1.3rem; }
.price-desc { color: var(--text-muted); font-size: 0.88rem; margin: 0 0 18px; min-height: 40px; }
.price-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    margin: 0 0 22px;
    letter-spacing: -0.02em;
}
.price-value span {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 2rem;
    font-weight: 800;
}

.price-features {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}
.price-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text);
}
.price-features li svg { color: var(--brand-orange); flex-shrink: 0; margin-top: 2px; }

.pricing-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 36px;
    max-width: 64ch;
    margin-inline: auto;
}

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; }
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: none;
    border: none;
    text-align: left;
    padding: 18px 20px;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
}
.faq-question svg { transition: transform .2s ease; flex-shrink: 0; color: var(--text-muted); }
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
}
.faq-answer p { margin: 0; padding: 0 20px 18px; color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Contact form ---------- */
.section-contact { background: var(--bg-alt); border-top: 1px solid var(--border); }
.lead-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
}
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid-2 .form-row { margin-bottom: 0; }
.form-grid-2 { margin-bottom: 16px; }

label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }

input, select, textarea {
    font: inherit;
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 11px 14px;
    width: 100%;
}
input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--brand-orange);
    outline-offset: 1px;
}
textarea { resize: vertical; }

.form-feedback {
    margin: 14px 0 0;
    font-size: 0.88rem;
    min-height: 1.2em;
    text-align: center;
}
.form-feedback.ok { color: #1d9a5f; }
.form-feedback.err { color: #e5484d; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 32px; background: var(--bg-alt); }
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.brand-footer { font-size: 0.95rem; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.footer-link { color: var(--text-muted); text-decoration: underline; }
.footer-link:hover { color: var(--text); }

/* ---------- WhatsApp float button ---------- */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* ---------- Offline banner ---------- */
.offline-banner {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%) translateY(120%);
    background: var(--brand-black);
    color: #fff;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 0.85rem;
    box-shadow: var(--shadow-lg);
    z-index: 200;
    transition: transform .25s ease;
}
.offline-banner.visible { transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }
    .phone-mock { width: 200px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .trial-steps { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
    .price-card-highlight { transform: none; }
}

@media (max-width: 720px) {
    .main-nav {
        position: fixed;
        inset: 64px 12px auto 12px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: transform .18s ease, opacity .18s ease;
    }
    .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .main-nav a { padding: 12px 10px; border-radius: 8px; }
    .main-nav a:hover { background: var(--surface-2); }
    .nav-cta { text-align: center; }
    .nav-toggle { display: inline-flex; }
    .features-grid { grid-template-columns: 1fr; }
    .form-grid-2 { grid-template-columns: 1fr; }
}
