:root {
  --wine-950: #2a0713;
  --wine-900: #3b0f1f;
  --wine-800: #5a1729;
  --wine-700: #7a1f35;
  --gold-600: #c89b3c;
  --gold-400: #ddb756;
  --paper: #ffffff;
  --paper-2: #f2f6f3;
  --ink: #1f1a17;
  --muted: #665a55;
  --line: rgba(59, 15, 31, 0.14);
  --green: #386150;
  --blue: #263e63;
  --shadow: 0 18px 50px rgba(42, 7, 19, 0.14);
  --radius: 8px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 236, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--wine-900);
  letter-spacing: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--wine-900);
  color: var(--gold-400);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 17px;
}

.brand span:last-child {
  font-family: var(--serif);
  font-size: 25px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--wine-900);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 850;
  font-size: 14px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--wine-900);
  color: #fff;
  box-shadow: 0 10px 24px rgba(59, 15, 31, 0.22);
}

.btn-primary:hover {
  background: var(--wine-800);
}

.btn-gold {
  background: var(--gold-600);
  color: var(--wine-950);
  box-shadow: 0 10px 24px rgba(200, 155, 60, 0.24);
}

.btn-outline {
  border-color: rgba(59, 15, 31, .2);
  color: var(--wine-900);
  background: rgba(255,255,255,.45);
}

.btn-outline:hover {
  background: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 54px;
  background:
    linear-gradient(180deg, rgba(251, 246, 236, .96), rgba(251, 246, 236, .86)),
    radial-gradient(circle at 18% 20%, rgba(221, 183, 86, .26), transparent 30%),
    linear-gradient(135deg, var(--paper), #f7efe1 48%, #efe0c9);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: 52px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--wine-800);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold-600);
}

h1,
h2,
h3 {
  color: var(--wine-900);
  letter-spacing: 0;
}

h1 {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-size: 64px;
  line-height: .98;
  font-weight: 700;
}

.hero-copy p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  max-width: 590px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 38px;
}

.proof-item {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.58);
}

.proof-item strong {
  display: block;
  color: var(--wine-900);
  font-size: 19px;
}

.proof-item span {
  color: var(--muted);
  font-size: 13px;
}

.hero-visual {
  position: relative;
}

.hero-image {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(59, 15, 31, .12);
  box-shadow: 0 28px 70px rgba(42, 7, 19, .26);
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.floating-panel {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(300px, calc(100% - 36px));
  background: rgba(251, 246, 236, .94);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.timer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.timer-row strong {
  font-family: var(--serif);
  color: var(--wine-900);
  font-size: 26px;
}

.timer-row span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.mini-progress {
  height: 8px;
  margin-top: 12px;
  border-radius: 999px;
  background: #eadcc9;
  overflow: hidden;
}

.mini-progress span {
  display: block;
  width: 65%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-600), var(--wine-700));
}

.section {
  padding: 82px 0;
}

.section.alt {
  background: var(--wine-900);
  color: var(--paper);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1.08;
}

.section-head p {
  color: var(--muted);
  font-size: 17px;
  margin: 15px 0 0;
}

.section.alt .section-head h2 {
  color: var(--paper);
}

.section.alt .section-head p {
  color: #e8c9a0;
}

.feature-grid,
.ops-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.ops-card,
.plan-card,
.dashboard-card,
.template-card,
.auth-card,
.edit-card,
.settings-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.56);
  box-shadow: 0 12px 34px rgba(42, 7, 19, 0.06);
}

.feature-card,
.ops-card {
  padding: 24px;
}

.feature-card h3,
.ops-card h3 {
  margin: 14px 0 8px;
  font-size: 20px;
}

.feature-card p,
.ops-card p {
  margin: 0;
  color: var(--muted);
}

.icon-box {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--wine-900);
  color: var(--gold-400);
}

.template-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}

.template-tab {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--wine-900);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 850;
}

.template-tab.active {
  background: var(--wine-900);
  color: #fff;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.template-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  padding: 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.template-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 4px;
  pointer-events: none;
}

