/* ==========================================================================
   Gift Receipt marketing site
   One stylesheet for every page. Plain CSS, no build step.
   ========================================================================== */

:root {

  /* ======================================================================
     THE ONE SWITCH  <<< THIS IS THE ONLY LINE YOU EDIT TO GO LIVE
     ----------------------------------------------------------------------
     --cta-live: 0;   every button reads "Join the beta"  and goes to contact.html
     --cta-live: 1;   every button reads "Add to Shopify" and goes to
                      https://apps.shopify.com/gift-receipt

     Change the 0 to a 1 after the Shopify App Store approves the app.
     That single character updates every call to action on every page.
     assets/cta.js reads this value and rewrites the buttons. Nothing else
     needs to change anywhere.
     ====================================================================== */
  --cta-live: 0;

  /* Brand */
  --purple: #9327e6;
  --purple-dark: #7a1cc4;
  --purple-soft: #f3e9fd;

  /* Neutrals */
  --ink: #1a1a1a;
  --body: #4a4a4a;
  --tint: #faf8fd;
  --line: #e8e0f2;
  --white: #ffffff;

  /* Type */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --script: "Dancing Script", cursive;

  /* Rhythm */
  --shell: 1120px;
  --gutter: 24px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(26, 26, 26, 0.04), 0 8px 24px rgba(26, 26, 26, 0.06);
  --shadow-lift: 0 2px 4px rgba(26, 26, 26, 0.05), 0 16px 40px rgba(147, 39, 230, 0.12);
}

/* --------------------------------------------------------------- reset -- */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; border: 0; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

h1 { font-size: 52px; letter-spacing: -0.03em; }
h2 { font-size: 36px; }
h3 { font-size: 20px; letter-spacing: -0.01em; }

p { margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }

a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------------------------------------------------- layout -- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.shell-narrow { max-width: 760px; }

section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.section-line { border-top: 1px solid var(--line); }

.section-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.section-head p { font-size: 19px; margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 14px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--purple);
  color: var(--white);
  padding: 12px 20px;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------ buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: background-color 0.15s ease, box-shadow 0.15s ease,
    transform 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(26, 26, 26, 0.08), 0 8px 20px rgba(147, 39, 230, 0.22);
}
.btn-primary:hover { background: var(--purple-dark); transform: translateY(-1px); }

.btn-outline {
  background: var(--white);
  color: var(--purple);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--purple); background: var(--purple-soft); }

.btn-on-purple { background: var(--white); color: var(--purple); box-shadow: none; }
.btn-on-purple:hover { background: var(--purple-soft); color: var(--purple-dark); }

.btn-block { width: 100%; }
.btn-small { font-size: 15px; padding: 12px 20px; }

.text-link { font-weight: 600; font-size: 16px; }
.text-link:hover { color: var(--purple-dark); }

/* ------------------------------------------------------------- header -- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.logo { display: inline-flex; align-items: center; }
.logo img { height: 30px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a.nav-link {
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
}
.site-nav a.nav-link:hover { color: var(--purple); text-decoration: none; }
.site-nav a.nav-link[aria-current="page"] { color: var(--purple); font-weight: 600; }

/* --------------------------------------------------------------- hero -- */

.hero {
  padding: 104px 0 88px;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(147, 39, 230, 0.10), transparent 70%),
    var(--white);
  text-align: center;
}
.hero-inner { max-width: 780px; margin: 0 auto; }
.hero p.lede {
  font-size: 20px;
  max-width: 640px;
  margin: 0 auto 34px;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-note { margin-top: 26px; font-size: 15px; color: var(--body); }

/* ------------------------------------------------------------ problem -- */

.problem-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px 48px;
}
.problem-card p { font-size: 19px; }
.problem-card p:first-of-type { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------- grid -- */

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 28px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 16px; margin-bottom: 0; }

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--purple-soft);
  color: var(--purple);
  margin-bottom: 18px;
}
.icon-badge svg { width: 24px; height: 24px; }

