/* ============= Sendly ============= */
:root {
  --bg: #FFF6E8;
  --bg-2: #FFE9C7;
  --ink: #1B1530;
  --ink-soft: #5A4F76;
  --line: #1B1530;
  --paper: #FFFFFF;

  --pink: #FF4FA3;
  --yellow: #FFD23F;
  --mint: #5BE0B8;
  --sky: #66B6FF;
  --plum: #7A4DFF;
  --tomato: #FF6B4A;

  --shadow: 4px 4px 0 var(--line);
  --shadow-lg: 8px 8px 0 var(--line);
  --shadow-soft: 0 18px 40px -18px rgba(27, 21, 48, 0.35);

  --radius: 18px;
  --radius-lg: 28px;

  --font-display: "Bricolage Grotesque", "Schibsted Grotesk", system-ui, sans-serif;
  --font-body: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  --font-hand: "Caveat", "Comic Sans MS", cursive;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

/* ---- Condolence mode shifts the entire palette ---- */
.mode-solemn {
  --bg: #ECECE4;
  --bg-2: #DDD9CF;
  --ink: #2A2735;
  --ink-soft: #5A5566;
  --paper: #F7F4ED;

  --pink: #9AA3B5;
  --yellow: #C6BFA8;
  --mint: #8FA68E;
  --sky: #91A6BD;
  --plum: #6B5B73;
  --tomato: #A37060;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  transition: background 0.6s ease, color 0.6s ease;
  overflow-x: hidden;
}

button { font-family: inherit; cursor: pointer; }

/* ---- Decorative noise / texture on bg ---- */
.bg-texture {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 8% 12%, color-mix(in oklch, var(--yellow) 60%, transparent) 0, transparent 28%),
    radial-gradient(circle at 92% 8%, color-mix(in oklch, var(--mint) 50%, transparent) 0, transparent 24%),
    radial-gradient(circle at 80% 88%, color-mix(in oklch, var(--pink) 40%, transparent) 0, transparent 28%),
    radial-gradient(circle at 12% 92%, color-mix(in oklch, var(--sky) 45%, transparent) 0, transparent 26%);
  transition: opacity 0.6s ease;
}
.mode-solemn .bg-texture { opacity: 0.55; }

/* ---- Floating doodles ---- */
.doodle {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.mode-solemn .doodle { opacity: 0.25; }
.doodle.d1 { top: 70px;  left: 24px; animation: bob 6s ease-in-out infinite; }
.doodle.d2 { top: 140px; right: 36px; animation: bob 7s ease-in-out infinite reverse; }
.doodle.d3 { bottom: 80px; left: 40px; animation: bob 8s ease-in-out infinite; }
.doodle.d4 { bottom: 120px; right: 80px; animation: bob 5s ease-in-out infinite reverse; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-14px) rotate(calc(var(--r, 0deg) + 6deg)); }
}

/* ============= LAYOUT ============= */
.shell { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 28px 36px 80px; }

/* ---- Header ---- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.logo-mark {
  width: 44px; height: 44px;
  background: var(--pink);
  border: 2.5px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: grid; place-items: center;
  transform: rotate(-6deg);
  position: relative;
}
.logo-mark::after {
  content: "";
  position: absolute; inset: 6px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--yellow);
}
.logo-mark span {
  position: relative; z-index: 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--line);
}

.topbar-right { display: flex; gap: 10px; align-items: center; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow);
  transition: transform 0.1s ease;
}
.chip:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--line); }
.chip:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--line); }
.chip select {
  background: transparent; border: none; outline: none;
  font: inherit; color: inherit;
  appearance: none; padding-right: 14px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 6px) 50%, calc(100% - 2px) 50%;
  background-size: 4px 4px;
  background-repeat: no-repeat;
}

/* ---- Hero ---- */
.hero { margin-top: 48px; text-align: center; max-width: 880px; margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--mint);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
.hero h1 .wig {
  display: inline-block;
  position: relative;
  padding: 0 12px;
  background: var(--yellow);
  border: 3px solid var(--line);
  border-radius: 20px;
  transform: rotate(-2deg);
  margin: 0 4px;
  box-shadow: var(--shadow);
}
.hero h1 .wig.alt { background: var(--pink); color: var(--paper); transform: rotate(2deg); }
.hero h1 .squiggle { display: inline-block; }
.hero p.sub {
  margin-top: 22px;
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink-soft);
  font-weight: 500;
  text-wrap: pretty;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.hero .price-line {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 6px 8px 6px 18px;
  font-weight: 600;
  font-size: 15px;
  box-shadow: var(--shadow);
}
.price-line .price-pill {
  background: var(--plum); color: var(--paper);
  border-radius: 999px;
  padding: 4px 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
}

