/* Envelopia marketing site. Plum & Peach, the app's own palette and typeface (Manrope, served from
   this site so no font service sees visitors; license in fonts/OFL.txt). */

@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/manrope-400.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/manrope-500.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/manrope-600.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/manrope-700.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/manrope-800.woff2') format('woff2'); }

:root {
  --plum: #4B2142;
  --plum-deep: #3A1833;
  --plum-wash: #F1E9EE;
  --peach: #F4A98A;
  --peach-wash: #FDEDE6;
  --paper: #FBF8F5;
  --card: #FFFFFF;
  --ink: #2A1F27;
  --muted: #6B5A66;
  --line: #EADFE5;
  --over: #A1261E;
  --radius-lg: 28px;
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1120px;
  --read: 68ch;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: 'tnum' 0;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--plum); text-underline-offset: 3px; }
a:hover { color: var(--plum-deep); }
:focus-visible { outline: 3px solid var(--peach); outline-offset: 3px; border-radius: 6px; }

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

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(251, 248, 245, 0.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--plum); }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 10px; color: var(--ink); cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 17px; }
  .nav .btn { margin-top: 8px; text-align: center; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--plum); color: #fff; }
.btn-primary:hover { background: var(--plum-deep); color: #fff; }
.btn-quiet { background: transparent; color: var(--plum); border-color: var(--plum); }
.btn-quiet:hover { background: var(--plum-wash); }
.btn-soon { background: var(--plum-wash); color: var(--muted); cursor: default; }
.nav .btn { min-height: 40px; padding: 0 16px; font-size: 15px; color: #fff; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 88px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6.2vw, 76px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; margin: 0 0 22px; }
.hero .lede { font-size: 20px; color: var(--muted); max-width: 34em; margin: 0 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fine { font-size: 14px; color: var(--muted); margin-top: 16px; }
@media (max-width: 920px) {
  .hero { padding-top: 32px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
}

/* The live mini budget in the hero: envelopes fill once on load. */
.demo { background: var(--card); border-radius: var(--radius-lg); padding: 22px; box-shadow: 0 30px 60px -30px rgba(75, 33, 66, 0.35), 0 0 0 1px var(--line); max-width: 460px; justify-self: end; width: 100%; }
@media (max-width: 920px) { .demo { justify-self: start; } }
.demo-left { background: var(--plum); color: #fff; border-radius: 20px; padding: 20px 22px; }
.demo-left small { display: block; opacity: 0.8; font-size: 14px; }
.demo-left strong { display: block; font-size: 40px; letter-spacing: -0.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.demo-left .bar { height: 7px; background: rgba(255,255,255,0.18); border-radius: 4px; margin: 12px 0 6px; overflow: hidden; }
.demo-left .bar i { display: block; height: 100%; width: 0; background: var(--peach); border-radius: 4px; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.demo-left .meta { display: flex; justify-content: space-between; font-size: 13px; opacity: 0.85; }
.env { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.env:last-child { border-bottom: 0; padding-bottom: 2px; }
.env b { font-weight: 700; }
.env span { font-weight: 800; font-variant-numeric: tabular-nums; }
.env .track { grid-column: 1 / -1; height: 8px; background: var(--plum-wash); border-radius: 4px; overflow: hidden; }
.env .track i { display: block; height: 100%; width: 0; background: var(--plum); border-radius: 4px; transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.env.low .track i { background: var(--peach); }
.env em { grid-column: 1 / -1; font-style: normal; font-size: 13px; color: var(--muted); margin-top: -2px; }
.filled .demo-left .bar i { width: var(--w); }
.filled .env .track i { width: var(--w); }
.filled .env:nth-child(2) .track i { transition-delay: .12s; }
.filled .env:nth-child(3) .track i { transition-delay: .24s; }
.filled .env:nth-child(4) .track i { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) { .demo i { transition: none !important; } }

/* ---------- sections ---------- */
section { padding: 80px 0; }
section.tint { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.plum { background: var(--plum); color: #fff; }
section.plum a:not(.btn) { color: var(--peach); }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 800; margin: 0 0 16px; max-width: 22ch; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 800; margin: 0 0 6px; letter-spacing: -0.01em; }
.intro { font-size: 19px; color: var(--muted); max-width: 40em; margin: 0 0 40px; }
section.plum .intro { color: rgba(255,255,255,0.82); }

/* Promises: the reasons people leave other envelope apps, answered. */
.promises { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 56px; }
.promise { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.promise svg { width: 44px; height: 44px; }
.promise p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .promises { grid-template-columns: 1fr; gap: 32px; } }

/* Side-by-side: phone + web */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { padding-left: 34px; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--peach-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B2142' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat; }
section.plum .ticks li::before { background-color: rgba(244,169,138,0.2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F4A98A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }

/* Phone + browser drawing */
.devices { position: relative; min-height: 340px; }
.browser { background: var(--card); border-radius: 14px; box-shadow: 0 0 0 1px var(--line), 0 20px 40px -24px rgba(75,33,66,.35); overflow: hidden; width: 88%; }
.browser .chrome { height: 30px; background: var(--plum-wash); display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.browser .chrome i { width: 9px; height: 9px; border-radius: 50%; background: #D9C9D3; }
.browser .body { display: grid; grid-template-columns: 30% 1fr; min-height: 260px; }
.browser .side { border-right: 1px solid var(--line); padding: 14px 12px; display: grid; gap: 8px; align-content: start; }
.browser .side b { height: 22px; border-radius: 7px; background: var(--plum); }
.browser .side s { height: 9px; border-radius: 5px; background: var(--plum-wash); text-decoration: none; }
.browser .main { padding: 16px; display: grid; gap: 10px; align-content: start; }
.browser .main .hero-card { height: 64px; border-radius: 12px; background: var(--plum); }
.browser .main .row { height: 30px; border-radius: 9px; background: var(--paper); box-shadow: inset 0 -6px 0 -2px var(--plum-wash); }
.phone { position: absolute; right: 0; bottom: -10px; width: 34%; min-width: 130px; aspect-ratio: 9 / 18.5; background: var(--ink); border-radius: 26px; padding: 7px; box-shadow: 0 24px 40px -18px rgba(42,31,39,.5); }
.phone .screen { background: var(--paper); border-radius: 20px; height: 100%; padding: 12px 9px; display: grid; gap: 7px; align-content: start; }
.phone .screen .hero-card { height: 52px; border-radius: 10px; background: var(--plum); }
.phone .screen .row { height: 24px; border-radius: 7px; background: var(--card); box-shadow: inset 0 -5px 0 -2px var(--plum-wash); }
.sync-dot { position: absolute; z-index: 2; left: 56%; top: 40%; width: 46px; height: 46px; border-radius: 50%; background: var(--peach); display: grid; place-items: center; box-shadow: 0 0 0 6px var(--paper); }

/* ---------- comparison table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); background: var(--card); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 16px; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-weight: 800; background: var(--paper); }
.compare thead th.us { background: var(--plum); color: #fff; }
.compare td.us { background: var(--peach-wash); font-weight: 700; }
.compare td.no { color: var(--muted); }
.source { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; align-items: stretch; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--card); border-radius: var(--radius-lg); padding: 32px; box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.plan.plus { background: var(--plum); color: #fff; box-shadow: none; }
.plan .price { font-size: 52px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin: 14px 0 4px; }
.plan .price small { font-size: 18px; font-weight: 600; letter-spacing: 0; opacity: 0.8; }
.plan .sub { color: var(--muted); margin: 0 0 22px; }
.plan.plus .sub { color: rgba(255,255,255,0.8); }
.plan .ticks { margin-bottom: 24px; }
.plan .grow { flex: 1; }
.terms-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 24px; }
.terms-row div { background: rgba(255,255,255,0.08); border-radius: 12px; padding: 12px; }
.terms-row b { display: block; font-size: 22px; }
.terms-row span { font-size: 13px; opacity: 0.85; }
.plan.plus .btn-primary { background: var(--peach); color: var(--ink); }
.plan.plus .btn-primary:hover { background: #F7BCA4; }

.trial { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.trial div { padding-top: 18px; border-top: 3px solid var(--peach); }
.trial b { display: block; font-size: 18px; margin-bottom: 4px; }
.trial p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .trial { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; line-height: 1; color: var(--plum); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 10px 0 0; color: var(--muted); max-width: var(--read); }

/* ---------- app logos for importer ---------- */
.apps { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.apps li { background: var(--card); border-radius: 999px; padding: 8px 16px; font-weight: 700; box-shadow: 0 0 0 1px var(--line); }

/* ---------- long-form pages (privacy, terms) ---------- */
.page-head { padding-top: 56px; padding-bottom: 8px; }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 12px; font-weight: 800; }
.page-head p { color: var(--muted); font-size: 19px; max-width: 40em; margin: 0; }
.prose { max-width: var(--read); padding: 32px 0 80px; }
.prose h2 { font-size: 26px; margin: 44px 0 10px; max-width: none; }
.prose h3 { margin-top: 26px; }
.prose li { margin: 6px 0; }
.prose .updated { color: var(--muted); font-size: 15px; }
.callout { background: var(--peach-wash); border-radius: var(--radius); padding: 20px 22px; margin: 24px 0; }
.callout p { margin: 0; }

/* ---------- features grid ---------- */
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
.feature-list p { margin: 0; color: var(--muted); }
.feature-list .tag { display: inline-block; font-size: 12px; font-weight: 800; color: var(--plum); background: var(--peach-wash); border-radius: 6px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; }
@media (max-width: 900px) { .feature-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-list { grid-template-columns: 1fr; } }

/* ---------- final call ---------- */
.final { text-align: left; }
.final .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.final h2 { margin: 0; color: #fff; }

/* ---------- footer ---------- */
footer { padding: 48px 0 56px; color: var(--muted); font-size: 15px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
footer h4 { color: var(--ink); font-size: 15px; margin: 0 0 10px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--plum); }
footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; font-size: 14px; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr 1fr; } footer .about { grid-column: 1 / -1; } }