.template-card[data-style="royal"] { background: linear-gradient(145deg, #3b0f1f, #7a1f35); }
.template-card[data-style="gold"] { background: linear-gradient(145deg, #ddb756, #7a1f35); color: #2a0713; }
.template-card[data-style="bloom"] { background: linear-gradient(145deg, #a64e68, #f3d4c5); color: #2a0713; }
.template-card[data-style="midnight"] { background: linear-gradient(145deg, #111827, #263e63); }
.template-card[data-style="sage"] { background: linear-gradient(145deg, #24483c, #86a681); }
.template-card[data-style="minimal"] { background: linear-gradient(145deg, #f6ead4, #ffffff); color: #2a0713; }

.template-category {
  position: relative;
  align-self: flex-start;
  padding: 6px 10px;
  background: rgba(255,255,255,.2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.template-card h3 {
  position: relative;
  margin: auto 0 4px;
  color: inherit;
  font-family: var(--serif);
  font-size: 30px;
}

.template-card p {
  position: relative;
  margin: 0;
  font-size: 14px;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
}

.process-card {
  padding: 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  counter-increment: step;
}

.process-card::before {
  content: counter(step, decimal-leading-zero);
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-600);
  color: var(--wine-950);
  font-weight: 900;
}

.process-card h3 {
  margin: 18px 0 8px;
}

.process-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.plan-card {
  padding: 30px;
  background: #fff;
}

.plan-card.featured {
  border-color: rgba(200, 155, 60, .8);
  box-shadow: 0 24px 55px rgba(59, 15, 31, .13);
}

.plan-kicker {
  color: var(--wine-700);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.price {
  margin: 10px 0 2px;
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 800;
  color: var(--wine-900);
}

.price span {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 11px;
  margin: 22px 0 26px;
  padding: 0;
}

.check-list li {
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: inset 0 0 0 5px #fff;
  border: 1px solid rgba(56,97,80,.4);
}

.ops-card {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.15);
  color: var(--paper);
}

.ops-card h3 {
  color: var(--paper);
}

.ops-card p {
  color: #e8c9a0;
}

.cta-band {
  background: linear-gradient(135deg, var(--wine-900), var(--wine-700));
  color: #fff;
  padding: 50px 0;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.cta-inner h2 {
  margin: 0;
  color: #fff;
  font-family: var(--serif);
  font-size: 42px;
}

.cta-inner p {
  margin: 8px 0 0;
  color: #e8c9a0;
}

.site-footer {
  background: var(--wine-950);
  color: #fff;
  padding: 38px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 28px;
}

.footer-grid h3,
.footer-grid h4 {
  margin: 0 0 12px;
  color: #fff;
}

.footer-grid p,
.footer-grid a {
  color: #d6c4b0;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  padding: 32px 20px;
  background: rgba(31, 26, 23, .62);
}

.modal.open {
  display: flex;
}

.modal-panel {
  width: min(860px, 100%);
  background: var(--paper);
  border-radius: 10px;
  box-shadow: 0 30px 90px rgba(0,0,0,.36);
  overflow: hidden;
}

.modal-head {
  padding: 26px 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.modal-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 34px;
}

.modal-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--wine-900);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.register-form {
  padding: 26px 28px 30px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--wine-900);
  font-size: 13px;
  font-weight: 850;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(59,15,31,.18);
  background: #fff;
  border-radius: 7px;
  min-height: 44px;
  padding: 11px 12px;
  color: var(--ink);
}

.field textarea {
  min-height: 84px;
  resize: vertical;
}

.template-choice-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.template-choice {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  min-height: 74px;
  padding: 10px;
  text-align: left;
}

.template-choice.active {
  outline: 3px solid rgba(200, 155, 60, .34);
  border-color: var(--gold-600);
}

.template-choice strong {
  display: block;
  color: var(--wine-900);
}

.template-choice span {
  color: var(--muted);
  font-size: 13px;
}

.form-status {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.form-status.show {
  display: block;
}

.form-status.success {
  border-color: rgba(56,97,80,.35);
  background: #eff8f1;
}

.form-status.error {
  border-color: rgba(160,24,34,.25);
  background: #fff2f2;
}

.app-shell {
  min-height: 100vh;
  background: #f8f1e5;
}

.app-topbar {
  background: var(--wine-900);
  color: #fff;
  padding: 14px 0;
}

.app-topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.app-topbar a {
  color: #fff;
  font-weight: 800;
}

.app-main {
  padding: 34px 0 60px;
}

.page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.page-title h1 {
  margin: 0;
  font-size: 32px;
}

.page-title p {
  margin: 6px 0 0;
  color: var(--muted);
}

.flash {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 800;
}

.flash.success {
  background: #e8f6ec;
  color: #1f6a37;
}

.flash.error {
  background: #fff0f0;
  color: #a01822;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.dashboard-card {
  padding: 18px;
  background: #fff;
}

.dashboard-card strong {
  display: block;
  color: var(--wine-900);
  font-size: 28px;
}

.dashboard-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.table-card,
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(42, 7, 19, 0.06);
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 840px;
}

td input,
td select {
  width: 100%;
  min-width: 130px;
  border: 1px solid rgba(59,15,31,.18);
  border-radius: 7px;
  background: #fff;
  padding: 9px 10px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(59,15,31,.1);
  text-align: left;
  vertical-align: top;
}

th {
  background: #fbf6ec;
  color: var(--wine-900);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0;
}

td {
  color: var(--muted);
  font-size: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  background: #f1e5cb;
  color: var(--wine-900);
}

.badge.green {
  background: #e5f3ea;
  color: #1f6a37;
}

.badge.red {
  background: #fff0f0;
  color: #a01822;
}

.badge.blue {
  background: #e8eef8;
  color: var(--blue);
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.small-btn {
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid rgba(59,15,31,.16);
  border-radius: 7px;
  background: #fff;
  color: var(--wine-900);
  font-size: 12px;
  font-weight: 900;
}

.client-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.edit-card {
  background: #fff;
  padding: 22px;
}

.edit-card h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 30px;
}

.invite-preview-link {
  color: var(--wine-900);
  font-weight: 900;
  text-decoration: underline;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.settings-card {
  background: #fff;
  padding: 22px;
}

.settings-card h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
}

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: linear-gradient(135deg, var(--wine-950), var(--wine-700));
}

.auth-card {
  width: min(460px, 100%);
  background: var(--paper);
  padding: 30px;
}

.auth-card h1 {
  margin: 0 0 8px;
  font-size: 42px;
}

.auth-card p {
  margin: 0 0 22px;
  color: var(--muted);
}

.invite-page {
  min-height: 100vh;
  background: var(--paper);
}

.invite-hero {
  min-height: 68vh;
  display: grid;
  place-items: center;
  padding: 50px 20px;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(rgba(42,7,19,.62), rgba(42,7,19,.72)),
    var(--invite-cover, linear-gradient(145deg, #3b0f1f, #7a1f35));
  background-size: cover;
  background-position: center;
}

.invite-card {
  width: min(780px, 100%);
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 8px;
  padding: 32px;
  background: rgba(59,15,31,.42);
  backdrop-filter: blur(7px);
}

.invite-card h1 {
  color: #fff;
  font-family: var(--serif);
  font-size: 64px;
  line-height: .96;
  margin: 12px 0;
}

.invite-kicker {
  text-transform: uppercase;
  letter-spacing: 0;
  color: #e8c9a0;
  font-weight: 900;
}

.invite-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.invite-meta span {
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255,255,255,.1);
}

.invite-sections {
  width: min(1000px, calc(100% - 40px));
  margin: 0 auto;
  padding: 60px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.invite-info {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.invite-info h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
}

.invite-info p {
  margin: 0;
  color: var(--muted);
}

.expired-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--paper);
  padding: 28px;
}

.expired-card {
  width: min(620px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 34px;
}

.expired-card h1 {
  margin: 0 0 10px;
  font-size: 44px;
}

@media (max-width: 980px) {
  .hero-grid,
  .feature-grid,
  .ops-grid,
  .template-grid,
  .process,
  .plans,
  .settings-grid,
  .footer-grid,
  .invite-sections {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid {
    gap: 32px;
  }

  .dashboard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }

  .nav-actions .btn-outline {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-grid,
  .hero-proof,
  .feature-grid,
  .ops-grid,
  .template-grid,
  .process,
  .plans,
  .settings-grid,
  .footer-grid,
  .invite-sections,
  .form-grid,
  .template-choice-list,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .floating-panel {
    position: static;
    width: 100%;
    margin-top: 14px;
  }

  .cta-inner,
  .page-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .modal-head {
    padding: 22px;
  }

  .register-form {
    padding: 22px;
  }

  .brand span:last-child {
    font-size: 20px;
  }
}

/* Public pages stay spacious; account surfaces prioritise compact, readable data. */
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #247557; outline-offset: 3px; }
h1, h2, h3, p, .btn, .invite-preview-link { overflow-wrap: anywhere; }
.site-nav { background: #fff; }
.hero { background: #3b0f1f url('../img/hero-wide.png') center/cover no-repeat; min-height: min(610px, calc(100svh - 150px)); padding: 48px 0 38px; }
.mobile-showcase { display: none; }
.hero-grid { display: block; }
.hero-copy { width: 49%; max-width: 580px; }
.hero h1 { color: #fff; font-size: 64px; line-height: 1.08; margin: 22px 0; }
.hero .eyebrow, .hero-copy p { color: #fff; }
.hero-copy p { font-size: 18px; max-width: 470px; }
.hero .btn-primary { background: #fff; color: #3b0f1f; box-shadow: none; }
.hero-proof { gap: 22px; }
.proof-item { background: transparent; border: 0; padding: 0; }
.hero-proof strong, .hero-proof span { color: #fff; }
.section { padding: 60px 0; }
.section-head h2 { font-size: 38px; }
.process-card, .ops-card { border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.section.alt { background: #edf5ef; color: #214c3c; }
.section.alt .section-head h2, .ops-card h3 { color: #214c3c; }
.section.alt .section-head p, .ops-card p { color: #41594e; }
.template-price { font-size: 13px; font-weight: 700; }
.app-shell { background: #f6f7f8; }
.app-topbar { background: #fff; color: #28302c; border-bottom: 1px solid #e1e5e2; }
.app-topbar a { color: #28302c; font-size: 14px; }
.app-topbar .wrap, .nav-actions { flex-wrap: wrap; }
.dashboard-card strong { font-size: 24px; overflow-wrap: anywhere; }
.settings-card, .table-card { border-radius: 0; box-shadow: none; }
.settings-card p, .settings-card span { overflow-wrap: anywhere; }
.narrow { max-width: 640px; }
.filter-row { display: flex; gap: 10px; padding: 18px; flex-wrap: wrap; }
.filter-row input, .filter-row select { padding: 10px; border: 1px solid #c6cfca; border-radius: 6px; min-width: 0; max-width: 100%; }
.filter-row input { flex: 1 1 220px; }
.upgrade-row { margin: 12px 0 24px; }
.form-note { font-size: 13px; color: #536057; }
.cookie-banner { position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 70; background: #fff; padding: 16px 20px; border: 1px solid #b8c6bc; box-shadow: 0 4px 24px #0002; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cookie-banner p { margin: 0; flex: 1 1 260px; }
.demo-clock { background: #214c3c; color: #fff; padding: 12px 20px; text-align: center; font-weight: 700; }
.invite-page[data-style='sage'] { --wine-900: #245743; --wine-800: #183e31; }
.invite-page[data-style='bloom'] { --wine-900: #963554; --wine-800: #682d42; }
.invite-page[data-style='midnight'] { --wine-900: #242c39; --wine-800: #121720; }
.invite-page[data-style='gold'] { --wine-900: #735119; --wine-800: #4f3912; }
.invite-page[data-style='minimal'] { --wine-900: #344d43; --wine-800: #25382f; }
.invite-hero { background: var(--wine-900); min-height: auto; padding: 0; display: block; }
.invitation-photo { width: 100%; max-height: 440px; object-fit: contain; background: #f2f4f3; }
.invite-card { width: min(1000px, calc(100% - 40px)); padding: 38px 0; margin: auto; border: 0; border-radius: 0; background: transparent; backdrop-filter: none; }
.invite-card h1 { font-size: 52px; line-height: 1.1; }
.invite-meta span { border: 0; background: transparent; border-radius: 0; }
.invite-info { border: 0; background: transparent; box-shadow: none; padding: 16px 0; }
.invite-sections { width: min(1100px, calc(100% - 40px)); gap: 36px; }
.rsvp-form { display: grid; gap: 12px; }
.rsvp-form label { display: grid; gap: 5px; font-size: 14px; font-weight: 600; }
.rsvp-form input, .rsvp-form select, .rsvp-form textarea { width: 100%; min-width: 0; padding: 10px; border: 1px solid #c6cfca; border-radius: 6px; background: white; }
.invite-share { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; align-items: center; padding: 30px 20px; border-top: 1px solid #e1e5e2; }
@media (max-width: 980px) {
  .hero { min-height: 520px; background-position: 53% center; }
  .hero h1 { font-size: 48px; }
  .hero-proof { display: flex; flex-wrap: wrap; }
  .hero-copy p { font-size: 16px; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { font-size: 12px; padding: 10px 12px; }
}
@media (max-width: 760px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  .wrap { width: calc(100% - 32px); }
  .nav-inner { flex-wrap: wrap; gap: 10px; padding: 10px 0; }
  .site-nav .brand span:last-child { font-size: 18px; }
  .brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
  .nav-actions .btn-outline { display: inline-flex; }
  .site-nav .nav-actions { gap: 6px; }
  .site-nav .btn { font-size: 12px; padding: 8px 10px; }
  .site-nav .nav-actions .btn-primary { display: none; }
  .hero { padding: 26px 0 0; min-height: 0; background-size: auto 100%; background-position: left center; }
  .mobile-showcase { display: block; width: 100%; height: 155px; object-fit: cover; object-position: center 53%; margin-top: 22px; }
  .hero-copy { width: calc(100vw - 32px); max-width: calc(100vw - 32px); min-width: 0; }
  .hero-copy p, .section-head, .section-head p { max-width: calc(100vw - 32px); }
  .eyebrow { display: block; max-width: 100%; white-space: normal; line-height: 1.4; }
  .eyebrow::before { display: none; }
  .hero h1 { font-size: 38px; margin: 16px 0; }
  .hero-copy p { font-size: 16px; }
  .hero-proof { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 25px; }
  .proof-item { min-width: 0; padding: 13px 14px; }
  .hero-proof strong { font-size: 20px; }
  .hero-proof span { font-size: 11px; overflow-wrap: anywhere; }
  .section { padding: 38px 0; }
  .section-head h2, .cta-inner h2 { font-size: 30px; }
  .app-topbar .wrap { gap: 12px; }
  .app-topbar .nav-actions { gap: 12px; }
  .page-title h1, .auth-card h1 { font-size: 30px; }
  .invite-card h1 { font-size: 36px; }
  .invite-sections { gap: 16px; padding: 24px 0; }
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-card:last-child { grid-column: 1 / -1; }
  .edit-card { padding: 16px; }
  .modal-head { padding: 16px; }
  .register-form { padding: 16px; }
  .template-choice-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* v4 public gallery and Smart Bill-inspired polish */
.process-card,
.ops-card,
.proof-item {
  border: 1px solid rgba(14, 78, 63, .14);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(2, 34, 28, .08);
}

.process-card {
  background: #fff;
}

.ops-card {
  background: #fff;
  color: #0f3f33;
  padding: 24px;
}

.ops-card h3 {
  color: #0f3f33;
}

.ops-card p {
  color: #486157;
}

.proof-item {
  background: rgba(255,255,255,.12);
  padding: 16px;
  backdrop-filter: blur(6px);
}

.section.alt {
  background: #eef8f3;
}

.template-groups {
  display: grid;
  gap: 34px;
}

.template-group {
  display: grid;
  gap: 16px;
}

.template-group-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  border-bottom: 1px solid rgba(13, 92, 69, .16);
  padding-bottom: 12px;
}

.template-group-head h2,
.template-group-head h3 {
  margin: 0;
  color: #092d4d;
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 850;
}

.template-group-head p {
  margin: 0;
  color: #557064;
  font-size: 14px;
  font-weight: 700;
}

.website-template-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(20, 48, 42, .13);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(17, 45, 38, .09);
  display: flex;
  flex-direction: column;
}

.website-template-card:hover {
  transform: translateY(-2px);
  transition: transform .2s ease;
}

.template-browser {
  padding: 12px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--template-color) 18%, #ffffff), #f9fbfa);
  border-bottom: 1px solid rgba(20, 48, 42, .1);
}

.browser-dots {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}

.browser-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--template-color) 55%, #ffffff);
}

.template-page-preview {
  min-height: 184px;
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 57, 49, .1);
}

.preview-hero {
  min-height: 116px;
  padding: 18px;
  display: grid;
  align-content: center;
  gap: 8px;
  background:
    linear-gradient(135deg, rgba(0,0,0,.18), rgba(255,255,255,.08)),
    var(--template-color);
  color: var(--template-ink);
}

.preview-hero span {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.preview-hero strong {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.05;
}

.preview-sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px;
}

.preview-sections span {
  height: 42px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--template-color) 12%, #ffffff);
}

.website-template-card[data-style="lotus"] .preview-hero { background: radial-gradient(circle at 12% 10%, #ffd9e7 0 13%, transparent 14%), linear-gradient(135deg, #8f2f55, #d17a93); }
.website-template-card[data-style="saffron"] .preview-hero { background: linear-gradient(135deg, #f4c14e, #9d421c); color: #2c1207; }
.website-template-card[data-style="chapel"] .preview-hero { background: linear-gradient(135deg, #f7faf7, #437a68); color: #113629; }
.website-template-card[data-style="noor"] .preview-hero { background: linear-gradient(135deg, #0f4f42, #d4b15d); color: #fff; }
.website-template-card[data-style="candy"] .preview-hero { background: linear-gradient(135deg, #f86f9a, #ffd166); color: #311224; }
.website-template-card[data-style="sky"] .preview-hero { background: linear-gradient(135deg, #3b82c4, #b7e4ff); color: #08233d; }
.website-template-card[data-style="haldi"] .preview-hero { background: linear-gradient(135deg, #ffd34d, #1b8a67); color: #2f2600; }

.template-card-body {
  display: grid;
  gap: 16px;
  padding: 18px;
  flex: 1;
}

.template-card-body h3 {
  margin: 8px 0 6px;
  color: #092d4d;
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 850;
}

.template-card-body p {
  margin: 0;
  color: #526a60;
  font-size: 14px;
}

.template-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(20, 48, 42, .1);
  padding-top: 14px;
}

.template-card-footer strong {
  color: #06795d;
  font-size: 15px;
  white-space: nowrap;
}

.website-template-card .template-category {
  background: #e8f7f1;
  color: #08755b;
  border-radius: 5px;
  padding: 5px 8px;
}

.show-more-row {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.templates-hero {
  padding: 64px 0 50px;
  background: #eaf4ff;
  border-bottom: 1px solid #d7e5f2;
}

.templates-hero h1 {
  margin: 16px 0 0;
  max-width: 880px;
  color: #05183f;
  font-family: var(--sans);
  font-size: 46px;
  line-height: 1.1;
  font-weight: 900;
}

.templates-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: #426173;
  font-size: 18px;
}

.full-gallery .template-group {
  margin-bottom: 18px;
}

.subgroup-title {
  margin: 8px 0 0;
  color: #0b6f58;
  font: 800 16px/1.3 var(--sans);
}

@media (max-width: 760px) {
  .hide-mobile-template {
    display: none;
  }

  .template-group-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .template-group-head h2,
  .template-group-head h3 {
    font-size: 23px;
  }

  .template-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .template-card-footer .btn {
    width: 100%;
  }

  .templates-hero {
    padding: 44px 0 34px;
  }

  .templates-hero h1 {
    font-size: 34px;
  }
}

/* v5 template preview flow and final public polish */
.brand-logo-mark {
  width: 58px;
  height: 36px;
  flex: 0 0 58px;
  border-radius: 8px;
  object-fit: contain;
  background: #17254f;
}

.site-nav .brand span:last-child {
  color: #2a0713;
}

.hero {
  isolation: isolate;
  background-color: #17254f;
  background-image:
    linear-gradient(90deg, rgba(13, 20, 47, .88) 0%, rgba(46, 13, 30, .72) 34%, rgba(46, 13, 30, .12) 64%),
    url('../img/hero-wide.png');
  background-position: center;
  background-size: cover;
  min-height: min(680px, calc(100svh - 96px));
  display: grid;
  align-items: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  z-index: -1;
  background: linear-gradient(0deg, rgba(255,255,255,.88), rgba(255,255,255,0));
}

.hero-copy {
  width: min(580px, 100%);
  padding: 28px 0;
}

.hero h1 {
  text-shadow: 0 3px 22px rgba(0,0,0,.25);
}

.hero-copy p {
  color: rgba(255,255,255,.93);
  text-shadow: 0 2px 12px rgba(0,0,0,.22);
}

.hero .eyebrow {
  color: #fff;
}

.hero .eyebrow::before {
  background: #ddb756;
}

.proof-item {
  min-height: 98px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 8px;
  background: rgba(15, 24, 52, .56);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 42px rgba(0,0,0,.14);
}

.hero-proof strong,
.hero-proof span {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.22);
}

.process-card {
  border: 1px solid rgba(14,78,63,.16);
  background: #fff;
  box-shadow: 0 18px 45px rgba(13, 43, 82, .06);
}

.template-deck {
  display: grid;
  gap: 22px;
}

.template-tabs {
  justify-content: center;
  margin-bottom: 2px;
}

.template-tab {
  min-height: 42px;
}

.template-tab[aria-selected="true"],
.template-tab.active {
  border-color: #2a0713;
}

.gallery-note {
  margin: -4px auto 4px;
  max-width: 760px;
  color: #557064;
  text-align: center;
  font-size: 14px;
}

.website-template-card {
  transform-style: preserve-3d;
  perspective: 1200px;
}

.website-template-card:hover {
  transform: translateY(-4px) rotateX(1deg);
}

.template-browser {
  transform: translateZ(0);
}

.template-page-preview {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 0 18px 32px rgba(13, 43, 82, .08);
}

.preview-hero {
  position: relative;
  overflow: hidden;
}

.preview-hero::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: 72px;
  height: 44px;
  border: 1px solid currentColor;
  opacity: .25;
  transform: rotate(-8deg);
}

.website-template-card[data-style="temple"] .preview-hero { background: linear-gradient(135deg, #4e0d22, #c89b3c); color:#fff; }
.website-template-card[data-style="royal"] .preview-hero { background: linear-gradient(135deg, #3b0f1f, #8d3652); color:#fff; }
.website-template-card[data-style="rose"] .preview-hero { background: linear-gradient(135deg, #fff8f3, #d9b9b2); color:#3b0f1f; }
.website-template-card[data-style="artdeco"] .preview-hero { background: linear-gradient(135deg, #22180b, #c89b3c); color:#fff7df; }
.website-template-card[data-style="evergreen"] .preview-hero { background: linear-gradient(135deg, #1f4d3f, #dceadf); color:#10251e; }
.website-template-card[data-style="newhome"] .preview-hero { background: linear-gradient(135deg, #e9f8ef, #386150); color:#0b3127; }
.website-template-card[data-style="griha"] .preview-hero { background: linear-gradient(135deg, #fff2c0, #bf8b24); color:#3a2200; }
.website-template-card[data-style="threshold"] .preview-hero { background: linear-gradient(135deg, #f7f1e7, #93806b); color:#2f2418; }
.website-template-card[data-style="nalagu-rose"] .preview-hero { background: linear-gradient(135deg, #b24b6e, #ffd8a8); color:#310917; }
.website-template-card[data-style="blessings"] .preview-hero { background: linear-gradient(135deg, #8f3f63, #f3cf99); color:#fff; }

.template-card-footer {
  gap: 12px;
}

.template-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.template-actions .btn {
  min-height: 38px;
  padding: 9px 13px;
  font-size: 12px;
}

.site-footer {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, #17254f 0%, #2a0713 58%, #3b0f1f 100%);
  padding: 58px 0 42px;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.footer-grid {
  position: relative;
  z-index: 1;
}

.enhanced-footer {
  grid-template-columns: minmax(0, 1.4fr) minmax(160px, .55fr) minmax(180px, .65fr);
  align-items: start;
}

.footer-logo {
  width: 168px;
  height: 84px;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.18);
  margin-bottom: 18px;
}

.footer-brand-block p {
  max-width: 470px;
  font-size: 17px;
}

.footer-brand-block span {
  display: block;
  max-width: 520px;
  color: #d9e4ff;
  font-size: 13px;
}

.footer-links a {
  padding: 4px 0;
}

.footer-links a:hover {
  color: #fff;
}

.templates-hero {
  background:
    linear-gradient(135deg, rgba(23,37,79,.92), rgba(59,15,31,.82)),
    url('../img/hero-wide.png') center/cover no-repeat;
  color: #fff;
}

.templates-hero h1,
.templates-hero p,
.templates-hero .eyebrow {
  color: #fff;
}

.template-preview-body {
  background: #f7f3ee;
}

.preview-nav {
  background: rgba(255,255,255,.94);
}

.template-preview-site {
  --accent: var(--template-color);
  color: #18221e;
}

.preview-live-hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 72px);
  display: grid;
  align-items: center;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 78%, #050b1d), color-mix(in srgb, var(--accent) 24%, #fff4e7));
  color: #fff;
}

.preview-live-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(900px) rotateX(64deg) translateY(18%);
  transform-origin: bottom;
  opacity: .42;
}

.preview-live-orbit {
  position: absolute;
  right: 6%;
  top: 12%;
  width: min(360px, 48vw);
  aspect-ratio: 1.45;
  border: 1px solid rgba(255,255,255,.22);
  transform: rotate(-8deg) skewX(-8deg);
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
}

.preview-live-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 410px);
  align-items: center;
  gap: 48px;
  padding: 64px 0;
}

.preview-live-copy span,
.preview-kicker {
  display: inline-block;
  color: #ffe2a1;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
}

.preview-live-copy h1 {
  margin: 16px 0;
  max-width: 690px;
  color: #fff;
  font-family: var(--serif);
  font-size: 76px;
  line-height: 1;
}

.preview-live-copy p {
  max-width: 560px;
  color: rgba(255,255,255,.9);
  font-size: 19px;
}

.preview-live-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.preview-phone-stage {
  perspective: 1200px;
}

.preview-phone {
  min-height: 560px;
  border: 12px solid #111827;
  border-radius: 34px;
  padding: 54px 24px 26px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.95), rgba(255,246,226,.9)),
    radial-gradient(circle at 50% 0, color-mix(in srgb, var(--accent) 16%, transparent), transparent 36%);
  color: color-mix(in srgb, var(--accent) 72%, #130714);
  box-shadow: 0 42px 70px rgba(0,0,0,.32);
  transform: rotateY(-10deg) rotateX(5deg);
  display: grid;
  align-content: start;
  gap: 18px;
}

.phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 96px;
  height: 22px;
  border-radius: 99px;
  background: #111827;
  transform: translateX(-50%);
}

.preview-phone span {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 55%, #1f2937);
}

.preview-phone strong {
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1.05;
}

.preview-phone small {
  color: #6d5c51;
  font-weight: 800;
}

.phone-mini-card {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 8px;
  background: rgba(255,255,255,.7);
  box-shadow: 0 20px 38px rgba(0,0,0,.1);
}

.preview-live-section {
  padding: 72px 0;
  background: #fff;
}

.preview-live-section:nth-of-type(even) {
  background: #f5f0ea;
}

.preview-live-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.preview-live-cards article,
.preview-rsvp-card,
.preview-timeline article {
  border: 1px solid rgba(24,34,30,.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 44px rgba(13, 43, 82, .07);
}

.preview-live-cards article {
  padding: 24px;
}

.preview-live-cards span,
.preview-timeline span {
  color: color-mix(in srgb, var(--accent) 70%, #2a0713);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.preview-live-cards strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 24px;
  line-height: 1.2;
}

.preview-live-cards p {
  margin: 0;
  color: #64736d;
}

.preview-story-grid,
.preview-rsvp {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
  gap: 44px;
  align-items: center;
}

.preview-story-grid h2,
.preview-rsvp h2,
.compact-head h2 {
  margin: 10px 0;
  font-family: var(--serif);
  font-size: 44px;
  color: #2a0713;
}

.preview-story-grid p,
.preview-rsvp p {
  color: #5e6e66;
  font-size: 18px;
}

.preview-3d-stack {
  display: grid;
  gap: 14px;
  perspective: 900px;
}

.preview-3d-stack span {
  padding: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 78%, #fff), color-mix(in srgb, var(--accent) 22%, #fff));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 24px 46px rgba(0,0,0,.14);
  transform: rotateY(-8deg);
}

.preview-3d-stack span:nth-child(2) {
  transform: translateX(22px) rotateY(7deg);
}

.preview-3d-stack span:nth-child(3) {
  transform: translateX(44px) rotateY(-4deg);
}

.preview-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.preview-timeline article {
  padding: 24px;
  min-height: 130px;
}

.preview-timeline strong {
  display: block;
  margin-top: 14px;
  font-size: 24px;
}

.preview-rsvp-card {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.preview-rsvp-card input {
  width: 100%;
  border: 1px solid rgba(24,34,30,.15);
  border-radius: 8px;
  padding: 13px 14px;
  color: #4a5b53;
}

[data-style="lotus"] .preview-live-hero { background: linear-gradient(135deg, #8f2f55, #f5b3c8); }
[data-style="saffron"] .preview-live-hero { background: linear-gradient(135deg, #9d421c, #f4c14e); }
[data-style="chapel"] .preview-live-hero { background: linear-gradient(135deg, #1f5c4f, #f7faf7); }
[data-style="rose"] .preview-live-hero { background: linear-gradient(135deg, #7b3f4d, #ffe7dd); }
[data-style="noor"] .preview-live-hero { background: linear-gradient(135deg, #0f4f42, #d4b15d); }
[data-style="bloom"] .preview-live-hero { background: linear-gradient(135deg, #963554, #f6c8b8); }
[data-style="midnight"] .preview-live-hero { background: linear-gradient(135deg, #111827, #263e63); }
[data-style="candy"] .preview-live-hero { background: linear-gradient(135deg, #e9427c, #ffd166); }
[data-style="sky"] .preview-live-hero { background: linear-gradient(135deg, #1b65a6, #b7e4ff); }
[data-style="artdeco"] .preview-live-hero { background: linear-gradient(135deg, #201303, #c89b3c); }
[data-style="evergreen"] .preview-live-hero { background: linear-gradient(135deg, #1f4d3f, #9fc5a6); }
[data-style="newhome"] .preview-live-hero { background: linear-gradient(135deg, #245743, #d6f2df); }
[data-style="griha"] .preview-live-hero { background: linear-gradient(135deg, #7a4f0b, #ffc857); }
[data-style="threshold"] .preview-live-hero { background: linear-gradient(135deg, #615040, #f7f1e7); }
[data-style="nalagu-rose"] .preview-live-hero { background: linear-gradient(135deg, #9e2f58, #ffd8a8); }
[data-style="haldi"] .preview-live-hero { background: linear-gradient(135deg, #cc9615, #1b8a67); }
[data-style="blessings"] .preview-live-hero { background: linear-gradient(135deg, #7c3156, #d7a15e); }

@supports (animation-timeline: view()) {
  .preview-live-cards article,
  .preview-story-grid > *,
  .preview-timeline article,
  .preview-rsvp > * {
    animation: preview-rise both;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
  }
}

@keyframes preview-rise {
  from { opacity: .2; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .hero {
    background-image:
      linear-gradient(90deg, rgba(13, 20, 47, .88) 0%, rgba(46, 13, 30, .72) 46%, rgba(46, 13, 30, .08) 100%),
      url('../img/hero-wide.png');
  }
  .enhanced-footer,
  .preview-live-grid,
  .preview-story-grid,
  .preview-rsvp {
    grid-template-columns: 1fr 1fr;
  }
  .preview-live-copy h1 {
    font-size: 54px;
  }
  .preview-phone {
    min-height: 500px;
  }
}

@media (max-width: 760px) {
  .brand-logo-mark {
    width: 48px;
    height: 32px;
    flex-basis: 48px;
  }
  .hero {
    background-image:
      linear-gradient(180deg, rgba(13, 20, 47, .9) 0%, rgba(46, 13, 30, .72) 56%, rgba(46, 13, 30, .12) 100%),
      url('../img/hero-wide.png');
    background-size: cover;
    background-position: center;
    padding: 26px 0 0;
  }
  .mobile-showcase {
    display: none;
  }
  .proof-item {
    min-height: 0;
  }
  .template-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
  }
  .template-tab {
    flex: 0 0 auto;
  }
  .template-actions,
  .template-card-footer {
    width: 100%;
  }
  .template-actions .btn {
    flex: 1 1 0;
    justify-content: center;
  }
  .enhanced-footer,
  .preview-live-grid,
  .preview-live-cards,
  .preview-story-grid,
  .preview-timeline,
  .preview-rsvp {
    grid-template-columns: 1fr;
  }
  .footer-logo {
    width: 140px;
    height: 72px;
  }
  .preview-live-hero {
    min-height: auto;
  }
  .preview-live-grid {
    gap: 28px;
    padding: 42px 0;
  }
  .preview-live-copy h1 {
    font-size: 42px;
  }
  .preview-live-copy p,
  .preview-story-grid p,
  .preview-rsvp p {
    font-size: 16px;
  }
  .preview-phone {
    min-height: 430px;
    transform: none;
  }
  .preview-3d-stack span,
  .preview-3d-stack span:nth-child(2),
  .preview-3d-stack span:nth-child(3) {
    transform: none;
  }
  .preview-live-section {
    padding: 46px 0;
  }
  .preview-story-grid h2,
  .preview-rsvp h2,
  .compact-head h2 {
    font-size: 32px;
  }
}
