:root {
  --violet: #810081;
  --coral: #fb5e6e;
  --warm: #f7f3ee;
  --sand: #e8ded2;
  --powder: #f4e8f0;
  --lavender: #d9d5e6;
  --ink: #2e2434;
  --muted: #6a5776;
  --white: #ffffff;
  --gradient: linear-gradient(100deg, #810081 0%, #b20b76 48%, #fb5e6e 100%);
  --shadow: 0 22px 58px rgba(46, 36, 52, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--warm);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 100% 4%, rgba(244, 232, 240, 0.88), transparent 34rem),
    var(--warm);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: var(--violet);
  text-underline-offset: 2px;
}

.shell {
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
  padding: 24px 0 38px;
}

.brand {
  display: inline-block;
  color: var(--violet);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 225px;
  height: auto;
}

.panel {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(430px, 0.86fr);
  grid-template-areas:
    "story card"
    "benefits card";
  gap: 34px 52px;
  align-items: start;
  margin-top: 34px;
}

.story {
  position: relative;
  grid-area: story;
  min-width: 0;
  padding: 24px 0 0 14px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 16px;
  color: var(--violet);
  border: 1px solid rgba(129, 0, 129, 0.58);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  font-weight: 700;
}

.eyebrow svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

h1 {
  max-width: 760px;
  margin: 28px 0 20px;
  font-size: clamp(54px, 5.25vw, 78px);
  line-height: 1.01;
  letter-spacing: -0.052em;
}

.page-invite h1 {
  max-width: 690px;
}

.gradient-text {
  color: transparent;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.5;
}

.route {
  display: block;
  position: absolute;
  right: -14px;
  bottom: -18px;
  width: 138px;
  height: 86px;
  color: var(--violet);
  opacity: 0.82;
  pointer-events: none;
}

.route svg {
  display: block;
  width: 100%;
  height: 100%;
}

.card {
  position: relative;
  grid-area: card;
  min-width: 0;
  padding: 30px 34px 34px;
  overflow: hidden;
  border: 1px solid rgba(232, 222, 210, 0.82);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
}

.card::before {
  position: absolute;
  z-index: 0;
  top: -116px;
  right: -112px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 232, 240, 0.86), rgba(244, 232, 240, 0));
  content: "";
  pointer-events: none;
}

.card > * {
  position: relative;
  z-index: 1;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin: 0 0 26px;
  padding: 5px;
  border: 1px solid var(--sand);
  border-radius: 15px;
  background: #fbf8f6;
}

.tab {
  display: grid;
  min-height: 50px;
  place-items: center;
  padding: 9px 10px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.18;
  text-align: center;
  text-decoration: none;
}

.tab.active {
  color: var(--violet);
  border-color: rgba(129, 0, 129, 0.38);
  background: var(--white);
  box-shadow: 0 5px 16px rgba(46, 36, 52, 0.065);
}

.card h2 {
  margin: 0 0 9px;
  font-size: 31px;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.card-intro,
.card > p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.48;
}

label:not(.check) {
  display: block;
  margin: 16px 0 7px;
  font-size: 14px;
  font-weight: 700;
}

.optional {
  color: #8f8294;
  font-weight: 400;
}

input[type="text"],
input[type="tel"],
textarea {
  display: block;
  width: 100%;
  color: var(--ink);
  border: 1px solid #d8cedc;
  border-radius: 13px;
  outline: none;
  background: var(--white);
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"],
input[type="tel"] {
  height: 54px;
  padding: 0 15px;
}

textarea {
  min-height: 106px;
  padding: 13px 15px;
  resize: vertical;
  line-height: 1.42;
}

input::placeholder,
textarea::placeholder {
  color: #aaa0ae;
}

input:focus,
textarea:focus {
  border-color: rgba(129, 0, 129, 0.58);
  box-shadow: 0 0 0 4px rgba(129, 0, 129, 0.08);
}

.support-note {
  display: grid;
  grid-template-columns: 31px 1fr;
  gap: 10px;
  margin-top: 13px;
  padding: 12px;
  color: var(--muted);
  border-radius: 13px;
  background: #fbf7fa;
  font-size: 12.5px;
  line-height: 1.45;
}

.support-note strong {
  color: var(--ink);
}

.support-icon {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  color: var(--violet);
  border-radius: 9px;
  background: var(--powder);
}

.support-icon svg {
  width: 18px;
  height: 18px;
}

.check {
  display: grid;
  grid-template-columns: 21px 1fr;
  gap: 10px;
  align-items: start;
  margin: 18px 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.check input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--violet);
}

