/* =========================================================================
   Paigaam - Design tokens
   Palette pulled from the logo mark: deep forest green + WhatsApp-style
   bright leaf green, on a very pale mint paper background.
   ========================================================================= */
:root {
    --forest:        #0E4F3C;
    --forest-dark:   #0A3A2C;
    --leaf:          #57B848;
    --leaf-light:    #8FD37A;
    --mint-50:       #F3FAF6;
    --mint-100:      #E5F3EA;
    --paper:         #FFFFFF;
    --ink:           #16211B;
    --ink-soft:      #4B5B52;
    --line:          #D8E8DE;
    --shadow:        0 20px 40px -20px rgba(14, 79, 60, 0.25);

    --font-display: 'Sora', sans-serif;
    --font-body:    'Inter', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--mint-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--forest-dark);
    margin: 0 0 0.5em;
    line-height: 1.15;
}

p { margin: 0 0 1em; }

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--forest);
    background: var(--mint-100);
    border: 1px solid var(--line);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.eyebrow .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--leaf);
}

/* ---- Buttons ----------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    padding: 13px 26px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
    background: var(--forest);
    color: #fff;
    box-shadow: 0 10px 24px -10px rgba(10, 58, 44, 0.55);
}
.btn-primary:hover { background: var(--forest-dark); transform: translateY(-1px); }

.btn-ghost {
    background: transparent;
    color: var(--forest-dark);
    border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--forest); background: var(--mint-100); }

.btn-block { width: 100%; }

/* ---- Navbar ------------------------------------------------------------ */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(243, 250, 246, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    color: var(--forest-dark);
}
.brand img { height: 34px; width: auto; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    font-weight: 500;
    font-size: 15px;
    color: var(--ink-soft);
}
.nav-links a:hover { color: var(--forest-dark); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

/* ---- Hero --------------------------------------------------------------- */
.hero {
    padding: 72px 0 40px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}
.hero h1 {
    font-size: clamp(34px, 4.6vw, 54px);
    letter-spacing: -0.01em;
}
.hero h1 span { color: var(--leaf); }
.hero-sub {
    font-size: 18px;
    color: var(--ink-soft);
    max-width: 46ch;
}
.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.hero-note {
    margin-top: 22px;
    font-size: 14px;
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    gap: 8px;
}
.hero-note::before {
    content: "✓";
    color: var(--leaf);
    font-weight: 700;
}

/* Signature element: broadcast visual --------------------------------- */
.broadcast {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 36px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.broadcast::before {
    content: "";
    position: absolute;
    inset: -40% -20% auto auto;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, var(--mint-100) 0%, transparent 70%);
}
.broadcast img.logo-mark { position: relative; z-index: 1; }

.broadcast-trail {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 2;
}
.pulse-bubble {
    width: 46px;
    height: 30px;
    border-radius: 8px;
    background: var(--forest);
    opacity: 0;
    animation: sendOut 2.6s ease-in-out infinite;
}
.pulse-bubble:nth-child(1) { animation-delay: 0s; }
.pulse-bubble:nth-child(2) { animation-delay: 0.5s; background: var(--leaf); }
.pulse-bubble:nth-child(3) { animation-delay: 1s; }

@keyframes sendOut {
    0%   { opacity: 0; transform: translateX(-14px) scale(0.85); }
    20%  { opacity: 1; transform: translateX(0) scale(1); }
    70%  { opacity: 1; transform: translateX(18px) scale(1); }
    100% { opacity: 0; transform: translateX(32px) scale(0.9); }
}

@media (prefers-reduced-motion: reduce) {
    .pulse-bubble { animation: none; opacity: 1; }
}

/* ---- How it works -------------------------------------------------------- */
.section { padding: 84px 0; }
.section-head {
    max-width: 640px;
    margin: 0 auto 48px;
    text-align: center;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); }
.section-head p { color: var(--ink-soft); font-size: 17px; }

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.step {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 30px 26px;
}
.step .num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    color: var(--leaf);
    background: var(--mint-100);
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.step h3 { font-size: 19px; }
.step p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* ---- Features -------------------------------------------------------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.feature {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 26px;
}
.feature .icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--forest);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 16px;
}
.feature h3 { font-size: 17px; }
.feature p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

/* ---- Pricing ----------------------------------------------------------- */
.pricing-alt { background: var(--mint-100); }
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
    max-width: 800px;
    margin: 0 auto;
}
.price-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 34px;
    position: relative;
    display: flex;
    flex-direction: column;
}
.price-card.featured {
    border-color: var(--forest);
    box-shadow: var(--shadow);
}
.price-card .badge {
    position: absolute;
    top: -13px;
    right: 28px;
    background: var(--leaf);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    letter-spacing: 0.03em;
}
.price-card h3 {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
    font-family: var(--font-body);
    font-weight: 700;
}
.price-amount {
    font-family: var(--font-display);
    font-size: 46px;
    font-weight: 700;
    color: var(--forest-dark);
    margin: 6px 0 4px;
}
.price-amount sup { font-size: 20px; top: -18px; }
.price-amount span.period {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-soft);
}
.price-save { font-size: 13.5px; color: var(--leaf); font-weight: 600; margin-bottom: 18px; }
.price-list {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
    flex: 1;
}
.price-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14.5px;
    color: var(--ink-soft);
    padding: 7px 0;
}
.price-list li::before {
    content: "✓";
    color: var(--leaf);
    font-weight: 700;
}

/* ---- Signup form --------------------------------------------------------- */
.form-wrap {
    padding: 60px 0 90px;
    display: flex;
    justify-content: center;
}
.form-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 460px;
    box-shadow: var(--shadow);
}
.form-card .plan-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--mint-100);
    color: var(--forest-dark);
    font-size: 13.5px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.field { margin-bottom: 18px; }
.field label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--forest-dark);
    margin-bottom: 6px;
}
.field input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--mint-50);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink);
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:focus {
    border-color: var(--forest);
    background: #fff;
}
.alert {
    background: #FDECEC;
    border: 1px solid #F3B9B9;
    color: #8A2424;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 18px;
}

/* ---- Confirmation / QR page ---------------------------------------------- */
.confirm-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 40px;
    max-width: 480px;
    margin: 60px auto 90px;
    box-shadow: var(--shadow);
    text-align: center;
}
.confirm-card .qr-box {
    background: var(--mint-50);
    border: 1px dashed var(--line);
    border-radius: 16px;
    padding: 20px;
    display: inline-block;
    margin: 20px 0;
}
.confirm-summary {
    text-align: left;
    background: var(--mint-100);
    border-radius: 12px;
    padding: 16px 18px;
    font-size: 14.5px;
    margin: 22px 0;
}
.confirm-summary div { display: flex; justify-content: space-between; padding: 4px 0; }
.confirm-summary strong { color: var(--forest-dark); }
.confirm-steps {
    text-align: left;
    font-size: 14.5px;
    color: var(--ink-soft);
    padding-left: 20px;
    margin: 0 0 10px;
}
.confirm-steps li { margin-bottom: 6px; }

/* ---- Footer --------------------------------------------------------------- */
footer {
    border-top: 1px solid var(--line);
    padding: 40px 0;
    background: var(--paper);
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: var(--ink-soft);
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--forest-dark);
}
.footer-brand img { height: 22px; }

/* ---- Responsive ------------------------------------------------------------ */
@media (max-width: 880px) {
    .hero-grid { grid-template-columns: 1fr; }
    .steps, .features-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}
