/* GiftPilot — public design system. Dark green, warm cream, subtle red accents. */
:root {
  --gp-green: #14532d;
  --gp-green-dark: #0f3d22;
  --gp-green-soft: #e7f0e9;
  --gp-cream: #fdf8ef;
  --gp-cream-deep: #f6eee0;
  --gp-red: #9a3412;
  --gp-red-soft: #fdeee7;
  --gp-ink: #1f2d26;
  --gp-muted: #5c6b63;
  --gp-border: #e5ded1;
  --gp-white: #ffffff;
  --gp-radius: 16px;
  --gp-shadow: 0 18px 45px rgba(20, 83, 45, .10);
  --gp-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gp-serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--gp-cream);
  color: var(--gp-ink);
  font-family: var(--gp-font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--gp-green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gp-red); }
h1, h2, h3, h4 { font-family: var(--gp-serif); color: var(--gp-green-dark); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.gp-container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.gp-section { padding: clamp(48px, 8vw, 96px) 0; }
.gp-section--alt { background: var(--gp-white); border-block: 1px solid var(--gp-border); }
.gp-section--deep { background: var(--gp-green-dark); color: var(--gp-cream); }
.gp-section--deep h2, .gp-section--deep h3 { color: var(--gp-cream); }
.gp-eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; color: var(--gp-red); margin-bottom: .9rem; }
.gp-lead { font-size: 1.12rem; color: var(--gp-muted); max-width: 62ch; }
.gp-section--deep .gp-lead { color: #cfe0d4; }
.gp-center { text-align: center; margin-inline: auto; }

/* Buttons */
.gp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 999px; padding: .85rem 1.6rem; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.gp-btn:hover { transform: translateY(-1px); text-decoration: none; }
.gp-btn--primary { background: var(--gp-green); color: var(--gp-cream); }
.gp-btn--primary:hover { background: var(--gp-green-dark); color: var(--gp-cream); }
.gp-btn--accent { background: var(--gp-red); color: #fff; }
.gp-btn--accent:hover { background: #7c2d12; color: #fff; }
.gp-btn--ghost { background: transparent; color: var(--gp-green-dark); border-color: var(--gp-green); }
.gp-btn--ghost:hover { background: var(--gp-green-soft); }
.gp-btn--light { background: var(--gp-cream); color: var(--gp-green-dark); }
.gp-btn--sm { padding: .55rem 1rem; font-size: .9rem; }
.gp-btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* Header */
.gp-skip { position: absolute; left: -999px; top: 0; background: var(--gp-green); color: #fff; padding: .6rem 1rem; z-index: 200; }
.gp-skip:focus { left: 8px; top: 8px; }
.gp-header { position: sticky; top: 0; z-index: 100; background: rgba(253, 248, 239, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--gp-border); }
.gp-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.gp-brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--gp-green-dark); }
.gp-brand__mark { width: 38px; height: 38px; border-radius: 11px; background: var(--gp-green); color: var(--gp-cream); display: grid; place-items: center; font-family: var(--gp-serif); font-weight: 700; font-size: 1.25rem; }
.gp-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.gp-brand__text strong { font-size: 1.08rem; letter-spacing: -.01em; }
.gp-brand__text small { font-size: .72rem; color: var(--gp-muted); letter-spacing: .08em; text-transform: uppercase; }
.gp-nav { display: flex; align-items: center; gap: 1.25rem; }
.gp-nav a { color: var(--gp-ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
.gp-nav a:hover { color: var(--gp-red); }
.gp-nav__cta { color: var(--gp-cream) !important; }
.gp-burger { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.gp-burger span { display: block; width: 24px; height: 2px; background: var(--gp-green-dark); margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }
.gp-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.gp-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.gp-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.gp-hero { padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); background:
  radial-gradient(1200px 500px at 80% -10%, rgba(154, 52, 18, .10), transparent 60%),
  radial-gradient(900px 420px at 10% 10%, rgba(20, 83, 45, .10), transparent 55%), var(--gp-cream); }
.gp-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.gp-status { display: inline-flex; align-items: center; gap: .5rem; background: var(--gp-green-soft); color: var(--gp-green-dark); border: 1px solid #cfe0d4; border-radius: 999px; padding: .35rem .85rem; font-size: .8rem; font-weight: 600; margin-bottom: 1.2rem; }
.gp-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gp-red); }
.gp-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 1rem; }
.gp-hero__support { font-size: .92rem; color: var(--gp-muted); }
.gp-hero__card { background: var(--gp-white); border: 1px solid var(--gp-border); border-radius: 22px; box-shadow: var(--gp-shadow); padding: 1.2rem; }
.gp-chat { display: grid; gap: .7rem; }
.gp-chat__bubble { background: var(--gp-cream); border: 1px solid var(--gp-border); border-radius: 14px; padding: .7rem .9rem; font-size: .92rem; }
.gp-chat__bubble--bot { background: var(--gp-green-soft); border-color: #cfe0d4; }
.gp-chat__bubble strong { color: var(--gp-green-dark); }
.gp-chat__mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: .4rem; }
.gp-chat__mini div { background: var(--gp-white); border: 1px solid var(--gp-border); border-radius: 10px; padding: .45rem; font-size: .72rem; text-align: center; color: var(--gp-muted); }

/* Cards & grids */
.gp-grid { display: grid; gap: 1.1rem; }
.gp-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gp-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gp-card { background: var(--gp-white); border: 1px solid var(--gp-border); border-radius: var(--gp-radius); padding: 1.4rem; }
.gp-card h3 { margin-bottom: .35rem; }
.gp-card p { color: var(--gp-muted); margin: 0; font-size: .96rem; }
.gp-card__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--gp-green-soft); color: var(--gp-green-dark); display: grid; place-items: center; font-size: 1.2rem; margin-bottom: .9rem; }
.gp-steps { counter-reset: step; display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gp-step { position: relative; background: var(--gp-white); border: 1px solid var(--gp-border); border-radius: var(--gp-radius); padding: 1.4rem 1.2rem 1.2rem; }
.gp-step::before { counter-increment: step; content: counter(step); position: absolute; top: -16px; left: 1.2rem; width: 32px; height: 32px; border-radius: 50%; background: var(--gp-green); color: var(--gp-cream); display: grid; place-items: center; font-weight: 700; font-size: .95rem; }
.gp-step p { margin: .2rem 0 0; color: var(--gp-muted); font-size: .95rem; }

/* Pricing */
.gp-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; align-items: stretch; }
.gp-plan { background: var(--gp-white); border: 1px solid var(--gp-border); border-radius: var(--gp-radius); padding: 1.6rem; display: flex; flex-direction: column; gap: .5rem; }
.gp-plan--featured { border-color: var(--gp-green); box-shadow: var(--gp-shadow); position: relative; }
.gp-plan__tag { position: absolute; top: -12px; right: 1.2rem; background: var(--gp-red); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 999px; }
.gp-plan__name { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gp-muted); font-weight: 700; }
.gp-plan__price { font-family: var(--gp-serif); font-size: 2rem; color: var(--gp-green-dark); }
.gp-plan ul { margin: .4rem 0 0; padding-left: 1.1rem; color: var(--gp-muted); font-size: .92rem; }
.gp-disclaimer { font-size: .85rem; color: var(--gp-muted); margin-top: 1rem; }

