/* Shared look for the plain occasion pages (/ai-greeting-cards/ etc.). These pages are ordinary
   HTML so Google can read them straight away — keep them free of scripts. Colours match the app. */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: #FFFBF8;
  color: #1C1410;
  line-height: 1.6;
}
a { color: #EA580C; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

header.top { padding: 20px 0; }
header.top a.logo { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; color: #1C1410; text-decoration: none; }
header.top a.logo span { color: #F97316; }

.hero { text-align: center; padding: 40px 16px 48px; } /* side padding: .hero sits on .wrap, and this would otherwise wipe its gutter */
.hero h1 { font-size: clamp(2.2rem, 7vw, 4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; margin: 0 auto 20px; max-width: 800px; }
.hero p.lead { font-size: clamp(1.05rem, 2.6vw, 1.3rem); color: rgba(28, 20, 16, 0.65); max-width: 640px; margin: 0 auto 32px; }
.price { font-size: 0.95rem; color: rgba(28, 20, 16, 0.55); margin-top: 16px; }

.btn {
  display: inline-block;
  background: #F97316;
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  padding: 20px 36px;
  border-radius: 2rem;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.3);
}
.btn:hover { background: #EA580C; }
.btn.dark { background: #1C1410; box-shadow: none; }
.btn.dark:hover { background: #F97316; }

section { padding: 40px 0; }
section h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 16px; }
section p { max-width: 720px; }
.tint { background: rgba(254, 240, 230, 0.6); }

.examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 24px; }
.examples figure { margin: 0; position: relative; container-type: inline-size; }
/* The front greeting, laid over the picture the way it's printed on the real card */
.examples .greet {
  position: absolute;
  top: 22px;
  left: 8%;
  right: 8%;
  text-align: center;
  color: #fff;
  font-size: 1.6rem;
  font-size: 9cqw; /* scales with the card, so narrow cards get smaller text */
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6), 0 0 2px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}
/* The thin handwriting font needs to be bigger and darker-edged to read over busy pictures */
.examples .greet[style*="Great Vibes"] {
  font-size: 2rem;
  font-size: 11.5cqw;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75), 0 0 3px rgba(0, 0, 0, 0.6);
}
/* Dark words over a light picture top get a soft white glow instead of a dark shadow */
.examples .greet.dark,
.examples .greet.dark[style*="Great Vibes"] {
  text-shadow: 0 0 18px #fff, 0 0 10px #fff, 0 0 5px #fff, 0 0 2px #fff;
}
/* For pictures with something bright top-right (e.g. a moon), the words sit top-left */
.examples .greet.left { right: 46%; text-align: left; }
/* For pictures with a busy top, the words sit at the bottom of the card (above the caption) */
.examples .greet.bottom { top: auto; bottom: calc(100% - 100cqw * 4 / 3 + 22px); }
.examples img { border-radius: 1.5rem; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; height: auto; box-shadow: 0 10px 30px rgba(28, 20, 16, 0.12); }
.examples figcaption { font-size: 0.9rem; color: rgba(28, 20, 16, 0.65); margin-top: 10px; font-style: italic; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; margin-top: 24px; }
.steps div { background: #FFFBF8; border: 1px solid #FEF0E6; border-radius: 1.5rem; padding: 24px; }
.steps b { display: block; color: #F97316; font-size: 0.8rem; letter-spacing: 0.3em; margin-bottom: 8px; }
.steps h3 { margin: 0 0 6px; font-size: 1.05rem; }
.steps p { margin: 0; color: rgba(28, 20, 16, 0.65); font-size: 0.95rem; }

ul.ideas { padding-left: 20px; max-width: 720px; }
ul.ideas li { margin-bottom: 10px; }

.faq h3 { font-size: 1.05rem; margin: 24px 0 6px; }
.faq p { margin: 0; color: rgba(28, 20, 16, 0.75); }

.cta { text-align: center; padding: 56px 0; }
.cta h2 { margin-bottom: 24px; }

/* Three example cards fanned out in the hero, so the first screen on a phone shows a real card */
.hero-cards { display: flex; justify-content: center; align-items: flex-start; max-width: 520px; margin: 0 auto 28px; padding: 18px 0 12px; }
.hero-cards img { width: 34%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 0.9rem; border: 4px solid #fff; box-shadow: 0 12px 28px rgba(28, 20, 16, 0.22); }
.hero-cards img:nth-child(1) { transform: rotate(-7deg) translate(14%, 6%); }
.hero-cards img:nth-child(2) { transform: scale(1.1); position: relative; z-index: 1; }
.hero-cards img:nth-child(3) { transform: rotate(7deg) translate(-14%, 6%); }

/* Offer strip, shown by the page's script only to visitors from the matching advert */
.offer { background: #14532D; color: #fff; border-radius: 1.25rem; padding: 12px 16px; margin: 0 auto 24px; max-width: 600px; font-size: 0.95rem; line-height: 1.4; }
.offer strong { background: #fff; color: #1C1410; border-radius: 0.5rem; padding: 1px 8px; letter-spacing: 0.04em; }

/* Phones: the design button stays at the bottom of the screen while scrolling */
.sticky-cta { display: none; }

@media (max-width: 600px) {
  /* Bigger, darker text on phones, so nobody has to zoom in to read */
  html { font-size: 18px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  .hero { padding: 20px 16px 32px; }
  .hero h1 { font-size: 1.95rem; margin-bottom: 14px; }
  .hero p.lead { font-size: 1.05rem; line-height: 1.55; color: rgba(28, 20, 16, 0.85); margin-bottom: 20px; }
  .price { font-size: 0.95rem; color: rgba(28, 20, 16, 0.75); }
  .faq p, .steps p, .examples figcaption { color: rgba(28, 20, 16, 0.85); }
  footer { color: rgba(28, 20, 16, 0.75); }
  .btn { padding: 18px 28px; }
  section { padding: 32px 0; }
  .examples { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .examples img { border-radius: 1rem; }
  .examples .greet { top: 12px; }
  .examples .greet.bottom { bottom: calc(100% - 100cqw * 4 / 3 + 12px); }
  .examples figcaption { font-size: 0.85rem; line-height: 1.45; margin-top: 6px; }
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .steps div { padding: 18px; }
  .steps p { font-size: 0.95rem; }
  .cta { padding: 40px 0; }
  body.has-sticky { padding-bottom: 88px; }
  body.has-sticky .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 251, 248, 0.96); border-top: 1px solid #FEF0E6; }
  body.has-sticky .sticky-cta .btn { display: block; text-align: center; padding: 16px 12px; }
  body.simple .sticky-cta { box-shadow: 0 -6px 18px rgba(28, 20, 16, 0.08); }
}

/* ── "Simple" pages (body.simple, e.g. the Christmas page): big clear text, swipeable examples,
      plain steps and prices — made for phones and for older visitors ─────────────────────────── */
body.simple { font-size: 1.125rem; }
.simple .topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.simple .trustline { font-size: 0.85rem; font-weight: 600; color: #166534; }
.simple .hero { padding-bottom: 20px; }
.simple .hero h1 { max-width: 700px; }
.simple .hero p.lead { color: rgba(28, 20, 16, 0.85); margin-bottom: 0; }
.simple section p { color: rgba(28, 20, 16, 0.85); }
.simple .offer { font-size: 1.05rem; padding: 14px 18px; }
.center { text-align: center; }
.hint { text-align: center; font-weight: 700; color: #C2410C; margin: 0 0 10px; font-size: 1rem; }

/* Example cards in a row you swipe through; the next card peeks in so people know to swipe */
.examples.swipe { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding: 4px max(16px, calc((100% - 1040px) / 2 + 16px)) 20px; margin: 0; scroll-padding: 0 16px; scrollbar-width: none; }
.examples.swipe::-webkit-scrollbar { display: none; }
.examples.swipe figure { flex: 0 0 76%; max-width: 300px; scroll-snap-align: center; }
.examples.swipe figcaption { font-size: 1rem; line-height: 1.45; color: rgba(28, 20, 16, 0.8); }

.btn-big { display: inline-block; background: #EA580C; color: #fff; font-weight: 800; font-size: 1.15rem; line-height: 1.2; padding: 18px 32px;
  border-radius: 999px; text-decoration: none; box-shadow: 0 10px 24px rgba(234, 88, 12, 0.3); }
.btn-big:hover { background: #C2410C; }
.price-line { margin: 14px 0 0; font-size: 1.05rem; color: rgba(28, 20, 16, 0.85); }

ol.steps3 { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 14px; max-width: 720px; }
ol.steps3 li { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid #FEF0E6; border-radius: 1.25rem; padding: 18px; }
ol.steps3 li > span { flex: 0 0 44px; height: 44px; border-radius: 50%; background: #14532D; color: #fff; font-weight: 800; font-size: 1.3rem; display: grid; place-items: center; }
ol.steps3 h3 { margin: 2px 0 4px; font-size: 1.15rem; }
ol.steps3 p { margin: 0; }

table.prices { width: 100%; max-width: 480px; border-collapse: collapse; background: #fff; border-radius: 1.25rem; overflow: hidden; font-size: 1.15rem; }
table.prices td { padding: 14px 18px; border-top: 1px solid #FEF0E6; }
table.prices tr:first-child td { border-top: none; }
table.prices td + td { text-align: right; font-weight: 800; color: #C2410C; }
.small { font-size: 1rem; margin-top: 14px; }

ul.trust { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; max-width: 720px; }
ul.trust li { position: relative; padding-left: 40px; font-weight: 600; }
ul.trust li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; background: #DCFCE7; color: #166534; font-weight: 800; display: grid; place-items: center; font-size: 1rem; }

.simple .faq details { background: #fff; border: 1px solid #FEF0E6; border-radius: 1rem; margin-top: 10px; max-width: 720px; }
.simple .faq summary { cursor: pointer; padding: 16px 18px; font-weight: 800; font-size: 1.1rem; list-style: none; position: relative; padding-right: 48px; }
.simple .faq summary::-webkit-details-marker { display: none; }
.simple .faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: #EA580C; }
.simple .faq details[open] summary::after { content: "−"; }
.simple .faq details p { padding: 0 18px 16px; margin: 0; }

/* Computers: all four examples fit side by side, so there's nothing to swipe */
@media (min-width: 900px) {
  .examples.swipe { justify-content: center; }
  .examples.swipe figure { flex: 0 0 236px; }
  .hint { display: none; }
}

@media (max-width: 600px) {
  .simple .hero h1 { font-size: 2rem; }
  .simple .trustline { font-size: 0.8rem; text-align: right; }
  .btn-big { display: block; width: 100%; padding: 18px 16px; text-align: center; }
  body.has-sticky .sticky-cta .btn-big { padding: 16px 12px; }
}

footer { border-top: 1px solid #FEF0E6; padding: 28px 0 40px; font-size: 0.9rem; color: rgba(28, 20, 16, 0.55); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
footer nav a { color: rgba(28, 20, 16, 0.7); text-decoration: none; }
footer nav a:hover { color: #EA580C; }
