/* ============================================================
   MyShoppingBill marketing site — design system + components
   Brand palette taken from the logo: golden orange, vivid red,
   charcoal, with a green success accent.
   ============================================================ */

:root {
  --orange:       #f5960d;   /* primary — the "My" / shopping bag */
  --orange-dark:  #e07c00;
  --orange-soft:  #fff2e0;
  --orange-tint:  #fdf3e7;
  --red:          #e42b1d;   /* secondary — the "Bill" / the 3 */
  --red-dark:     #c31f13;
  --charcoal:     #1c1c1e;   /* the "Shopping" — headings / deep bg */
  --ink:          #2a2a2e;
  --muted:        #6b6b73;
  --line:         #ece7e0;
  --bg:           #ffffff;
  --bg-alt:       #fdf6ee;
  --bg-deep:      #1c1c1e;
  --green:        #2fa84f;   /* the checkmark badge */
  --amber:        #f5960d;
  --radius:       14px;
  --radius-sm:    10px;
  --shadow-sm:    0 1px 3px rgba(28,28,30,.07), 0 1px 2px rgba(28,28,30,.05);
  --shadow-md:    0 10px 30px rgba(28,28,30,.10);
  --shadow-lg:    0 24px 60px rgba(224,124,0,.16);
  --maxw:         1120px;
  --font:         "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--orange-dark); text-decoration: none; }
a:hover { color: var(--red); }

h1, h2, h3, h4 { color: var(--charcoal); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.section--deep { background: var(--bg-deep); color: #d8d4cd; }
.section--deep h2, .section--deep h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 14px;
}
.section--deep .eyebrow { color: #ffbf7a; }

.lede { font-size: 1.13rem; color: var(--muted); max-width: 60ch; }
.section--deep .lede { color: #b8b3ab; }

.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(245,150,13,.32); }
.btn--primary:hover { background: var(--orange-dark); color: #fff; box-shadow: 0 12px 26px rgba(224,124,0,.4); }
.btn--ghost { background: #fff; color: var(--charcoal); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange-dark); }
.btn--light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.28); }
.btn--light:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn--lg { padding: 16px 30px; font-size: 1.02rem; }

/* ---------- Brand lockup ---------- */
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.brand-name { font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; line-height: 1; }
.site-footer .brand-name { font-size: 1.1rem; }
.brand-name .b-my   { color: var(--orange); }
.brand-name .b-shop { color: var(--charcoal); }
.brand-name .b-bill { color: var(--red); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: .95rem; }
.nav-links a:hover, .nav-links a.is-active { color: var(--orange-dark); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--charcoal); margin: 4px 0; border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 72px; background: radial-gradient(1200px 440px at 72% -10%, var(--orange-soft), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--red); }
.hero .lede { font-size: 1.2rem; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-note { font-size: .88rem; color: var(--muted); }
.hero-visual {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-visual .bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.hero-visual .bar i { width: 10px; height: 10px; border-radius: 50%; background: #e6ddd0; }
.hero-visual .bar i:first-child { background: var(--red); }
.hero-visual .bar i:nth-child(2) { background: var(--orange); }
.hero-visual .bar i:nth-child(3) { background: var(--green); }
.hero-visual .body { padding: 22px; }

/* mock invoice inside hero */
.mock-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.mock-row.head { font-weight: 700; color: var(--charcoal); border-bottom: 2px solid var(--line); }
.mock-total { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 2px solid var(--charcoal); font-weight: 800; font-size: 1.05rem; color: var(--charcoal); }
.mock-badge { display: inline-block; margin-top: 14px; background: #dff5e4; color: var(--green); font-weight: 700; font-size: .78rem; padding: 4px 10px; border-radius: 999px; }

/* ---------- Logo strip ---------- */
.logos { padding: 34px 0; border-bottom: 1px solid var(--line); }
.logos p { text-align: center; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.logos-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; opacity: .75; font-weight: 800; color: var(--muted); font-size: 1.05rem; }

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--orange-soft); color: var(--orange-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Split feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 80px; }
.split--rev .split-media { order: 2; }
.split ul { list-style: none; padding: 0; margin: 18px 0 0; }
.split li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--ink); }
.split li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--orange-soft); color: var(--orange-dark);
  font-size: .72rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.panel {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-md);
}
.panel h4 { color: var(--charcoal); font-size: .95rem; margin-bottom: 14px; }
.stat-row { display: flex; gap: 16px; flex-wrap: wrap; }
.stat {
  flex: 1; min-width: 130px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px;
}
.stat .k { font-size: .78rem; color: var(--muted); }
.stat .v { font-size: 1.4rem; font-weight: 800; color: var(--charcoal); }
.stat .v.up { color: var(--green); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { position: relative; padding-top: 8px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--red)); color: #fff; font-weight: 800;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Metrics ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.metric .n { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; color: #fff; }
.metric .l { color: #b0aaa0; font-size: .92rem; }

/* ---------- Testimonials ---------- */
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.quote p { font-size: 1rem; color: var(--ink); }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.quote .av { width: 40px; height: 40px; border-radius: 50%; background: var(--orange-soft); color: var(--orange-dark); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.quote .who b { color: var(--charcoal); display: block; font-size: .92rem; }
.quote .who span { color: var(--muted); font-size: .84rem; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm);
}
.plan--featured { border-color: var(--orange); box-shadow: var(--shadow-lg); position: relative; }
.plan--featured .tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--orange), var(--red)); color: #fff; font-size: .72rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px;
}
.plan h3 { font-size: 1.15rem; }
.plan .amt { font-size: 2.4rem; font-weight: 800; color: var(--charcoal); margin: 8px 0 2px; }
.plan .amt small { font-size: .9rem; font-weight: 600; color: var(--muted); }
.plan .desc { color: var(--muted); font-size: .92rem; min-height: 42px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; }
.plan li { padding: 8px 0 8px 26px; position: relative; font-size: .93rem; border-bottom: 1px solid var(--bg-alt); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.plan li.off { color: var(--muted); }
.plan li.off::before { content: "–"; color: var(--muted); }
.plan .btn { width: 100%; justify-content: center; }

.toggle-note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 18px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 4px 20px; margin-bottom: 12px; background: #fff;
}
.faq summary {
  cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--charcoal);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--orange-dark); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 16px; margin: 0; font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--orange), var(--red)); color: #fff; border-radius: 22px; padding: 56px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #ffe9d7; max-width: 52ch; margin: 0 auto 26px; }