.button {
  display: grid;
  width: 100%;
  min-height: 56px;
  place-items: center;
  padding: 14px 18px;
  color: var(--white);
  border: 0;
  border-radius: 15px;
  background: var(--gradient);
  box-shadow: 0 14px 30px rgba(129, 0, 129, 0.2);
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 17px 34px rgba(129, 0, 129, 0.24);
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.button.secondary {
  color: var(--violet);
  border: 1px solid rgba(129, 0, 129, 0.28);
  background: var(--white);
  box-shadow: none;
}

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

.benefits {
  display: grid;
  grid-area: benefits;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
  padding-left: 14px;
}

.benefit {
  display: grid;
  min-width: 0;
  min-height: 168px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--sand);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.benefit-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 18px;
  color: var(--violet);
  border-radius: 15px;
  background: var(--powder);
}

.benefit-icon svg {
  width: 27px;
  height: 27px;
}

.benefit strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  line-height: 1.22;
}

.benefit > span:last-child,
.benefit-copy {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

.offices {
  display: grid;
  grid-template-columns: minmax(245px, 0.68fr) minmax(0, 1.7fr);
  gap: 28px;
  align-items: center;
  margin-top: 36px;
  padding: 28px 30px;
  border: 1px solid var(--sand);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
}

.offices h2 {
  margin: 0 0 9px;
  font-size: 27px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.offices-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.48;
}

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

.franchise-logo {
  display: grid;
  min-width: 0;
  min-height: 106px;
  place-items: center;
  padding: 15px 14px;
  overflow: hidden;
  color: #4c4059;
  border: 1px solid #eadfe6;
  border-radius: 15px;
  background: var(--white);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.franchise-logo.logo-coral {
  background: #596164;
}

.franchise-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 62px;
  object-fit: contain;
}

.franchise-logo.logo-coral img {
  width: 100%;
  max-width: 220px;
}

.franchise-logo.logo-funsun img {
  max-width: 112px;
  max-height: 76px;
}

.notice {
  margin-bottom: 17px;
  padding: 12px 14px;
  border-radius: 13px;
  font-size: 13px;
  line-height: 1.45;
}

.notice.preview {
  color: #665018;
  border: 1px solid #f0d796;
  background: #fff5d8;
}

.notice.error {
  color: #8b2940;
  border: 1px solid #f3c2cc;
  background: #fff0f2;
}

.success-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 18px;
  color: var(--white);
  border-radius: 18px;
  background: linear-gradient(135deg, #64aa82, #3b8f68);
  font-size: 29px;
}

.linkbox {
  display: flex;
  gap: 8px;
  margin: 18px 0;
}

.linkbox input {
  min-width: 0;
  flex: 1;
  font-size: 14px;
}

.linkbox button {
  flex: 0 0 auto;
  padding: 0 14px;
  color: var(--violet);
  border: 1px solid var(--sand);
  border-radius: 13px;
  background: var(--white);
  font-weight: 700;
  cursor: pointer;
}

.fine {
  margin: 16px 0 0 !important;
  color: var(--muted);
  font-size: 12px !important;
  line-height: 1.5 !important;
}

.support {
  margin-top: 14px !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding: 22px 8px 0;
  color: var(--muted);
  border-top: 1px solid var(--sand);
  font-size: 12px;
}

@media (max-width: 1180px) {
  .shell {
    width: min(1120px, calc(100% - 40px));
  }

  .panel {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 0.82fr);
    gap: 30px 36px;
  }

  h1 {
    font-size: clamp(50px, 5.35vw, 64px);
  }

  .benefit {
    padding: 15px;
  }
}

