@font-face {
  font-family: "Comfortaa";
  src: url("../assets/fonts/Comfortaa-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Comfortaa";
  src: url("../assets/fonts/Comfortaa-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Local";
  src: url("../assets/fonts/Roboto-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Nauryz";
  src: url("../assets/fonts/NauryzRedKeds.woff2") format("woff2");
  font-display: swap;
}

:root {
  --accent: #ff4d6d;
  --accent-dark: #e63758;
  --ink: #281722;
  --muted: #74656d;
  --line: #eee2e5;
  --page: #fff8f6;
  --card: rgb(255 255 255 / 88%);
  --theme-bg: linear-gradient(145deg, #fff4f5, #ffe5df);
  --theme-soft: #fff0f2;
  --theme-contrast: #ff4d6d;
}

body[data-theme="night"] {
  --accent: #8d7cff;
  --accent-dark: #7664eb;
  --page: #171424;
  --ink: #f7f2ff;
  --muted: #aaa0bd;
  --line: #3c354e;
  --card: rgb(38 32 55 / 90%);
  --theme-bg: linear-gradient(145deg, #28223c, #171523);
  --theme-soft: #302943;
  --theme-contrast: #a092ff;
}

body[data-theme="mint"] {
  --accent: #2a9d78;
  --accent-dark: #208667;
  --page: #f4fbf7;
  --theme-bg: linear-gradient(145deg, #f3fff8, #dff5e8);
  --theme-soft: #e8f8ef;
  --theme-contrast: #2a9d78;
}

body[data-theme="peach"] {
  --accent: #ef7654;
  --accent-dark: #d96041;
  --page: #fff9f0;
  --theme-bg: linear-gradient(145deg, #fff8ef, #ffe5cc);
  --theme-soft: #fff0df;
  --theme-contrast: #ef7654;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 8% 5%, rgb(255 255 255 / 70%), transparent 27%),
    var(--page);
  color: var(--ink);
  font-family: "Comfortaa", system-ui, sans-serif;
  transition: background 300ms ease, color 300ms ease;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

.meeting-header,
.meeting-footer {
  position: relative;
  z-index: 30;
  display: flex;
  width: min(100% - 40px, 1200px);
  align-items: center;
  justify-content: space-between;
  margin-inline: auto;
}

.meeting-header {
  min-height: 78px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-family: "Nauryz", "Segoe Script", cursive;
  font-size: 30px;
  letter-spacing: 0;
}

.wordmark > span:last-child > span {
  color: var(--accent);
}

.wordmark-icon {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border-radius: 11px;
  background: var(--accent);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 25%, transparent);
  color: white;
  font-family: Arial, sans-serif;
  font-size: 17px;
}

.home-link {
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 55%);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.screen {
  display: none;
}

.screen.is-active {
  display: block;
}

.intro-screen {
  width: min(100% - 40px, 1200px);
  margin-inline: auto;
}

.intro-hero {
  display: grid;
  min-height: 650px;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 70px;
  padding-block: 60px 100px;
}

.eyebrow,
.step-kicker {
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  padding: 9px 13px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 6%, white);
}

.intro-copy h1 {
  max-width: 690px;
  margin: 22px 0;
  font-family: "Roboto Local", sans-serif;
  font-size: clamp(54px, 6.4vw, 82px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.intro-copy h1 em {
  color: var(--accent);
  font-style: normal;
}

.intro-copy > p {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.main-button,
.next-button,
.generate-button,
.yes-button {
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 14px 32px color-mix(in srgb, var(--accent) 23%, transparent);
  color: white;
  font-weight: 600;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.main-button {
  min-height: 56px;
  margin-top: 29px;
  padding: 0 25px;
  font-size: 13px;
}

.main-button span {
  margin-left: 13px;
}

.main-button:hover,
.next-button:hover,
.generate-button:hover,
.yes-button:hover:not(:disabled) {
  box-shadow: 0 18px 39px color-mix(in srgb, var(--accent) 31%, transparent);
  transform: translateY(-2px);
}

.intro-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.intro-notes span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9px;
}

.intro-preview {
  position: relative;
  display: grid;
  min-height: 570px;
  place-items: center;
}

.preview-glow {
  position: absolute;
  width: 470px;
  height: 470px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffe0e2, #fff1dc);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 70%);
}

.demo-phone,
.preview-phone {
  position: relative;
  width: 275px;
  height: 545px;
  padding: 8px;
  border-radius: 47px;
  background: #231d21;
  box-shadow: 0 40px 90px rgb(62 34 48 / 24%);
}

.demo-phone {
  transform: rotate(3deg);
}

.phone-island {
  position: absolute;
  z-index: 4;
  top: 16px;
  left: 50%;
  width: 86px;
  height: 23px;
  border-radius: 999px;
  background: #231d21;
  transform: translateX(-50%);
}

.demo-screen,
.preview-screen {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 45px 23px 28px;
  overflow: hidden;
  border-radius: 39px;
  background: var(--theme-bg);
  text-align: center;
}

.mini-brand,
.preview-brand {
  position: absolute;
  top: 50px;
  color: var(--theme-contrast);
  font-family: "Nauryz", cursive;
  font-size: 16px;
  font-weight: 400;
}

.demo-icon,
.preview-scenario-icon {
  display: block;
  margin-bottom: 18px;
  font-size: 62px;
  filter: drop-shadow(0 12px 18px rgb(48 25 37 / 14%));
}

.demo-image,
.preview-image,
.recipient-image {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 100%;
  flex: 0 0 auto;
  width: 158px;
  height: 132px;
  margin-bottom: 14px;
  border-radius: 22px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgb(48 25 37 / 10%));
}

.demo-image {
  width: 175px;
  height: 150px;
}

.demo-screen small,
.preview-screen small {
  color: var(--muted);
  font-size: 9px;
}

.demo-screen h2,
.preview-screen h3 {
  margin: 12px 0;
  font-family: "Roboto Local", sans-serif;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.13;
  letter-spacing: -0.03em;
}

.demo-screen p,
.preview-screen p {
  max-width: 195px;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.demo-screen > div:last-child,
.preview-actions {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 0.65fr;
  gap: 7px;
  margin-top: 24px;
}

.demo-screen > div:last-child span,
.preview-actions span {
  padding: 11px 5px;
  border-radius: 999px;
  background: var(--theme-contrast);
  color: white;
  font-size: 8px;
  font-weight: 600;
}

.demo-screen > div:last-child span:last-child,
.preview-actions span:last-child {
  border: 1px solid color-mix(in srgb, var(--theme-contrast) 15%, transparent);
  background: rgb(255 255 255 / 72%);
  color: var(--muted);
}

.demo-tag {
  position: absolute;
  z-index: 5;
  min-width: 160px;
  padding: 14px 16px;
  border: 1px solid rgb(255 255 255 / 80%);
  border-radius: 17px;
  background: rgb(255 255 255 / 85%);
  box-shadow: 0 16px 40px rgb(74 37 55 / 12%);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
  backdrop-filter: blur(12px);
}

.demo-tag b {
  color: var(--ink);
  font-family: "Roboto Local", sans-serif;
  font-size: 12px;
  font-weight: 500;
}

.tag-top {
  top: 15%;
  right: -4%;
  transform: rotate(-2deg);
}

.tag-bottom {
  bottom: 16%;
  left: -6%;
  transform: rotate(2deg);
}

.intro-how {
  padding: 75px 50px 58px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgb(255 255 255 / 62%);
  text-align: center;
}

.intro-section-title > span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.intro-section-title h2 {
  margin: 10px 0 40px;
  font-family: "Roboto Local", sans-serif;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.intro-how ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.intro-how li {
  min-height: 190px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
}

.intro-how li b {
  color: var(--accent);
  font-family: "Roboto Local", sans-serif;
  font-size: 11px;
}

.intro-how li span {
  display: block;
  margin: 34px 0 8px;
  font-family: "Roboto Local", sans-serif;
  font-size: 17px;
}

.intro-how li p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.secondary-cta {
  min-height: 50px;
  margin-top: 30px;
  padding: 0 23px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}

.builder-screen {
  min-height: calc(100vh - 140px);
  padding: 28px 20px 80px;
}

.builder-shell {
  width: min(100%, 1120px);
  margin-inline: auto;
}

.builder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.back-button,
.builder-head > div button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
}

.builder-head > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.builder-head > div span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
}

.builder-head > div button {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.progress {
  position: relative;
  display: flex;
  width: min(100% - 40px, 760px);
  align-items: center;
  justify-content: space-between;
  margin: 24px auto 30px;
  counter-reset: builder-step;
}

.progress::before {
  position: absolute;
  z-index: 0;
  right: 20px;
  left: 20px;
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 15%, white);
  content: "";
}

.progress span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 17%, white);
  color: var(--accent-dark);
  counter-increment: builder-step;
  font-size: 12px;
  font-weight: 700;
  transition: background 240ms ease, color 240ms ease, transform 240ms ease;
}

.progress span::after {
  content: counter(builder-step);
}

.progress span.is-active {
  background: var(--accent);
  color: white;
  transform: scale(1.08);
}

.builder-layout {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  align-items: start;
  gap: 25px;
}

.form-card {
  grid-column: 2;
  grid-row: 1;
}

.form-card,
.result-card {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 30px;
  background: var(--card);
  box-shadow: 0 24px 70px rgb(70 36 53 / 9%);
  backdrop-filter: blur(16px);
}

.form-step {
  display: none;
}

.form-step.is-active {
  display: block;
}

.form-step h1,
.form-step h2,
.result-card h2 {
  margin: 10px 0;
  font-family: "Roboto Local", sans-serif;
  font-size: clamp(32px, 5vw, 43px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.step-description {
  margin: 0 0 27px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

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

.scenario-option input,
.theme-grid input,
.effect-list input,
.segmented-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.scenario-option > span {
  display: flex;
  min-height: 124px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 13px 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgb(255 255 255 / 72%);
  cursor: pointer;
  text-align: center;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.scenario-option > span:hover {
  transform: translateY(-2px);
}

.scenario-option i {
  margin-bottom: 10px;
  font-size: 31px;
  font-style: normal;
}

.scenario-option b {
  font-family: "Roboto Local", sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.scenario-option small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}

.scenario-option input:checked + span {
  border-color: var(--accent);
  background: var(--theme-soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 8%, transparent);
}

.next-button,
.generate-button {
  display: inline-flex;
  min-width: 150px;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 25px;
  padding: 0 22px;
  font-size: 11px;
}

.next-button {
  float: right;
}

.next-button span {
  font-size: 17px;
}

.field-pair,
.choice-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.choice-inputs {
  grid-template-columns: repeat(3, 1fr);
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.field > span,
.segmented-field legend,
.design-fieldset legend {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.field > span {
  display: flex;
  justify-content: space-between;
}

.field > span small {
  color: #a99ba2;
  font-size: 8px;
}

.field input,
.field textarea,
.recipient-date-fields input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: 0;
  background: rgb(255 255 255 / 76%);
  color: var(--ink);
  font-size: 11px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field input {
  min-height: 47px;
  padding: 0 13px;
}

.field textarea {
  padding: 13px;
  line-height: 1.5;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.recipient-date-fields input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 9%, transparent);
}

.segmented-field,
.design-fieldset {
  margin: 20px 0 0;
  padding: 0;
  border: 0;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.preset-grid input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.preset-grid label > span {
  display: grid;
  min-height: 92px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  cursor: pointer;
}

.preset-grid img {
  width: 100%;
  height: 90px;
  object-fit: contain;
  transition: transform 180ms ease;
}

.preset-grid label:hover img {
  transform: scale(1.05);
}

.preset-grid input:checked + span {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 9%, transparent);
}

.segmented-field > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 9px;
  padding: 5px;
  border-radius: 14px;
  background: #f3ecef;
}

.segmented-field label span {
  display: grid;
  min-height: 39px;
  place-items: center;
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
}

.segmented-field input:checked + span {
  background: white;
  box-shadow: 0 5px 15px rgb(50 28 39 / 7%);
  color: var(--ink);
  font-weight: 600;
}

.step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 25px;
}

.step-actions .next-button,
.step-actions .generate-button {
  float: none;
  margin: 0;
}

.prev-button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 9px;
}

.theme-grid label > span {
  display: grid;
  min-height: 75px;
  place-items: center;
  gap: 5px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(255 255 255 / 65%);
  cursor: pointer;
}

.theme-grid i {
  width: 32px;
  height: 22px;
  border-radius: 8px;
}

.theme-rose i {
  background: linear-gradient(135deg, #ffb8c3, #ffe4d7);
}

.theme-night i {
  background: linear-gradient(135deg, #28223c, #8d7cff);
}

.theme-mint i {
  background: linear-gradient(135deg, #b8e2ca, #ecfff4);
}

.theme-peach i {
  background: linear-gradient(135deg, #ffcba8, #fff1de);
}

.theme-grid b {
  font-size: 8px;
  font-weight: 600;
}

.theme-grid input:checked + span {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 9%, transparent);
}

.compact-effect-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 9px;
}

.compact-effect-grid--five {
  grid-template-columns: repeat(5, 1fr);
}

.compact-effect-grid input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.compact-effect-grid label > span {
  display: grid;
  min-height: 70px;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 8px 5px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgb(255 255 255 / 65%);
  cursor: pointer;
  text-align: center;
}

.compact-effect-grid i {
  color: var(--accent);
  font-family: "Roboto Local", sans-serif;
  font-size: 19px;
  font-style: normal;
}

.compact-effect-grid b {
  font-size: 7px;
  font-weight: 600;
}

.compact-effect-grid input:checked + span {
  border-color: var(--accent);
  background: var(--theme-soft);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 8%, transparent);
}

.effect-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 9px;
}

.effect-list label > span {
  display: flex;
  min-height: 83px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(255 255 255 / 65%);
  cursor: pointer;
  flex-wrap: wrap;
}

.effect-list i {
  width: 29px;
  font-size: 19px;
  font-style: normal;
}

.effect-list b {
  width: calc(100% - 29px);
  font-family: "Roboto Local", sans-serif;
  font-size: 10px;
  font-weight: 500;
}

.effect-list small {
  width: 100%;
  margin: 7px 0 0 29px;
  color: var(--muted);
  font-size: 7px;
}

.effect-list input:checked + span {
  border-color: var(--accent);
  background: var(--theme-soft);
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.summary-grid div {
  min-height: 72px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(255 255 255 / 58%);
}

.summary-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 8px;
}

.summary-grid b {
  font-family: "Roboto Local", sans-serif;
  font-size: 11px;
  font-weight: 500;
}

.summary-grid .summary-address {
  grid-column: 1 / -1;
  min-height: auto;
}

.save-note {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--theme-soft);
  color: var(--muted);
  font-size: 8px;
  line-height: 1.55;
}

.generation-error {
  margin-top: 13px;
  padding: 11px 13px;
  border: 1px solid #ffc8ce;
  border-radius: 12px;
  background: #fff0f1;
  color: #b72f45;
  font-size: 9px;
}

.generate-button i {
  font-style: normal;
}

.live-preview {
  position: sticky;
  top: 25px;
  display: flex;
  grid-column: 1;
  grid-row: 1;
  align-items: center;
  flex-direction: column;
  padding: 22px 20px 18px;
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 29px;
  background: var(--card);
  box-shadow: 0 24px 70px rgb(70 36 53 / 9%);
  backdrop-filter: blur(16px);
}

.preview-label {
  display: flex;
  width: 100%;
  align-items: center;
  align-self: flex-start;
  gap: 7px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}

.preview-label button {
  margin-left: auto;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--accent);
  font-size: 7px;
  font-weight: 600;
  text-transform: none;
}

.preview-label span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #37b673;
  box-shadow: 0 0 0 4px rgb(55 182 115 / 12%);
}

.preview-phone {
  width: 270px;
  height: 535px;
  border-radius: 41px;
  box-shadow: 0 26px 55px rgb(54 29 42 / 22%);
}

.preview-phone .phone-island {
  top: 14px;
  width: 76px;
  height: 20px;
}

.preview-phone .preview-screen {
  padding-inline: 18px;
  border-radius: 34px;
}

.preview-phone .preview-brand {
  top: 43px;
}

.preview-scenario-icon {
  font-size: 52px;
}

.preview-phone .preview-screen h3 {
  font-size: 20px;
}

.preview-phone .preview-image {
  width: 132px;
  height: 105px;
  margin-bottom: 10px;
}

.live-preview > p {
  max-width: 250px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 7px;
  line-height: 1.5;
  text-align: center;
}

.result-card {
  width: min(100%, 680px);
  margin: 30px auto;
  text-align: center;
}

.result-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #e8f8ee;
  color: #20874d;
  font-size: 24px;
}

.result-card > p {
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.short-url {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
}

.short-url input {
  min-width: 0;
  min-height: 51px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: 0;
  background: white;
  color: var(--ink);
  font-size: 11px;
}

.short-url button {
  padding: 0 16px;
  border: 0;
  border-radius: 13px;
  background: var(--accent);
  color: white;
  font-size: 9px;
  font-weight: 600;
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.result-actions button,
.result-actions a {
  display: grid;
  min-height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  color: var(--ink);
  font-size: 9px;
  font-weight: 600;
}

.telegram-connect {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  border-radius: 13px;
  background: #2aabee;
  color: white;
  font-size: 9px;
  font-weight: 600;
}

.telegram-connect[hidden],
.telegram-connect-note[hidden] {
  display: none;
}

.telegram-connect-note {
  margin: 8px auto 0 !important;
  font-size: 8px !important;
}

.create-another {
  margin-top: 20px;
  padding: 6px;
  border: 0;
  border-bottom: 1px solid var(--muted);
  background: transparent;
  color: var(--muted);
  font-size: 8px;
}

.recipient-loading,
.recipient-error,
.recipient-flow,
.accepted-screen {
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
}

.recipient-loading.is-active,
.recipient-error.is-active,
.recipient-flow.is-active,
.accepted-screen.is-active {
  display: flex;
}

.recipient-loading {
  flex-direction: column;
  color: var(--muted);
  font-size: 10px;
}

.loader-heart {
  color: var(--accent);
  font-family: Arial, sans-serif;
  font-size: 58px;
  animation: heartbeat 1.2s ease-in-out infinite;
}

.error-card,
.recipient-card,
.accepted-card {
  position: relative;
  width: min(100%, 540px);
  padding: clamp(30px, 6vw, 54px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--theme-contrast) 12%, white);
  border-radius: 34px;
  background: color-mix(in srgb, var(--card) 90%, transparent);
  box-shadow: 0 30px 90px rgb(54 28 42 / 15%);
  text-align: center;
  backdrop-filter: blur(16px);
}

.error-card > span {
  display: grid;
  width: 55px;
  height: 55px;
  place-items: center;
  margin-inline: auto;
  border-radius: 50%;
  background: var(--theme-soft);
  color: var(--accent);
  font-size: 24px;
}

.error-card h1,
.recipient-card h1,
.accepted-card h1 {
  margin: 20px 0 12px;
  font-family: "Roboto Local", sans-serif;
  font-size: clamp(33px, 7vw, 48px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.error-card p,
.recipient-card > p,
.accepted-card > p {
  margin: 0 auto 25px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.error-card a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  padding: 0 19px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 9px;
  font-weight: 600;
}

.recipient-progress {
  position: absolute;
  top: 30px;
  left: 50%;
  display: grid;
  width: min(calc(100% - 40px), 460px);
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  transform: translateX(-50%);
}

.recipient-progress span {
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.recipient-progress span.is-active,
.recipient-progress span.is-done {
  background: var(--accent);
}

.ambient-layer {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.ambient-layer i {
  position: absolute;
  bottom: -28px;
  color: color-mix(in srgb, var(--accent) 46%, transparent);
  font-style: normal;
  animation: ambient-rise var(--duration, 6s) linear infinite;
  animation-delay: var(--delay, 0s);
}

.ambient-layer[data-effect="bubbles"] i {
  width: var(--size, 16px);
  height: var(--size, 16px);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  border-radius: 50%;
  color: transparent;
}

.ambient-layer[data-effect="stars"] i {
  color: color-mix(in srgb, var(--accent) 53%, transparent);
}

.recipient-card > *:not(.ambient-layer),
.accepted-card > *:not(.ambient-layer) {
  position: relative;
  z-index: 2;
}

.recipient-brand {
  position: absolute;
  top: 22px;
  left: 50%;
  color: var(--accent);
  font-family: "Nauryz", cursive;
  font-size: 16px;
  font-weight: 400;
  transform: translateX(-50%);
}

.recipient-image {
  width: min(100%, 230px);
  height: 180px;
  margin: 16px auto 12px;
  border-radius: 24px;
  object-fit: contain;
}

.recipient-image--confirm {
  height: 190px;
}

.recipient-icon,
.confirm-emoji,
.accepted-heart {
  display: block;
  margin: 18px 0 16px;
  font-size: 64px;
  line-height: 1;
}

.recipient-card > small,
.accepted-card > small {
  color: var(--muted);
  font-size: 9px;
}

.answer-zone {
  position: relative;
  display: grid;
  min-height: 58px;
  grid-template-columns: 1fr 0.65fr;
  gap: 9px;
}

.yes-button,
.no-button {
  min-height: 52px;
  padding: 0 18px;
  font-size: 10px;
}

.no-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 82%, white);
  color: var(--muted);
  transition: transform 180ms ease, opacity 180ms ease;
}

.gentle-hint {
  margin-top: 15px;
  color: var(--accent);
  font-size: 9px;
}

.full-button {
  width: 100%;
}

.recipient-fixed-date,
.ticket {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 24px 0 17px;
}

.recipient-fixed-date div,
.ticket div {
  padding: 14px 10px;
  border-radius: 14px;
  background: var(--theme-soft);
}

.recipient-fixed-date small,
.ticket span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 7px;
}

.recipient-fixed-date b,
.ticket b {
  font-family: "Roboto Local", sans-serif;
  font-size: 11px;
  font-weight: 500;
}

.recipient-location {
  display: grid;
  gap: 5px;
  margin: -6px 0 17px;
  padding: 14px;
  border-radius: 14px;
  background: var(--theme-soft);
  text-align: left;
}

.recipient-location small,
.recipient-location span {
  color: var(--muted);
  font-size: 8px;
}

.recipient-location b {
  font-family: "Roboto Local", sans-serif;
  font-size: 11px;
  font-weight: 500;
}

.recipient-location[hidden],
.ticket .ticket-address[hidden] {
  display: none;
}

.recipient-date-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 23px 0 16px;
}

.recipient-date-fields label {
  display: grid;
  gap: 7px;
  text-align: left;
}

.recipient-date-fields span {
  color: var(--muted);
  font-size: 8px;
}

.recipient-date-fields input {
  min-height: 47px;
  padding: 0 10px;
}

.recipient-choices {
  display: grid;
  gap: 8px;
  margin: 23px 0 15px;
}

.recipient-choices button {
  min-height: 49px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--card) 82%, white);
  font-size: 10px;
  text-align: left;
}

.recipient-choices button.is-selected {
  border-color: var(--accent);
  background: var(--theme-soft);
  color: var(--accent-dark);
  font-weight: 600;
}

.choice-card .yes-button:disabled {
  opacity: 0.38;
}

.accepted-screen {
  position: relative;
}

.accepted-card {
  width: min(100%, 590px);
}

.accepted-heart {
  color: var(--accent);
  font-family: Arial, sans-serif;
  font-size: 74px;
  animation: heartbeat 1.8s ease-in-out infinite;
}

.ticket {
  grid-template-columns: repeat(2, 1fr);
}

.ticket .ticket-address {
  grid-column: 1 / -1;
}

.sender-sign {
  margin-bottom: 15px !important;
  color: var(--ink) !important;
  font-weight: 600;
}

.acceptance-status {
  display: block;
  margin: -4px 0 16px;
  color: var(--muted);
}

.made-with {
  color: var(--accent);
  font-size: 8px;
}

.confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti i {
  position: absolute;
  top: -30px;
  width: 8px;
  height: 14px;
  border-radius: 3px;
  animation: confetti-fall 3s linear forwards;
}

.meeting-footer {
  min-height: 72px;
  color: var(--muted);
  font-size: 9px;
}

.meeting-footer button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #a99ca3;
  font-size: 9px;
}

.entry-pop {
  animation: card-pop 620ms cubic-bezier(0.18, 0.85, 0.28, 1.18) both;
}

.entry-slide {
  animation: card-slide 650ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.entry-bounce {
  animation: card-bounce 760ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.entry-flip {
  animation: card-flip 720ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  backface-visibility: hidden;
}

.effect-shake {
  animation: yes-shake 650ms ease both;
}

.effect-pulse {
  animation: yes-pulse 700ms ease both;
}

.effect-sparkles {
  animation: yes-sparkles 780ms ease both;
}

.kiss-overlay {
  position: absolute;
  z-index: 8;
  width: 68px;
  height: 68px;
  pointer-events: none;
  animation: kiss-pop 520ms cubic-bezier(0.2, 0.9, 0.2, 1.25) both;
}

@keyframes ambient-rise {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(0.7);
  }
  15% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift, 18px), -620px, 0) rotate(280deg) scale(1.15);
  }
}

