/* ============================================================================
   Bagging: Invoices — marketing site
   A private receipt & invoice keeper for iPhone. Clean, calm, factual.
   Palette mirrors the in-app look and the privacy policy (accent #e85d00).
   ========================================================================== */

:root {
  --bg:          #ffffff;
  --bg-warm:     #fff8f3;
  --ink:         #1c1c1e;
  --ink-soft:    #55555c;
  --ink-faint:   #8a8a93;
  --accent:      #e85d00;
  --accent-dark: #c44d00;
  --accent-soft: #fff1e6;
  --card:        #faf9f8;
  --rule:        #ececf0;
  --rule-strong: #dcdce2;
  --shadow-sm: 0 1px 2px rgba(28,28,30,.06), 0 2px 8px rgba(28,28,30,.05);
  --shadow-md: 0 8px 24px rgba(28,28,30,.08), 0 2px 8px rgba(28,28,30,.05);
  --shadow-lg: 0 24px 60px rgba(28,28,30,.14), 0 8px 24px rgba(28,28,30,.08);
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; display: block; }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.12; margin: 0; }

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

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}

/* ---- Header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand-name .tag { color: var(--ink-faint); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink-soft); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--ink); }
@media (max-width: 640px) { .nav .nav-hide { display: none; } }

/* ---- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 16px; font-weight: 600; line-height: 1;
  padding: 14px 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn-store { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn-store:hover { color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-store small { display: block; font-size: 11px; font-weight: 500; opacity: .7; line-height: 1; margin-bottom: 3px; }
.btn-store .store-line { display: flex; flex-direction: column; align-items: flex-start; }
.btn-store .store-line b { font-size: 16px; font-weight: 700; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-faint); background: var(--card); }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--accent-dark);
  background: var(--accent-soft); border-radius: 999px; padding: 6px 13px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---- Hero ------------------------------------------------------------------ */
