/* A quieter, product-led visual system for the public pages. */
:root {
  --bg: #f8f7f4;
  --bg2: #f0eee9;
  --card: #fff;
  --border: #e7e4df;
  --accent: #6550c8;
  --accent2: #6550c8;
  --grad: #6550c8;
  --txt: #25222b;
  --sub: #696673;
  --dim: #8d8994;
  --display: 'DM Sans', 'Inter', sans-serif;
}

.marketing-page {
  background: var(--bg);
  color: var(--txt);
  font-family: 'DM Sans', 'Inter', sans-serif;
  overflow-x: clip;
}
.marketing-page ::selection { background: #dbd1ff; color: #23183f; }
.marketing-page a:focus-visible,
.marketing-page button:focus-visible,
.marketing-page summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.marketing-page nav {
  min-height: 76px;
  padding: 13px max(32px, calc((100vw - 1280px) / 2));
  background: rgba(248, 247, 244, .94);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}
.marketing-page .nav-logo img { height: 28px; }
.marketing-page .nav-links { gap: 28px; }
.marketing-page .nav-links a { font: 600 13px/1 'DM Sans', sans-serif; color: #66616c; }
.marketing-page .nav-links a:hover,
.marketing-page .nav-links a.active { color: #271f37; }
.marketing-page .btn-nav-login { border: 0; background: none; padding: 11px 0; border-radius: 0; box-shadow: none; }
.marketing-page .btn-nav-login:hover { background: none !important; }
.marketing-page .btn-nav-signup {
  padding: 12px 19px;
  border-radius: 9px;
  background: #292235;
  box-shadow: none;
  color: #fff !important;
}
.marketing-page .btn-nav-signup:hover { background: #4b3d70; opacity: 1; transform: translateY(-1px); }

.marketing-page .blob { display: none; }
.marketing-page .hero,
.marketing-page .pricing-hero {
  background: radial-gradient(circle at 88% 20%, rgba(110, 86, 193, .09), transparent 34%);
}
.landing-page .hero {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(34px, 5vw, 82px);
  max-width: 1440px;
  min-height: auto;
  padding: 154px clamp(28px, 5vw, 72px) 112px;
  text-align: left;
  overflow: visible;
}
.hero-copy { min-width: 0; position: relative; z-index: 1; }
.marketing-page .hero-badge,
.marketing-page .section-badge,
.marketing-page .pricing-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #665b78;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.marketing-page .hero-badge::before,
.marketing-page .section-badge::before,
.marketing-page .pricing-badge::before {
  content: '';
  display: block;
  width: 19px;
  height: 1px;
  background: var(--accent);
}
.landing-page h1 {
  max-width: 650px;
  margin: 0 0 27px;
  font: 600 clamp(57px, 6.1vw, 94px)/.99 'DM Sans', sans-serif;
  letter-spacing: -.075em;
}
.marketing-page h1 .grad,
.marketing-page .pricing-hero h1 .grad {
  display: inline;
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--accent);
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.045em;
}
.landing-page .hero-sub {
  max-width: 500px;
  margin: 0 0 30px;
  color: #67626f;
  font-size: clamp(16px, 1.55vw, 18px);
  line-height: 1.72;
}
.landing-page .hero-cta { justify-content: flex-start; gap: 10px; margin: 0; }
.marketing-page .btn-primary,
.marketing-page .btn-secondary {
  display: inline-flex;
  min-height: 48px;
  justify-content: center;
  align-items: center;
  gap: 13px;
  padding: 12px 19px;
  border-radius: 9px;
  font: 700 13px/1 'DM Sans', sans-serif;
  box-shadow: none;
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .2s;
}
.marketing-page .btn-primary { background: #292235; color: #fff; border: 1px solid #292235; }
.marketing-page .btn-primary:hover { background: #4b3d70; border-color: #4b3d70; opacity: 1; transform: translateY(-2px); }
.marketing-page .btn-secondary { background: transparent; color: #3d3647; border: 1px solid #dcd8d3; }
.marketing-page .btn-secondary:hover { background: #fff; border-color: #bcb4c7; transform: translateY(-2px); }
.hero-reassurance { margin: 17px 0 0; font-size: 11px; font-weight: 500; color: #827c87; letter-spacing: .15px; }
.hero-reassurance span { margin: 0 6px; color: #b8b1bd; }
.landing-page .tpi-badge { display: inline-flex; margin: 25px 0 0; border-radius: 6px; filter: none; text-decoration: none; }
.landing-page .tpi-badge img { width: 172px; max-width: 100%; }
.landing-page .tpi-badge-fallback { display: none; padding: 9px 12px; border: 1px solid #e2dceb; border-radius: 6px; background: #fff; color: #51456e; font-size: 12px; font-weight: 700; }
.landing-page .tpi-badge:hover { filter: none; transform: translateY(-2px); }
.landing-page .hero-preview { display: none; }

.studio-preview {
  width: 100%;
  min-width: 0;
  border: 1px solid #ded9e4;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 28px 68px rgba(34, 28, 47, .13), 0 3px 10px rgba(34, 28, 47, .055);
  transform: rotate(1deg);
  transition: transform .35s ease, box-shadow .35s ease;
}
.studio-preview:hover { transform: rotate(0); box-shadow: 0 34px 75px rgba(34, 28, 47, .16); }
.studio-preview-top { height: 51px; display: flex; align-items: center; gap: 14px; padding: 0 17px; border-bottom: 1px solid #eae7ed; background: #fff; }
.studio-preview-brand { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; letter-spacing: -.5px; }
.studio-mark { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: #6752ca; color: white; font-size: 13px; }
.studio-preview-workspace { margin: 0 auto; padding: 6px 11px; border: 1px solid #e9e5ed; border-radius: 7px; color: #5d5667; font-size: 10px; font-weight: 600; }
.studio-preview-workspace span { margin-left: 8px; color: #978d9e; }
.studio-preview-avatar { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #e8e0d8; color: #725f50; font-size: 10px; font-weight: 700; }
.studio-preview-body { display: grid; grid-template-columns: minmax(114px, 22%) minmax(145px, 26%) minmax(0, 1fr); min-height: 420px; }
.studio-preview-rail { padding: 25px 10px; border-right: 1px solid #eeeaf0; background: #faf9fb; }
.studio-rail-heading { display: block; margin: 0 8px 11px; color: #aaa4b0; font-size: 8px; font-weight: 700; letter-spacing: 1.2px; }
.studio-rail-spaced { margin-top: 23px; }
.studio-rail-item { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 9px 8px; border-radius: 7px; color: #746e7d; font-size: 10px; font-weight: 600; white-space: nowrap; }
.studio-rail-item.selected { background: #eeebfb; color: #5944ba; }
.studio-rail-item small { margin-left: auto; font-size: 9px; }
.studio-rail-icon { width: 13px; text-align: center; font-size: 12px; }
.studio-folder-dot { width: 7px; height: 7px; border-radius: 2px; background: #9176d9; }
.studio-folder-dot.muted { background: #a2b0c9; }
.studio-folder-dot.warm { background: #d6a889; }
.studio-preview-list { border-right: 1px solid #eeeaf0; padding: 23px 9px; background: #fff; }
.studio-list-heading { display: flex; justify-content: space-between; align-items: center; padding: 0 6px 13px; color: #332d3a; font-size: 14px; font-weight: 700; }
.studio-list-heading span { font-size: 17px; color: #6b50c8; }
.studio-list-search { margin-bottom: 14px; padding: 8px 9px; border: 1px solid #ece9f0; border-radius: 7px; background: #f9f8fa; color: #a6a0ad; font-size: 9px; }
.studio-list-item { display: grid; gap: 4px; padding: 12px 9px; border-bottom: 1px solid #f0eef2; color: #544d5a; }
.studio-list-item.selected { border: 1px solid #e4dffc; border-radius: 8px; background: #faf8ff; }
.studio-list-item strong { font-size: 10px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio-list-item span { font-size: 9px; color: #9892a0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio-list-item small { margin-top: 4px; font-size: 8px; color: #b0aab5; }
.studio-preview-note { position: relative; padding: 39px 27px; background: #fff; }
.studio-note-meta { color: #958c9e; font-size: 8px; font-weight: 700; letter-spacing: 1.2px; }
.studio-note-meta span { margin: 0 5px; }
.studio-preview-note h2 { margin: 18px 0 14px; font: 600 clamp(18px, 2vw, 25px)/1.1 'DM Sans', sans-serif; letter-spacing: -.9px; }
.studio-preview-note p { max-width: 255px; color: #77717f; font-size: 10px; line-height: 1.65; }
.studio-note-divider { height: 1px; margin: 22px 0 18px; background: #ebe8ee; }
.studio-preview-note h3 { margin-bottom: 14px; font-size: 11px; font-weight: 700; }
.studio-check { display: flex; align-items: center; gap: 9px; margin: 11px 0; color: #5e5866; font-size: 9px; }
.studio-check span { display: grid; place-items: center; flex: 0 0 14px; width: 14px; height: 14px; border: 1px solid #d8d3df; border-radius: 4px; color: #6550c8; font-size: 9px; }
.studio-note-foot { position: absolute; right: 25px; bottom: 25px; left: 25px; display: flex; align-items: center; gap: 7px; padding: 10px; border: 1px solid #ece7f8; border-radius: 8px; background: #f8f5ff; color: #766795; font-size: 9px; }
.studio-note-spark { font-size: 13px; color: #6d53cb; }

.marketing-page section { max-width: 1200px; padding: 104px clamp(24px, 5vw, 64px); }
.marketing-page .section-title { max-width: 760px; margin-bottom: 19px; font: 600 clamp(34px, 4.2vw, 55px)/1.08 'DM Sans', sans-serif; letter-spacing: -.055em; }
.marketing-page .section-sub { max-width: 680px; margin-bottom: 44px; color: #77717d; font-size: 16px; line-height: 1.7; }
.marketing-page .section-sub strong { color: inherit; font-weight: 500; }
.landing-page #features { border-top: 1px solid var(--border); }
.landing-page .features-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: feature; }
.landing-page .feat-card { position: relative; min-height: 220px; padding: 27px; border: 1px solid #e9e6e2; border-radius: 13px; box-shadow: none; counter-increment: feature; }
.landing-page .feat-card::before { content: '0' counter(feature); display: block; width: max-content; margin-bottom: 38px; color: #8f80ba; font: 700 11px/1 'DM Sans', sans-serif; letter-spacing: 1px; }
.landing-page .feat-card:hover { transform: translateY(-3px); border-color: #c8bde9; box-shadow: 0 16px 35px rgba(53, 42, 70, .06); }
.landing-page .feat-icon { display: none; }
.landing-page .feat-card h3 { margin-bottom: 8px; font: 700 17px/1.25 'DM Sans', sans-serif; letter-spacing: -.4px; }
.landing-page .feat-card p { color: #77717c; font-size: 13px; line-height: 1.62; }
.landing-page #how { max-width: none; padding: 96px clamp(24px, 5vw, 64px); border-radius: 0; background: #f0eee9; }
.landing-page #how > div { max-width: 1072px !important; }
.landing-page .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 48px; }
.landing-page .step { padding: 22px 26px 14px; border-top: 1px solid #d5cfdb; text-align: left; }
.landing-page .step:first-child { padding-left: 0; }
.landing-page .step-num { display: block; width: auto; height: auto; margin: 0 0 30px; border-radius: 0; background: none; color: #765cbb; font: 600 28px/1 'Instrument Serif', Georgia, serif; }
.landing-page .step h3 { font-size: 16px; }
.landing-page .step p { color: #77717c; font-size: 13px; }

.marketing-page .pricing-grid { gap: 16px; }
.marketing-page .price-card { padding: 34px; border: 1px solid #e7e4e9; border-radius: 14px; box-shadow: none; }
.marketing-page .price-card:hover { transform: translateY(-3px); box-shadow: 0 15px 36px rgba(45, 36, 63, .07); }
.marketing-page .price-card.featured { transform: none; border: 1px solid #b7a8e2; background: #fff; box-shadow: 0 11px 35px rgba(71, 48, 118, .08); }
.marketing-page .price-card.featured:hover { transform: translateY(-3px); box-shadow: 0 17px 40px rgba(71, 48, 118, .12); }
.marketing-page .popular-badge { top: 20px; right: 22px; left: auto; transform: none; padding: 0; border-radius: 0; background: none; color: #7056b5; box-shadow: none; font-size: 10px; letter-spacing: 1px; }
.marketing-page .card-plan-name { color: #746c7d; font-size: 11px; letter-spacing: 1.2px; }
.marketing-page .featured .card-plan-name { color: #7056b5; }
.marketing-page .card-price .amount,
.marketing-page .card-price .free-label { font-family: 'DM Sans', sans-serif; font-size: 49px; font-weight: 600; letter-spacing: -3px; }
.marketing-page .card-features li { color: #5c5662; font-size: 13px; }
.marketing-page .card-features li .check,
.marketing-page .featured .card-features li .check { color: #7056b5; }
.marketing-page .card-cta { border-radius: 9px; font: 700 13px/1.2 'DM Sans', sans-serif; box-shadow: none; }
.marketing-page .card-cta.cta-primary { background: #292235; color: #fff; box-shadow: none; }
.marketing-page .card-cta.cta-primary:hover { background: #4b3d70; box-shadow: none; opacity: 1; }
.marketing-page .card-cta.cta-secondary { background: #f5f3f7; border-color: #e5e0e9; }
.marketing-page .card-cta.cta-secondary:hover { background: #efebf4; }
.marketing-page .guarantee-row { gap: 10px 26px; }
.marketing-page .guarantee-item { color: #79737d; font-size: 11px; }
.marketing-page .guarantee-item::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #927cca; }
.marketing-page .compare-box { display: none; }
.landing-page #pricing { text-align: left !important; }
.landing-page #pricing .section-sub { margin: 0 0 32px !important; }
.landing-page #faq { border-top: 1px solid var(--border); }
.landing-page .faq-grid { gap: 12px; }
.landing-page .faq-card { padding: 26px; border-color: #e9e6e2; border-radius: 13px; }
.landing-page .faq-card h3 { font-size: 15px; }
.landing-page .faq-card p { color: #77717c; font-size: 13px; }
.marketing-page .cta-section { max-width: 1140px; margin: 12px auto 92px; padding: 72px clamp(28px, 7vw, 90px); border-radius: 20px; background: #2d2639; text-align: left; }
.marketing-page .cta-section h2 { max-width: 680px; color: #fff; font: 600 clamp(35px, 4.7vw, 59px)/1.09 'DM Sans', sans-serif; letter-spacing: -.06em; }
.marketing-page .cta-section p { color: #c9c1d3; font-size: 15px; }
.marketing-page .cta-section .btn-primary { background: #fff; color: #2b2236; border-color: #fff; }
.marketing-page .cta-section .btn-primary:hover { background: #eae3f4; border-color: #eae3f4; }
.marketing-page footer { padding: 36px max(28px, calc((100vw - 1280px) / 2)); border-top: 1px solid var(--border); }
.marketing-page .footer-links a,
.marketing-page .footer-right,
.marketing-page .footer-right a { color: #79737e; }
.marketing-page #pwa-banner { z-index: 300; border-color: #e6e1e9; box-shadow: 0 18px 46px rgba(31, 23, 48, .16); }
.marketing-page #pwa-banner .pb-btn { background: #292235; }

/* Pricing page uses the same visual language without changing checkout behavior. */
.pricing-page .pricing-hero { padding: 155px 24px 68px; }
.pricing-page .pricing-hero h1 { max-width: 800px; margin: 0 auto 22px; font: 600 clamp(47px, 6vw, 73px)/1.02 'DM Sans', sans-serif; letter-spacing: -.065em; }
.pricing-page .pricing-hero .hero-sub { max-width: 600px; color: #726c79; font-size: 16px; }
.pricing-page .pricing-section { max-width: 1050px; }
.pricing-page .billing-toggle { background: #eeebf1; border-color: #e6e1ea; }
.pricing-page .bt-opt.active { background: #fff; color: #2d2639; box-shadow: 0 2px 8px rgba(36, 27, 49, .08); }
.pricing-page .faq-section { max-width: 900px; }
.pricing-page .faq-section h2 { font-family: 'DM Sans', sans-serif; letter-spacing: -.045em; }
.pricing-page .faq-item { border-color: #e5e1e8; background: #fff; }
.pricing-page .bottom-cta { background: #2d2639; }
.pricing-page .bottom-cta h2 { font-family: 'DM Sans', sans-serif; letter-spacing: -.055em; }
.pricing-page .bottom-cta .btn-primary { background: #fff; border-color: #fff; color: #2b2236; }

@media (max-width: 1100px) {
  .landing-page .hero { grid-template-columns: 1fr; max-width: 790px; gap: 46px; padding-top: 135px; }
  .landing-page h1 { max-width: 760px; }
  .landing-page .hero-sub { max-width: 650px; }
  .studio-preview { transform: none; }
}
@media (max-width: 760px) {
  .marketing-page nav { min-height: 68px; padding: 12px 20px; }
  .marketing-page .nav-links { gap: 14px; }
  .marketing-page .nav-links a:not(.btn-nav-login):not(.btn-nav-signup) { display: none; }
  .marketing-page .btn-nav-login { display: inline-flex; padding: 10px 0; font-size: 11px; }
  .marketing-page .btn-nav-signup { padding: 10px 13px; font-size: 11px; }
  .landing-page .hero { padding: 114px 20px 72px; }
  .landing-page h1 { font-size: clamp(48px, 11vw, 73px); }
  .landing-page .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-page .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .landing-page .step { padding: 20px 0; }
  .marketing-page section { padding: 78px 22px; }
  .marketing-page .cta-section { margin: 0 18px 70px; }
  .pricing-page .pricing-hero { padding: 125px 20px 55px; }
}
@media (max-width: 520px) {
  .landing-page .hero { padding-top: 111px; gap: 34px; }
  .landing-page h1 { font-size: clamp(45px, 12vw, 64px); }
  .landing-page .hero-sub { font-size: 15px; }
  .landing-page .hero-cta { flex-direction: column; align-items: stretch; }
  .landing-page .hero-cta a { width: 100%; }
  .studio-preview-body { grid-template-columns: 1fr; min-height: 370px; }
  .studio-preview-rail, .studio-preview-list { display: none; }
  .studio-preview-note { min-height: 370px; padding: 30px 25px; }
  .studio-preview-note h2 { font-size: 26px; }
  .studio-preview-note p { font-size: 12px; }
  .studio-check { font-size: 11px; }
  .marketing-page .section-sub { font-size: 14px; }
  .landing-page .features-grid { grid-template-columns: 1fr; }
  .landing-page .feat-card { min-height: 0; }
  .landing-page .feat-card::before { margin-bottom: 28px; }
  .landing-page .steps { grid-template-columns: 1fr; gap: 0; }
  .landing-page .step-num { margin-bottom: 14px; }
  .landing-page .faq-grid { grid-template-columns: 1fr; }
  .marketing-page .cta-section { padding: 45px 27px; }
  .marketing-page .price-card { padding: 29px 24px; }
  .marketing-page footer { gap: 24px; padding: 32px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .marketing-page *, .marketing-page *::before, .marketing-page *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