/* ============= MAIN COMPOSER ============= */
.composer {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 980px) {
  .composer { grid-template-columns: 1fr; }
}

/* ---- Wizard card ---- */
.wizard {
  background: var(--paper);
  border: 2.5px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.wizard-head {
  padding: 18px 24px;
  border-bottom: 2px solid var(--line);
  background: var(--bg-2);
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
}
.step-dots { display: flex; gap: 8px; align-items: center; }
.step-dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--paper);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: var(--ink-soft);
  transition: all 0.2s ease;
}
.step-dot.done { background: var(--mint); color: var(--ink); }
.step-dot.active { background: var(--pink); color: var(--paper); transform: scale(1.12); box-shadow: var(--shadow); }
.step-tick { stroke: var(--ink); stroke-width: 2.5; fill: none; }

.step-line { flex: 1; height: 2px; background: var(--line); position: relative; min-width: 12px; max-width: 22px; }

.wizard-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  margin-left: auto;
  letter-spacing: -0.02em;
}
.wizard-title small {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0;
}

.wizard-body { padding: 32px 28px 24px; min-height: 380px; }

/* ---- Form controls ---- */
.field { display: block; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.field-row.thin { grid-template-columns: 2fr 1fr; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.label .opt {
  font-weight: 500;
  font-size: 11px;
  color: var(--ink-soft);
  margin-left: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.label .req { color: var(--tomato); }

.input, .textarea, .select {
  width: 100%;
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  transition: all 0.15s ease;
  box-shadow: 3px 3px 0 var(--line);
}
.input:focus, .textarea:focus, .select:focus {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--line);
  background: var(--paper);
}
.textarea { resize: vertical; min-height: 96px; font-family: inherit; }
.select { appearance: none; cursor: pointer; padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 18px, calc(100% - 14px) 18px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.input::placeholder, .textarea::placeholder { color: color-mix(in oklch, var(--ink-soft) 70%, transparent); }

.occasion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 560px) { .occasion-grid { grid-template-columns: repeat(2, 1fr); } }
.occ {
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 14px 10px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  box-shadow: 3px 3px 0 var(--line);
}
.occ:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--line); }
.occ.selected { background: var(--paper); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--line); }
.occ.selected::after {
  content: "✓";
  position: absolute;
  top: -8px; right: -8px;
  width: 24px; height: 24px;
  background: var(--mint);
  border: 2px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 13px;
}
.occ-emoji { font-size: 28px; line-height: 1; display: block; margin-bottom: 6px; }
.occ-name { font-size: 13px; font-weight: 700; }

/* ---- Message mode segmented ---- */
.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 4px;
  box-shadow: 3px 3px 0 var(--line);
}
.seg-btn {
  background: transparent;
  border: none;
  padding: 10px 8px;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-soft);
  border-radius: 10px;
  transition: all 0.15s ease;
  font-family: inherit;
}
.seg-btn.active { background: var(--ink); color: var(--paper); }
.seg-btn:hover:not(.active) { color: var(--ink); }

