/* Shared layout for coming-soon and legal pages */

.secondary-page {
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255, 228, 217, 0.42), transparent 68%),
    var(--bg);
}

.secondary-page .site-header {
  padding: 8px 0;
  border-bottom-color: rgba(216, 209, 199, 0.72);
  background: rgba(251, 250, 248, 0.86);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.secondary-main {
  padding: 138px 0 94px;
}

.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.page-eyebrow::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--platform, var(--red));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--platform, var(--red)) 12%, transparent);
}

/* Platform coming-soon pages */

.platform-page--instagram {
  --platform: #e1306c;
  --platform-soft: #fff0f5;
  --platform-gradient: linear-gradient(135deg, #f9ce34 0%, #ee2a7b 48%, #6228d7 100%);
}

.platform-page--facebook {
  --platform: #1877f2;
  --platform-soft: #eef5ff;
  --platform-gradient: linear-gradient(135deg, #1877f2, #0a4fae);
}

.platform-page--reddit {
  --platform: #ff4500;
  --platform-soft: #fff1ec;
  --platform-gradient: linear-gradient(135deg, #ff6a33, #e03600);
}

.platform-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: 64px;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
}

.platform-intro {
  min-width: 0;
}

.platform-page .legal-back {
  margin: 0 0 26px;
}

.platform-hero-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin-bottom: 25px;
  border-radius: 22px;
  background: var(--platform-gradient, var(--platform));
  color: #fff;
  box-shadow: 0 18px 38px -22px color-mix(in srgb, var(--platform) 50%, transparent);
  transform: rotate(-3deg);
}

.platform-hero-icon svg {
  width: 36px;
  height: 36px;
}

.platform-title {
  margin-top: 14px;
  font-size: clamp(42px, 5.2vw, 66px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.platform-title em {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--platform);
}

.platform-description {
  max-width: 510px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.platform-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 500px;
  margin: 27px 0 0;
  padding: 0;
  list-style: none;
}

.platform-feature-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid color-mix(in srgb, var(--platform) 14%, var(--line));
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 600;
}

.platform-feature-list li::before {
  content: '';
  width: 13px;
  height: 13px;
  flex: none;
  border-radius: 50%;
  background: var(--platform-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--platform) 24%, transparent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233a342e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.2 4.2L19 6.8'/%3E%3C/svg%3E");
  background-size: 8px;
  background-position: center;
  background-repeat: no-repeat;
}

.platform-switcher {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.platform-switcher > span {
  color: var(--muted-light);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.platform-switcher a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.platform-switcher a:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.signup-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 35px 70px -48px rgba(35, 27, 20, 0.48);
}

.signup-card::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -90px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: var(--platform-soft);
  filter: blur(10px);
  opacity: 0.8;
  z-index: 0;
}

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

.signup-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--platform) 22%, transparent);
  border-radius: 6px;
  background: var(--platform-soft);
  color: var(--platform);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signup-badge span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: pulseDot 2.3s ease-in-out infinite;
}

.signup-card h2 {
  margin-top: 15px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.signup-card h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.signup-card > p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.waitlist-form {
  margin-top: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input,
.form-field select {
  height: 45px;
  padding: 0 12px;
}

.form-field textarea {
  min-height: 150px;
  padding: 12px;
  line-height: 1.65;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--platform, var(--red));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--platform, var(--red)) 9%, transparent);
}

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

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.55;
}

.form-consent input {
  width: 14px;
  height: 14px;
  margin: 1px 0 0;
  accent-color: var(--platform, var(--red));
  flex: none;
}

.form-consent a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  margin-top: 14px;
  border: 0;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  transition: background 0.25s ease, transform 0.25s var(--ease), opacity 0.2s ease;
}

.form-submit .icon {
  width: 14px;
  height: 14px;
}

.form-submit:hover:not(:disabled) {
  background: var(--platform, var(--red));
  transform: translateY(-1px);
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-status {
  min-height: 16px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.55;
}

.form-status.is-error {
  color: #9f3b32;
}

.form-status.is-success {
  color: #2c7d51;
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: 20px;
  border: 1px solid #d9e8dd;
  border-radius: 15px;
  background: #f4fbf6;
  animation: sectionIn 0.4s var(--ease);
}

.form-success-icon {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #dff1e5;
  color: #2e8b57;
}

.form-success-icon .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.4;
}

.form-success strong {
  font-size: 13px;
  font-weight: 800;
  color: #245d3d;
}

