/* Stamio website: same "post office" palette, fonts and stamps as the app. */
:root {
  color-scheme: light;
  --paper: #faf3e7;
  --card: #fffdf8;
  --ink: #2b2522;
  --ink-soft: rgba(43, 37, 34, 0.72);
  --muted: #8a8178;
  --tomato: #e0533d;
  --mustard: #f0b23a;
  --sky: #4b8fd6;
  --sage: #6fa37a;
  --plum: #8e6bb8;
  --blush: #f4a7a0;
  --teal: #4fb3b0;
  --wash-tomato: #fbe3dd;
  --wash-sky: #dde9f6;
  --wash-sage: #e3efe2;
  --wash-mustard: #fcefd4;
  --wash-plum: #ece4f4;
  --wash-blush: #fde7e4;
  --shadow: 0 10px 30px rgba(43, 37, 34, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "M PLUS Rounded 1c", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Soft paper grain over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.17 0 0 0 0 0.14 0 0 0 0 0.13 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--tomato); }
img { max-width: 100%; display: block; }

h1, h2, h3, .display { font-family: "Sniglet", "M PLUS Rounded 1c", sans-serif; font-weight: 800; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  background: var(--tomato); color: #fff; text-decoration: none;
  font-weight: 800; font-size: 16px;
  box-shadow: 0 6px 0 #b8402d, 0 12px 24px rgba(224, 83, 61, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #b8402d, 0 6px 12px rgba(224, 83, 61, 0.2); }
.btn-small { padding: 9px 18px; font-size: 14px; box-shadow: 0 4px 0 #b8402d; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; padding: 14px 0; background: rgba(250, 243, 231, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand span { font-family: "Sniglet", sans-serif; font-weight: 800; font-size: 26px; }
.brand.small img { width: 30px; height: 30px; border-radius: 8px; }
.brand.small span { font-size: 20px; }
.nav { display: flex; gap: 26px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; opacity: 0.7; }
.nav a:hover { opacity: 1; }

/* Doodles */
.squiggle { display: block; width: 92px; height: 12px; margin: 14px 0 0; }
.squiggle path { fill: none; stroke: var(--tomato); stroke-width: 3; stroke-linecap: round; }
.squiggle.center { margin: 14px auto 0; }

/* ---------- Stamps (real perforations via CSS masks) ---------- */
.stamp {
  --r: 5px;     /* hole radius */
  --s: 15px;    /* hole spacing */
  --w: 120px;
  position: relative;
  width: var(--w);
  aspect-ratio: 5 / 6;
  padding: calc(var(--r) * 2.2);
  background: var(--card);
  -webkit-mask:
    radial-gradient(circle at 50% 0, #000 var(--r), #0000 calc(var(--r) + 0.5px)) top / var(--s) calc(var(--r) * 2) round no-repeat,
    radial-gradient(circle at 50% 100%, #000 var(--r), #0000 calc(var(--r) + 0.5px)) bottom / var(--s) calc(var(--r) * 2) round no-repeat,
    radial-gradient(circle at 0 50%, #000 var(--r), #0000 calc(var(--r) + 0.5px)) left / calc(var(--r) * 2) var(--s) no-repeat round,
    radial-gradient(circle at 100% 50%, #000 var(--r), #0000 calc(var(--r) + 0.5px)) right / calc(var(--r) * 2) var(--s) no-repeat round,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    radial-gradient(circle at 50% 0, #000 var(--r), #0000 calc(var(--r) + 0.5px)) top / var(--s) calc(var(--r) * 2) round no-repeat,
    radial-gradient(circle at 50% 100%, #000 var(--r), #0000 calc(var(--r) + 0.5px)) bottom / var(--s) calc(var(--r) * 2) round no-repeat,
    radial-gradient(circle at 0 50%, #000 var(--r), #0000 calc(var(--r) + 0.5px)) left / calc(var(--r) * 2) var(--s) no-repeat round,
    radial-gradient(circle at 100% 50%, #000 var(--r), #0000 calc(var(--r) + 0.5px)) right / calc(var(--r) * 2) var(--s) no-repeat round,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.stamp > svg, .stamp > img { width: 100%; height: 100%; display: block; border-radius: 3px; object-fit: cover; }
.stamp.round {
  aspect-ratio: 1;
  border-radius: 50%;
  -webkit-mask: radial-gradient(closest-side, #000 calc(100% - 6px), #0000 calc(100% - 5.5px)), repeating-conic-gradient(#000 0 6deg, #0000 6deg 12deg);
  -webkit-mask-composite: source-over;
  mask: radial-gradient(closest-side, #000 calc(100% - 6px), #0000 calc(100% - 5.5px)), repeating-conic-gradient(#000 0 6deg, #0000 6deg 12deg);
  mask-composite: add;
  padding: 11px;
}
.stamp.round > svg { border-radius: 50%; }
.drop { filter: drop-shadow(0 8px 14px rgba(43, 37, 34, 0.16)); }

.art.tomato > svg { background: linear-gradient(160deg, #f0866f, #e0533d); }
.art.mustard > svg { background: linear-gradient(160deg, #f6cf72, #e9a52a); }
.art.sky > svg { background: linear-gradient(160deg, #7fb6ea, #3f7fca); }
.art.sage > svg { background: linear-gradient(160deg, #a5cc96, #5f9a6c); }
.art.plum > svg { background: linear-gradient(160deg, #7f8fe0, #a05bc0); }
.art.blush > svg { background: linear-gradient(160deg, #ff7ac4, #e83fa6); }
.art.teal > svg { background: linear-gradient(160deg, #9fdbe0, #4fb3b0); }

/* ---------- Hero ---------- */
.hero { padding: 36px 0 30px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 30px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 7px 14px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-size: 14px; font-weight: 700; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px rgba(111, 163, 122, 0.2); }
.hero h1 { font-size: clamp(48px, 7.4vw, 88px); }
.hero h1 .ink { color: var(--tomato); position: relative; white-space: nowrap; }
.hero h1 .ink::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: -10px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 12'%3E%3Cpath d='M2 6 Q 13 0, 24 6 T 46 6 T 68 6 T 90 6' fill='none' stroke='%23E0533D' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left center / 46px 12px;
}
.lead { font-size: 20px; color: var(--ink-soft); margin: 26px 0 28px; max-width: 36ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.appstore {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px 10px 16px; border-radius: 14px;
  background: var(--ink); color: #fff; text-decoration: none;
  box-shadow: 0 6px 0 #000, 0 14px 26px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease;
}
.appstore:hover { transform: translateY(-2px); }
.appstore svg { width: 22px; height: 24px; }
.appstore span { display: flex; flex-direction: column; font-family: "Sniglet", sans-serif; font-size: 21px; line-height: 1.05; }
.appstore small { font-family: "M PLUS Rounded 1c", sans-serif; font-size: 11px; font-weight: 500; opacity: 0.8; }
.tag { padding: 12px 18px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-weight: 700; font-size: 15px; }
.trust { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; padding: 0; margin: 22px 0 0; color: var(--muted); font-size: 14px; font-weight: 500; }
.trust li::before { content: "✓"; color: var(--sage); font-weight: 800; margin-right: 6px; }

.hero-art { position: relative; height: 600px; }
.phone {
  border-radius: 40px; overflow: hidden; background: #111;
  padding: 8px; box-shadow: 0 30px 60px rgba(43, 37, 34, 0.22), inset 0 0 0 2px #333;
}
.phone img { border-radius: 32px; }
.hero-phone { position: absolute; left: 50%; top: 10px; width: 270px; transform: translateX(-50%) rotate(3deg); z-index: 2; }
.hero-art .drop { position: absolute; z-index: 3; }
.hero-art .s1 { left: 0; top: 70px; transform: rotate(-12deg); }
.hero-art .s1 .stamp { --w: 120px; }
.hero-art .s2 { left: 10px; bottom: 40px; transform: rotate(8deg); }
.hero-art .s2 .stamp { --w: 150px; }
.hero-art .s3 { right: 0; top: 30px; transform: rotate(14deg); z-index: 1; }
.hero-art .s3 .stamp { --w: 128px; }
.postmark { position: absolute; right: 0; bottom: 70px; width: 150px; z-index: 4; transform: rotate(-14deg); mix-blend-mode: multiply; opacity: 0.75; }
.postmark svg { width: 100%; overflow: visible; }
.postmark circle { fill: none; stroke: #3d4a6b; stroke-width: 2.5; }
.postmark .pm-ring { font-family: "M PLUS Rounded 1c", sans-serif; font-size: 10.5px; font-weight: 800; letter-spacing: 2.2px; fill: #3d4a6b; }
.postmark .pm-mid { font-family: "Sniglet", sans-serif; font-size: 13px; font-weight: 800; letter-spacing: 1px; fill: #3d4a6b; }
.penny-float { position: absolute; right: 70px; bottom: 0; width: 76px; height: 90px; z-index: 5; filter: drop-shadow(0 8px 12px rgba(43, 37, 34, 0.2)); animation: bob 3.2s ease-in-out infinite; }

@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-12px) rotate(4deg); } }

/* ---------- Stamp strip ---------- */
.strip { overflow: hidden; padding: 30px 0 40px; margin-top: 10px; background: var(--card); border-block: 2px dashed rgba(43, 37, 34, 0.1); }
.strip-track { display: flex; width: max-content; animation: slide 45s linear infinite; }
.strip-set { display: flex; gap: 28px; padding-right: 28px; align-items: center; }
.strip .stamp { --w: 96px; }
.strip .drop:nth-child(odd) { transform: rotate(-4deg); }
.strip .drop:nth-child(even) { transform: rotate(5deg) translateY(6px); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Section titles ---------- */
.section-title { text-align: center; font-size: clamp(34px, 5vw, 52px); }

/* ---------- How it works ---------- */
.how { padding: 90px 20px 30px; }
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { position: relative; background: var(--card); border-radius: 26px; padding: 30px 26px 26px; box-shadow: var(--shadow); }
.steps li:nth-child(2) { transform: translateY(18px); }
.steps .num {
  display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 14px;
  border-radius: 50%; border: 2.5px dashed var(--tomato); color: var(--tomato);
  font-family: "Sniglet", sans-serif; font-weight: 800; font-size: 26px;
}
.steps li:nth-child(2) .num { border-color: var(--sky); color: var(--sky); }
.steps li:nth-child(3) .num { border-color: var(--sage); color: var(--sage); }
.steps h3 { font-size: 28px; }
.steps p { margin: 8px 0 0; color: var(--ink-soft); }

/* ---------- Features ---------- */
.features { padding: 90px 20px 20px; display: grid; gap: 28px; }
.feature {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  border-radius: 36px; padding: 50px 56px;
  outline: 2px dashed rgba(43, 37, 34, 0.09); outline-offset: -14px;
  overflow: hidden;
}
.feature:nth-child(even) .feature-text { order: 2; }
.feature h2 { font-size: clamp(34px, 4.6vw, 50px); margin-top: 12px; }
.feature p { font-size: 18px; color: var(--ink-soft); margin: 14px 0 0; max-width: 40ch; }
.feature .phone { width: min(290px, 80%); margin: 0 auto -110px; transform: rotate(-2deg); }
.feature:nth-child(even) .phone { transform: rotate(2deg); }
.no {
  display: inline-block; padding: 5px 12px; border-radius: 8px;
  background: var(--card); font-family: "Sniglet", sans-serif; font-weight: 800; font-size: 14px; letter-spacing: 0.5px;
  transform: rotate(-3deg); box-shadow: 0 3px 8px rgba(43, 37, 34, 0.08);
}
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 2px;
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 800;
}
.bg-tomato { background: var(--wash-tomato); }
.bg-sky { background: var(--wash-sky); }
.bg-sage { background: var(--wash-sage); }
.bg-mustard { background: var(--wash-mustard); }
.bg-plum { background: var(--wash-plum); }
.bg-blush { background: var(--wash-blush); }

/* ---------- Extras ---------- */
.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 40px 20px 20px; }
.extra { background: var(--card); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); transition: transform 0.2s ease; }
.extra:hover { transform: translateY(-4px) rotate(-0.5deg); }
.extra .icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; font-size: 26px; }
.extra h3 { font-size: 22px; margin-top: 14px; }
.extra p { margin: 6px 0 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- Pricing ---------- */
.pricing { padding: 100px 20px 30px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 860px; margin: 44px auto 0; align-items: start; }
.plan { position: relative; background: var(--card); border-radius: 30px; padding: 34px; box-shadow: var(--shadow); }
.plan h3 { font-size: 26px; }
.plan .price { font-family: "Sniglet", sans-serif; font-weight: 800; font-size: 54px; margin: 10px 0 0; line-height: 1; }
.plan .price small { font-size: 20px; opacity: 0.7; }
.plan .alt { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.plan.pro { background: var(--ink); color: #fff; transform: rotate(1deg); }
.plan.pro .alt { color: rgba(255, 255, 255, 0.65); }
.plan.pro .ticks li { color: rgba(255, 255, 255, 0.85); }
.plan.pro .ticks li::before { background: var(--tomato); }
.ribbon {
  position: absolute; top: -14px; right: 26px; padding: 6px 14px; border-radius: 999px;
  background: var(--mustard); color: var(--ink); font-weight: 800; font-size: 14px; transform: rotate(4deg);
}
.fine { text-align: center; color: var(--muted); font-size: 13px; margin: 28px auto 0; max-width: 60ch; }

/* ---------- Envelope (privacy) ---------- */
.envelope {
  margin: 80px 0 20px; padding: 12px; border-radius: 34px;
  background: repeating-linear-gradient(-45deg, var(--tomato) 0 18px, var(--card) 18px 30px, var(--sky) 30px 48px, var(--card) 48px 60px);
}
.envelope-inner { display: flex; align-items: center; gap: 34px; background: var(--card); border-radius: 24px; padding: 44px 48px; }
.envelope h2 { font-size: clamp(30px, 4vw, 42px); }
.envelope p { color: var(--ink-soft); font-size: 18px; margin: 12px 0 0; max-width: 54ch; }
.penny-big { flex: none; width: 110px; height: 130px; transform: rotate(-6deg); filter: drop-shadow(0 8px 14px rgba(43, 37, 34, 0.18)); }

/* ---------- FAQ ---------- */
.faq { padding: 90px 20px 20px; max-width: 800px; }
.faq .squiggle { margin-bottom: 34px; }
.faq details { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; position: relative;
  font-family: "Sniglet", sans-serif; font-weight: 800; font-size: 19px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--wash-tomato); color: var(--tomato); font-size: 20px; transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--ink-soft); }

/* ---------- Final call ---------- */
.final { text-align: center; padding: 100px 20px 90px; }
.penny-final { width: 96px; height: 114px; animation: bob 3.2s ease-in-out infinite; filter: drop-shadow(0 10px 14px rgba(43, 37, 34, 0.2)); }
.final h2 { font-size: clamp(34px, 5vw, 54px); margin-top: 18px; }
.final p { color: var(--ink-soft); font-size: 18px; margin: 10px 0 26px; }

/* ---------- Footer ---------- */
.site-footer { color: var(--muted); font-size: 14px; background: var(--card); }
.airmail { height: 10px; background: repeating-linear-gradient(-45deg, var(--tomato) 0 14px, var(--card) 14px 22px, var(--sky) 22px 36px, var(--card) 36px 44px); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-top: 30px; padding-bottom: 40px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--muted); }
.site-footer .brand { color: var(--ink); }

/* ---------- Legal / text pages ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 20px 20px 60px; }
.doc h1 { font-size: clamp(36px, 6vw, 52px); }
.doc h2 { font-size: 26px; margin-top: 34px; }
.doc h3 { font-size: 20px; margin-top: 22px; }
.doc p, .doc li { font-size: 16.5px; color: rgba(43, 37, 34, 0.85); }
.doc .meta { color: var(--muted); margin-top: 8px; }
.card { background: var(--card); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.doc .card { margin-top: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .feature, .plans { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .cta-row, .trust { justify-content: center; }
  .hero-art { height: 560px; max-width: 460px; width: 100%; margin: 0 auto; }
  .feature { padding: 36px 28px; gap: 28px; }
  .feature:nth-child(even) .feature-text { order: 0; }
  .feature .phone { margin-bottom: -90px; }
  .steps, .extras { grid-template-columns: 1fr; }
  .steps li:nth-child(2) { transform: none; }
  .nav { display: none; }
  .envelope-inner { flex-direction: column; text-align: center; padding: 34px 24px; }
  .plan.pro { transform: none; }
}
@media (max-width: 480px) {
  .hero-art { height: 480px; }
  .hero-phone { width: 220px; }
  .hero-art .s1 .stamp { --w: 92px; }
  .hero-art .s2 .stamp { --w: 110px; }
  .hero-art .s3 .stamp { --w: 96px; }
  .postmark { width: 116px; bottom: 60px; }
  .penny-float { width: 60px; height: 72px; right: 40px; }
  .appstore span { font-size: 19px; }
  .plan { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .strip-track, .penny-float, .penny-final { animation: none; }
  html { scroll-behavior: auto; }
}

/* Keep anchored sections clear of the sticky header */
section[id] { scroll-margin-top: 80px; }
