:root {
  --page-ink: #171724;
  --page-muted: #626276;
  --page-primary: #4b2ce0;
  --page-primary-dark: #3519c4;
  --page-lavender: #f3f1ff;
  --page-line: #dedaf4;
  --page-success: #137a4b;
  --page-error: #aa3030;
}

.secondary-page {
  min-width: 0;
  background: #fbfbfe;
  color: var(--page-ink);
}

.secondary-page *,
.secondary-page *::before,
.secondary-page *::after { box-sizing: border-box; }

.secondary-page .landing-header { background: rgba(255, 255, 255, 0.97); }
.secondary-page main { min-height: 62vh; }
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  color: var(--page-primary);
  font-weight: 800;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.secondary-page :focus-visible {
  outline: 3px solid rgba(75, 44, 224, .34);
  outline-offset: 3px;
}

.page-shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.account-main {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .72fr);
  gap: 70px;
  align-items: center;
  padding-block: 76px 92px;
}

.account-copy { max-width: 620px; }
.account-eyebrow,
.pricing-eyebrow,
.legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--page-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.account-copy h1,
.pricing-hero h1 {
  margin: 0;
  max-width: 650px;
  font-size: clamp(44px, 4.4vw, 66px);
  line-height: .98;
  letter-spacing: -.045em;
}

.account-copy > p {
  max-width: 550px;
  margin: 24px 0 34px;
  color: var(--page-muted);
  font-size: 17px;
  line-height: 1.7;
}

.account-product {
  position: relative;
  min-height: 365px;
  overflow: hidden;
  border: 1px solid var(--page-line);
  border-radius: 12px;
  background: linear-gradient(145deg, #fff 0 55%, #eeeaff 100%);
  box-shadow: 0 24px 60px rgba(41, 31, 91, .11);
}

.account-browser {
  position: absolute;
  inset: 32px 94px 32px 32px;
  overflow: hidden;
  border: 1px solid #d5d0ee;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(43, 32, 94, .12);
}

.account-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-bottom: 1px solid #e5e1f6;
  background: #faf9ff;
}
.account-browser-bar i {
  width: 7px; height: 7px; border-radius: 50%; background: #d6d1ed;
}
.account-browser img {
  width: 100%;
  height: calc(100% - 32px);
  object-fit: cover;
  object-position: top left;
}

.account-phone {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 128px;
  height: auto;
  border: 7px solid #1d1c2b;
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(30, 24, 61, .22);
}

.account-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.account-point {
  padding: 15px;
  border: 1px solid var(--page-line);
  border-radius: 10px;
  background: rgba(255,255,255,.8);
}
.account-point strong { display: block; margin-bottom: 4px; font-size: 13px; }
.account-point span { color: var(--page-muted); font-size: 11px; line-height: 1.45; }