/* FAQ */
.gp-faq { display: grid; gap: .7rem; }
.gp-faq details { background: var(--gp-white); border: 1px solid var(--gp-border); border-radius: 12px; padding: 1rem 1.2rem; }
.gp-faq summary { cursor: pointer; font-weight: 600; color: var(--gp-green-dark); }
.gp-faq summary::-webkit-details-marker { display: none; }
.gp-faq details[open] summary { margin-bottom: .5rem; }
.gp-faq p { margin: 0; color: var(--gp-muted); }

/* CTA band */
.gp-cta { background: var(--gp-green); color: var(--gp-cream); border-radius: 24px; padding: clamp(28px, 5vw, 52px); display: grid; gap: 1rem; justify-items: start; }
.gp-cta h2 { color: var(--gp-cream); margin-bottom: .2rem; }
.gp-cta p { color: #cfe0d4; max-width: 60ch; margin: 0; }

/* Forms */
.gp-form { display: grid; gap: 1.1rem; }
.gp-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.gp-field { display: grid; gap: .35rem; }
.gp-field label { font-weight: 600; font-size: .93rem; color: var(--gp-green-dark); }
.gp-field .gp-hint { font-size: .8rem; color: var(--gp-muted); }
.gp-field input[type="text"], .gp-field input[type="email"], .gp-field input[type="url"], .gp-field select, .gp-field textarea {
  width: 100%; padding: .7rem .85rem; border: 1px solid #cfc6b6; border-radius: 10px; font: inherit; background: var(--gp-white); color: var(--gp-ink);
}
.gp-field input:focus, .gp-field select:focus, .gp-field textarea:focus { outline: 3px solid rgba(20, 83, 45, .22); border-color: var(--gp-green); }
.gp-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .93rem; }
.gp-check input { margin-top: .28rem; width: 18px; height: 18px; accent-color: var(--gp-green); flex: 0 0 auto; }
.gp-form__error { background: var(--gp-red-soft); border: 1px solid #f3c9b6; color: #7c2d12; border-radius: 10px; padding: .8rem 1rem; font-size: .92rem; }
.gp-form__ok { background: var(--gp-green-soft); border: 1px solid #cfe0d4; color: var(--gp-green-dark); border-radius: 10px; padding: .8rem 1rem; }
.gp-required { color: var(--gp-red); }

/* Demo */
.gp-demo { background: var(--gp-white); border: 1px solid var(--gp-border); border-radius: 22px; padding: clamp(1.2rem, 3vw, 2rem); box-shadow: var(--gp-shadow); }
.gp-demo__label { display: inline-flex; align-items: center; gap: .45rem; background: var(--gp-red-soft); color: #7c2d12; border: 1px solid #f3c9b6; border-radius: 999px; padding: .3rem .8rem; font-size: .8rem; font-weight: 600; margin-bottom: 1rem; }
.gp-progress { display: flex; gap: .4rem; margin-bottom: 1.4rem; }
.gp-progress span { flex: 1; height: 6px; border-radius: 999px; background: var(--gp-cream-deep); }
.gp-progress span.is-done { background: var(--gp-green); }
.gp-progress span.is-current { background: var(--gp-red); }
.gp-options { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.gp-option { display: flex; align-items: center; gap: .6rem; border: 1px solid var(--gp-border); border-radius: 12px; padding: .8rem 1rem; cursor: pointer; background: var(--gp-cream); font-size: .95rem; transition: border-color .15s ease, background .15s ease; }
.gp-option:hover { border-color: var(--gp-green); }
.gp-option input { accent-color: var(--gp-green); width: 18px; height: 18px; }
.gp-option.is-selected { border-color: var(--gp-green); background: var(--gp-green-soft); }
.gp-demo__nav { display: flex; justify-content: space-between; gap: .8rem; margin-top: 1.6rem; flex-wrap: wrap; }
.gp-demo__step h2 { font-size: 1.5rem; margin-bottom: .3rem; }
.gp-demo__step h2:focus { outline: none; }
.gp-demo__step h2:focus-visible { outline: 2px solid var(--gp-green); outline-offset: 4px; border-radius: 4px; }
.gp-results { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gp-product { background: var(--gp-white); border: 1px solid var(--gp-border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.gp-product__img { background: var(--gp-cream-deep); aspect-ratio: 4 / 3; }
.gp-product__body { padding: 1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.gp-product__price { font-weight: 700; color: var(--gp-green-dark); }
.gp-product__desc { font-size: .9rem; color: var(--gp-muted); margin: 0; }
.gp-product__reason { font-size: .85rem; background: var(--gp-green-soft); border-radius: 10px; padding: .55rem .7rem; color: var(--gp-green-dark); margin-top: auto; }

/* Footer & cookie bar */
.gp-footer { background: var(--gp-cream-deep); border-top: 1px solid var(--gp-border); padding: 2.5rem 0 1.5rem; margin-top: 2rem; }
.gp-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem; }
.gp-footer__brand { font-family: var(--gp-serif); font-size: 1.2rem; color: var(--gp-green-dark); margin: 0 0 .3rem; }
.gp-footer__brand span { font-family: var(--gp-font); font-size: .8rem; color: var(--gp-muted); }
.gp-footer__note { font-size: .85rem; color: var(--gp-muted); margin: 0; }
.gp-footer nav { display: grid; gap: .4rem; align-content: start; }
.gp-footer nav a { font-size: .92rem; text-decoration: none; }
.gp-footer address { font-style: normal; font-size: .9rem; color: var(--gp-muted); }
.gp-footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--gp-border); margin-top: 1.8rem; padding-top: 1rem; font-size: .8rem; color: var(--gp-muted); }
.gp-footer__bottom p { margin: 0; }

.cookie-bar { position: fixed; inset: auto 0 0 0; z-index: 120; background: var(--gp-green-dark); color: var(--gp-cream); padding: .9rem 0; display: none; }
.cookie-bar.visible { display: block; }
.cookie-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.cookie-bar p { margin: 0; font-size: .88rem; max-width: 70ch; }
.cookie-bar a { color: #d7e8db; }
.cookie-bar__actions { display: flex; gap: .5rem; }
.cookie-bar .gp-btn--ghost { color: var(--gp-cream); border-color: rgba(253, 248, 239, .5); }
.cookie-bar .gp-btn--ghost:hover { background: rgba(255, 255, 255, .12); color: var(--gp-cream); }

/* Utilities */
.gp-hidden { display: none !important; }
.gp-muted { color: var(--gp-muted); }
.gp-mt-1 { margin-top: .5rem; } .gp-mt-2 { margin-top: 1rem; } .gp-mt-3 { margin-top: 2rem; }
.gp-mb-2 { margin-bottom: 1rem; }
.gp-note { font-size: .85rem; color: var(--gp-muted); }
.gp-list { padding-left: 1.1rem; color: var(--gp-muted); }
.gp-list li { margin-bottom: .35rem; }

/* Responsive */
@media (max-width: 980px) {
  .gp-hero__grid { grid-template-columns: 1fr; }
  .gp-grid--4, .gp-steps, .gp-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gp-grid--3, .gp-plans { grid-template-columns: 1fr; }
  .gp-footer__grid { grid-template-columns: 1fr 1fr; }
  .gp-nav { position: absolute; top: 72px; left: 0; right: 0; background: var(--gp-cream); border-bottom: 1px solid var(--gp-border); padding: 1rem 1.25rem 1.4rem; display: none; flex-direction: column; align-items: stretch; gap: .8rem; box-shadow: var(--gp-shadow); }
  .gp-nav.is-open { display: flex; }
  .gp-nav__cta { justify-content: center; }
  .gp-burger { display: block; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .gp-grid--4, .gp-steps, .gp-results, .gp-grid--2, .gp-form__row, .gp-footer__grid { grid-template-columns: 1fr; }
  .gp-hero { padding-top: 36px; }
  .gp-hero__actions .gp-btn { width: 100%; }
  .gp-section { padding: 44px 0; }
  .gp-chat__mini { grid-template-columns: 1fr; }
  .cookie-bar__inner { align-items: flex-start; }
  .cookie-bar__actions { width: 100%; }
  .cookie-bar__actions .gp-btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