.cta-band .btn--light { background: #fff; color: var(--red); border: 0; }
.cta-band .btn--light:hover { background: #fff2e6; color: var(--red-dark); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 64px 0 44px; background: radial-gradient(900px 340px at 50% -20%, var(--orange-soft), transparent 70%); text-align: center; }
.page-hero .lede { margin: 0 auto; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .88rem; color: var(--charcoal); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--orange-soft); border-color: var(--orange); }
.contact-info li { list-style: none; margin-bottom: 18px; }
.contact-info .k { font-weight: 700; color: var(--charcoal); font-size: .9rem; }
.contact-info .v { color: var(--muted); }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s;
  display: flex; flex-direction: column;
}
.post:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post .thumb { height: 150px; background: linear-gradient(135deg, var(--orange-soft), #ffe0c4); display: flex; align-items: center; justify-content: center; color: var(--orange-dark); font-weight: 800; font-size: 1.1rem; }
.post .p { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.post .cat { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-dark); }
.post h3 { margin: 8px 0; font-size: 1.05rem; }
.post p { color: var(--muted); font-size: .92rem; flex: 1; }
.post .meta { font-size: .82rem; color: var(--muted); margin-top: 12px; }

/* ---------- Values / about ---------- */
.timeline { border-left: 2px solid var(--line); padding-left: 28px; margin-top: 12px; }
.timeline .t { position: relative; padding-bottom: 26px; }
.timeline .t::before { content: ""; position: absolute; left: -35px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--orange-soft); }
.timeline .yr { font-weight: 800; color: var(--orange-dark); font-size: .9rem; }

/* ---------- Auth (login) ---------- */
.auth-section { padding: 56px 0 72px; background: radial-gradient(900px 340px at 50% -10%, var(--orange-soft), transparent 70%); }
.auth-wrap { max-width: 440px; margin: 0 auto; }
.auth-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 36px 34px; box-shadow: var(--shadow-lg);
}
.auth-card h1 { font-size: 1.55rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); font-size: .93rem; margin-bottom: 24px; }
.auth-label { display: block; font-weight: 600; font-size: .84rem; color: var(--charcoal); margin-bottom: 7px; }
.auth-input-group { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; transition: border-color .12s, box-shadow .12s; }
.auth-input-group:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(245,150,13,.15); }
.auth-input-group .ico { padding: 0 12px; color: var(--orange-dark); display: flex; }
.auth-input-group input { flex: 1; border: 0; outline: 0; padding: 13px 14px 13px 0; font: inherit; font-size: .98rem; color: var(--ink); background: transparent; }
.auth-hint { display: block; color: var(--muted); font-size: .8rem; margin-top: 7px; }
.auth-err { background: #fdeceb; color: #b3261e; border: 1px solid #f5c6c2; border-radius: 10px; padding: 9px 12px; font-size: .84rem; text-align: center; margin-top: 14px; }
.auth-card .btn { width: 100%; justify-content: center; margin-top: 18px; }
.auth-back { background: none; border: 0; color: var(--muted); font-weight: 600; font-size: .86rem; cursor: pointer; padding: 0; margin-bottom: 16px; }
.auth-back:hover { color: var(--orange-dark); }
.otp-row { display: flex; justify-content: space-between; gap: 8px; }
.otp-box {
  width: 100%; height: 54px; text-align: center; font-size: 1.3rem; font-weight: 700;
  border: 1.5px solid var(--line); border-radius: 12px; color: var(--charcoal); outline: 0;
  transition: border-color .12s, box-shadow .12s;
}
.otp-box:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(245,150,13,.15); }
.otp-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: .84rem; }
.otp-meta .dev { color: var(--green); font-weight: 600; }
.otp-meta button { background: none; border: 0; color: var(--orange-dark); font-weight: 700; cursor: pointer; padding: 0; }
.otp-meta button:disabled { color: var(--muted); cursor: not-allowed; }
.auth-div { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--muted); font-size: .8rem; }
.auth-div::before, .auth-div::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#gbtn { display: flex; justify-content: center; min-height: 40px; }
.auth-foot { text-align: center; color: var(--muted); font-size: .82rem; margin: 20px 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); color: #b0aaa0; padding: 64px 0 32px; }
.site-footer .brand { margin-bottom: 12px; }
.site-footer .brand-name .b-shop { color: #fff; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #b0aaa0; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .85rem; color: #8a857c;
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack-lg > * + * { margin-top: 56px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .split--rev .split-media { order: 0; }
  .grid--3, .grid--4, .steps, .price-grid, .post-grid, .metrics { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 40px 24px; }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .nav-links, .nav-cta .btn--ghost { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 16px 24px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open a { padding: 10px 0; width: 100%; }
  .nav-toggle { display: block; }
  .grid--3, .grid--4, .steps, .price-grid, .post-grid, .metrics, .grid--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