.auth-panel {
  padding: 38px;
  border: 1px solid var(--page-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(39, 29, 88, .12);
}
.auth-panel h2 { margin: 0 0 8px; font-size: 34px; letter-spacing: -.035em; }
.auth-panel > p { margin: 0 0 26px; color: var(--page-muted); line-height: 1.55; }
.auth-panel form { display: grid; gap: 17px; }
.checkout-panel form { gap: 20px; }
.auth-field { display: grid; gap: 8px; }
.auth-field label { font-size: 13px; font-weight: 800; }
.auth-field input {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid #d8d3ef;
  border-radius: 10px;
  background: #fbfaff;
  color: var(--page-ink);
  font: inherit;
  outline: none;
}
.auth-field input:focus { border-color: #7762eb; box-shadow: 0 0 0 3px rgba(75,44,224,.12); }
.auth-field label span { color: var(--page-muted); font-size: 11px; font-weight: 700; }
.auth-submit,
.auth-google {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 10px;
  font: 800 14px/1 inherit;
  cursor: pointer;
}
.auth-submit {
  border: 0;
  background: linear-gradient(135deg, #6045f7, #3b1ed4);
  color: #fff;
  box-shadow: 0 12px 24px rgba(73, 42, 220, .23);
}
.auth-submit:disabled { cursor: wait; opacity: .68; }
.auth-google { border: 1px solid #bfb5f8; background: #fff; color: #3420c4; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #777388;
  font-size: 12px;
  font-weight: 700;
}
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: #e3dff2; }
.auth-note,
.auth-switch { margin: 0; text-align: center; font-size: 13px; line-height: 1.5; }
.auth-note { padding: 12px; border-radius: 9px; background: var(--page-lavender); color: #3822c8; font-weight: 700; }
.checkout-panel .auth-note {
  padding: 14px 15px;
  background: #f4f2ff;
  color: #352c77;
  font-size: 12px;
  font-weight: 750;
  text-align: left;
}
.auth-switch { color: var(--page-muted); }
.auth-switch a { color: var(--page-primary); font-weight: 800; }
.form-alert { display: none; padding: 12px 14px; border: 1px solid; border-radius: 9px; font-size: 13px; font-weight: 700; line-height: 1.45; }
.form-alert:not(:empty) { display: block; }
.form-alert.is-error { border-color: #f1b5b5; background: #fff1f1; color: var(--page-error); }
.form-alert.is-success { border-color: #aee0c6; background: #effbf4; color: var(--page-success); }
.form-alert.is-info { border-color: #cfc8f5; background: #f4f2ff; color: #4936b8; }
.form-alert[data-state="error"] { display: block; border-color: #f1b5b5; background: #fff1f1; color: var(--page-error); }
.form-alert[data-state="success"] { display: block; border-color: #aee0c6; background: #effbf4; color: var(--page-success); }
.form-alert[data-state="info"] { display: block; border-color: #cfc8f5; background: #f4f2ff; color: #4936b8; }

.pricing-hero {
  padding: 86px 0 58px;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #f8f6ff 100%);
}
.pricing-hero h1 { margin-inline: auto; font-size: clamp(46px, 5vw, 72px); }
.pricing-hero p { margin: 22px auto 0; color: var(--page-muted); font-size: 18px; }
.pricing-section { padding: 34px 0 96px; background: #f8f6ff; }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan-card {
  position: relative;
  display: flex;
  min-height: 480px;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--page-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(43, 33, 87, .07);
}
.plan-card.is-featured {
  border-color: #765ef2;
  box-shadow: 0 22px 48px rgba(73, 46, 205, .15);
  transform: translateY(-12px);
}
.plan-badge { position: absolute; top: 18px; right: 18px; padding: 6px 9px; border-radius: 999px; background: #eeeaff; color: #4229cf; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.plan-card h2 { margin: 0; font-size: 26px; }
.plan-price { margin: 20px 0 8px; font-size: 44px; font-weight: 700; letter-spacing: 0; }
.plan-price span { color: var(--page-muted); font-size: 13px; font-weight: 600; letter-spacing: 0; }
.plan-card > p { min-height: 48px; margin: 0 0 23px; color: var(--page-muted); font-size: 14px; line-height: 1.55; }
.plan-list { display: grid; gap: 13px; margin: 0 0 28px; padding: 0; list-style: none; }
.plan-list li { display: flex; gap: 10px; color: #373747; font-size: 14px; line-height: 1.45; }
.plan-list img { width: 16px; height: 16px; margin-top: 2px; }
.plan-action { margin-top: auto; }
.plan-action.is-disabled,
.plan-action[aria-disabled="true"] {
  border-color: #ded9ef;
  background: #f1eff8;
  color: #858095;
  cursor: default;
  pointer-events: none;
  box-shadow: none;
}
.page-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid #c5bcf5;
  border-radius: 10px;
  background: #fff;
  color: #3d26cd;
  font-size: 14px;
  font-weight: 800;
}
.page-button.primary { border-color: transparent; background: linear-gradient(135deg, #6045f7, #3b1ed4); color: #fff; }
.page-button.full { width: 100%; }
.pricing-faq-section { padding: 92px 0; background: #fff; }
.pricing-faq-section h2 { margin: 0 0 34px; text-align: center; font-size: 36px; letter-spacing: -.03em; }
.pricing-faq-grid { display: grid; max-width: 960px; margin: auto; grid-template-columns: 1fr 1fr; gap: 14px; }
.pricing-faq-grid article { padding: 22px; border: 1px solid var(--page-line); border-radius: 10px; background: #fff; }
.pricing-faq-grid h3 { margin: 0 0 8px; font-size: 15px; }
.pricing-faq-grid p { margin: 0; color: var(--page-muted); font-size: 13px; line-height: 1.55; }

.downgrade-main {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(390px, .58fr);
  gap: clamp(38px, 6vw, 78px);
  align-items: start;
  padding-block: 78px 104px;
}
.downgrade-summary {
  min-height: 0;
}
.downgrade-summary h1 {
  margin: 0;
  font-size: clamp(42px, 4.6vw, 68px);
  line-height: .98;
  letter-spacing: -.045em;
}
.downgrade-summary > p {
  max-width: 610px;
  margin: 22px 0 30px;
  color: var(--page-muted);
  font-size: 17px;
  line-height: 1.65;
}
.downgrade-plan-card {
  max-width: 560px;
  padding: 24px;
  border: 1px solid var(--page-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--page-shadow);
}
.downgrade-plan-card h2 { margin: 0 0 8px; font-size: 28px; letter-spacing: -.03em; }
.downgrade-plan-card strong { display: block; margin-bottom: 18px; font-size: 20px; }
.downgrade-plan-card ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.downgrade-plan-card li { display: flex; gap: 10px; color: #3c3a4b; font-size: 14px; line-height: 1.45; }
.downgrade-plan-card li::before { content: ""; width: 16px; height: 16px; margin-top: 2px; border: 1px solid #5e47f2; border-radius: 50%; flex: 0 0 16px; }
.downgrade-panel .page-button { width: 100%; }
.downgrade-actions { display: grid; gap: 12px; }
.downgrade-note {
  margin: 0;
  padding: 13px 14px;
  border-radius: 9px;
  background: #f4f2ff;
  color: #4936b8;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.checkout-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .72fr);
  gap: 70px;
  align-items: start;
  padding-block: 76px 96px;
}
.checkout-copy h1 {
  margin: 0;
  max-width: 620px;
  font-size: clamp(46px, 4.8vw, 70px);
  line-height: .98;
  letter-spacing: -.045em;
}
.checkout-copy > p {
  max-width: 560px;
  margin: 22px 0 30px;
  color: var(--page-muted);
  font-size: 17px;
  line-height: 1.7;
}
.checkout-summary {
  display: grid;
  gap: 10px;
  max-width: 530px;
  padding: 24px;
  border: 1px solid var(--page-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(43, 33, 87, .08);
}
.checkout-summary span {
  color: var(--page-primary);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}
.checkout-summary strong { font-size: 28px; letter-spacing: -.03em; }
.checkout-summary b { color: var(--page-ink); font-size: 18px; }
.checkout-summary ul { display: grid; gap: 11px; margin: 6px 0 0; padding: 0; list-style: none; }
.checkout-summary li { display: flex; gap: 10px; color: #373747; font-size: 13px; line-height: 1.45; }
.checkout-summary img { width: 16px; height: 16px; margin-top: 1px; }
.checkout-panel { align-self: start; }
.checkout-panel > p { margin-bottom: 20px; }
.checkout-buyer-fields {
  display: grid;
  gap: 15px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.checkout-buyer-fields[hidden] { display: none; }
.checkout-buyer-fields legend {
  margin-bottom: 8px;
  color: var(--page-ink);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.01em;
}
.checkout-field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}
.square-card-container {
  min-height: 94px;
  padding: 14px;
  border: 1px solid #d8d3ef;
  border-radius: 10px;
  background: #fbfaff;
}
.square-card-container[hidden] { display: none; }
.square-card-container.is-loading,
.square-card-container.is-error {
  display: grid;
  min-height: 94px;
  place-items: center;
  gap: 10px;
  color: #6f6884;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.square-card-container.is-error {
  border-color: #f1b5b5;
  background: #fff8f8;
  color: var(--page-error);
}
.square-card-container.is-loading p,
.square-card-container.is-error p { margin: 0; }
.square-card-loading {
  display: grid;
  width: min(100%, 280px);
  gap: 8px;
}
.square-card-loading span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ebe7fb 0%, #f8f6ff 45%, #e6e0fb 100%);
  background-size: 180% 100%;
  animation: checkout-shimmer 1.2s ease-in-out infinite;
}
.square-card-loading span:nth-child(2) { width: 72%; }
.square-card-loading span:nth-child(3) { width: 54%; }
.checkout-retry { text-decoration: none; }
.checkout-login-link { text-decoration: none; }
.checkout-signin-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid #dcd6f8;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #faf9ff 100%);
}
.checkout-signin-panel[hidden] { display: none; }
.checkout-signin-panel > span {
  color: var(--page-primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.checkout-signin-panel h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -.03em;
}
.checkout-signin-panel p {
  margin: 0;
  color: var(--page-muted);
  font-size: 13px;
  line-height: 1.6;
}
.checkout-signin-panel div {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

@keyframes checkout-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

@media (max-width: 560px) {
  .checkout-field-grid { grid-template-columns: 1fr; }
}

.legal-hero { padding: 72px 0 50px; border-bottom: 1px solid #ece9f7; background: #fff; }
.legal-hero-inner { max-width: 880px; }
.legal-hero h1 { margin: 0; font-size: clamp(44px, 5vw, 66px); letter-spacing: -.045em; }
.legal-hero p { max-width: 690px; margin: 18px 0 0; color: var(--page-muted); font-size: 16px; line-height: 1.65; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 820px); gap: 64px; justify-content: center; padding-block: 64px 100px; }
.legal-toc { position: sticky; top: 100px; align-self: start; padding: 20px; border: 1px solid var(--page-line); border-radius: 10px; background: #fff; }
.legal-toc strong { display: block; margin-bottom: 12px; font-size: 13px; }
.legal-toc a { display: block; padding: 5px 0; color: #686579; font-size: 11px; line-height: 1.35; }
.legal-toc a:hover { color: var(--page-primary); }
.legal-document { min-width: 0; }
.legal-callout { margin-bottom: 38px; padding: 20px 22px; border-left: 4px solid var(--page-primary); border-radius: 0 9px 9px 0; background: var(--page-lavender); color: #4d4960; font-size: 13px; line-height: 1.65; }
.legal-section { scroll-margin-top: 110px; margin-bottom: 42px; }
.legal-section h2 { margin: 0 0 16px; font-size: 23px; letter-spacing: -.02em; }
.legal-section h3 { margin: 24px 0 9px; font-size: 16px; }
.legal-section p,
.legal-section li { color: #555266; font-size: 13px; line-height: 1.75; }
.legal-section p, .legal-section li, .legal-section a { overflow-wrap: anywhere; }
.legal-section ul { padding-left: 21px; }
.legal-section a { color: var(--page-primary); text-decoration: underline; text-underline-offset: 2px; }
.legal-table-wrap { overflow-x: auto; margin-top: 18px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.legal-table th, .legal-table td { padding: 10px; border: 1px solid #dcd8ea; text-align: left; vertical-align: top; line-height: 1.45; }
.legal-table th { background: #f5f3fc; }
.legal-meta { margin-top: 12px; color: #7a7689; font-size: 12px; }
.legal-placeholder { color: #7d3f00; font-weight: 750; }

.contact-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .76fr);
  gap: 72px;
  align-items: center;
  padding-block: 74px 90px;
}
.contact-copy h1 { margin: 0; max-width: 610px; font-size: clamp(46px, 4.8vw, 70px); line-height: .98; letter-spacing: -.045em; }
.contact-copy > p { max-width: 570px; margin: 24px 0 28px; color: var(--page-muted); font-size: 17px; line-height: 1.7; }
.contact-email { display: inline-flex; align-items: center; gap: 10px; color: var(--page-primary); font-size: 15px; font-weight: 800; }
.contact-email img { width: 22px; }
.contact-categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 30px 0; }
.contact-categories article { padding: 16px; border: 1px solid var(--page-line); border-radius: 10px; background: #fff; }
.contact-categories img { width: 22px; height: 22px; }
.contact-categories strong { display: block; margin: 11px 0 4px; font-size: 13px; }
.contact-categories span { color: var(--page-muted); font-size: 11px; line-height: 1.45; }
.contact-visual { position: relative; height: 250px; overflow: hidden; border: 1px solid var(--page-line); border-radius: 12px; background: var(--page-lavender); }
.contact-visual .contact-dashboard { position: absolute; left: 32px; bottom: -12px; width: 72%; height: auto; border: 6px solid #252333; border-radius: 10px; }
.contact-visual .contact-phone { position: absolute; z-index: 2; right: 35px; bottom: -20px; width: 105px; height: auto; object-fit: contain; border: 5px solid #252333; border-radius: 22px; }
.contact-panel textarea { min-height: 140px; resize: vertical; padding-block: 14px; }
.contact-panel .auth-field input, .contact-panel .auth-field textarea { font-family: inherit; }
.contact-fallback { margin: 0; color: var(--page-muted); font-size: 12px; line-height: 1.5; text-align: center; }
.contact-fallback a { color: var(--page-primary); font-weight: 800; }
.contact-honeypot { position: absolute!important; left: -10000px!important; width: 1px!important; height: 1px!important; overflow: hidden!important; }

.shared-footer { margin-top: 0; }

.page-enter { animation: page-enter .55s cubic-bezier(.22,.7,.25,1) both; }
@keyframes page-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .page-enter { animation: none; }
  .plan-card.is-featured { transform: none; }
}

@media (max-width: 980px) {
  .account-main { grid-template-columns: 1fr; gap: 46px; padding-block: 58px 72px; }
  .account-copy { max-width: none; }
  .checkout-main { grid-template-columns: 1fr; gap: 46px; padding-block: 58px 72px; }
  .downgrade-main { grid-template-columns: 1fr; gap: 46px; padding-block: 58px 72px; }
  .plans-grid { grid-template-columns: 1fr; max-width: 620px; margin: auto; }
  .plan-card.is-featured { transform: none; }
  .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .contact-main { grid-template-columns: 1fr; gap: 46px; }
  .legal-toc { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 20px; }
  .legal-toc strong { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .page-shell { width: min(100% - 32px, 1180px); }
  .account-main { padding-block: 42px 58px; }
  .account-copy h1, .pricing-hero h1 { font-size: 42px; }
  .checkout-copy h1 { font-size: 43px; }
  .downgrade-summary h1 { font-size: 43px; }
  .account-copy > p { font-size: 15px; }
  .account-product { min-height: 310px; }
  .account-browser { inset: 24px 64px 24px 18px; }
  .account-phone { right: 12px; bottom: 15px; width: 102px; }
  .account-points { grid-template-columns: 1fr; }
  .auth-panel { padding: 25px 20px; }
  .pricing-hero { padding: 60px 0 42px; }
  .pricing-section { padding-bottom: 68px; }
  .pricing-faq-grid { grid-template-columns: 1fr; }
  .legal-hero { padding: 52px 0 38px; }
  .legal-layout { padding-block: 42px 68px; }
  .legal-toc { grid-template-columns: 1fr; }
  .legal-section h2 { font-size: 21px; }
  .contact-main { padding-block: 44px 64px; }
  .contact-copy h1 { font-size: 43px; }
  .contact-categories { grid-template-columns: 1fr; }
  .contact-visual { height: 220px; }
  .contact-visual .contact-dashboard { left: 16px; width: 82%; }
  .contact-visual .contact-phone { right: 14px; width: 88px; }
}
