/* ==========================================================================
   Adwebgrow Connect — marketing site (api.adwebgrow.com)
   Design tokens per SCHEMA_CONTRACT.md section 7
   ========================================================================== */
:root {
    --awc-deep: #0B3A48;
    --awc-teal: #14B8A6;
    --awc-teal-dark: #0E9384;
    --awc-coral: #FF6A4D;
    --awc-ink: #10222E;
    --awc-muted: #5B6B76;
    --awc-bg: #F6FAF9;
    --awc-card: #FFFFFF;
    --awc-line: #E3ECEA;
    --awc-radius: 14px;
    --awc-shadow: 0 8px 30px rgba(11, 58, 72, .08);
    --awc-danger: #E5484D;
    --awc-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--awc-font);
    color: var(--awc-ink);
    background: var(--awc-bg);
    line-height: 1.6;
    font-size: 16px;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 16px; color: var(--awc-deep); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 16px; }
a { color: var(--awc-teal-dark); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }
.center { text-align: center; }
.section { padding: 88px 0; }
.section-alt { background: #fff; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.eyebrow {
    display: inline-block; margin: 0 0 12px;
    font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--awc-teal-dark);
    background: rgba(20, 184, 166, .1); border: 1px solid rgba(20, 184, 166, .25);
    padding: 6px 14px; border-radius: 999px;
}
.lead { font-size: 1.1rem; color: var(--awc-muted); }
.hl {
    background: linear-gradient(120deg, var(--awc-teal), var(--awc-teal-dark));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--awc-font); font-weight: 650; font-size: .95rem;
    padding: 12px 24px; border-radius: var(--awc-radius);
    border: 1px solid transparent; cursor: pointer; text-decoration: none;
    transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, color 150ms ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 14px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary {
    background: linear-gradient(135deg, var(--awc-teal), var(--awc-teal-dark));
    color: #fff; box-shadow: 0 6px 18px rgba(20, 184, 166, .32);
}
.btn-primary:hover { box-shadow: 0 10px 24px rgba(20, 184, 166, .4); color: #fff; }
.btn-coral {
    background: linear-gradient(135deg, var(--awc-coral), #E8542F);
    color: #fff; box-shadow: 0 6px 18px rgba(255, 106, 77, .3);
}
.btn-coral:hover { color: #fff; }
.btn-ghost {
    background: #fff; color: var(--awc-deep); border-color: var(--awc-line);
    box-shadow: var(--awc-shadow);
}
.btn-ghost:hover { border-color: var(--awc-teal); color: var(--awc-teal-dark); }
.btn-white { background: #fff; color: var(--awc-deep); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.btn-white:hover { color: var(--awc-deep); }
.btn-outline-light { border-color: rgba(255,255,255,.65); color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------------- Flashes ---------------- */
.flash-slot { padding-top: 24px; }
.flash {
    padding: 12px 18px; border-radius: var(--awc-radius); margin: 0 0 16px;
    font-size: .95rem; font-weight: 500; border: 1px solid;
}
.flash-success { background: #EAFBF7; border-color: #B8EBDD; color: #0B6B5C; }
.flash-error   { background: #FDECEA; border-color: #F5C0B8; color: #A83226; }
.flash-info    { background: #EAF3FB; border-color: #BFD9F2; color: #1D5C96; }

/* ---------------- Forms (shared with auth views) ---------------- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 8px; color: var(--awc-deep); }
.form-control {
    width: 100%; height: 44px; padding: 0 14px;
    font-family: var(--awc-font); font-size: .98rem; color: var(--awc-ink);
    background: #fff; border: 1px solid var(--awc-line); border-radius: var(--awc-radius);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}
textarea.form-control { height: auto; padding: 12px 14px; min-height: 110px; resize: vertical; }
.form-control:focus { outline: none; border-color: var(--awc-teal); box-shadow: 0 0 0 3px rgba(20, 184, 166, .15); }
.form-control.is-invalid { border-color: var(--awc-danger); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(229, 72, 77, .12); }
.field-error { display: block; margin-top: 6px; font-size: .85rem; color: var(--awc-danger); font-weight: 500; }
.form-hint { display: block; margin-top: 6px; font-size: .85rem; color: var(--awc-muted); }

/* ---------------- Auth shell (used by worker (a) auth views) ---------------- */
.auth-wrap {
    min-height: calc(100vh - 72px);
    display: flex; align-items: center; justify-content: center;
    padding: 48px 24px;
    background:
        radial-gradient(600px 300px at 15% 10%, rgba(20,184,166,.12), transparent 60%),
        radial-gradient(500px 280px at 90% 85%, rgba(255,106,77,.1), transparent 60%),
        var(--awc-bg);
}
.auth-card {
    width: 100%; max-width: 440px; background: var(--awc-card);
    border: 1px solid var(--awc-line); border-radius: var(--awc-radius);
    box-shadow: var(--awc-shadow); padding: 36px 32px;
}
.auth-card .brand { justify-content: center; margin-bottom: 8px; }
.auth-card-wide { max-width: 560px; }
/* Side-by-side form fields (register) */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row .form-group { margin-bottom: 0; }
.form-row + .form-group, .form-group + .form-row { margin-top: 16px; }
/* Phone input with dial-code select */
.phone-row { display: flex; gap: 10px; }
.phone-dial { flex: 0 0 96px; }
.phone-row .form-control[type="tel"] { flex: 1; }
@media (max-width: 520px) {
    .form-row { grid-template-columns: 1fr; }
    .form-row .form-group { margin-bottom: 16px; }
}
.auth-title { text-align: center; font-size: 1.5rem; margin-bottom: 6px; }
.auth-sub { text-align: center; color: var(--awc-muted); font-size: .95rem; margin-bottom: 24px; }
.auth-card .btn-block { margin-top: 8px; }
.auth-alt { text-align: center; margin-top: 20px; font-size: .92rem; color: var(--awc-muted); }

/* ---------------- Navbar ---------------- */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: box-shadow 200ms ease, border-color 200ms ease;
}
.navbar.scrolled { border-bottom-color: var(--awc-line); box-shadow: 0 4px 20px rgba(11, 58, 72, .07); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.wordmark { font-weight: 800; font-size: 1.12rem; color: var(--awc-deep); letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav-links a {
    text-decoration: none; color: var(--awc-ink); font-weight: 550; font-size: .96rem;
    transition: color 150ms ease;
}
.nav-links a:hover { color: var(--awc-teal-dark); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions .btn { padding: 10px 20px; }
/* Auth buttons inside the mobile dropdown menu (hidden on desktop) */
.nav-menu-actions { display: none; }
.nav-toggle {
    display: none; margin-left: auto; background: none; border: 0; cursor: pointer;
    flex-direction: column; gap: 5px; padding: 10px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--awc-deep); border-radius: 2px; transition: transform 200ms ease, opacity 200ms ease; }

/* ---------------- Hero ---------------- */
.hero {
    padding: 72px 0 96px; overflow: hidden;
    background:
        radial-gradient(700px 380px at 85% 15%, rgba(20,184,166,.14), transparent 60%),
        radial-gradient(520px 340px at 8% 80%, rgba(255,106,77,.09), transparent 60%),
        var(--awc-bg);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-badge {
    display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--awc-teal-dark); background: #fff; border: 1px solid rgba(20,184,166,.35);
    padding: 8px 16px; border-radius: 999px; margin-bottom: 20px; box-shadow: var(--awc-shadow);
}
/* Meta official API card (hero) — white partner-style badge */
.meta-card {
    display: inline-flex; align-items: center; gap: 18px;
    background: #fff; border: 1px solid rgba(15,23,42,.06); border-radius: 18px;
    padding: 14px 26px 14px 22px; margin-bottom: 26px;
    box-shadow: 0 18px 45px -12px rgba(15,23,42,.28), 0 2px 6px rgba(15,23,42,.08);
}
.meta-card-brand { display: inline-flex; align-items: center; gap: 10px; }
.meta-logo { width: 46px; height: 27px; display: block; }
.meta-card-brand strong { font-size: 1.35rem; font-weight: 800; color: #0f172a; letter-spacing: -.01em; }
.meta-card-div { width: 1px; align-self: stretch; background: #e2e8f0; }
.meta-card-text { display: inline-flex; flex-direction: column; line-height: 1.3; }
.meta-card-text strong { font-size: 1.02rem; font-weight: 800; color: #0f172a; }
.meta-card-text em { font-style: normal; font-size: .86rem; font-weight: 600; color: #64748b; }
@media (max-width: 560px) {
    .meta-card { gap: 12px; padding: 10px 18px 10px 16px; border-radius: 14px; margin-bottom: 20px; }
    .meta-logo { width: 36px; height: 21px; }
    .meta-card-brand strong { font-size: 1.1rem; }
    .meta-card-text strong { font-size: .9rem; }
    .meta-card-text em { font-size: .76rem; }
}
.hero-sub { font-size: 1.15rem; color: var(--awc-muted); margin: 20px 0 32px; max-width: 540px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: .88rem; color: var(--awc-muted); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
.anim-up { animation: fadeUp .7s cubic-bezier(.22,.61,.36,1) both; }

/* ---------------- Phone mockup ---------------- */
.hero-visual { position: relative; display: flex; justify-content: center; padding: 16px 0 40px; }
.phone {
    width: 290px; background: #0d1b23; border-radius: 42px; padding: 12px;
    box-shadow: 0 30px 60px rgba(11, 58, 72, .28), inset 0 0 0 2px rgba(255,255,255,.08);
    position: relative; z-index: 2;
}
.phone-notch {
    position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
    width: 110px; height: 26px; background: #0d1b23; border-radius: 0 0 16px 16px; z-index: 3;
}
.phone-screen { background: #E9F2EE; border-radius: 32px; overflow: hidden; display: flex; flex-direction: column; height: 520px; }
.chat-header {
    background: var(--awc-deep); color: #fff; padding: 34px 14px 12px;
    display: flex; align-items: center; gap: 10px;
}
.chat-avatar {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--awc-teal), var(--awc-teal-dark));
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: .8rem; color: #fff;
}
.chat-meta { display: flex; flex-direction: column; line-height: 1.3; }
.chat-meta strong { font-size: .86rem; }
.chat-meta em { font-style: normal; font-size: .7rem; opacity: .75; }
.chat-area { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.bubble {
    max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: .8rem; line-height: 1.45;
    box-shadow: 0 2px 6px rgba(11,58,72,.08);
    opacity: 0; animation: bubbleIn .5s ease forwards;
}
.bubble.in { background: #fff; color: var(--awc-ink); border-bottom-left-radius: 4px; align-self: flex-start; }
.bubble.out { background: #D6F5EF; color: #0B3A48; border-bottom-right-radius: 4px; align-self: flex-end; }
.b1 { animation-delay: .7s; } .b2 { animation-delay: 1.4s; } .b3 { animation-delay: 2.1s; }
.b4 { animation-delay: 2.8s; } .b5 { animation-delay: 3.5s; } .b6 { animation-delay: 4.2s; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.doc { display: inline-flex; align-items: center; gap: 8px; color: var(--awc-teal-dark); font-weight: 600; }
.typing {
    align-self: flex-start; background: #fff; border-radius: 14px; border-bottom-left-radius: 4px;
    padding: 10px 14px; display: inline-flex; gap: 5px; box-shadow: 0 2px 6px rgba(11,58,72,.08);
    opacity: 0; animation: bubbleIn .5s ease 4.9s forwards;
}
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--awc-muted); animation: typingBlink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typingBlink { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-input {
    background: #fff; margin: 0 10px 12px; border-radius: 999px; padding: 10px 16px;
    display: flex; align-items: center; justify-content: space-between;
    font-size: .8rem; color: #9AA8B0; box-shadow: 0 2px 8px rgba(11,58,72,.08);
}
.chat-input .send { color: var(--awc-teal); font-size: 1rem; }

.stat-chip {
    position: absolute; z-index: 3; background: #fff; border: 1px solid var(--awc-line);
    border-radius: var(--awc-radius); box-shadow: var(--awc-shadow);
    padding: 12px 16px; display: flex; flex-direction: column; line-height: 1.3;
    animation: floatY 5s ease-in-out infinite;
}
.stat-chip strong { font-size: 1.25rem; color: var(--awc-deep); }
.stat-chip span { font-size: .75rem; color: var(--awc-muted); }
.chip-1 { top: 8%; left: -8px; animation-delay: 0s; }
.chip-2 { top: 44%; right: -14px; animation-delay: 1.6s; }
.chip-3 { bottom: 6%; left: 0; animation-delay: 3.1s; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------------- Logos strip ---------------- */
.logos-strip { padding: 36px 0; border-top: 1px solid var(--awc-line); border-bottom: 1px solid var(--awc-line); background: #fff; }
.strip-label { text-align: center; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--awc-muted); margin-bottom: 20px; }
.logo-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.logo-badges span {
    font-weight: 700; font-size: 1.02rem; color: var(--awc-deep); opacity: .55;
    border: 1px solid var(--awc-line); background: var(--awc-bg);
    padding: 10px 22px; border-radius: 999px; transition: opacity 200ms ease, border-color 200ms ease;
}
.logo-badges span:hover { opacity: 1; border-color: var(--awc-teal); }

/* ---------------- Features ---------------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
    background: var(--awc-card); border: 1px solid var(--awc-line); border-radius: var(--awc-radius);
    padding: 30px 26px; box-shadow: var(--awc-shadow);
    transition: transform 200ms ease, box-shadow 200ms ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(11,58,72,.12); }
.feature-card h3 { margin: 18px 0 10px; }
.feature-card p { color: var(--awc-muted); margin: 0; font-size: .96rem; }
.icon-tile {
    width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
}
.icon-tile svg { width: 26px; height: 26px; }
.icon-tile.teal { background: rgba(20,184,166,.12); color: var(--awc-teal-dark); }
.icon-tile.coral { background: rgba(255,106,77,.12); color: var(--awc-coral); }

/* ---------------- How it works ---------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 44px; }
.step {
    background: var(--awc-card); border: 1px solid var(--awc-line); border-radius: var(--awc-radius);
    padding: 30px 26px; position: relative; box-shadow: var(--awc-shadow);
}
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%; margin-bottom: 16px;
    background: linear-gradient(135deg, var(--awc-teal), var(--awc-teal-dark));
    color: #fff; font-weight: 800; font-size: 1.1rem;
}
.step p { color: var(--awc-muted); margin: 0; font-size: .96rem; }

/* ---------------- Pricing ---------------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
    background: var(--awc-card); border: 1px solid var(--awc-line); border-radius: var(--awc-radius);
    padding: 34px 30px; display: flex; flex-direction: column; box-shadow: var(--awc-shadow);
    position: relative; transition: transform 200ms ease, box-shadow 200ms ease;
}
.price-card:hover { transform: translateY(-4px); }
.price-card.popular {
    border: 2px solid var(--awc-teal);
    box-shadow: 0 18px 48px rgba(20, 184, 166, .18);
    transform: scale(1.03);
}
.price-card.popular:hover { transform: scale(1.03) translateY(-4px); }
.popular-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--awc-teal), var(--awc-teal-dark));
    color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    padding: 6px 16px; border-radius: 999px; white-space: nowrap;
}
.plan-desc { color: var(--awc-muted); font-size: .94rem; margin-bottom: 20px; }
.price { font-size: 2.6rem; font-weight: 800; color: var(--awc-deep); margin: 0 0 24px; letter-spacing: -0.02em; }
.price .cur { font-size: 1.5rem; vertical-align: top; margin-right: 2px; }
.price .per { font-size: 1rem; font-weight: 500; color: var(--awc-muted); }
.price-list { list-style: none; margin: 0 0 28px; padding: 0; flex: 1; }
.price-list li { position: relative; padding: 7px 0 7px 30px; font-size: .95rem; color: var(--awc-ink); }
.price-list li::before {
    content: "✓"; position: absolute; left: 0; top: 7px;
    width: 20px; height: 20px; border-radius: 50%;
    background: rgba(20,184,166,.14); color: var(--awc-teal-dark);
    font-size: .75rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.pricing-note { text-align: center; color: var(--awc-muted); font-size: .9rem; margin: 28px 0 0; }

/* ---------------- Testimonials ---------------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.t-card {
    background: var(--awc-card); border: 1px solid var(--awc-line); border-radius: var(--awc-radius);
    padding: 30px 26px; margin: 0; box-shadow: var(--awc-shadow);
    display: flex; flex-direction: column;
}
.stars { color: #F5A623; font-size: 1.05rem; letter-spacing: 2px; margin-bottom: 14px; }
.t-card blockquote { margin: 0 0 20px; font-size: .98rem; color: var(--awc-ink); flex: 1; }
.t-card figcaption { display: flex; flex-direction: column; border-top: 1px solid var(--awc-line); padding-top: 16px; }
.t-card figcaption strong { color: var(--awc-deep); }
.t-card figcaption span { font-size: .85rem; color: var(--awc-muted); }

/* ---------------- FAQ ---------------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
    background: var(--awc-card); border: 1px solid var(--awc-line); border-radius: var(--awc-radius);
    overflow: hidden; transition: box-shadow 200ms ease;
}
.faq-item[open] { box-shadow: var(--awc-shadow); }
.faq-item summary {
    cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 650; font-size: 1.02rem; color: var(--awc-deep);
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+"; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
    background: rgba(20,184,166,.12); color: var(--awc-teal-dark);
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 700;
    transition: transform 200ms ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 24px 22px; margin: 0; color: var(--awc-muted); font-size: .97rem; }

/* ---------------- CTA band ---------------- */
.cta-band {
    background: linear-gradient(135deg, var(--awc-teal) 0%, var(--awc-teal-dark) 55%, var(--awc-deep) 100%);
    padding: 80px 0; color: #fff;
}
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.88); font-size: 1.08rem; max-width: 560px; margin: 0 auto 30px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------------- Footer ---------------- */
.footer { background: var(--awc-deep); color: rgba(255,255,255,.78); padding: 64px 0 0; }
.footer .wordmark { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-tagline { font-size: .94rem; margin: 16px 0 0; max-width: 300px; }
.footer-col h3 { color: #fff; font-size: .95rem; margin-bottom: 18px; }
.footer-col a { display: block; color: rgba(255,255,255,.72); text-decoration: none; font-size: .94rem; margin-bottom: 10px; transition: color 150ms ease; }
.footer-col a:hover { color: var(--awc-teal); }
.footer-contact { font-size: .92rem; margin-bottom: 14px; }
.footer-address { font-size: .88rem; opacity: .75; margin: 12px 0 0; line-height: 1.6; }
.footer-hours { font-size: .82rem; opacity: .6; margin: 12px 0 0; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.14); padding: 22px 0;
    display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.footer-bottom p { margin: 0; font-size: .86rem; }
.footer-legal a { color: rgba(255,255,255,.72); text-decoration: none; }
.footer-legal a:hover { color: var(--awc-teal); }

/* ---------------- 404 ---------------- */
.page-404 { padding: 110px 0; }
.err-code {
    font-size: 5rem; font-weight: 800; letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--awc-teal), var(--awc-coral));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    margin-bottom: 8px;
}
.page-404 .cta-row { margin-top: 28px; }

/* ---------------- Reveal on scroll ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1023px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-grid { gap: 36px; }
}

@media (max-width: 860px) {
    .section { padding: 64px 0; }
    .nav-toggle { display: flex; }
    .nav-links {
        display: none; position: absolute; top: 72px; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--awc-line);
        flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px 24px 20px;
        box-shadow: 0 18px 30px rgba(11,58,72,.1);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--awc-line); }
    .nav-links a:last-child { border-bottom: 0; }
    .nav-inner { gap: 10px; }
    /* Mobile header: only logo + hamburger. Buttons live inside the dropdown menu. */
    .nav-actions { display: none; }
    .nav-toggle { margin-left: auto; flex-shrink: 0; }
    .nav-menu-actions { display: flex; flex-direction: column; gap: 10px; padding: 14px 0 6px; }
    /* Keep the brand compact: logo never squishes, name truncates instead of overlapping */
    .brand { min-width: 0; }
    .brand img { flex-shrink: 0; }
    .wordmark { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero { padding: 48px 0 72px; }
    .hero-visual { margin-top: 8px; }
    .chip-1 { left: 4px; } .chip-2 { right: 4px; } .chip-3 { left: 8px; }
    .features-grid, .steps, .pricing-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .price-card.popular { transform: none; }
    .price-card.popular:hover { transform: translateY(-4px); }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .auth-card { padding: 28px 22px; }
}

@media (max-width: 480px) {
    .hero-ctas .btn { flex: 1 1 100%; }
    /* Compact phone header: only logo + hamburger */
    .nav-inner { height: 64px; gap: 8px; }
    .nav-links { top: 64px; }
    .brand { gap: 8px; }
    .brand img { width: 32px; height: 32px; border-radius: 8px; }
    .wordmark { font-size: .95rem; }
    .nav-toggle { padding: 8px; }
}

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
    .anim-up { animation: none; opacity: 1; }
    .bubble { opacity: 1; }
    .typing { opacity: 1; }
}

/* ---------------- Auth pages (login/register/forgot/reset) ---------------- */
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 24px; }
.auth-brand img { width: 46px; height: 46px; border-radius: 13px; box-shadow: 0 8px 22px -6px rgba(13,71,80,.4); }
.auth-brand .wordmark { font-size: 1.32rem; }
.auth-links { margin-top: 18px; text-align: center; font-size: .9rem; color: #5B6B76; }
.auth-links a { color: #0E9384; font-weight: 600; text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }

/* ---------------- Signup form (ComBot-style single column) ---------------- */
.auth-card-narrow { max-width: 480px; }
.req { color: var(--awc-coral); font-weight: 700; }
.form-control::placeholder { color: #9AA9B2; }
/* Joined phone input: flag+code select attached to the number field */
.phone-joined { gap: 0; }
.phone-joined .phone-dial {
    flex: 0 0 auto; width: 118px;
    border-radius: 10px 0 0 10px; border-right: 0;
    padding-left: 10px; padding-right: 4px;
    font-size: .92rem;
}
.phone-joined input[type="tel"] { border-radius: 0 10px 10px 0; }
.btn-signup { padding: 13px 20px; font-size: 1.02rem; margin-top: 10px; }
.auth-terms {
    margin-top: 16px; text-align: center;
    font-size: .8rem; color: var(--awc-muted); line-height: 1.55;
}
@media (max-width: 520px) {
    .phone-joined .phone-dial { width: 104px; }
}

/* ==========================================================================
   PHASE 3 — premium polish + animation system (site/marketing)
   ========================================================================== */

/* ---- Richer elevation tokens ---- */
:root {
    --awc-shadow-sm: 0 2px 10px rgba(11, 58, 72, .06);
    --awc-shadow-lg: 0 22px 60px rgba(11, 58, 72, .14);
}

html { scroll-behavior: smooth; }

/* ---- Accessibility: visible focus rings + screen-reader utility ---- */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
a:focus-visible, button:focus-visible, summary:focus-visible, .btn:focus-visible {
    outline: 2px solid var(--awc-teal); outline-offset: 3px; border-radius: 8px;
}
select:focus-visible { outline: 2px solid var(--awc-teal); outline-offset: 2px; }

/* ---- Keyframes ---- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes pulseSoft { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }
@keyframes heroGlow {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(24px, -18px, 0) scale(1.06); }
}

/* ---- Hero: animated gradient wash ---- */
.hero { position: relative; }
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(620px 340px at 84% 10%, rgba(20, 184, 166, .17), transparent 62%),
        radial-gradient(480px 320px at 8% 84%, rgba(255, 106, 77, .13), transparent 62%);
    animation: heroGlow 16s ease-in-out infinite;
}
.hero > * { position: relative; z-index: 1; }

/* ---- Reveal stagger via --d custom property ---- */
.reveal { transition-delay: var(--d, 0s); }
.stagger > .reveal:nth-child(1) { --d: 0s; }
.stagger > .reveal:nth-child(2) { --d: .08s; }
.stagger > .reveal:nth-child(3) { --d: .16s; }
.stagger > .reveal:nth-child(4) { --d: .24s; }
.stagger > .reveal:nth-child(5) { --d: .32s; }
.stagger > .reveal:nth-child(6) { --d: .4s; }

/* ---- Buttons: press feedback ---- */
.btn:active { transform: scale(.98); }

/* ---- Nav link underline slide ---- */
.nav-links > a { position: relative; }
.nav-links > a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--awc-teal), var(--awc-teal-dark));
    transform: scaleX(0); transform-origin: left center;
    transition: transform 220ms ease;
}
.nav-links > a:hover::after { transform: scaleX(1); }
@media (max-width: 860px) {
    .nav-links > a::after { display: none; }
}

/* ---- Feature cards: icon delight + deeper hover ---- */
.icon-tile { transition: transform 220ms ease, box-shadow 220ms ease; }
.feature-card:hover .icon-tile { transform: translateY(-3px) scale(1.06); }
.feature-card:hover { box-shadow: var(--awc-shadow-lg); }

/* ---- Testimonial + step hover lift ---- */
.t-card, .step { transition: transform 200ms ease, box-shadow 200ms ease; }
.t-card:hover, .step:hover { transform: translateY(-4px); box-shadow: var(--awc-shadow-lg); }

/* ---- Pricing: popular plan gradient crown ---- */
.price-card.popular::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--awc-teal), var(--awc-coral));
    border-radius: var(--awc-radius) var(--awc-radius) 0 0;
}
.popular-badge { animation: pulseSoft 3.2s ease-in-out infinite; }

/* ---- Footer: gradient top line ---- */
.footer { position: relative; }
.footer::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--awc-teal), var(--awc-teal-dark) 45%, var(--awc-coral));
}

/* ---- Language switcher ---- */
.lang-switch { display: inline-flex; align-items: center; }
.lang-select {
    appearance: none; -webkit-appearance: none;
    border: 1px solid var(--awc-line); border-radius: 999px;
    background-color: #fff; color: var(--awc-deep);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%230E9384' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat; background-position: right 12px center;
    padding: 9px 32px 9px 15px;
    font-family: var(--awc-font); font-size: .85rem; font-weight: 650;
    cursor: pointer; transition: border-color 150ms ease, box-shadow 150ms ease;
}
.lang-select:hover { border-color: var(--awc-teal); box-shadow: var(--awc-shadow-sm); }
.nav-menu-actions .lang-switch { width: 100%; }
.nav-menu-actions .lang-select { width: 100%; }

/* ---- Auth: premium entrance ---- */
.auth-card {
    animation: scaleIn .55s cubic-bezier(.22, .61, .36, 1) both;
    box-shadow: var(--awc-shadow-lg);
    position: relative; overflow: hidden;
}
.auth-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--awc-teal), var(--awc-teal-dark), var(--awc-coral));
}
.auth-card .form-control { height: 48px; border-radius: 12px; }
.auth-card .btn-block { min-height: 48px; border-radius: 12px; font-size: 1rem; }
.auth-brand { animation: fadeIn .6s ease .08s both; }

/* ---- Toasts (rendered by site.js from server .flash divs) ---- */
.toast-stack {
    position: fixed; top: 86px; right: 20px; z-index: 9999;
    display: flex; flex-direction: column; gap: 10px;
    width: min(370px, calc(100vw - 40px));
}
.toast {
    display: flex; align-items: flex-start; gap: 10px;
    background: #fff; border: 1px solid var(--awc-line);
    border-left: 4px solid var(--awc-teal);
    border-radius: 12px; box-shadow: var(--awc-shadow-lg);
    padding: 13px 12px 13px 14px; font-size: .92rem; line-height: 1.5; color: var(--awc-ink);
    animation: slideInRight .38s cubic-bezier(.22, .61, .36, 1) both;
}
.toast-success { border-left-color: var(--awc-teal); }
.toast-error { border-left-color: var(--awc-danger); }
.toast-info { border-left-color: #2F80ED; }
.toast.out { opacity: 0; transform: translateX(28px); transition: opacity .3s ease, transform .3s ease; }
.toast-body { flex: 1; }
.toast-close {
    flex-shrink: 0; background: none; border: 0; cursor: pointer;
    color: var(--awc-muted); font-size: 1.15rem; line-height: 1; padding: 0 2px;
}
.toast-close:hover { color: var(--awc-ink); }

/* ---- Skeleton shimmer ---- */
.skeleton {
    background: linear-gradient(90deg, #edf3f2 25%, #dfe9e7 50%, #edf3f2 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s linear infinite;
    border-radius: 8px;
}

/* ---- Reduced motion: settle everything ---- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero::before { animation: none; }
    .reveal { transition-delay: 0s; }
    .toast { animation: none; }
    .skeleton { animation: none; }
    .auth-card, .auth-brand { animation: none; }
    .popular-badge { animation: none; }
}