@media (max-width: 940px) {
  .shell {
    width: min(720px, calc(100% - 32px));
    padding-top: 20px;
  }

  .panel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "story"
      "card"
      "benefits";
    gap: 28px;
    margin-top: 24px;
  }

  .story {
    padding: 20px 4px 0;
  }

  .route {
    right: 10px;
    bottom: -30px;
  }

  .card {
    width: 100%;
    max-width: 680px;
    justify-self: center;
  }

  .benefits {
    padding-left: 0;
  }

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

@media (max-width: 620px) {
  body {
    background:
      radial-gradient(circle at 100% 3%, rgba(244, 232, 240, 0.9), transparent 24rem),
      var(--warm);
  }

  .shell {
    width: 100%;
    max-width: 430px;
    padding: 0;
    overflow: hidden;
  }

  .brand {
    padding: 18px 18px 8px;
  }

  .brand-logo {
    width: 205px;
  }

  .panel {
    gap: 0;
    margin-top: 0;
  }

  .story {
    padding: 28px 18px 24px;
  }

  .eyebrow {
    min-height: 38px;
    padding: 8px 13px;
    font-size: 13px;
  }

  .eyebrow svg {
    width: 18px;
    height: 18px;
  }

  h1 {
    margin: 20px 0 14px;
    font-size: 42px;
    line-height: 1.03;
    letter-spacing: -0.045em;
  }

  .page-invite h1 {
    font-size: 40px;
  }

  .hero-copy {
    max-width: 370px;
    font-size: 17px;
    line-height: 1.48;
  }

  .route {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    height: 40px;
    margin-top: 12px;
  }

  .route svg {
    position: absolute;
    right: 10px;
    width: 116px;
    height: 42px;
  }

  .card {
    width: auto;
    margin: 0 12px;
    padding: 14px 16px 18px;
    border-radius: 24px;
  }

  .tabs {
    gap: 4px;
    margin-bottom: 23px;
    padding: 4px;
    border-radius: 14px;
  }

  .tab {
    min-height: 46px;
    padding: 8px 7px;
    font-size: 12.5px;
    line-height: 1.15;
  }

  .card h2 {
    font-size: 27px;
  }

  .card-intro,
  .card > p {
    font-size: 15px;
  }

  input[type="text"],
  input[type="tel"] {
    height: 52px;
    padding: 0 14px;
  }

  textarea {
    min-height: 104px;
  }

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

  .linkbox {
    flex-direction: column;
  }

  .linkbox button {
    min-height: 46px;
  }

  .benefits {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 32px 12px 0;
  }

  .benefit {
    grid-template-columns: 48px 1fr;
    gap: 13px;
    min-height: 0;
    align-items: center;
    padding: 15px 14px;
    border-radius: 17px;
  }

  .benefit-icon {
    margin: 0;
  }

  .benefit strong {
    margin-bottom: 4px;
    font-size: 15px;
  }

  .offices {
    display: block;
    margin: 30px 12px 0;
    padding: 22px 16px 18px;
    border-radius: 22px;
  }

  .offices h2 {
    font-size: 25px;
  }

  .logo-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 18px;
  }

  .franchise-logo {
    min-height: 94px;
    padding: 14px 12px;
    border-radius: 14px;
  }

  .franchise-logo img {
    max-width: 135px;
    max-height: 57px;
  }

  .franchise-logo.logo-coral img {
    max-width: 145px;
  }

  .franchise-logo.logo-funsun img {
    max-width: 104px;
    max-height: 66px;
  }

  .footer {
    flex-direction: column;
    gap: 7px;
    margin-top: 28px;
    padding: 20px 18px 24px;
    font-size: 11.5px;
  }
}

@media (max-width: 370px) {
  h1 {
    font-size: 38px;
  }

  .page-invite h1 {
    font-size: 36px;
  }

  .tab {
    font-size: 11.5px;
  }

  .card h2 {
    font-size: 25px;
  }
}