.step { position: relative; }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
}

/* ------------------------------------------------------- email mockup -- */

.preview-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.preview-copy h2 { margin-bottom: 18px; }
.preview-list { list-style: none; margin: 22px 0 0; padding: 0; }
.preview-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: 16px;
}
.preview-list li svg {
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  color: var(--purple);
}

.email {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  font-size: 15px;
}
.email-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  background: var(--tint);
  border-bottom: 1px solid var(--line);
}
.email-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.email-subject {
  margin-left: 8px;
  font-size: 13px;
  color: var(--body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.email-body { padding: 30px 30px 34px; }

.email-brandbar {
  text-align: center;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.email-storelogo {
  display: inline-block;
  padding: 9px 20px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9b93a6;
}

.email-hello { font-size: 24px; color: var(--ink); font-weight: 700; margin: 0 0 8px; }
.email-sub { font-size: 15px; margin-bottom: 22px; }

.email-meta {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 24px;
  font-size: 14px;
}
.email-meta span { display: block; color: var(--body); }
.email-meta strong { color: var(--ink); font-size: 15px; letter-spacing: 0.02em; }

.email-items { border-top: 1px solid var(--line); }
.email-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.email-thumb {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--purple-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
}
.email-thumb svg { width: 22px; height: 22px; }
.email-item-name { color: var(--ink); font-weight: 600; font-size: 15px; }
.email-item-detail { font-size: 13px; color: var(--body); }

.email-cta { text-align: center; padding-top: 26px; }
.email-btn {
  display: inline-block;
  background: var(--purple);
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 8px;
}
.email-fineprint { font-size: 12.5px; text-align: center; margin: 18px 0 0; color: #7d7589; }

.wordmark-script {
  font-family: var(--script);
  font-weight: 700;
  color: var(--purple);
}

/* ---------------------------------------------------------------- faq -- */

.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  list-style: none;
  padding: 22px 26px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--purple);
  border-bottom: 2px solid var(--purple);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq .faq-answer { padding: 0 26px 24px; font-size: 16px; }

/* --------------------------------------------------------- purple band -- */

.band {
  background: var(--purple);
  color: var(--white);
  text-align: center;
  padding: 84px 0;
}
.band h2 { color: var(--white); font-size: 38px; }
.band p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
  max-width: 560px;
  margin: 0 auto 30px;
}
.band a:not(.btn) { color: var(--white); text-decoration: underline; }

/* ------------------------------------------------------------ pricing -- */

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: start; }

.plan {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 24px 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.plan-popular {
  border: 2px solid var(--purple);
  box-shadow: var(--shadow-lift);
}
.plan-flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--purple);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-name { font-size: 19px; margin-bottom: 6px; }
.plan-price { font-size: 40px; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; }
.plan-price span { font-size: 16px; font-weight: 500; color: var(--body); letter-spacing: 0; }
.plan-volume { font-size: 15px; margin: 10px 0 22px; }
.plan-features { list-style: none; margin: 0 0 26px; padding: 0; flex: 1 1 auto; }
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.plan-features li:first-child { border-top: 0; }
.plan-features svg { flex: 0 0 17px; width: 17px; height: 17px; margin-top: 4px; }
.plan-features .yes svg { color: var(--purple); }
.plan-features .no { color: #8f8899; }
.plan-features .no svg { color: #c9c2d4; }

.pricing-note {
  max-width: 680px;
  margin: 44px auto 0;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  font-size: 16px;
}

/* --------------------------------------------------------------- form -- */

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 36px 34px;
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.field .hint { font-weight: 400; color: var(--body); }
.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(147, 39, 230, 0.15);
}
.field textarea { min-height: 150px; resize: vertical; }

/* Honeypot. Kept out of sight and out of the tab order for people,
   still visible to the simple bots that fill in every input they find. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-message {
  display: none;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15px;
  margin-bottom: 20px;
}
.form-message.show { display: block; }
.form-message.ok { background: var(--purple-soft); color: var(--purple-dark); border: 1px solid var(--line); }
.form-message.bad { background: #fdf0f0; color: #a32020; border: 1px solid #f3d6d6; }

.contact-aside { font-size: 16px; }
.contact-aside h3 { margin-top: 28px; }
.contact-aside h3:first-child { margin-top: 0; }

/* ---------------------------------------------------------- page head -- */

.page-head {
  padding: 72px 0 56px;
  text-align: center;
  background:
    radial-gradient(700px 320px at 50% -20%, rgba(147, 39, 230, 0.09), transparent 70%),
    var(--white);
}
.page-head p { font-size: 19px; max-width: 620px; margin: 0 auto; }

.prose h2 { font-size: 26px; margin-top: 40px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin-top: 30px; }

.prose ul { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li:last-child { margin-bottom: 0; }

.prose strong { color: var(--ink); font-weight: 600; }

.policy-meta {
  font-size: 15px;
  color: var(--body);
  padding-bottom: 22px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.policy-address { line-height: 1.8; }

.placeholder-note {
  background: var(--tint);
  border: 1px dashed var(--purple);
  border-radius: var(--radius);
  padding: 32px;
  font-size: 17px;
  color: var(--ink);
}

/* ---------------------------------------------------------------- 404 -- */

.notfound { padding: 120px 0 130px; text-align: center; }
.notfound .code {
  font-size: 84px;
  font-weight: 700;
  color: var(--purple);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 18px;
}
.notfound p { font-size: 19px; max-width: 520px; margin: 0 auto 30px; }

/* ------------------------------------------------------------- footer -- */

.site-footer {
  background: var(--tint);
  border-top: 1px solid var(--line);
  padding: 56px 0 44px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.footer-mark img { height: 60px; width: auto; }
.footer-links { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.footer-links a { color: var(--ink); font-size: 15px; font-weight: 500; }
.footer-links a:hover { color: var(--purple); }
.footer-copy { font-size: 15px; color: var(--body); }

/* --------------------------------------------------------- responsive -- */

@media (max-width: 960px) {
  h1 { font-size: 42px; }
  h2 { font-size: 30px; }
  section { padding: 72px 0; }
  .hero { padding: 76px 0 68px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); gap: 28px 22px; }
  .preview-wrap { grid-template-columns: 1fr; gap: 40px; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  h1 { font-size: 34px; }
  h2 { font-size: 26px; }
  section { padding: 60px 0; }
  .hero { padding: 56px 0 56px; }
  .hero p.lede { font-size: 18px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; gap: 30px; }
  .section-head { margin-bottom: 40px; }
  .problem-card { padding: 30px 24px; }
  .problem-card p { font-size: 17px; }
  .header-inner { min-height: 64px; }
  .logo img { height: 26px; }
  .site-nav { gap: 16px; }
  .site-nav .nav-link { font-size: 15px; }
  .btn { font-size: 15px; padding: 13px 18px; }
  .hero-actions { flex-direction: column; gap: 18px; }
  .hero-actions .btn { width: 100%; max-width: 320px; }
  .email-body { padding: 24px 20px 28px; }
  .form-card { padding: 26px 22px 24px; }
  .band { padding: 64px 0; }
  .band h2 { font-size: 28px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 22px; }
  .notfound { padding: 80px 0 90px; }
  .notfound .code { font-size: 64px; }
}

/* Everything still has to fit across a 375 pixel phone. */
@media (max-width: 460px) {
  :root { --gutter: 18px; }
  h1 { font-size: 30px; }
  .logo img { height: 22px; }
  .site-nav { gap: 13px; }
  .site-nav .nav-link { font-size: 14px; }
  .btn-small { padding: 10px 13px; font-size: 13px; }
  .email-subject { display: none; }
  .email-body { padding: 22px 16px 26px; }
  .band h2 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