/* ---- Channel radio ---- */
.channels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.channel {
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 3px 3px 0 var(--line);
  transition: all 0.15s ease;
}
.channel:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--line); }
.channel.selected { background: var(--paper); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--line); }
.channel-icon {
  width: 40px; height: 40px;
  border: 2px solid var(--line);
  border-radius: 12px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.channel.email .channel-icon { background: var(--sky); }
.channel.sms .channel-icon { background: var(--mint); }
.channel-title { font-weight: 800; font-size: 15px; }
.channel-sub { font-size: 12px; color: var(--ink-soft); }

/* ---- Pay ---- */
.pay-summary {
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 3px 3px 0 var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.pay-summary-left { font-size: 14px; }
.pay-summary-left .row { display: flex; gap: 8px; color: var(--ink-soft); margin-top: 2px; font-size: 13px; }
.pay-summary-left strong { color: var(--ink); }
.pay-total {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  background: var(--yellow);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 4px 14px;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}
.pay-total small { font-family: var(--font-body); font-size: 11px; font-weight: 600; display: block; margin-top: -2px; color: var(--ink-soft); letter-spacing: 0.04em; transform: rotate(2deg); }

.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.pay-method {
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  padding: 14px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 3px 3px 0 var(--line);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.1s ease;
}
.pay-method:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--line); }
.pay-method:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); }

.divider-or {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 14px 0;
}
.divider-or::before, .divider-or::after {
  content: "";
  flex: 1;
  height: 2px;
  background: color-mix(in oklch, var(--ink) 12%, transparent);
}

/* ---- Footer nav ---- */
.wizard-foot {
  border-top: 2px dashed color-mix(in oklch, var(--ink) 22%, transparent);
  padding: 18px 24px;
  background: color-mix(in oklch, var(--bg) 50%, var(--paper));
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.btn {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
  padding: 12px 22px;
  border: 2.5px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: all 0.1s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--line); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--line); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.pink { background: var(--pink); color: var(--paper); }
.btn.big {
  font-size: 19px;
  padding: 14px 28px;
}
.btn[disabled] { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: var(--shadow); }
.btn-ghost {
  background: transparent;
  border: 2.5px dashed color-mix(in oklch, var(--ink) 30%, transparent);
  box-shadow: none;
  color: var(--ink-soft);
}
.btn-ghost:hover { box-shadow: none; transform: translate(-1px, -1px); color: var(--ink); border-color: var(--line); }

/* ============= PREVIEW ============= */
.preview-wrap {
  position: sticky;
  top: 24px;
}
.preview-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
  margin-left: 6px;
}
.preview-label::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--tomato);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* postcard */
.postcard {
  background: var(--paper);
  border: 2.5px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px 26px 26px;
  position: relative;
  overflow: hidden;
  transform: rotate(-1.2deg);
  transition: transform 0.4s ease;
}
.postcard:hover { transform: rotate(0deg); }
.postcard::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--yellow);
  opacity: 0.6;
}
.postcard::after {
  content: "";
  position: absolute;
  bottom: -50px; left: -30px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: var(--pink);
  opacity: 0.25;
}
.mode-solemn .postcard::before, .mode-solemn .postcard::after { opacity: 0.35; }

.postcard-head {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--ink-soft);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}
.stamp {
  width: 56px; height: 64px;
  background: var(--mint);
  border: 2.5px dashed var(--line);
  border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  line-height: 1.1;
  text-align: center;
  transform: rotate(8deg);
  padding: 4px;
  position: relative; z-index: 2;
}
.postcard-occasion {
  position: relative; z-index: 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin-bottom: 4px;
}
.postcard-to {
  position: relative; z-index: 1;
  font-family: var(--font-hand);
  font-size: 26px;
  color: var(--plum);
  line-height: 1;
  margin-bottom: 18px;
}
.postcard-body {
  position: relative; z-index: 1;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink);
  text-wrap: pretty;
  min-height: 100px;
  white-space: pre-wrap;
}
.postcard-sig {
  position: relative; z-index: 1;
  margin-top: 18px;
  font-family: var(--font-hand);
  font-size: 28px;
  color: var(--tomato);
  line-height: 1;
}