.hero {
  background:
    radial-gradient(1200px 500px at 75% -10%, var(--bg-warm), transparent 70%),
    linear-gradient(180deg, var(--bg-warm), var(--bg) 60%);
  padding: 72px 0 40px;
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.hero h1 { font-size: clamp(40px, 6.5vw, 62px); margin: 0 0 20px; }
.hero h1 .accent { color: var(--accent); }
.hero-sub { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-soft); margin: 0 0 30px; max-width: 30ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero-actions .fine { font-size: 14px; color: var(--ink-faint); }

@media (max-width: 860px) {
  .hero { padding: 48px 0 24px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .eyebrow { margin-bottom: 12px; }
}

/* ---- Phone mockup (hero visual) ------------------------------------------- */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  width: 290px; background: #fff; border-radius: 42px; padding: 12px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--rule);
  position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 26px; background: #0b0b0c; border-radius: 999px; z-index: 3;
}
.phone-screen {
  background: linear-gradient(180deg, #fff, #fbfafa);
  border-radius: 32px; overflow: hidden; height: 560px;
  border: 1px solid var(--rule);
}
.app-topbar { padding: 54px 22px 16px; border-bottom: 1px solid var(--rule); }
.app-topbar .label { font-size: 13px; color: var(--ink-faint); font-weight: 600; }
.app-topbar .app-title { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin: 2px 0 14px; }
.app-totalcard {
  background: var(--accent-soft); border-radius: var(--r-sm);
  padding: 12px 14px; display: flex; align-items: baseline; justify-content: space-between;
}
.app-totalcard .t-label { font-size: 12px; font-weight: 600; color: var(--accent-dark); text-transform: uppercase; letter-spacing: .05em; }
.app-totalcard .t-amt { font-size: 22px; font-weight: 700; color: var(--ink); }
.app-list { list-style: none; margin: 0; padding: 6px 0; }
.app-row { display: flex; align-items: center; gap: 12px; padding: 12px 22px; }
.app-row + .app-row { border-top: 1px solid var(--rule); }
.app-thumb { width: 40px; height: 40px; border-radius: 8px; background: var(--card); border: 1px solid var(--rule); flex: none; display: grid; place-items: center; color: var(--accent); }
.app-row .meta { flex: 1; min-width: 0; }
.app-row .r-vendor { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-row .r-date { font-size: 13px; color: var(--ink-faint); }
.app-row .r-amt { font-size: 15px; font-weight: 700; }

.receipt-card {
  position: absolute; left: -28px; bottom: 40px; width: 215px;
  background: #fff; border-radius: var(--r); padding: 16px 16px 14px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--rule); transform: rotate(-5deg);
}
.receipt-card .rc-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.receipt-field { margin: 9px 0; }
.receipt-field .k { font-size: 11px; color: var(--ink-faint); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.receipt-field .v { font-size: 15px; font-weight: 600; }
.receipt-field .v.hl { background: linear-gradient(transparent 62%, var(--accent-soft) 62%); display: inline; padding: 0 2px; }
@media (max-width: 860px) { .receipt-card { left: auto; right: -8px; bottom: 24px; } }
@media (max-width: 420px) { .phone { width: 260px; } .receipt-card { width: 180px; } }

/* ---- Generic section ------------------------------------------------------- */
.section { padding: 80px 0; }
.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 14px; }
.section-head p { font-size: 19px; color: var(--ink-soft); margin: 0; }
.section.warm { background: linear-gradient(180deg, var(--bg-warm), var(--bg)); }

/* ---- Features grid --------------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 720px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg);
  padding: 28px; transition: transform .15s ease, box-shadow .15s ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--rule); color: var(--accent); margin-bottom: 18px;
}
.feature h3 { font-size: 20px; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.6; }

/* ---- Steps ----------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; gap: 22px; } }
.step { position: relative; padding-top: 8px; }
.step-num {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 17px; margin-bottom: 16px;
}
.step h3 { font-size: 20px; margin: 0 0 6px; }
.step p { margin: 0; color: var(--ink-soft); }

/* ---- Honest note callout --------------------------------------------------- */
.note {
  background: var(--card); border: 1px solid var(--rule); border-left: 3px solid var(--accent);
  border-radius: var(--r); padding: 24px 26px; max-width: 760px; margin: 0 auto;
}
.note h3 { font-size: 18px; margin: 0 0 8px; }
.note p { margin: 0; color: var(--ink-soft); }

/* ---- Closing CTA ----------------------------------------------------------- */
.cta { text-align: center; padding: 88px 0; background: linear-gradient(180deg, var(--bg), var(--bg-warm)); }
.cta h2 { font-size: clamp(30px, 5vw, 46px); margin: 0 0 14px; }
.cta h2 .accent { color: var(--accent); }
.cta p { font-size: 19px; color: var(--ink-soft); margin: 0 0 28px; }

/* ---- Footer ---------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--rule); padding: 48px 0; background: var(--bg); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-name { font-size: 17px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: var(--ink-soft); font-size: 15px; font-weight: 500; }
.footer-links a:hover { color: var(--ink); }
.footer-legal { width: 100%; color: var(--ink-faint); font-size: 14px; line-height: 1.6; margin-top: 8px; border-top: 1px solid var(--rule); padding-top: 20px; }
.footer-legal a { color: var(--ink-faint); }
.footer-legal a:hover { color: var(--ink-soft); }

/* ---- Long-form prose (privacy / terms / support) -------------------------- */
.doc { padding: 56px 0 88px; }
.doc-head { border-bottom: 3px solid var(--accent); padding-bottom: 22px; margin-bottom: 8px; }
.doc-head h1 { font-size: clamp(30px, 5vw, 40px); margin: 0 0 8px; }
.doc-head .meta { color: var(--ink-faint); font-size: 15px; margin: 0; }
.prose { max-width: 720px; }
.prose h2 { font-size: 22px; margin: 38px 0 12px; }
.prose h3 { font-size: 18px; margin: 26px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 0 0 9px; }
.prose strong { font-weight: 600; }
.lede {
  background: var(--card); border: 1px solid var(--rule); border-left: 3px solid var(--accent);
  border-radius: var(--r); padding: 18px 20px; margin: 0 0 24px; font-size: 18px;
}
.prose hr { border: none; border-top: 1px solid var(--rule); margin: 32px 0; }
.faq { border-top: 1px solid var(--rule); margin-top: 24px; }
.faq details { border-bottom: 1px solid var(--rule); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; padding: 16px 4px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { margin: 0 4px 18px; color: var(--ink-soft); }
.contact-card {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg);
  padding: 28px; margin: 8px 0 28px; display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center;
}
.contact-card .ec { font-size: 14px; color: var(--ink-faint); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.contact-card a { font-size: 20px; font-weight: 600; }

.backlink { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; color: var(--ink-soft); margin-bottom: 28px; }
.backlink:hover { color: var(--accent); }