.form-success span {
  color: #4d7a60;
  font-size: 10.5px;
  line-height: 1.6;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.signup-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 13px;
  color: var(--muted-light);
  font-size: 8.5px;
  line-height: 1.5;
}

.signup-note .icon {
  width: 10px;
  height: 10px;
  color: var(--green);
}

.while-you-wait {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.6;
}

.while-you-wait a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Legal pages */

.legal-hero {
  max-width: 900px;
  padding-bottom: 32px;
}

.legal-hero h1 {
  margin-top: 14px;
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.legal-hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.legal-hero p {
  max-width: 620px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.legal-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 18px;
  color: var(--muted-light);
  font-size: 9px;
  font-weight: 600;
}

.legal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legal-meta .icon {
  width: 11px;
  height: 11px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
}

.legal-toc > span {
  display: block;
  margin-bottom: 9px;
  color: var(--muted-light);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.legal-toc a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.legal-toc a:hover {
  color: var(--ink);
}

.legal-toc .toc-rule {
  margin: 10px 0;
  border-top: 1px solid var(--line);
}

.legal-article {
  max-width: 780px;
  padding: 38px 42px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 25px 60px -55px rgba(35, 27, 20, 0.3);
}

.legal-article h2 {
  margin: 34px 0 9px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
  scroll-margin-top: 100px;
}

.legal-article h2:first-child {
  margin-top: 0;
}

.legal-article h3 {
  margin: 22px 0 6px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.legal-article p,
.legal-article li {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

.legal-article p + p {
  margin-top: 10px;
}

.legal-article ul,
.legal-article ol {
  margin: 10px 0 0;
  padding-left: 19px;
}

.legal-article li {
  margin-top: 5px;
  padding-left: 3px;
}

.legal-article li::marker {
  color: var(--red);
}

.legal-article strong {
  color: var(--ink-soft);
  font-weight: 700;
}

.legal-article a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-callout {
  margin: 18px 0;
  padding: 15px 17px;
  border: 1px solid #f1ddd6;
  border-radius: 11px;
  background: #fff9f6;
}

.legal-callout p {
  color: #785046;
  font-size: 11.5px;
}

.legal-callout strong {
  color: #5e342b;
}

.legal-divider {
  margin: 24px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.legal-back .icon {
  width: 13px;
  height: 13px;
  transform: rotate(180deg);
}

.legal-back:hover {
  color: var(--ink);
}

.legal-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.legal-contact-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.legal-contact-card span {
  color: var(--muted-light);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-contact-card strong {
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 700;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 0.75fr);
  gap: 60px;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
}

.contact-copy h1 {
  margin-top: 14px;
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.contact-copy h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.contact-copy > p {
  max-width: 460px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.contact-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 65px -50px rgba(35, 27, 20, 0.4);
}

.contact-card h2 {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.contact-card > p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.contact-card .waitlist-form {
  margin-top: 18px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.contact-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}

.contact-links a:last-child {
  border-bottom: 0;
}

.contact-links a:hover {
  color: var(--ink);
}

.contact-links span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.contact-links .icon {
  width: 12px;
  height: 12px;
  color: var(--red);
}

@media (max-width: 980px) {
  .platform-hero {
    grid-template-columns: 1fr;
    gap: 38px;
    max-width: 720px;
  }

  .platform-title {
    font-size: clamp(42px, 8vw, 58px);
  }

  .signup-card {
    max-width: 560px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .legal-toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    align-items: center;
    padding: 14px 16px;
  }

  .legal-toc > span {
    width: 100%;
    margin-bottom: 2px;
  }

  .legal-toc a {
    padding: 3px 0;
  }

  .legal-toc .toc-rule {
    display: none;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contact-card {
    max-width: 560px;
  }
}

@media (max-width: 760px) {
  .secondary-main {
    padding-top: 116px;
    padding-bottom: 70px;
  }

  .platform-hero-icon {
    width: 66px;
    height: 66px;
    border-radius: 19px;
  }

  .platform-hero-icon svg {
    width: 31px;
    height: 31px;
  }

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

  .signup-card {
    padding: 23px;
    border-radius: 21px;
  }

  .legal-article {
    padding: 25px 20px;
    border-radius: 17px;
  }

  .legal-article h2 {
    font-size: 17px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .legal-contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .secondary-page .nav-cta {
    display: none;
  }

  .platform-title {
    font-size: 41px;
  }

  .platform-description {
    font-size: 13.5px;
  }

  .form-consent {
    font-size: 9px;
  }
}