/* email mockup */
.email-mock {
  background: var(--paper);
  border: 2.5px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.email-bar {
  background: var(--bg-2);
  border-bottom: 2px solid var(--line);
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}
.email-bar .row { display: flex; gap: 10px; padding: 2px 0; }
.email-bar .row strong { color: var(--ink); min-width: 56px; display: inline-block; }
.email-body { padding: 20px; }

/* sms mockup */
.sms-mock {
  background: var(--paper);
  border: 2.5px solid var(--line);
  border-radius: 36px;
  box-shadow: var(--shadow-lg);
  padding: 24px 16px 20px;
  max-width: 320px;
  margin: 0 auto;
  position: relative;
}
.sms-mock::before {
  content: "";
  position: absolute;
  top: 8px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 6px;
  background: var(--ink);
  border-radius: 999px;
}
.sms-header {
  text-align: center;
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 12px;
  padding-top: 8px;
}
.sms-header strong { display: block; color: var(--ink); font-size: 14px; }
.sms-bubble {
  background: var(--sky);
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: 18px 18px 18px 4px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
  max-width: 86%;
  margin-bottom: 8px;
  white-space: pre-wrap;
}
.sms-bubble.sendly {
  background: var(--mint);
  border-radius: 18px 4px 18px 18px;
  margin-left: auto;
  font-size: 12px;
  padding: 8px 12px;
}

/* ============= SUCCESS STATE ============= */
.success {
  background: var(--paper);
  border: 2.5px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 56px 32px;
  text-align: center;
}
.success-check {
  width: 100px; height: 100px;
  background: var(--mint);
  border: 3px solid var(--line);
  border-radius: 50%;
  margin: 0 auto 24px;
  display: grid; place-items: center;
  box-shadow: var(--shadow);
  animation: pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pop {
  0% { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.success h2 {
  font-family: var(--font-display);
  font-size: 44px;
  margin: 0;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.success p { color: var(--ink-soft); font-size: 17px; margin: 10px 0 24px; }
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============= CONFETTI ============= */
.confetti-stage {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 99;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  top: -20px;
  width: 12px; height: 16px;
  border-radius: 3px;
  animation: fall 2.2s linear forwards;
}
@keyframes fall {
  0% { transform: translateY(-20px) rotate(0); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0.6; }
}

/* ============= SUPPORT BAR ============= */
.support-row {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 760px) { .support-row { grid-template-columns: repeat(2, 1fr); } }
.support-tile {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.support-tile h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  margin: 6px 0 4px;
  letter-spacing: -0.02em;
}
.support-tile p { margin: 0; font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.support-icon {
  width: 36px; height: 36px;
  border: 2px solid var(--line);
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 18px;
  font-weight: 800;
}

/* ============= FOOTER ============= */
.foot {
  margin-top: 80px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
}
.foot strong { color: var(--ink); }

/* hide focus rings for mouse users but keep keyboard */
*:focus-visible { outline: 3px solid var(--plum); outline-offset: 2px; }

/* ============= PAYPAL BUTTONS ============= */
.paypal-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pp-btn {
  width: 100%;
  border: 1.5px solid #2C2E2F;
  border-radius: 24px;
  padding: 13px 18px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14.5px;
  background: #FFC439;
  color: #111;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.05s ease;
  position: relative;
  min-height: 48px;
}
.pp-btn:hover { filter: brightness(0.96); }
.pp-btn:active { transform: scale(0.99); }
.pp-btn:disabled { opacity: 0.65; cursor: progress; }
.pp-paypal { background: #FFC439; }
.pp-card   { background: #2C2E2F; color: #fff; margin-top: 8px; }
.pp-card-submit { background: #2C2E2F; color: #fff; }

.pp-or {
  display: flex; align-items: center; gap: 12px;
  margin: 14px 0 10px;
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.pp-or::before, .pp-or::after {
  content: ""; flex: 1; height: 1.5px;
  background: color-mix(in oklch, var(--ink) 12%, transparent);
}
.pp-card-form { margin-top: 10px; }
.pp-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
  font-family: var(--font-mono);
}

.pp-spinner {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(0,0,0,0.2);
  border-top-color: currentColor;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============= RTL ADJUSTMENTS ============= */
[dir="rtl"] .logo-mark { transform: rotate(6deg); }
[dir="rtl"] .stamp { transform: rotate(-8deg); }
[dir="rtl"] .postcard { transform: rotate(1.2deg); }
[dir="rtl"] .pay-total { transform: rotate(2deg); }
[dir="rtl"] .pay-total small { transform: rotate(-2deg); }
[dir="rtl"] .hero h1 .wig { transform: rotate(2deg); }
[dir="rtl"] .hero h1 .wig.alt { transform: rotate(-2deg); }
[dir="rtl"] .sms-bubble {
  border-radius: 18px 18px 4px 18px;
}
[dir="rtl"] .sms-bubble.sendly {
  border-radius: 4px 18px 18px 18px;
  margin-left: 0; margin-right: auto;
}

/* Language-specific font tweaks — bigger sizes for CJK + RTL */
html[lang="ar"] body, html[lang="zh"] body, html[lang="ja"] body, html[lang="ko"] body {
  font-feature-settings: normal;
}
html[lang="ar"] .hero h1, html[lang="ja"] .hero h1, html[lang="zh"] .hero h1, html[lang="ko"] .hero h1 {
  letter-spacing: 0;
}

/* Animations for entrance */
.fade-in { animation: fadeIn 0.35s ease both; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ===================== Music widget (fixed bottom-right) ===================== */
.music-widget {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 8px;
  background: var(--paper, #fffaf2);
  border: 2px solid var(--ink, #111);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink, #111);
  font-family: var(--font-body, system-ui, sans-serif);
  cursor: default;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  max-width: min(320px, calc(100vw - 40px));
}
.music-widget:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink, #111); }

.music-widget.muted { opacity: 0.7; }

.music-btn {
  appearance: none;
  background: var(--ink, #111);
  color: var(--paper, #fffaf2);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.music-btn:hover { background: var(--plum, #7A4DFF); }
.music-btn.music-skip { background: transparent; color: var(--ink, #111); width: 28px; height: 28px; font-size: 14px; }
.music-btn.music-skip:hover { background: color-mix(in oklch, var(--ink, #111) 10%, transparent); }

.music-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.music-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft, #6b6b6b);
  font-weight: 600;
}
.music-track {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #111);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tap-to-start variant — looks like a single inviting button */
.music-widget.music-needs-tap {
  cursor: pointer;
  background: var(--yellow, #FFD23F);
  animation: musicWiggle 2.4s ease-in-out infinite;
}
.music-widget.music-needs-tap:hover { animation-play-state: paused; }
.music-widget.music-needs-tap .music-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink, #111); color: var(--paper, #fffaf2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
@keyframes musicWiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-2deg); }
  75% { transform: rotate(2deg); }
}

/* Equalizer "now playing" indicator */
.music-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}
.music-eq i {
  display: block;
  width: 3px;
  background: currentColor;
  border-radius: 1px;
  animation: musicEq 0.9s ease-in-out infinite;
}
.music-eq i:nth-child(1) { height: 60%; animation-delay: 0s; }
.music-eq i:nth-child(2) { height: 100%; animation-delay: 0.2s; }
.music-eq i:nth-child(3) { height: 75%; animation-delay: 0.4s; }
@keyframes musicEq {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

@media (max-width: 540px) {
  .music-widget { bottom: 12px; left: 12px; padding: 6px 10px 6px 6px; }
  .music-btn { width: 32px; height: 32px; font-size: 14px; }
  .music-track { font-size: 12px; max-width: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  .music-widget.music-needs-tap { animation: none; }
  .music-eq i { animation: none; transform: scaleY(0.7); }
}
