:root {
  --page-bg: #f6f0ea;
  --paper: #fffaf5;
  --paper-strong: #ffffff;
  --ink: #171717;
  --muted: #65676d;
  --soft: #e6ddd5;
  --black: #171717;
  --accent: #a06f55;
  --accent-soft: #f1e2d8;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --shadow-soft: 0 24px 70px rgba(25, 22, 20, 0.08);
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Bodoni Moda", "Libre Baskerville", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--sans);
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.hidden {
  display: none !important;
}

.landing-page {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

.site-header,
.flow-header {
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: 22px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.landing-header {
  justify-content: flex-end;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  text-decoration: none;
  line-height: 1;
}

.brand-logo {
  display: block;
  width: auto;
  height: 22px;
  max-width: 96px;
  object-fit: contain;
}

.hero-logo {
  display: block;
  width: clamp(150px, 24vw, 230px);
  height: auto;
  margin: 0 auto 22px;
  object-fit: contain;
}

.header-nav {
  display: none;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.header-nav a {
  text-decoration: none;
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 0;
  background: transparent;
  border: 0;
}

.hero-section {
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: 58px 18px 44px;
}

.hero-content {
  max-width: 830px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

.mobile-break {
  display: none;
}

@media (max-width: 640px) {
  .mobile-break {
    display: block;
  }
}

.hero-content h1,
.plans-hero h1,
.live-editor-hero h1 {
  margin: 12px auto 18px;
  font-size: clamp(44px, 12vw, 104px);
  line-height: 0.86;
  letter-spacing: -0.08em;
  font-weight: 900;
}

.hero-copy,
.plans-hero p,
.live-editor-hero p,
.builder-copy p,
.section-heading p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.hero-copy {
  max-width: 720px;
  margin: 0 auto;
}

.hero-actions {
  width: max-content;
  max-width: 100%;
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: 220px;
  justify-content: center;
  gap: 10px;
}

.hero-actions .hero-button {
  width: 220px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.button-primary {
  background: var(--black);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(23,23,23,0.14);
}

.button-secondary {
  background: #ffffff;
  color: var(--black);
  border: 1px solid rgba(23,23,23,0.12);
}

.button-light {
  background: #ffffff;
  color: var(--black);
}

.builder-section,
.features-section,
.steps-section,
.plans-section {
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: 54px 18px;
}

.builder-copy,
.section-heading,
.plans-hero,
.live-editor-hero {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
}

.builder-copy h2,
.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(34px, 8vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.07em;
  font-weight: 900;
}

.breathing-title,
.live-editor-hero h1,
.final-summary-heading h2 {
  letter-spacing: -0.035em;
}

.hero-content h1.breathing-title {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 640px) {
  .hero-content h1.breathing-title {
    max-width: 340px;
  }
}

.builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.wedding-form,
.preview-panel,
.plan-card,
.editor-block,
.compact-panel {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(23,23,23,0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.wedding-form {
  padding: 18px;
}

.form-grid,
.editor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.form-field,
.editor-field {
  display: block;
  color: #303236;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.form-field input,
.date-trigger,
.template-select,
.editor-field input,
.editor-field textarea,
.editor-field select,
.publish-controls select,
.publish-controls input,
.edit-sheet textarea,
.edit-sheet input {
  width: 100%;
  min-height: 48px;
  margin-top: 7px;
  border: 1px solid #ddd4cc;
  border-radius: 18px;
  background-color: #fffaf6;
  color: var(--ink);
  padding: 13px 14px;
  font-size: 14px;
  line-height: 1.4;
  outline: none;
  font-family: inherit;
}

.form-field input:focus,
.date-trigger:focus,
.template-select:focus,
.editor-field input:focus,
.editor-field textarea:focus,
.editor-field select:focus,
.publish-controls select:focus,
.publish-controls input:focus,
.edit-sheet textarea:focus,
.edit-sheet input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(23,23,23,0.08);
  background-color: #ffffff;
}

.form-field.is-wide,
.editor-field.is-wide {
  grid-column: 1 / -1;
}

.form-submit {
  width: 100%;
  margin-top: 16px;
}

.calendar-field {
  position: relative;
}

.date-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
}

.date-trigger::after {
  content: "⌄";
  font-weight: 900;
}

.calendar-popover {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  left: 0;
  width: min(320px, calc(100vw - 32px));
  max-width: 100%;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(23,23,23,0.10);
  box-shadow: 0 24px 60px rgba(20,20,20,0.16);
  overflow: hidden;
}

.calendar-header,
.calendar-weekdays,
.calendar-grid {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.calendar-header button {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 0;
  border-radius: 50%;
  background: #f3f0ed;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}

.calendar-header strong {
  min-width: 0;
  font-size: 14px;
  text-transform: capitalize;
  text-align: center;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  overflow: hidden;
}

.calendar-weekdays {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.calendar-weekdays span {
  min-width: 0;
}

.calendar-day {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: #f7f3ef;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.calendar-day.is-muted {
  opacity: 0.32;
  cursor: default;
}

.calendar-day.is-selected {
  background: var(--ink);
  color: #ffffff;
}

.preview-panel {
  padding: 18px;
  background: transparent;
  box-shadow: none;
  border-color: transparent;
}

.preview-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.preview-panel-header h2 {
  margin: 5px 0 0;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.055em;
}

.preview-template-control {
  display: grid;
  gap: 5px;
  min-width: 150px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.template-select {
  min-height: 40px;
  margin: 0;
  appearance: none;
  padding-right: 38px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, #171717 50%),
    linear-gradient(135deg, #171717 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 17px,
    calc(100% - 13px) 17px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.iphone-wrap,
.editor-phone-wrap {
  width: min(82vw, 390px);
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0 24px;
  background: transparent;
}

.iphone-frame,
.editor-phone-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  margin: 0 auto;
  padding: 13px;
  border-radius: 52px;
  background: linear-gradient(145deg, #171412, #3a302b);
  box-shadow:
    0 34px 78px rgba(47,39,35,0.24),
    inset 0 0 0 2px rgba(255,255,255,0.08),
    inset 0 0 0 7px rgba(0,0,0,0.34);
  display: flex;
  overflow: visible;
  flex-shrink: 0;
}

.iphone-island,
.editor-phone-island {
  position: absolute;
  z-index: 70;
  top: 23px;
  left: 50%;
  width: 94px;
  height: 27px;
  pointer-events: none;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #111;
  box-shadow:
    inset 0 -1px 2px rgba(255,255,255,0.08),
    0 2px 8px rgba(0,0,0,0.28);
}

.preview-placeholder,
.generation-panel,
.phone-preview {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 40px;
  box-sizing: border-box;
}

.preview-placeholder,
.generation-panel {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 34px 24px;
  text-align: center;
  background: #fffaf6;
  color: var(--ink);
  overflow: hidden;
}

.preview-placeholder h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0;
}

.generation-panel h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 32px;
  line-height: 0.95;
}

.preview-placeholder p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.generation-steps {
  display: grid;
  gap: 8px;
  width: 100%;
}

.generation-step {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(23,23,23,0.06);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.generation-step.is-active {
  background: var(--ink);
  color: #ffffff;
}

.generation-step.is-complete {
  background: #e8d6c9;
  color: #5c463b;
}

.phone-preview {
  --preview-bg: #fbf4eb;
  --preview-text: #2a201c;
  --preview-muted: #776962;
  --preview-accent: #a06f55;
  --preview-card-bg: rgba(255,255,255,0.66);
  --preview-card-border: rgba(90,60,45,0.12);
  --preview-button-bg: #2a201c;
  --preview-button-text: #ffffff;
  --preview-font-heading: var(--serif);
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--preview-bg);
  color: var(--preview-text);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.phone-preview::-webkit-scrollbar {
  display: none;
}

.phone-preview.template-editorial {
  --preview-bg: #fbf4eb;
  --preview-text: #2a201c;
  --preview-muted: #776962;
  --preview-accent: #a06f55;
  --preview-card-bg: rgba(255,255,255,0.68);
  --preview-card-border: rgba(90,60,45,0.12);
  --preview-button-bg: #2a201c;
  --preview-button-text: #ffffff;
  --preview-font-heading: var(--serif);
}

.phone-preview.template-minimal {
  --preview-bg: #f8f8f8;
  --preview-text: #111111;
  --preview-muted: #686868;
  --preview-accent: #111111;
  --preview-card-bg: #ffffff;
  --preview-card-border: #dddddd;
  --preview-button-bg: #111111;
  --preview-button-text: #ffffff;
  --preview-font-heading: var(--sans);
}

.phone-preview.template-mediterranea {
  --preview-bg: #f3ead9;
  --preview-text: #3a3426;
  --preview-muted: #756d5a;
  --preview-accent: #697350;
  --preview-card-bg: rgba(255,250,239,0.74);
  --preview-card-border: rgba(105,115,80,0.18);
  --preview-button-bg: #697350;
  --preview-button-text: #ffffff;
  --preview-font-heading: var(--serif);
}

.phone-preview.template-urbana {
  --preview-bg: #111111;
  --preview-text: #ffffff;
  --preview-muted: rgba(255,255,255,0.66);
  --preview-accent: #ff4f8b;
  --preview-card-bg: rgba(255,255,255,0.08);
  --preview-card-border: rgba(255,255,255,0.16);
  --preview-button-bg: #ff4f8b;
  --preview-button-text: #111111;
  --preview-font-heading: var(--sans);
}

.preview-hero {
  min-height: 44%;
  padding: 86px 22px 34px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.preview-eyebrow {
  margin: 0 0 12px;
  color: var(--preview-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.preview-hero h2 {
  margin: 0;
  font-family: var(--preview-font-heading);
  font-size: 54px;
  line-height: 0.88;
  letter-spacing: -0.07em;
  color: var(--preview-text);
}

.preview-hero p:last-child {
  margin: 15px 0 0;
  color: var(--preview-muted);
  font-size: 13px;
}

.preview-countdown {
  margin: 0 18px 12px;
  padding: 18px;
  border-radius: 24px;
  background: var(--preview-card-bg);
  border: 1px solid var(--preview-card-border);
  display: grid;
  grid-template-columns: 1fr repeat(3, auto);
  align-items: center;
  gap: 10px;
}

.preview-countdown p {
  margin: 0;
  color: var(--preview-muted);
  font-size: 11px;
  font-weight: 800;
}

.preview-countdown div {
  text-align: center;
}

.preview-countdown span {
  display: block;
  color: var(--preview-text);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.preview-countdown small {
  display: block;
  margin-top: 3px;
  color: var(--preview-muted);
  font-size: 9px;
  font-weight: 800;
}

.preview-info-grid {
  margin: 0 18px 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.preview-info-grid div {
  padding: 15px;
  border-radius: 20px;
  background: var(--preview-card-bg);
  border: 1px solid var(--preview-card-border);
}

.preview-info-grid .wide-info {
  grid-column: 1 / -1;
}

.preview-info-grid span {
  display: block;
  color: var(--preview-muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.preview-info-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--preview-text);
  font-size: 14px;
  line-height: 1.25;
}

.preview-section,
.editor-preview-section-card {
  margin: 0 18px 12px;
  padding: 20px 18px;
  border-radius: 24px;
  background: var(--preview-card-bg);
  border: 1px solid var(--preview-card-border);
}

.preview-section h3,
.editor-preview-section-card h3 {
  margin: 0 0 8px;
  font-family: var(--preview-font-heading);
  font-size: 28px;
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--preview-text);
}

.preview-section p,
.editor-preview-section-card p {
  margin: 0;
  color: var(--preview-muted);
  font-size: 12px;
  line-height: 1.55;
}

.editor-preview-section-card a,
.editor-preview-section-card button.preview-action {
  display: inline-block;
  margin-top: 12px;
  border: 0;
  border-radius: 999px;
  background: var(--preview-button-bg);
  color: var(--preview-button-text);
  padding: 11px 15px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.editor-preview-section-card button.preview-action:disabled {
  opacity: 0.58;
  cursor: default;
}

.editor-preview-status {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--preview-accent);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.preview-rsvp {
  margin: 0 18px 12px;
  padding: 22px 18px;
  border-radius: 24px;
  background: var(--preview-button-bg);
  color: var(--preview-button-text);
  text-align: center;
}

.preview-rsvp h3 {
  margin: 0 0 12px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.preview-rsvp p {
  margin: 0 0 12px;
  color: inherit;
  opacity: 0.76;
  font-size: 12px;
  line-height: 1.5;
}

.preview-rsvp button {
  border: 0;
  border-radius: 999px;
  background: var(--preview-button-text);
  color: var(--preview-button-bg);
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 900;
}

.rsvp-button-stack {
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  width: max-content;
  max-width: 100%;
  justify-items: stretch;
}

.rsvp-button-stack button {
  width: 100%;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.preview-footer {
  padding: 18px 18px 30px;
  color: var(--preview-muted);
  text-align: center;
  font-size: 11px;
}

.preview-footer p {
  margin: 0;
}

.post-preview-cta {
  width: min(calc(100% - 36px), 390px);
  margin: -26px auto 0;
  padding: 18px;
  border-radius: 26px;
  background: #171717;
  color: #ffffff;
  text-align: center;
}

.post-preview-cta h3 {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: -0.05em;
}

.post-preview-cta p {
  margin: 0 0 14px;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  line-height: 1.55;
}

.post-preview-cta small {
  display: block;
  margin-top: 10px;
  color: rgba(255,255,255,0.58);
  font-size: 11px;
}

.feature-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.feature-grid article {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  text-align: left;
  min-height: 64px;
  min-width: 0;
}

.feature-icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 0;
}

.feature-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #171717;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-grid article h3 {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #f4ebe5;
  color: #8f5f45;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-grid article.feature-card-viva {
  position: relative;
  padding-bottom: 38px;
}

.feature-card-viva .feature-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
}

.feature-grid article p {
  display: none;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid rgba(23,23,23,0.12);
}

.steps-grid article {
  padding: 20px 0;
  border-bottom: 1px solid rgba(23,23,23,0.12);
  background: transparent;
}

.steps-grid span {
  display: inline-block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.steps-grid h3 {
  margin: 16px 0 8px;
  font-size: 21px;
  line-height: 1;
  letter-spacing: -0.045em;
}

.steps-grid p,
.section-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.section-note {
  max-width: 720px;
  margin: 18px auto 0;
  text-align: center;
}

.final-cta {
  width: min(calc(100% - 36px), 1124px);
  margin: 54px auto;
  padding: 44px 20px;
  border-radius: 36px;
  background: #171717;
  color: #ffffff;
  text-align: center;
}

.final-cta h2 {
  margin: 10px auto;
  max-width: 720px;
  font-size: clamp(34px, 8vw, 72px);
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.hero-content h1.breathing-title,
.plans-hero h1.breathing-title,
.builder-copy h2.breathing-title,
.section-heading h2.breathing-title,
.final-cta h2.breathing-title {
  letter-spacing: -0.035em;
}

.final-cta p {
  max-width: 560px;
  margin: 0 auto 22px;
  color: rgba(255,255,255,0.68);
}

.commercial-faq-section {
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: 16px 18px 42px;
}

.commercial-faq-list {
  max-width: 760px;
  margin: 22px auto 0;
}

.commercial-faq-item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
}

.commercial-faq-item:first-child {
  padding-top: 0;
}

.commercial-faq-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.commercial-faq-item summary {
  cursor: pointer;
  list-style: none;
  margin: 0;
  color: rgba(23, 23, 23, 0.72);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.commercial-faq-item summary::-webkit-details-marker {
  display: none;
}

.commercial-faq-item summary::after {
  content: "+";
  float: right;
  margin-left: 16px;
  color: rgba(23, 23, 23, 0.45);
  font-weight: 700;
}

.commercial-faq-item[open] summary::after {
  content: "−";
}

.commercial-faq-item p {
  margin: 8px 0 0;
  color: rgba(23, 23, 23, 0.54);
  font-size: 13px;
  line-height: 1.65;
}

.site-footer {
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: 28px 18px 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.plan-page {
  min-height: 100vh;
}

.plans-section {
  padding-top: 30px;
}

.plans-hero h1,
.live-editor-hero h1 {
  font-size: clamp(38px, 8vw, 76px);
}

.plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.plan-card {
  position: relative;
  padding: 22px;
  display: grid;
  gap: 18px;
}

.plan-card.is-recommended {
  background: #171717;
  color: #ffffff;
}

.plan-card.is-viva {
  border: 2px solid transparent;
  background:
    linear-gradient(rgba(255,255,255,0.78), rgba(255,255,255,0.78)) padding-box,
    linear-gradient(135deg, rgba(160,111,85,0.95), rgba(255,79,139,0.58), rgba(105,115,80,0.82), rgba(160,111,85,0.78)) border-box;
  box-shadow:
    var(--shadow-soft),
    0 0 0 1px rgba(255,255,255,0.52) inset,
    0 18px 52px rgba(160,111,85,0.12);
}

.plan-card h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.06em;
}

.plan-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.plan-card.is-recommended p,
.plan-card.is-recommended li {
  color: rgba(255,255,255,0.72);
}

.plan-card.is-recommended .plan-recommended-button {
  background: #ffffff;
  color: #171717;
  border: 1px solid rgba(255,255,255,0.72);
  box-shadow: none;
}

.plan-card strong {
  display: block;
  margin-top: 16px;
  font-size: 42px;
  letter-spacing: -0.07em;
}

.plan-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.plan-card li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--accent);
  font-weight: 900;
}

.plan-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #ffffff;
  color: #171717;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.plan-note,
.plans-microcopy {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.plans-microcopy {
  margin: 18px auto 0;
  text-align: center;
}

.live-editor-page {
  min-height: 100vh;
  padding-bottom: 56px;
}

.live-editor-section {
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: 30px 16px 58px;
}

.live-editor-hero {
  max-width: 780px;
  margin: 0 auto 22px;
  text-align: center;
}

.editor-meta-row {
  width: max-content;
  max-width: 100%;
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  justify-content: center;
  align-items: stretch;
}

.plan-pill,
.template-pill {
  width: 250px;
  max-width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.plan-pill {
  background: #171717;
  border: 1px solid #171717;
  color: rgba(255,255,255,0.72);
  box-shadow: 0 16px 34px rgba(20,20,20,0.14);
}

.plan-pill strong {
  color: #ffffff;
  white-space: nowrap;
}

.template-pill {
  position: relative;
  background: #ffffff;
  border: 1px solid #e6e6e6;
  color: #60646a;
  cursor: pointer;
  overflow: visible;
}

.pill-separator {
  color: #a1a1a1;
}

.template-pill .template-select {
  width: auto;
  min-width: 116px;
  min-height: 40px;
  margin: 0;
  appearance: none;
  padding: 0 38px 0 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  color: #171717;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: none;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, #171717 50%),
    linear-gradient(135deg, #171717 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 17px,
    calc(100% - 13px) 17px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.live-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.live-preview-column {
  order: 1;
  min-width: 0;
}

.live-editor-column {
  order: 2;
  min-width: 0;
  display: grid;
  gap: 12px;
}

.editor-preview-toolbar {
  width: min(82vw, 390px);
  max-width: 100%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #60646a;
  font-size: 13px;
}

.editor-preview-toolbar p,
.editor-preview-toolbar span {
  margin: 0;
}

.editor-preview-toolbar p {
  color: #171717;
  font-weight: 900;
}

.editor-preview-toolbar span {
  display: block;
  margin-top: 3px;
  color: #74777d;
  font-size: 11px;
  line-height: 1.35;
}

.edit-mode-button {
  border: 0;
  border-radius: 999px;
  background: #171717;
  color: #ffffff;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.edit-mode-button.is-active {
  background: #a06f55;
}

.editor-preview-content {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 40px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.editor-preview-content::-webkit-scrollbar {
  display: none;
}

.editor-preview-content.is-editing .editable-preview-block {
  outline: 1px dashed rgba(23,23,23,0.24);
  outline-offset: 3px;
}

.editor-preview-list {
  display: grid;
  gap: 12px;
  padding: 0 18px 28px;
}

.editor-preview-list .preview-countdown,
.editor-preview-list .preview-info-grid,
.editor-preview-list .preview-rsvp {
  margin: 0;
}

.editor-preview-list .preview-info-grid {
  padding: 0;
}

.editable-preview-block {
  position: relative;
}

.section-controls-floating {
  position: absolute;
  z-index: 20;
  top: 8px;
  right: 8px;
  display: none;
  gap: 5px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(23,23,23,0.08);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 22px rgba(20,20,20,0.10);
}

.editor-preview-content.is-editing .section-controls-floating {
  display: flex;
}

.section-controls-floating button {
  width: 27px;
  height: 27px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #171717;
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  padding: 0;
}

.section-controls-floating button:disabled {
  opacity: 0.24;
  cursor: not-allowed;
}

.below-preview-panels {
  width: min(82vw, 390px);
  max-width: 100%;
  margin: 14px auto 0;
  display: grid;
  gap: 10px;
}

.compact-panel {
  padding: 14px;
  border-radius: 22px;
}

.compact-panel h3 {
  margin: 0 0 5px;
  font-size: 17px;
  line-height: 1;
  letter-spacing: -0.035em;
}

.compact-panel p {
  margin: 0;
  color: #70747a;
  font-size: 12px;
  line-height: 1.45;
}

.section-chip-grid {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.section-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #f6f7f8;
  border: 1px solid #e5e5e5;
}

.section-chip strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
}

.section-chip span {
  display: block;
  margin-top: 3px;
  color: #70747a;
  font-size: 11px;
  line-height: 1.35;
}

.section-chip button {
  border: 0;
  border-radius: 999px;
  background: #171717;
  color: #ffffff;
  padding: 9px 11px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.section-chip.is-unavailable {
  opacity: 0.72;
}

.section-chip.is-unavailable button {
  display: none;
}

.editor-block {
  overflow: hidden;
  border-radius: 24px;
}

.editor-block summary {
  list-style: none;
  cursor: pointer;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.editor-block summary::-webkit-details-marker {
  display: none;
}

.editor-block summary h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.045em;
}

.editor-block summary p {
  margin: 5px 0 0;
  color: #70747a;
  font-size: 12px;
  line-height: 1.45;
}

.editor-block-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #171717;
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
  padding-bottom: 1px;
}

.editor-block[open] .editor-block-icon {
  background: #171717;
  color: #ffffff;
}

.editor-block-body {
  padding: 0 18px 18px;
}

.editor-field textarea,
.edit-sheet textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.55;
}

.date-help {
  display: block;
  margin-top: 6px;
  color: #777b82;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 500;
}

.date-help.is-error {
  color: #9a4f3f;
}

.rsvp-phone-row {
  display: grid;
  grid-template-columns: minmax(145px, 0.8fr) minmax(0, 1.2fr);
  gap: 8px;
  align-items: start;
  margin-top: 7px;
}

.rsvp-country-select-wrap {
  position: relative;
  display: block;
  min-width: 0;
}

.rsvp-country-select-wrap::after {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 7px;
  height: 7px;
  content: "";
  border-right: 1.8px solid #303236;
  border-bottom: 1.8px solid #303236;
  pointer-events: none;
  transform: translateY(-65%) rotate(45deg);
}

.editor-field .rsvp-country-select,
.editor-field .rsvp-phone-row input {
  min-height: 48px;
  margin-top: 0;
  border: 1px solid #ddd4cc;
  border-radius: 18px;
  background-color: #fffaf6;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  outline: none;
}

.editor-field .rsvp-country-select {
  width: 100%;
  padding: 13px 34px 13px 14px;
  appearance: none;
  cursor: pointer;
}

.editor-field .rsvp-phone-row input {
  padding: 13px 14px;
}

.editor-field .rsvp-country-select:hover,
.editor-field .rsvp-phone-row input:hover {
  border-color: #cfc4bb;
  background-color: #ffffff;
}

.editor-field .rsvp-country-select:focus,
.editor-field .rsvp-phone-row input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(23,23,23,0.08);
  background-color: #ffffff;
}

.editor-field.has-rsvp-phone-error .rsvp-country-select,
.editor-field.has-rsvp-phone-error .rsvp-phone-row input {
  border-color: #b65f4b;
  background-color: #fff7f4;
}

.editor-field.has-rsvp-phone-error .rsvp-country-select:focus,
.editor-field.has-rsvp-phone-error .rsvp-phone-row input:focus {
  box-shadow: 0 0 0 3px rgba(182,95,75,0.13);
}

.rsvp-phone-help {
  color: #9a4f3f;
}

@media (max-width: 420px) {
  .rsvp-phone-row {
    grid-template-columns: 1fr;
  }
}

.publish-block {
  border: 2px solid transparent;
  box-shadow:
    var(--shadow-soft),
    0 18px 52px rgba(160,111,85,0.12);
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(160,111,85,0.95), rgba(255,79,139,0.58), rgba(105,115,80,0.82), rgba(160,111,85,0.78)) border-box;
}

.publish-block summary h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.publish-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: #171717;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.publish-help {
  margin: 0 0 14px;
  padding: 14px;
  border-radius: 18px;
  background: #f7f1ed;
  color: #6f594e;
  font-size: 13px;
  line-height: 1.55;
}

.publish-list {
  display: grid;
  gap: 10px;
}

.publish-item {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid #e5e5e5;
  background: #fafafa;
}

.publish-item strong {
  display: block;
  font-size: 14px;
  line-height: 1.3;
}

.publish-controls {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.publish-date.is-hidden {
  display: none;
}

.publish-plan-card {
  padding: 14px;
  border-radius: 18px;
  background: #fbfbfb;
  border: 1px dashed #cfcfcf;
  color: #676b71;
  font-size: 12px;
  line-height: 1.55;
}

.toggle-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid #e5e5e5;
  border-radius: 18px;
  background: #fafafa;
  color: #34373b;
  font-size: 13px;
  font-weight: 700;
}

.toggle-box input {
  width: 18px;
  height: 18px;
  accent-color: #171717;
}

.summary-button {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 15px 20px;
  border: 0;
  border-radius: 999px;
  background: #171717;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.editor-continue-block {
  width: 100%;
}

.editor-continue-block .summary-button {
  margin-top: 0;
}

.summary-placeholder {
  display: none;
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  background: #f6f7f8;
  color: #676b71;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.summary-placeholder.is-visible {
  display: block;
}

.final-summary-section {
  margin: 48px auto 0;
  padding: 26px;
  border-radius: 34px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(23,23,23,0.08);
  box-shadow: var(--shadow-soft);
}

.final-summary-heading {
  max-width: 720px;
  margin: 0 auto 24px;
  text-align: center;
}

.final-summary-heading h2 {
  margin: 10px 0 10px;
  font-size: clamp(34px, 7vw, 64px);
  line-height: 0.92;
  letter-spacing: -0.07em;
  font-weight: 900;
}

.final-summary-heading h2,
.thanks-next-title {
  letter-spacing: -0.035em;
}

.final-summary-heading p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.final-summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.final-summary-card {
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(23,23,23,0.08);
}

.final-summary-card h3 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.final-summary-card p {
  margin: 0;
  color: #676b71;
  font-size: 13px;
  line-height: 1.55;
}

.final-summary-price {
  display: block;
  color: #171717;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.final-summary-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.final-summary-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.final-summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 9px;
  border-bottom: 1px solid #eeeeee;
  color: #676b71;
  font-size: 13px;
  line-height: 1.45;
}

.final-summary-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.final-summary-list span {
  color: #676b71;
}

.final-summary-list strong {
  color: #171717;
  text-align: right;
}

.final-summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.final-summary-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 11px;
  border-radius: 999px;
  background: #f6f2ef;
  color: #474a50;
  font-size: 12px;
  font-weight: 800;
}

.final-summary-muted {
  color: #777b82;
}

.thanks-next-title {
  margin: 10px 0;
  font-size: clamp(32px, 9vw, 54px);
  line-height: 0.94;
  letter-spacing: -0.035em;
}

.thanks-next-copy {
  width: clamp(300px, 52vw, 720px);
  max-width: calc(100vw - 48px);
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.thanks-actions .button {
  width: min(100%, 320px);
  white-space: normal;
  text-align: center;
}

.final-summary-actions {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.final-payment-placeholder {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  background: #f6f7f8;
  color: #676b71;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.edit-sheet {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%) translateY(120%);
  width: min(calc(100% - 28px), 460px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #e6e6e6;
  box-shadow: 0 30px 80px rgba(20,20,20,0.22);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  transition: transform 0.22s ease;
}

.edit-sheet.is-visible {
  transform: translateX(-50%) translateY(0);
}

.edit-sheet h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.045em;
}

.edit-sheet p {
  margin: 0 0 14px;
  color: #676b71;
  font-size: 13px;
  line-height: 1.5;
}

.edit-sheet-header {
  min-width: 0;
}

.edit-sheet-body {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-right: 4px;
}

.edit-sheet-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.edit-sheet-actions button {
  border: 0;
  border-radius: 999px;
  padding: 12px 15px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.edit-sheet-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

.edit-sheet-close {
  background: #f1f1f1;
  color: #171717;
}

.edit-sheet-save {
  background: #171717;
  color: #ffffff;
}

.edit-sheet-save:disabled,
.edit-sheet-save:disabled:hover {
  background: #171717;
  color: #ffffff;
}

@media (max-width: 430px) {
  .brand-logo {
    height: 20px;
    max-width: 86px;
  }

  .hero-logo {
    width: clamp(150px, 54vw, 210px);
    margin-bottom: 20px;
  }

  .preview-panel-header {
    flex-direction: column;
  }

  .preview-template-control {
    width: 100%;
  }

  .template-select {
    width: 100%;
  }

  .iphone-frame,
  .editor-phone-frame {
    padding: 11px;
    border-radius: 46px;
  }

  .iphone-island,
  .editor-phone-island {
    top: 20px;
    width: 82px;
    height: 24px;
  }

  .preview-placeholder,
  .generation-panel,
  .phone-preview,
  .editor-preview-content {
    border-radius: 35px;
  }

  .preview-placeholder h3 {
    font-size: 19px;
  }

  .preview-hero h2 {
    font-size: 44px;
  }

  .editor-preview-section-card h3,
  .preview-section h3 {
    font-size: 24px;
  }

  .editor-meta-row {
    width: min(100%, 250px);
  }

  .plan-pill,
  .template-pill {
    width: 100%;
  }

  .editor-preview-toolbar {
    align-items: flex-start;
  }

  .editor-preview-toolbar span {
    display: none;
  }

  .section-controls-floating {
    top: 7px;
    right: 7px;
    gap: 4px;
  }

  .section-controls-floating button {
    width: 25px;
    height: 25px;
    font-size: 11px;
  }

  .final-summary-section {
    padding: 20px 16px;
  }

  .edit-sheet {
    bottom: 10px;
    width: min(calc(100% - 20px), 460px);
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    padding: 16px;
    border-radius: 22px;
  }
}

@media (max-width: 640px) {
  .steps-grid {
    border-top: 0;
  }

  .steps-grid article {
    position: relative;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    column-gap: 14px;
    padding: 18px 0;
    border-bottom: 0;
  }

  .steps-grid article:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 58px;
    bottom: -6px;
    left: 26px;
    width: 1px;
    background: rgba(23,23,23,0.16);
  }

  .steps-grid article:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: -7px;
    left: 22px;
    width: 8px;
    height: 8px;
    border-right: 1px solid rgba(23,23,23,0.24);
    border-bottom: 1px solid rgba(23,23,23,0.24);
    transform: rotate(45deg);
  }

  .steps-grid span {
    position: relative;
    z-index: 1;
    display: grid;
    grid-row: 1 / span 2;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(23,23,23,0.14);
    border-radius: 999px;
    background: #fffaf6;
    color: var(--ink);
    font-size: 22px;
    letter-spacing: 0;
    box-shadow: 0 8px 20px rgba(23,23,23,0.06);
  }

  .steps-grid h3 {
    margin: 3px 0 7px;
    font-size: 19px;
    line-height: 1.04;
    letter-spacing: -0.03em;
  }

  .steps-grid p {
    max-width: 36rem;
  }
}

@media (max-width: 560px), (max-height: 760px) {
  .editor-phone-wrap,
  .editor-preview-toolbar,
  .below-preview-panels {
    width: min(76vw, 360px);
  }
}

@media (max-width: 640px) {
  .flow-header,
  .plans-section {
    width: 100%;
    max-width: 100%;
  }

  .plans-section {
    padding-left: 20px;
    padding-right: 20px;
    overflow-x: hidden;
  }

  .plans-hero,
  .plans-grid,
  .plan-card {
    min-width: 0;
    max-width: 100%;
  }

  .plans-hero,
  .plans-grid {
    width: min(100%, 320px);
    margin-left: auto;
    margin-right: auto;
  }

  .plan-card {
    width: 100%;
    overflow: hidden;
  }

  .plan-card p,
  .plan-card li {
    overflow-wrap: anywhere;
  }

  .plan-badge {
    right: 14px;
    max-width: calc(100% - 28px);
  }
}

@media (min-width: 640px) {
  .hero-actions {
    width: max-content;
    grid-template-columns: repeat(2, 220px);
  }

  .site-footer {
    flex-direction: row;
    justify-content: space-between;
  }

  .final-summary-actions {
    flex-direction: row;
    justify-content: center;
  }

  .final-summary-actions .button {
    min-width: 190px;
  }
}

@media (min-width: 720px) {
  .header-nav {
    display: flex;
  }

  .form-grid,
  .editor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .feature-grid article {
    padding: 14px;
  }

  .feature-grid article h3 {
    font-size: 15px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .plans-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .editor-meta-row {
    grid-template-columns: repeat(2, 250px);
  }

  .editor-block summary {
    padding: 20px;
  }

  .editor-block-body {
    padding: 0 20px 20px;
  }

  .final-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .final-summary-card.is-wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 980px) {
  .builder-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1fr);
  }

  .wedding-form .form-grid {
    grid-template-columns: 1fr;
  }

  .wedding-form .form-field.is-wide {
    grid-column: auto;
  }

  .iphone-wrap {
    width: min(100%, 365px);
  }

  .builder-grid .post-preview-cta {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .plans-grid .plan-card {
    min-height: 100%;
    display: flex;
    flex-direction: column;
  }

  .plans-grid .plan-card > .button {
    width: 100%;
    min-height: 52px;
    margin-top: auto;
  }

  .live-editor-layout {
    grid-template-columns: minmax(0, 1fr) 430px;
  }

  .live-preview-column {
    order: 2;
    position: sticky;
    top: 20px;
  }

  .live-editor-column {
    order: 1;
  }

  .editor-phone-wrap,
  .editor-preview-toolbar,
  .below-preview-panels {
    width: min(100%, 370px);
  }
}

@media (min-width: 980px) and (max-height: 760px) {
  .editor-phone-wrap,
  .editor-preview-toolbar,
  .below-preview-panels {
    width: min(100%, 360px);
  }
}

@media (max-width: 640px) {
  input,
  select,
  textarea,
  .date-trigger,
  .template-select,
  .editor-field .rsvp-country-select,
  .editor-field .rsvp-phone-row input,
  .publish-controls select,
  .publish-controls input,
  .edit-sheet input,
  .edit-sheet select,
  .edit-sheet textarea {
    font-size: 16px;
  }

  .form-field input,
  .date-trigger,
  .template-select,
  .editor-field input,
  .editor-field textarea,
  .editor-field select,
  .publish-controls select,
  .publish-controls input,
  .edit-sheet input,
  .edit-sheet select,
  .edit-sheet textarea,
  .editor-field .rsvp-country-select,
  .editor-field .rsvp-phone-row input {
    min-height: 48px;
  }
}

@media (max-width: 768px) {
  input,
  select,
  textarea,
  button,
  .date-trigger,
  .template-select,
  .rsvp-country-select {
    font-size: 16px !important;
  }

  #weddingForm input,
  #weddingForm select,
  #weddingForm textarea,
  #weddingForm button,
  #dateTrigger,
  #generateButton {
    font-size: 16px !important;
  }
}