@keyframes card-pop {
  from {
    opacity: 0;
    transform: scale(0.72);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes card-slide {
  from {
    opacity: 0;
    transform: translateX(90px) rotate(3deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotate(0);
  }
}

@keyframes card-bounce {
  0% {
    opacity: 0;
    transform: translateY(-70px) scale(0.92);
  }
  55% {
    opacity: 1;
    transform: translateY(13px) scale(1.02);
  }
  75% {
    transform: translateY(-7px);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes card-flip {
  from {
    opacity: 0;
    transform: perspective(800px) rotateY(-72deg) scale(0.9);
  }
  to {
    opacity: 1;
    transform: perspective(800px) rotateY(0) scale(1);
  }
}

@keyframes yes-shake {
  0%,
  100% {
    transform: translateX(0) rotate(0);
  }
  18% {
    transform: translateX(-12px) rotate(-2deg);
  }
  36% {
    transform: translateX(12px) rotate(2deg);
  }
  54% {
    transform: translateX(-8px) rotate(-1deg);
  }
  72% {
    transform: translateX(8px) rotate(1deg);
  }
}

@keyframes yes-pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent);
  }
  70% {
    box-shadow: 0 0 0 45px color-mix(in srgb, var(--accent) 0%, transparent);
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

@keyframes yes-sparkles {
  0%,
  100% {
    filter: brightness(1);
  }
  35% {
    filter: brightness(1.22) saturate(1.35);
    box-shadow: 0 0 35px color-mix(in srgb, var(--accent) 52%, transparent);
  }
}

@keyframes kiss-pop {
  0% {
    opacity: 0;
    transform: scale(0.15) rotate(-18deg);
  }
  65% {
    opacity: 1;
    transform: scale(1.18) rotate(8deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  12% {
    transform: scale(1.12);
  }
  24% {
    transform: scale(1);
  }
  36% {
    transform: scale(1.08);
  }
}

@keyframes confetti-fall {
  to {
    transform: translate3d(var(--drift), calc(100vh + 60px), 0) rotate(720deg);
  }
}

@media (max-width: 920px) {
  .intro-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .intro-copy > p {
    margin-inline: auto;
  }

  .intro-notes {
    justify-content: center;
  }

  .intro-preview {
    margin-top: -30px;
  }

  .builder-layout {
    grid-template-columns: 1fr;
  }

  .form-card {
    grid-column: auto;
    grid-row: 2;
  }

  .live-preview {
    position: static;
    grid-column: auto;
    grid-row: 1;
  }

  .live-preview > p {
    display: none;
  }

  .preview-phone {
    width: 205px;
    height: 405px;
  }
}

@media (max-width: 680px) {
  .meeting-header,
  .meeting-footer,
  .intro-screen {
    width: calc(100% - 28px);
  }

  .meeting-header {
    min-height: 68px;
  }

  .wordmark {
    font-size: 19px;
  }

  .wordmark-icon {
    width: 30px;
    height: 30px;
  }

  .home-link {
    padding: 8px 11px;
    font-size: 9px;
  }

  .intro-hero {
    gap: 35px;
    padding-block: 40px 75px;
  }

  .intro-copy h1 {
    font-size: clamp(47px, 14vw, 64px);
  }

  .intro-copy > p {
    font-size: 13px;
  }

  .intro-preview {
    min-height: 510px;
    transform: scale(0.88);
  }

  .tag-top {
    right: -8%;
  }

  .tag-bottom {
    left: -8%;
  }

  .intro-how {
    padding: 52px 18px 38px;
  }

  .intro-how ol {
    grid-template-columns: 1fr;
  }

  .intro-how li {
    min-height: 155px;
  }

  .intro-how li span {
    margin-top: 25px;
  }

  .builder-screen {
    padding: 20px 12px 60px;
  }

  .builder-head {
    align-items: flex-start;
  }

  .builder-head > div {
    align-items: flex-end;
    flex-direction: column;
    gap: 5px;
  }

  .form-card,
  .result-card {
    padding: 25px 17px;
    border-radius: 24px;
  }

  .scenario-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .field-pair,
  .choice-inputs {
    grid-template-columns: 1fr;
  }

  .theme-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .preset-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .compact-effect-grid,
  .compact-effect-grid--five {
    grid-template-columns: repeat(2, 1fr);
  }

  .effect-list {
    grid-template-columns: 1fr;
  }

  .effect-list label > span {
    min-height: 68px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .short-url,
  .result-actions {
    grid-template-columns: 1fr;
  }

  .short-url button {
    min-height: 48px;
  }

  .recipient-progress {
    top: 15px;
  }

  .recipient-flow,
  .accepted-screen {
    align-items: flex-start;
    padding-top: 50px;
  }

  .recipient-card,
  .accepted-card {
    padding: 42px 20px 28px;
    border-radius: 27px;
  }

  .answer-zone,
  .recipient-fixed-date,
  .recipient-date-fields,
  .ticket {
    grid-template-columns: 1fr;
  }

  .meeting-footer {
    min-height: 90px;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
