:root {
  --ink: #1f1b18;
  --muted: #72695f;
  --line: #e7ded2;
  --paper: #fbf8f3;
  --paper-2: #f5efe7;
  --gold: #aa8350;
  --gold-dark: #8f693b;
  --accent: #6d273f;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 24px 70px -36px rgba(46, 31, 18, .42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Jost", "Segoe UI", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
}
body::selection { background: #eadac3; }
a { color: var(--accent); }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }
.narrow-wide { max-width: 860px; }

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 0;
  border-bottom: 1px solid rgba(231,222,210,.9);
  background: rgba(251,248,243,.92);
  backdrop-filter: blur(14px);
}
.nav-wrap { display: flex; align-items: center; gap: 24px; }
.brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 29px;
  line-height: 1;
  letter-spacing: .045em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.brand span { color: var(--gold); }
.main-nav { display: flex; gap: 24px; align-items: center; margin-left: auto; }
.main-nav a { color: #534b43; text-decoration: none; font-size: 14px; }
.main-nav a:hover { color: var(--ink); }
.nav-cta { margin-left: 2px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  padding: 13px 24px;
  min-height: 46px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  letter-spacing: .025em;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(0,0,0,.35); }
.btn.gold { background: var(--gold); }
.btn.gold:hover { background: var(--gold-dark); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.sm { min-height: 38px; padding: 9px 17px; font-size: 13px; }

.hero { text-align: center; }
.hero-home { padding: 84px 0 72px; overflow: hidden; position: relative; }
.hero-home::before {
  content: "";
  position: absolute;
  width: 620px; height: 620px;
  border-radius: 50%;
  right: -220px; top: -220px;
  background: radial-gradient(circle, rgba(182,143,92,.16), rgba(182,143,92,0) 68%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 66px; align-items: center; text-align: left; }
.hero-copy { max-width: 650px; }
.hero h1,
.section h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: -.025em;
  color: #211b17;
}
.hero h1 {
  font-size: clamp(46px, 6.5vw, 78px);
  line-height: .98;
  margin: 0 0 22px;
}
.hero p { color: var(--muted); max-width: 640px; margin: 0; font-size: 18px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 14px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.center-actions { justify-content: center; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 24px; color: #6e655b; font-size: 13px; }
.trust-row span::before { content: "✓"; color: var(--gold-dark); margin-right: 6px; font-weight: 700; }

.hero-preview { min-height: 540px; position: relative; display: grid; place-items: center; }
.preview-glow {
  position: absolute;
  inset: 9% 2% 6%;
  border-radius: 50%;
  background: radial-gradient(circle, #eadbc6, #f6efe5 56%, transparent 72%);
}
.mini-phone {
  position: relative;
  z-index: 2;
  width: 292px;
  min-height: 520px;
  background: #fdf9f1;
  border: 9px solid #24201d;
  border-radius: 42px;
  padding: 23px 15px 17px;
  box-shadow: 0 36px 70px -26px rgba(39,26,15,.45);
  transform: rotate(2deg);
}
.mini-top { position: absolute; top: 8px; left: 0; right: 0; text-align: center; }
.mini-top span { display: inline-block; width: 72px; height: 6px; border-radius: 10px; background: #24201d; opacity: .9; }
.mini-invite {
  height: 100%;
  min-height: 470px;
  border: 1px solid #d7c6a7;
  border-radius: 26px;
  padding: 74px 22px 32px;
  text-align: center;
  background: linear-gradient(180deg,#fffdf8,#f4e7cf);
  color: #634d2a;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mini-kicker { font-size: 9px; text-transform: uppercase; letter-spacing: .25em; margin-bottom: 25px; }
.mini-script { font-family: "Cormorant Garamond", Georgia, serif; font-size: 38px; line-height: 1.03; }
.mini-script em { display: block; font-size: 19px; font-weight: 400; margin: 5px 0; }
.mini-line { width: 62%; height: 1px; background: #b08b4f; opacity: .4; margin: 25px 0; }
.mini-invite strong { font-size: 13px; letter-spacing: .05em; }
.mini-invite small { margin-top: 9px; font-size: 11px; color: #745f3b; }
.mini-invite button {
  margin-top: auto;
  border: 0;
  border-radius: 999px;
  background: #b08b4f;
  color: #fff;
  padding: 11px 18px;
  cursor: pointer;
}
.floating-note {
  position: absolute;
  z-index: 4;
  background: rgba(255,255,255,.9);
  border: 1px solid #e7ded2;
  border-radius: 999px;
  padding: 10px 15px;
  font-size: 12px;
  box-shadow: var(--shadow);
}
.note-one { top: 17%; left: 2%; }
.note-two { bottom: 14%; right: 0; }

.section { padding: 88px 0; }
.section.compact { padding: 18px 0; }
.section-head { margin-bottom: 34px; }
.section-head h2 { margin: 0; font-size: clamp(38px, 5vw, 58px); line-height: 1.04; }
.section-head p { color: var(--muted); margin: 12px 0 0; font-size: 17px; }
.split-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 44px; align-items: end; }
.split-head p { max-width: 480px; justify-self: end; }
.center-head { text-align: center; }
.center-head p { margin-left: auto; margin-right: auto; max-width: 650px; }

.feature-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.5); }
.feature-strip-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.feature-strip-grid div { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-right: 1px solid var(--line); }
.feature-strip-grid div:last-child { border-right: 0; }
.feature-strip-grid b { color: var(--gold-dark); font-family: "Cormorant Garamond", serif; font-size: 20px; font-weight: 500; }
.feature-strip-grid span { font-size: 13px; color: #5f564d; }

.template-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.template-filters button {
  border: 1px solid var(--line);
  background: #fff;
  color: #5f564d;
  padding: 8px 13px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
}
.template-filters button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.template-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0,1fr)); }
.template-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.template-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.template-demo-link { display: block; text-decoration: none; color: inherit; }
.thumb { height: 250px; display: grid; place-items: center; text-align: center; padding: 22px; position: relative; }
.thumb::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid currentColor;
  opacity: .17;
  border-radius: 4px;
}
.thumb > div { position: relative; z-index: 2; }
.thumb b {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  display: block;
  line-height: 1.04;
}
.thumb i { display:block; font-style: normal; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; opacity: .76; margin-bottom: 8px; }
.preview-chip { display: inline-block; margin-top: 17px; padding: 7px 10px; border: 1px solid currentColor; border-radius: 999px; font-size: 10px; opacity: .75; background: rgba(255,255,255,.15); }
.template-card .body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.template-card .body h3 { margin: 0 0 5px; font-size: 18px; }
.template-card .body p { margin: 0; font-size: 14px; color: var(--muted); }
.pill { display: inline-block; align-self: flex-start; font-size: 10px; letter-spacing: .11em; text-transform: uppercase; background: #f4eee5; color: var(--gold-dark); border-radius: 999px; padding: 4px 9px; margin-bottom: 10px; }
.template-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.text-link { font-size: 13px; color: #61584f; text-decoration: none; border-bottom: 1px solid #bfb3a5; }

/* Thumbnail themes */
.t-royal-wedding { background: linear-gradient(160deg, #fffdf8, #f2dfbd); color: #6b5327; }
.t-floral-wedding { background: linear-gradient(160deg, #fff7f7, #efd0d8); color: #8d5566; }
.t-midnight-engagement { background: linear-gradient(160deg, #17203b, #344574); color: #e7d3a8; }
.t-birthday-confetti { background: linear-gradient(160deg, #fff3d6, #ffd2e1); color: #b03a67; }
.t-housewarming-warm { background: linear-gradient(160deg, #fff0df, #efc199); color: #8a4a22; }
.t-baby-shower { background: linear-gradient(160deg, #f2fbf7, #cde8dd); color: #3d7b66; }
.t-emerald-nikah { background: linear-gradient(160deg, #173f36, #0d2c27); color: #e5d0a0; }
.t-ivory-editorial { background: linear-gradient(160deg, #fff, #e8e4dc); color: #171717; }
.t-desert-luxe { background: linear-gradient(160deg, #f9eadc, #d5a886); color: #754b36; }
.t-garden-bloom { background: linear-gradient(160deg, #fbfdf8, #ceddc9); color: #4a6b50; }
.t-blue-baby { background: linear-gradient(160deg, #fff, #d5eaf7); color: #52748e; }
.t-graduation-classic { background: linear-gradient(160deg, #13213d, #293e66); color: #e2c97e; }

.dark-section { background: #211d1a; color: #f7f1e9; }
.dark-section h2 { color: #fff9f2; }
.dark-section .eyebrow { color: #d6b887; }
.dark-section .section-head p { color: #bfb5aa; }
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.steps-grid article { padding: 28px; border: 1px solid #463e38; border-radius: var(--radius); background: #28231f; }
.steps-grid span { font-family: "Cormorant Garamond", serif; color: #d5b27a; font-size: 34px; }
.steps-grid h3 { margin: 18px 0 8px; font-size: 18px; }
.steps-grid p { margin: 0; color: #bfb5aa; font-size: 14px; }

.experience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.experience-copy h2 { margin: 0 0 18px; font-size: clamp(38px,5vw,56px); line-height: 1.05; }
.experience-copy > p { color: var(--muted); font-size: 17px; }
.check-list { list-style: none; padding: 0; margin: 26px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.check-list li { position: relative; padding-left: 24px; font-size: 14px; }
.check-list li::before { content:"✓"; position:absolute; left:0; color:var(--gold-dark); font-weight:700; }
.text-arrow { color: var(--accent); text-decoration: none; font-weight: 600; }
.compare-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow); }
.compare-row { padding: 22px; border-radius: 17px; display: grid; gap: 12px; }
.compare-row + .compare-row { margin-top: 12px; }
.compare-row span { font-family: "Cormorant Garamond", serif; font-size: 27px; }
.compare-row b { font-size: 13px; font-weight: 500; }
.muted-side { background: #f5f0ea; color: #776d63; }
.strong-side { background: #28211c; color: #fff4e5; }
.strong-side b::before { content:"✓"; color:#d5b27a; margin-right:8px; }
.muted-side b::before { content:"×"; color:#9b8e81; margin-right:8px; }

.soft-section { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.seo-copy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.seo-copy-grid h2 { margin: 0; font-size: clamp(36px,4vw,52px); line-height: 1.07; }
.seo-copy-grid p { color: var(--muted); margin-top: 0; font-size: 16px; }

.faq-list { display: grid; gap: 11px; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.faq-list summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content:"+"; float:right; color:var(--gold-dark); font-size:20px; font-weight:400; }
.faq-list details[open] summary::after { content:"–"; }
.faq-list details p { margin: 0 0 18px; color: var(--muted); }
.final-cta { padding-top: 30px; }
.final-cta h2 { margin: 0; font-size: clamp(42px,5vw,58px); }
.final-cta p { color: var(--muted); }

/* Interior page hero */
.page-hero { padding: 72px 0 42px; text-align: center; }
.page-hero h1 { font-family:"Cormorant Garamond",serif; font-size:clamp(42px,6vw,66px); line-height:1.02; margin:0 auto 18px; font-weight:500; max-width:900px; }
.page-hero p { max-width:760px; margin:0 auto; color:var(--muted); font-size:18px; }
.content-grid { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:52px; align-items:start; }
.prose { font-size:16px; }
.prose h2 { font-family:"Cormorant Garamond",serif; font-size:36px; line-height:1.1; margin:44px 0 14px; font-weight:500; }
.prose h3 { font-size:19px; margin:28px 0 10px; }
.prose p, .prose li { color:#5f574f; }
.prose a { color:var(--accent); }
.sidebar-card { position:sticky; top:96px; background:#fff; border:1px solid var(--line); border-radius:18px; padding:22px; }
.sidebar-card h3 { margin-top:0; }
.sidebar-card p { color:var(--muted); font-size:14px; }
.page-template-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; margin-top:28px; }
.page-template-grid .template-card .thumb { height:210px; }

/* Forms */
form.panel { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:30px; margin-bottom:60px; box-shadow:0 16px 50px -34px rgba(40,30,18,.35); }
fieldset { border:0; padding:0; margin:0 0 26px; }
legend { font-size:11px; letter-spacing:.2em; text-transform:uppercase; color:var(--gold-dark); margin-bottom:12px; padding:0; font-weight:600; }
.row { display:grid; gap:16px; grid-template-columns:1fr 1fr; }
label { display:block; font-size:14px; margin-bottom:16px; }
label span { display:block; margin-bottom:6px; color:var(--muted); }
input, textarea, select { width:100%; padding:12px 13px; border:1px solid var(--line); border-radius:11px; background:#fdfbf8; color:var(--ink); }
input:focus, textarea:focus, select:focus { outline:2px solid #e3cfa5; border-color:var(--gold); }
textarea { min-height:100px; resize:vertical; }
.error { background:#fdecec; border:1px solid #f3c3c3; color:#8c2b2b; border-radius:12px; padding:12px 16px; margin-bottom:20px; font-size:14px; }

/* Success */
.linkbox { display:flex; gap:10px; align-items:center; flex-wrap:wrap; background:#fff; border:1px dashed var(--gold); border-radius:12px; padding:14px 16px; }
.linkbox code { font-size:15px; word-break:break-all; }
.share { display:flex; gap:10px; flex-wrap:wrap; margin-top:18px; }
.qr { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:18px; text-align:center; }
.qr img { width:220px; height:220px; display:block; margin:0 auto 12px; }

footer.site { margin-top: 32px; border-top:1px solid var(--line); padding:52px 0 24px; background:#f6f0e8; }
.footer-grid { display:grid; grid-template-columns:1.3fr .8fr .8fr; gap:50px; }
.footer-grid p { color:var(--muted); max-width:340px; font-size:14px; }
.footer-grid strong { display:block; margin-bottom:12px; font-size:13px; }
.footer-grid > div:nth-child(n+2) a { display:block; color:#665d54; text-decoration:none; font-size:13px; margin:8px 0; }
.footer-brand { display:inline-block; margin-bottom:10px; }
.footer-bottom { margin-top:40px; padding-top:20px; border-top:1px solid var(--line); color:#857b71; font-size:12px; }

@media (max-width: 980px) {
  .main-nav { display:none; }
  .nav-cta { margin-left:auto; }
  .hero-grid { grid-template-columns:1fr; gap:40px; text-align:center; }
  .hero-copy { margin:0 auto; }
  .hero-copy p { margin-left:auto; margin-right:auto; }
  .hero-actions, .trust-row { justify-content:center; }
  .hero-preview { min-height:500px; }
  .template-grid { grid-template-columns:repeat(2,1fr); }
  .experience-grid, .seo-copy-grid, .content-grid { grid-template-columns:1fr; }
  .sidebar-card { position:static; }
  .footer-grid { grid-template-columns:1.2fr 1fr 1fr; gap:28px; }
}

@media (max-width: 720px) {
  .wrap { padding:0 16px; }
  header.site { padding:13px 0; }
  .brand { font-size:25px; }
  .nav-cta { font-size:12px; padding:8px 13px; min-height:36px; }
  .hero-home { padding:58px 0 48px; }
  .hero h1 { font-size:clamp(44px,14vw,62px); }
  .hero p { font-size:16px; }
  .hero-preview { min-height:470px; }
  .mini-phone { width:260px; min-height:470px; }
  .mini-invite { min-height:420px; }
  .floating-note { font-size:10px; padding:8px 11px; }
  .note-one { left:0; }
  .note-two { right:0; }
  .feature-strip-grid { grid-template-columns:1fr 1fr; }
  .feature-strip-grid div { border-bottom:1px solid var(--line); }
  .feature-strip-grid div:nth-child(2) { border-right:0; }
  .feature-strip-grid div:nth-child(n+3) { border-bottom:0; }
  .section { padding:64px 0; }
  .split-head { grid-template-columns:1fr; gap:14px; }
  .split-head p { justify-self:start; }
  .template-grid { grid-template-columns:1fr; }
  .thumb { height:260px; }
  .steps-grid { grid-template-columns:1fr; }
  .check-list { grid-template-columns:1fr; }
  .page-template-grid { grid-template-columns:1fr; }
  .row { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; }
}

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


.lang-switch { display:flex; gap:6px; align-items:center; margin-left: 6px; }
.lang-switch a { text-decoration:none; color:#6b6157; font-size:11px; border:1px solid var(--line); padding:6px 8px; border-radius:999px; }
.lang-switch a.active { background:var(--ink); color:#fff; border-color:var(--ink); }
.pill-row { display:flex; gap:8px; flex-wrap:wrap; margin-bottom: 10px; }
.pill.soft { background:#fbf8f3; color:#6f665b; }
.hero-golden { background: linear-gradient(180deg,#fffef8,#f2e5cb); color:#6a5124; border-color:#d8c08d; }
.t-opening-envelope::before, .t-opening-ribbon::before, .t-opening-doors::before, .t-opening-gate::before { content:""; position:absolute; width:110px; height:110px; opacity:.12; }
.t-opening-envelope::before { border:1px solid currentColor; transform:rotate(45deg); }
.t-opening-ribbon::before { background: linear-gradient(currentColor,currentColor), linear-gradient(currentColor,currentColor); background-size: 100% 14px, 14px 100%; background-position:center; background-repeat:no-repeat; }
.t-opening-doors::before { border-left: 34px solid currentColor; border-right: 34px solid currentColor; border-top: 48px solid transparent; border-bottom: 48px solid transparent; width:0;height:0; opacity:.18; }
.t-opening-gate::before { border:8px solid currentColor; border-bottom-width:12px; border-radius: 44px 44px 16px 16px; }
.t-golden-gate { background: linear-gradient(160deg, #fffef7, #ebd6a0); color: #7a5a22; }
.t-royal-doors { background: linear-gradient(160deg, #fffaf2, #d9b097); color: #7d4d39; }
.t-pearl-ribbon { background: linear-gradient(160deg, #fff, #e8d1d8); color: #8f6676; }
.t-moonlit-gate { background: linear-gradient(160deg, #17223d, #385071); color: #dcc27d; }
.t-blush-ribbon { background: linear-gradient(160deg, #fff6f8, #f8bfd1); color: #b05a78; }
.t-house-doors { background: linear-gradient(160deg, #fff4e7, #e0b792); color: #915a40; }

html[dir="rtl"] body { font-family: "Tajawal", "Jost", sans-serif; }
html[dir="rtl"] .hero-grid,
html[dir="rtl"] .split-head,
html[dir="rtl"] .experience-grid,
html[dir="rtl"] .seo-copy-grid,
html[dir="rtl"] .content-grid { direction: rtl; text-align: right; }
html[dir="rtl"] .main-nav { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .trust-row span::before,
html[dir="rtl"] .check-list li::before { margin-right:0; margin-left:6px; }
html[dir="rtl"] .check-list li { padding-left:0; padding-right:24px; }
html[dir="rtl"] .check-list li::before { left:auto; right:0; }
html[dir="rtl"] .faq-list summary::after { float:left; }
html[dir="rtl"] .hero-actions, html[dir="rtl"] .trust-row { justify-content:flex-start; }
html[dir="rtl"] .text-arrow { display:inline-block; }

@media (max-width: 980px) {
  .lang-switch { margin-left:auto; }
}
@media (max-width: 720px) {
  .lang-switch { display:none; }
}


/* V4 opening showcase */
.opening-showcase { padding-top: 74px; padding-bottom: 48px; background: linear-gradient(180deg, rgba(255,255,255,.35), transparent); }
.opening-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.opening-card { text-decoration:none; color:var(--ink); background:#fff; border:1px solid var(--line); border-radius:22px; padding:16px; transition:transform .2s ease,box-shadow .2s ease; }
.opening-card:hover { transform:translateY(-4px); box-shadow:var(--shadow); }
.opening-card strong { display:block; font-family:"Cormorant Garamond",serif; font-size:24px; font-weight:500; margin-top:12px; }
.opening-card small { color:var(--gold-dark); font-size:12px; }
.opening-visual { height:190px; border-radius:16px; display:block; position:relative; overflow:hidden; background:#f5eee3; }
.opening-visual i { position:absolute; display:block; }
.opening-gate .opening-visual { background:linear-gradient(180deg,#fff9ec,#ead8a9); }
.opening-gate .opening-visual::before { content:""; position:absolute; inset:18px 28px 20px; border:8px solid #bd984c; border-radius:50px 50px 12px 12px; }
.opening-gate .opening-visual i:nth-child(1), .opening-gate .opening-visual i:nth-child(2) { top:50px; bottom:30px; width:33px; background:#c7a45a; border:1px solid #8e6c2d; }
.opening-gate .opening-visual i:nth-child(1) { left:54px; transform:perspective(180px) rotateY(28deg); transform-origin:left; }
.opening-gate .opening-visual i:nth-child(2) { right:54px; transform:perspective(180px) rotateY(-28deg); transform-origin:right; }
.opening-doors .opening-visual { background:linear-gradient(180deg,#f8efe7,#d8b49b); }
.opening-doors .opening-visual i:nth-child(1), .opening-doors .opening-visual i:nth-child(2) { top:24px; bottom:24px; width:42%; background:linear-gradient(180deg,#c98f6b,#8f563b); border:5px solid rgba(255,255,255,.18); }
.opening-doors .opening-visual i:nth-child(1) { left:8%; transform:perspective(220px) rotateY(22deg); transform-origin:left; border-radius:24px 2px 2px 8px; }
.opening-doors .opening-visual i:nth-child(2) { right:8%; transform:perspective(220px) rotateY(-22deg); transform-origin:right; border-radius:2px 24px 8px 2px; }
.opening-ribbon .opening-visual { background:linear-gradient(180deg,#fff,#f1dce4); }
.opening-ribbon .opening-visual::before { content:""; position:absolute; inset:20px; border:1px solid #dab8c4; border-radius:14px; background:#fffafc; }
.opening-ribbon .opening-visual i:nth-child(1) { left:50%; top:20px; bottom:20px; width:25px; margin-left:-12px; background:#c98aa1; }
.opening-ribbon .opening-visual i:nth-child(2) { top:50%; left:20px; right:20px; height:25px; margin-top:-12px; background:#c98aa1; }
.opening-ribbon .opening-visual i:nth-child(3), .opening-ribbon .opening-visual i:nth-child(4) { top:46px; width:58px; height:40px; background:#d398ae; border-radius:60% 45%; }
.opening-ribbon .opening-visual i:nth-child(3) { left:50%; margin-left:-64px; transform:rotate(-18deg); }
.opening-ribbon .opening-visual i:nth-child(4) { right:50%; margin-right:-64px; transform:rotate(18deg); }
.opening-envelope .opening-visual { background:linear-gradient(180deg,#f2e6e2,#d5bbb5); }
.opening-envelope .opening-visual::before { content:""; position:absolute; inset:42px 24px 26px; background:#fff9f7; border:1px solid #c9a29a; border-radius:7px; }
.opening-envelope .opening-visual::after { content:""; position:absolute; left:24px; right:24px; top:42px; height:72px; background:#d8b8b0; clip-path:polygon(0 0,50% 100%,100% 0); transform-origin:top; transform:perspective(220px) rotateX(35deg); }

.t-ivory-arch { background:linear-gradient(160deg,#fffef9,#e9dfc9); color:#6a5a3f; }
.t-velvet-seal { background:linear-gradient(160deg,#641f32,#2f0c17); color:#f1d9cc; }
.t-silk-bow { background:linear-gradient(160deg,#fff9f0,#e8d1ae); color:#87633c; }
.t-moroccan-doors { background:linear-gradient(160deg,#193b3b,#986c48); color:#f2d8a4; }
.t-rose-gold-gate { background:linear-gradient(160deg,#fff4f2,#ddb0a8); color:#945c55; }
.t-celestial-doors { background:linear-gradient(160deg,#0f1730,#33466f); color:#dec37d; }

@media (max-width: 980px) { .opening-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width: 600px) { .opening-grid { grid-template-columns:1fr; } .opening-visual { height:220px; } }


/* V5 homepage fixes */
.template-card.is-filtered-out { display:none!important; }
.template-grid.filter-pulse { animation:gridPulse .22s ease; }
@keyframes gridPulse { from{opacity:.55;transform:translateY(4px)} to{opacity:1;transform:none} }
.template-filters button { transition:background .18s ease,color .18s ease,border .18s ease,transform .18s ease; }
.template-filters button:hover { transform:translateY(-1px); border-color:#c8b9a8; }
.opening-showcase { overflow:hidden; }
.opening-grid { align-items:stretch; }
.opening-card { display:flex;flex-direction:column;min-width:0; transform:perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)); transform-style:preserve-3d; }
.opening-card:hover { transform:perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateY(-4px); }
.opening-card .opening-visual { flex:0 0 auto; }
.opening-card strong,.opening-card small { position:relative;z-index:2; }
.opening-card small { display:inline-flex;align-items:center;gap:5px;margin-top:3px;text-decoration:none; }
.lang-switch { flex-shrink:0; }
@media(max-width:1100px){ .lang-switch a{padding:5px 6px}.main-nav{gap:17px} }


/* Arabic SEO cluster — V10 */
.ar-seo-cluster { background: #f7f0e7; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.seo-link-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.seo-link-grid a { display:flex; flex-direction:column; gap:6px; min-height:132px; padding:20px; background:#fff; border:1px solid var(--line); border-radius:16px; text-decoration:none; color:var(--ink); transition:transform .18s ease, box-shadow .18s ease; }
.seo-link-grid a:hover { transform:translateY(-2px); box-shadow:var(--shadow); }
.seo-link-grid strong { font-size:16px; }
.seo-link-grid span { color:var(--muted); font-size:13px; line-height:1.65; }
.ar-prose { text-align:right; }
.ar-prose ul { padding-right:22px; padding-left:0; }
.ar-related { margin-top:42px; padding-top:24px; border-top:1px solid var(--line); }
.ar-related-links { display:flex; flex-wrap:wrap; gap:10px; }
.ar-related-links a { display:inline-flex; padding:9px 13px; border:1px solid var(--line); border-radius:999px; background:#fff; text-decoration:none; color:var(--accent); font-size:13px; }
@media(max-width:900px){ .seo-link-grid{grid-template-columns:repeat(2,minmax(0,1fr));} }
@media(max-width:620px){ .seo-link-grid{grid-template-columns:1fr;} .ar-page-hero h1{font-size:clamp(38px,12vw,54px);} }


/* V13 photo uploader */
.photo-fieldset{margin-top:8px;padding-top:4px}
.photo-help{margin:-2px 0 15px;color:var(--muted);font-size:13px;line-height:1.55}
.photo-uploader{border:1px solid var(--line);border-radius:16px;background:#fdfbf8;padding:16px}
.photo-list{display:grid;gap:10px}
.photo-empty{margin:0;color:var(--muted);font-size:13px}
.photo-upload-item{display:grid;grid-template-columns:92px minmax(0,1fr) auto;gap:13px;align-items:center;padding:10px;border:1px solid #ece3d8;border-radius:13px;background:#fff}
.photo-upload-item img{display:block;width:92px;height:72px;object-fit:cover;border-radius:9px;background:#eee7df}
.photo-upload-meta{min-width:0;display:flex;flex-direction:column;gap:2px}
.photo-upload-meta strong{font-size:13px;color:var(--ink)}
.photo-upload-meta small{font-size:11px;color:var(--muted)}
.photo-delete-btn{border:0;background:transparent;color:#8b4545;text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:10px 4px;font-size:12px}
.photo-upload-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:13px}
.photo-status{font-size:12px;color:var(--gold-dark);min-height:18px}
.photo-remaining{margin:8px 0 0;color:var(--muted);font-size:12px}
.photo-uploader.is-busy{opacity:.84}
.photo-uploader button:disabled{cursor:not-allowed;opacity:.55}
html[dir="rtl"] .photo-upload-item{grid-template-columns:92px minmax(0,1fr) auto}
@media(max-width:560px){
  .photo-upload-item{grid-template-columns:76px minmax(0,1fr)}
  .photo-upload-item img{width:76px;height:66px}
  .photo-delete-btn{grid-column:2;justify-self:start;padding:2px 0 6px}
}


/* =========================================================
   V28 — South Asian wedding collection + ZM Gifts identity
   ========================================================= */
.wedding-collection-links{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin:-6px 0 22px;
  padding:14px 16px;
  border:1px solid #ead9bd;
  border-radius:16px;
  background:linear-gradient(90deg,#fffaf0,#fbf4e9);
}
.wedding-collection-links>span{
  margin-right:4px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#8a693a;
}
.wedding-collection-links a{
  display:inline-flex;
  padding:7px 11px;
  border:1px solid #e3cfad;
  border-radius:999px;
  background:#fff;
  color:#6e4d2d;
  text-decoration:none;
  font-size:12px;
}
.wedding-collection-links a:hover{border-color:#b89561;transform:translateY(-1px)}

/* New South Asian template thumbnails */
.t-mehndi-marigold{
  background:
    radial-gradient(circle at 14% 18%,rgba(255,255,255,.7) 0 4%,transparent 4.6%),
    radial-gradient(circle at 84% 78%,rgba(250,193,38,.38) 0 12%,transparent 12.8%),
    linear-gradient(150deg,#fff5a8,#f2b72d 48%,#35743f);
  color:#4f5d23;
}
.t-barat-royale{
  background:
    radial-gradient(circle at 78% 20%,rgba(226,190,105,.24),transparent 25%),
    linear-gradient(150deg,#3b0714,#7e1730 55%,#c59a52);
  color:#f5d99a;
}
.t-walima-pearl{
  background:
    radial-gradient(circle at 20% 22%,rgba(255,255,255,.9),transparent 23%),
    linear-gradient(150deg,#fffdf7,#e7e2d4 52%,#8da58e);
  color:#496454;
}
.t-mayon-sunshine{
  background:
    radial-gradient(circle at 78% 25%,rgba(255,255,255,.66) 0 6%,transparent 6.8%),
    linear-gradient(150deg,#fff7ad,#f2c642 55%,#dd8b39);
  color:#825313;
}
.t-sangeet-jewel{
  background:
    radial-gradient(circle at 22% 18%,rgba(242,188,255,.28),transparent 22%),
    linear-gradient(145deg,#32104f,#7c1c72 48%,#d1548e 72%,#e4af55);
  color:#ffe1b6;
}

.template-card[data-template-groups*="mehndi"],
.template-card[data-template-groups*="barat"],
.template-card[data-template-groups*="walima"],
.template-card[data-template-groups*="mayo"],
.template-card[data-template-groups*="sangeet"]{
  border-color:#e5d3b7;
}
.template-card[data-template-groups*="mehndi"] .pill:first-child,
.template-card[data-template-groups*="barat"] .pill:first-child,
.template-card[data-template-groups*="walima"] .pill:first-child,
.template-card[data-template-groups*="mayo"] .pill:first-child,
.template-card[data-template-groups*="sangeet"] .pill:first-child{
  background:#fff6e7;
}

/* Current footer is four columns. */
.footer-grid{grid-template-columns:1.35fr 1fr .85fr .85fr}
.network-brand{margin-top:16px;font-size:12px;color:#887b6f}
.network-brand a{font-weight:600;text-decoration:none}
.footer-network a{font-weight:600;text-decoration:none}

@media(max-width:980px){
  .footer-grid{grid-template-columns:1.2fr 1fr}
}
@media(max-width:720px){
  .template-filters{
    flex-wrap:nowrap;
    overflow-x:auto;
    padding-bottom:7px;
    scrollbar-width:thin;
  }
  .template-filters button{flex:0 0 auto}
  .wedding-collection-links{align-items:flex-start}
  .wedding-collection-links>span{width:100%;margin-bottom:2px}
  .footer-grid{grid-template-columns:1fr}
}


/* =========================================================
   V29 — Homepage rotating invitation emulator
   One lightweight phone preview cycles through all demo styles.
   Images are fetched only after page load, one at a time.
   ========================================================= */

.hero-emulator-wrap{
  padding-bottom:34px;
}

.hero-emulator{
  --emu-accent:#c7a45a;
  --emu-bg:#24392f;
  --emu-paper:#fffaf0;
  --emu-copy:#fff;
  overflow:hidden;
}

.hero-emulator[data-family="garden"]{
  --emu-accent:#d1ad57;
  --emu-bg:#314b3c;
  --emu-paper:#fff8e8;
  --emu-copy:#fff8eb;
}
.hero-emulator[data-family="arabesque"]{
  --emu-accent:#dfc06e;
  --emu-bg:#0b312b;
  --emu-paper:#f6e7bc;
  --emu-copy:#f5dfaa;
}
.hero-emulator[data-family="palace"]{
  --emu-accent:#d4ae73;
  --emu-bg:#4b2927;
  --emu-paper:#fff4e6;
  --emu-copy:#fff5eb;
}
.hero-emulator[data-family="ribbon"]{
  --emu-accent:#d796aa;
  --emu-bg:#7d4b61;
  --emu-paper:#fff7fa;
  --emu-copy:#fff8fb;
}
.hero-emulator[data-family="editorial"]{
  --emu-accent:#fff;
  --emu-bg:#151515;
  --emu-paper:#fff;
  --emu-copy:#fff;
}
.hero-emulator[data-family="desert"]{
  --emu-accent:#d99c6b;
  --emu-bg:#84513c;
  --emu-paper:#fff4e8;
  --emu-copy:#fff6ec;
}
.hero-emulator[data-family="party"]{
  --emu-accent:#ffd470;
  --emu-bg:#7f315e;
  --emu-paper:#fff5dc;
  --emu-copy:#fff;
}
.hero-emulator[data-family="cloud"]{
  --emu-accent:#cfeaff;
  --emu-bg:#547f97;
  --emu-paper:#f7fcff;
  --emu-copy:#fff;
}

.hero-emulator .mini-top{
  z-index:10;
  pointer-events:none;
}

.emulator-screen{
  position:relative;
  display:block;
  min-height:470px;
  height:470px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.22);
  border-radius:26px;
  background:
    radial-gradient(circle at 50% 18%,rgba(255,255,255,.15),transparent 28%),
    linear-gradient(155deg,var(--emu-bg),color-mix(in srgb,var(--emu-bg) 72%,#000));
  color:var(--emu-copy);
  text-decoration:none;
  isolation:isolate;
  transition:background .6s ease;
}

.emulator-media{
  position:absolute;
  inset:0;
  overflow:hidden;
  background:var(--emu-bg);
}

.emulator-photo{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  opacity:0;
  transform:scale(1.045);
  transition:opacity .6s ease,transform 4.8s cubic-bezier(.18,.72,.22,1);
  filter:saturate(.96) contrast(1.02);
}

.emulator-photo.has-photo{
  opacity:.92;
  transform:scale(1);
}

.emulator-photo-wash{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg,rgba(10,8,6,.12) 0%,rgba(10,8,6,.08) 28%,rgba(10,8,6,.44) 65%,rgba(10,8,6,.84) 100%),
    radial-gradient(circle at 50% 24%,transparent 0 30%,rgba(0,0,0,.17) 85%);
}

.emulator-ornament{
  position:absolute;
  opacity:.42;
  pointer-events:none;
}

.ornament-a{
  left:-36px;
  bottom:88px;
  width:130px;
  height:190px;
  border:1px solid var(--emu-accent);
  border-radius:50% 50% 0 0;
  transform:rotate(-10deg);
}

.ornament-b{
  right:-44px;
  top:78px;
  width:145px;
  height:220px;
  border:1px solid var(--emu-accent);
  border-radius:50% 50% 0 0;
  transform:rotate(12deg);
}

.hero-emulator[data-family="party"] .ornament-a,
.hero-emulator[data-family="party"] .ornament-b{
  border-radius:50%;
  border-style:dashed;
}

.hero-emulator[data-family="editorial"] .ornament-a,
.hero-emulator[data-family="editorial"] .ornament-b{
  border-radius:0;
}

.emulator-opening-mark{
  position:absolute;
  z-index:3;
  left:50%;
  top:48px;
  width:64px;
  height:50px;
  transform:translateX(-50%);
  opacity:.86;
}

.emulator-opening-mark>span{
  position:absolute;
  inset:0;
  display:none;
}

/* Tiny gate */
.hero-emulator[data-opening="gate"] .emulator-mark-gate{display:block}
.emulator-mark-gate:before{
  content:"";
  position:absolute;
  inset:2px 5px 0;
  border:2px solid var(--emu-accent);
  border-bottom:0;
  border-radius:28px 28px 0 0;
}
.emulator-mark-gate i{
  position:absolute;
  top:13px;
  bottom:0;
  width:22px;
  border:1px solid var(--emu-accent);
}
.emulator-mark-gate i:first-child{left:8px;transform:perspective(80px) rotateY(18deg);transform-origin:left}
.emulator-mark-gate i:last-child{right:8px;transform:perspective(80px) rotateY(-18deg);transform-origin:right}

/* Tiny doors */
.hero-emulator[data-opening="doors"] .emulator-mark-doors{display:block}
.emulator-mark-doors i{
  position:absolute;
  top:3px;
  bottom:0;
  width:27px;
  border:1px solid var(--emu-accent);
  background:rgba(18,9,7,.32);
}
.emulator-mark-doors i:first-child{left:3px;border-radius:18px 2px 2px 3px}
.emulator-mark-doors i:last-child{right:3px;border-radius:2px 18px 3px 2px}

/* Tiny ribbon */
.hero-emulator[data-opening="ribbon"] .emulator-mark-ribbon{display:block}
.emulator-mark-ribbon:before,
.emulator-mark-ribbon:after{
  content:"";
  position:absolute;
  background:var(--emu-accent);
}
.emulator-mark-ribbon:before{left:29px;top:0;bottom:0;width:6px}
.emulator-mark-ribbon:after{left:4px;right:4px;top:21px;height:6px}
.emulator-mark-ribbon i{
  position:absolute;
  top:5px;
  width:25px;
  height:19px;
  border:2px solid var(--emu-accent);
  border-radius:60% 40%;
}
.emulator-mark-ribbon i:first-child{left:7px;transform:rotate(-18deg)}
.emulator-mark-ribbon i:last-child{right:7px;transform:rotate(18deg)}

/* Tiny envelope */
.hero-emulator[data-opening="envelope"] .emulator-mark-envelope{display:block}
.emulator-mark-envelope{
  left:6px!important;
  right:6px!important;
  top:7px!important;
  bottom:5px!important;
  border:1px solid var(--emu-accent);
  background:rgba(255,255,255,.08);
}
.emulator-mark-envelope:before,
.emulator-mark-envelope:after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:28px;
  border-bottom:1px solid var(--emu-accent);
  transform-origin:top;
}
.emulator-mark-envelope:before{clip-path:polygon(0 0,50% 100%,100% 0);background:rgba(255,255,255,.06)}
.emulator-mark-envelope:after{clip-path:polygon(0 100%,50% 0,100% 100%);top:auto;bottom:0;height:23px;opacity:.58}

.emulator-copy{
  position:absolute;
  z-index:4;
  left:22px;
  right:22px;
  bottom:76px;
  text-align:center;
  text-shadow:0 3px 22px rgba(0,0,0,.65);
  transition:opacity .24s ease,transform .24s ease;
}

.emulator-event{
  display:block;
  margin-bottom:8px;
  font-size:8px;
  letter-spacing:.24em;
  text-transform:uppercase;
  opacity:.88;
}

.emulator-names{
  display:block;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:36px;
  font-weight:500;
  line-height:.93;
}

html[dir="rtl"] .emulator-names{
  font-family:"Tajawal","Cormorant Garamond",serif;
  line-height:1.12;
}

.emulator-rule{
  display:block;
  width:54px;
  height:1px;
  margin:16px auto 12px;
  background:var(--emu-accent);
}

.emulator-date{
  display:block;
  font-size:10px;
  letter-spacing:.05em;
  font-weight:600;
}

.emulator-venue{
  display:block;
  margin-top:5px;
  font-size:9px;
  line-height:1.35;
  opacity:.85;
}

.emulator-meta{
  position:absolute;
  z-index:5;
  left:0;
  right:0;
  bottom:0;
  min-height:58px;
  padding:10px 12px 9px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  background:rgba(17,13,10,.72);
  border-top:1px solid rgba(255,255,255,.14);
  backdrop-filter:blur(10px);
  color:#fff;
  transition:opacity .24s ease,transform .24s ease;
}

.emulator-meta>span{
  min-width:0;
  display:flex;
  flex-direction:column;
}

.emulator-meta b{
  max-width:170px;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  font-size:10px;
  font-weight:600;
}

.emulator-meta small{
  margin-top:2px;
  font-size:8px;
  opacity:.7;
}

.emulator-meta em{
  flex:0 0 auto;
  font-style:normal;
  font-size:9px;
  font-variant-numeric:tabular-nums;
  opacity:.75;
}

.hero-emulator.is-switching .emulator-copy,
.hero-emulator.is-switching .emulator-meta{
  opacity:0;
  transform:translateY(7px);
}

.hero-emulator.is-switching .emulator-photo{
  opacity:.35;
  transform:scale(1.025);
}

.emulator-brandline{
  position:absolute;
  z-index:5;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  width:max-content;
  max-width:88%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:7px 11px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.88);
  color:#6f6255;
  box-shadow:var(--shadow);
  backdrop-filter:blur(9px);
  font-size:9px;
  letter-spacing:.04em;
}

.emulator-live-dot{
  width:6px;
  height:6px;
  border-radius:50%;
  background:#4f8a60;
  box-shadow:0 0 0 4px rgba(79,138,96,.12);
  animation:emulatorLive 1.8s ease-in-out infinite;
}

@keyframes emulatorLive{
  50%{opacity:.45;transform:scale(.88)}
}

@media(max-width:720px){
  .hero-emulator-wrap{
    min-height:510px;
    padding-bottom:32px;
  }

  .hero-emulator{
    width:270px;
    min-height:480px;
  }

  .emulator-screen{
    min-height:430px;
    height:430px;
  }

  .emulator-opening-mark{
    top:42px;
    transform:translateX(-50%) scale(.88);
  }

  .emulator-copy{
    left:17px;
    right:17px;
    bottom:70px;
  }

  .emulator-names{
    font-size:32px;
  }

  .emulator-brandline{
    font-size:8px;
  }
}

@media(prefers-reduced-motion:reduce){
  .emulator-live-dot{animation:none}
  .emulator-photo,
  .emulator-copy,
  .emulator-meta{transition:none!important}
}


/* =========================================================
   V31 — Homepage emulator callouts
   Keep feature labels outside the phone instead of covering
   the invitation preview.
   ========================================================= */

.hero-emulator-wrap{
  overflow:visible;
}

/* Hide the old bubble treatment if any stale markup remains. */
.hero-emulator-wrap > .floating-note{
  display:none!important;
}

.emulator-callout{
  position:absolute;
  z-index:5;
  width:190px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:11px 12px;
  border:1px solid rgba(170,131,80,.22);
  border-radius:16px;
  background:rgba(255,252,247,.94);
  color:#51463d;
  box-shadow:0 18px 42px -28px rgba(45,30,18,.42);
  backdrop-filter:blur(10px);
  pointer-events:none;
}

.emulator-callout::after{
  content:"";
  position:absolute;
  top:50%;
  width:30px;
  height:1px;
  background:linear-gradient(90deg,rgba(170,131,80,.18),rgba(170,131,80,.55));
}

.emulator-callout-opening{
  left:-72px;
  top:31%;
  transform:translateY(-50%);
}

.emulator-callout-opening::after{
  right:-30px;
}

.emulator-callout-guest{
  right:-78px;
  bottom:21%;
}

.emulator-callout-guest::after{
  left:-30px;
  transform:scaleX(-1);
}

.emulator-callout-icon{
  width:28px;
  height:28px;
  flex:0 0 28px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#f2e7d8;
  color:#9a743f;
  font-size:12px;
}

.emulator-callout>span:last-child{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}

.emulator-callout strong{
  font-size:11px;
  line-height:1.2;
  font-weight:600;
  color:#3f352d;
}

.emulator-callout small{
  font-size:8px;
  line-height:1.35;
  color:#817468;
  white-space:normal;
}

/* Cleaner evergreen brand phrase. */
.emulator-brandline{
  font-weight:600;
  color:#5e5145;
  border-color:rgba(170,131,80,.25);
}

/* On medium screens, pull callouts close but still outside phone. */
@media(max-width:1100px){
  .emulator-callout{
    width:166px;
    padding:9px 10px;
  }
  .emulator-callout-opening{left:-30px}
  .emulator-callout-guest{right:-34px}
}

/* On mobile, move both feature notes BELOW the phone.
   They never cover the invitation image. */
@media(max-width:720px){
  .hero-emulator-wrap{
    padding-bottom:112px;
  }

  .emulator-callout{
    top:auto;
    bottom:36px;
    width:calc(50% - 23px);
    min-height:55px;
    transform:none;
    border-radius:13px;
    padding:8px 9px;
  }

  .emulator-callout::after{
    display:none;
  }

  .emulator-callout-opening{
    left:16px;
  }

  .emulator-callout-guest{
    right:16px;
  }

  .emulator-callout-icon{
    width:24px;
    height:24px;
    flex-basis:24px;
    font-size:10px;
  }

  .emulator-callout strong{
    font-size:9px;
  }

  .emulator-callout small{
    display:none;
  }

  .emulator-brandline{
    bottom:0;
    max-width:92%;
    font-size:8px;
  }
}

@media(max-width:430px){
  .hero-emulator-wrap{
    padding-bottom:104px;
  }

  .emulator-callout{
    width:calc(50% - 20px);
  }

  .emulator-callout-opening{left:12px}
  .emulator-callout-guest{right:12px}
}


/* =========================================================
   V32 — Indexable template keyword subtitles
   Artistic names stay short; search-intent phrases sit directly
   beneath them as real server-rendered HTML.
   ========================================================= */

.template-seo-keyword{
  display:block;
  width:max-content;
  max-width:100%;
  margin:1px 0 8px;
  color:var(--gold-dark);
  font-size:11px;
  line-height:1.35;
  font-weight:600;
  letter-spacing:.035em;
  text-decoration:none;
}

a.template-seo-keyword:hover{
  color:var(--accent);
  text-decoration:underline;
  text-underline-offset:3px;
}

.opening-seo-keyword{
  display:block;
  margin-top:2px;
  color:var(--gold-dark);
  font-size:10px;
  line-height:1.35;
  font-weight:600;
  letter-spacing:.035em;
}

.opening-card .opening-seo-keyword + small{
  margin-top:5px;
}

@media(max-width:720px){
  .template-seo-keyword{
    font-size:10.5px;
  }
}
