/* Shopping Assistant landing page */
:root {
    --paper: #F5F7F2;
    --white: #FFFFFF;
    --ink: #15211B;
    --muted: #55645B;
    --forest: #1E5B45;
    --forest-dark: #144533;
    --mint: #DCEDE2;
    --sun: #F4C242;
    --line: #DCE3DB;
    --radius: 14px;
    --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--forest); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 3.9rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 760px; }
.small { font-size: .9rem; color: var(--muted); }
.center { text-align: center; }

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

/* Buttons */
.btn {
    display: inline-block;
    padding: .85rem 1.5rem;
    background: var(--forest);
    color: var(--white);
    border: 2px solid var(--forest);
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s;
}
.btn:hover { background: var(--forest-dark); border-color: var(--forest-dark); }
.btn-ghost { background: transparent; color: var(--forest); }
.btn-ghost:hover { background: var(--mint); color: var(--forest-dark); }
.btn-small { padding: .5rem 1.1rem; font-size: .95rem; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 20;
    background: rgba(245, 247, 242, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.1rem; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--forest); }
.nav .btn { color: var(--white); }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 999px; padding: .4rem 1rem; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }

/* Hero */
.hero { padding: 5rem 0 4.5rem; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 4rem; align-items: center; }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 1rem; }

/* Chat mockup: the centrepiece */
.chat {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 30px 60px -30px rgba(20, 69, 51, .35);
    overflow: hidden;
    transform: rotate(1deg);
}
.chat-head { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; background: var(--forest); color: var(--white); }
.chat-head strong { display: block; font-size: .98rem; }
.chat-head img { border-radius: 8px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .55); }
.chat-head span { font-size: .82rem; opacity: .8; }
.chat-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.bubble { margin: 0; padding: .8rem 1rem; border-radius: 16px; font-size: .97rem; max-width: 88%; }
.bubble p { margin: 0 0 .75rem; }
.bubble-user { align-self: flex-end; background: var(--sun); color: var(--ink); border-bottom-right-radius: 4px; }
.bubble-bot { align-self: flex-start; background: var(--mint); border-bottom-left-radius: 4px; max-width: 100%; }
.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.products li { background: var(--white); border-radius: 10px; padding: .5rem; font-size: .85rem; }
.products img { width: 100%; height: auto; border-radius: 6px; margin-bottom: .4rem; }
.p-name { display: block; font-weight: 600; line-height: 1.25; }
.p-price { color: var(--forest); font-weight: 600; }
.chat-input { margin: 0 1.25rem 1.25rem; padding: .75rem 1rem; border: 1.5px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .92rem; }

/* Problem statement */
.problem { padding: 4.5rem 0; background: var(--forest); color: var(--white); }
.problem h2 { color: var(--white); }
.problem p { font-size: 1.15rem; opacity: .9; margin: 0; }

/* Sections */
.section { padding: 5.5rem 0; }
.section-tint { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lead { color: var(--muted); font-size: 1.1rem; margin-top: -.5rem; }

/* Steps: a real sequence, so numbers are used */
.steps { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; counter-reset: none; }
.steps li { border-top: 3px solid var(--forest); padding-top: 1.25rem; }
.step-num { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--sun); font-weight: 800; margin-bottom: 1rem; }
.steps p { color: var(--muted); margin: 0; }

/* Features */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 3.5rem; margin-top: 2.5rem; }
.feature { display: flex; gap: 1.1rem; align-items: flex-start; }
.feature img { flex: none; }
.feature h3 { margin-bottom: .35em; }
.feature p { color: var(--muted); margin: 0; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 2.5rem 0 1.5rem; align-items: start; }
.plan { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.75rem; display: flex; flex-direction: column; }
.plan-featured { border: 2px solid var(--forest); padding-top: 2.5rem; }
.badge { position: absolute; top: -.8rem; left: 1.75rem; background: var(--sun); padding: .2rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.plan h3 { font-size: 1.35rem; margin-bottom: .2em; }
.plan-for { color: var(--muted); font-size: .95rem; }
.price { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.02em; margin: .25rem 0 1rem; }
.price span { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.75rem; }
.plan li { padding: .45rem 0 .45rem 1.6rem; border-top: 1px solid var(--line); background: url("../images/icon-check.svg") no-repeat 0 .7rem / 1rem; }
.plan .btn { text-align: center; margin-top: auto; }

/* FAQ */
.faq { margin-top: 2rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--forest); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin: .75rem 0 0; }

/* Waitlist */
.waitlist { text-align: left; }
.waitlist > .wrap > p { color: var(--muted); font-size: 1.1rem; }
.signup { display: grid; grid-template-columns: 1fr 1fr auto; gap: 1rem; align-items: end; margin-top: 2rem; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input { width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: var(--white); color: var(--ink); }
.field input:focus { border-color: var(--forest); outline: none; box-shadow: 0 0 0 3px var(--mint); }
.hp { position: absolute; left: -9999px; }
.notice { padding: .9rem 1.1rem; border-radius: 10px; font-weight: 500; }
.notice-success { background: var(--mint); color: var(--forest-dark); }
.notice-error { background: #FBE3DF; color: #8A2A1C; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-inner p { margin: 0; }

/* Responsive */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
    .chat { transform: none; }
    .steps, .plans { grid-template-columns: 1fr; }
    .features { grid-template-columns: 1fr; }
    .signup { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .nav-toggle { display: block; }
    .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.25rem 1.5rem 1.5rem; background: var(--paper); border-bottom: 1px solid var(--line); }
    .nav.open { display: flex; }
    .hero { padding-top: 3rem; }
    .products { grid-template-columns: repeat(3, 1fr); gap: .4rem; }
    .products li { font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
