:root {
  --sx-ink: #0b0b0b;
  --sx-paper: #fff;
  --sx-panel: #f3f3f1;
  --sx-line: #e4e4e1;
  --sx-muted: #676764;
  --sx-blue: #2859f5;
  --sx-orange: #ff6b2c;
  --sx-yellow: #ffdf20;
  --sx-radius: 22px;
  --sx-page: min(1136px, calc(100vw - 64px));
  --sx-font: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --bg: var(--sx-paper);
  --paper: var(--sx-paper);
  --ink: var(--sx-ink);
  --muted: var(--sx-muted);
  --line: var(--sx-line);
  --teal: var(--sx-ink);
  --teal-dark: var(--sx-ink);
  --coral: var(--sx-yellow);
  --peach: #f4f1eb;
  --sky: #eef2f3;
  --mint: #edf1ec;
  --lilac: #efedf1;
  --lemon: var(--sx-yellow);
  --sand: var(--sx-panel);
  --shadow: none;
}

* { box-sizing: border-box; }

html {
  color: var(--sx-ink);
  background: var(--sx-paper);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--sx-ink);
  background: var(--sx-paper);
  font-family: var(--sx-font);
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -.028em;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after { display: none !important; }

img { max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
::selection { color: #fff; background: #111; }

.section-inner,
.hero-inner,
.sana-home-hero,
.sana-product-block,
.sana-story,
.sana-summit,
.sana-proof-grid,
.sana-final {
  width: var(--sx-page);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 190px;
  align-items: center;
  width: 100%;
  min-height: 53px;
  padding: 0 32px;
  color: var(--sx-ink);
  background: rgba(255,255,255,.96);
  border: 0;
  border-bottom: 1px solid rgba(0,0,0,.025);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  color: var(--sx-ink);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -.055em;
  text-decoration: none;
}

.brand-logo {
  width: 24px !important;
  height: 24px !important;
  object-fit: contain;
  filter: grayscale(1) contrast(1.55);
}

.site-header .brand-logo,
.site-footer .brand-logo { display: none; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(17px, 2vw, 31px);
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  color: var(--sx-ink);
  font-size: 13px;
  font-weight: 470;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a::after { display: none !important; }

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--sx-ink);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.auth-controls { justify-self: end; }

.header-cta,
.auth-chip button,
.auth-chip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 37px;
  padding: 0 16px;
  color: #fff;
  background: var(--sx-ink);
  border: 1px solid var(--sx-ink);
  border-radius: 999px;
  box-shadow: none;
  font-size: 13px;
  font-weight: 520;
}

.header-cta:hover,
.auth-chip button:hover,
.auth-chip a:hover { transform: none; opacity: .78; }

.auth-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--sx-muted);
  font-size: 11px;
}

.auth-chip span { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Universal typography and controls */
.eyebrow,
.sana-product-label {
  margin: 0 0 22px;
  color: var(--sx-ink);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -.035em;
  text-transform: none;
}

h1, h2, h3, p { margin-top: 0; }

h1,
h2,
.section-heading h2,
.workspace-main h2,
.faq-intro h2 {
  color: var(--sx-ink);
  font-family: var(--sx-font);
  font-weight: 560;
  letter-spacing: -.066em;
}

.section-heading h2,
.section--page-top h2 {
  max-width: 900px;
  margin-bottom: 23px;
  font-size: clamp(42px, 4vw, 56px);
  line-height: 1.02;
}

.section-heading > p:last-child {
  max-width: 680px;
  color: var(--sx-muted);
  font-size: 16px;
  line-height: 1.45;
}

.button,
.sana-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 41px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: none !important;
  font-size: 14px;
  font-weight: 520;
  line-height: 1;
  text-decoration: none;
  transition: opacity .2s ease, transform .2s ease;
}

.sana-pill { width: auto; }

.button:hover,
.sana-pill:hover { transform: translateY(-1px); opacity: .8; }
.button.primary,
.sana-pill--black { color: #fff; background: var(--sx-ink); border-color: var(--sx-ink); }
.button.secondary,
.button.google,
.sana-pill--ghost { color: var(--sx-ink); background: #f4f4f2; border-color: #f4f4f2; }
.button.subscription { color: var(--sx-ink); background: var(--sx-yellow); border-color: var(--sx-yellow); }
.sana-pill--blue { color: #fff; background: var(--sx-blue); }
.sana-pill--orange { color: #fff; background: var(--sx-orange); }
.sana-pill--white { color: var(--sx-ink); background: #fff; }

/* Home hero */
.sana-home-hero {
  padding: 67px 0 0;
  text-align: center;
}

.sana-home-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 240px;
}

.sana-home-hero .sana-product-label { margin-bottom: 15px; }

.sana-home-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(50px, 5vw, 64px);
  line-height: .98;
}

.sana-lead {
  max-width: 640px;
  margin: 27px auto 23px;
  color: #40403d;
  font-size: 16px;
  line-height: 1.42;
}

.sana-logo-cloud {
  display: grid;
  grid-template-columns: repeat(7, minmax(0,1fr));
  align-items: center;
  min-height: 118px;
  margin-top: 41px;
  border-top: 0;
  overflow: hidden;
}

.sana-logo-cloud span {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  color: #111;
  font-size: clamp(11px, 1.15vw, 16px);
  font-weight: 720;
  letter-spacing: -.04em;
  white-space: nowrap;
  animation: sxLogoPulse 9s infinite both;
}

.sana-logo-cloud span:nth-child(2) { animation-delay: -1.2s; }
.sana-logo-cloud span:nth-child(3) { animation-delay: -2.4s; }
.sana-logo-cloud span:nth-child(4) { animation-delay: -3.6s; }
.sana-logo-cloud span:nth-child(5) { animation-delay: -4.8s; }
.sana-logo-cloud span:nth-child(6) { animation-delay: -6s; }
.sana-logo-cloud span:nth-child(7) { animation-delay: -7.2s; }

@keyframes sxLogoPulse {
  0%, 26%, 100% { opacity: 1; transform: translateY(0); }
  34%, 42% { opacity: .16; transform: translateY(5px); }
  50% { opacity: 1; transform: translateY(0); }
}

/* Product panels */
.sana-product-block {
  padding: 59px 0 0;
  overflow: hidden;
  background: var(--sx-panel);
  border-radius: 0;
}

.sana-product-block--learn,
.sana-product-block--agents {
  width: 100%;
  padding-inline: max(32px, calc((100vw - 1136px) / 2));
}

.sana-section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sana-section-head .sana-product-label { margin-bottom: 12px; }

.sana-section-head h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(44px, 4.2vw, 56px);
  line-height: 1;
}

.sana-section-head > p:not(.sana-product-label) {
  max-width: 560px;
  margin: 22px auto 19px;
  color: #3f3f3c;
  font-size: 16px;
  line-height: 1.42;
}

.sana-capability-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 20px;
  margin: 47px 0 29px;
}

.sana-capability-row article {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  text-align: center;
}

.sana-line-icon {
  display: block;
  height: 28px;
  font-size: 22px;
  font-weight: 430;
  line-height: 1;
}

.sana-capability-row strong {
  margin: 2px 0 2px;
  font-size: 14px;
  font-weight: 660;
}

.sana-capability-row p {
  margin: 0;
  color: #444441;
  font-size: 13px;
}

.sana-media {
  position: relative;
  width: 100%;
  height: min(54vw, 660px);
  min-height: 520px;
  margin: 0;
  overflow: hidden;
  background: #ebeae6;
  border-radius: var(--sx-radius) var(--sx-radius) 0 0;
}

.sana-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.015);
  animation: sxMediaBreathe 10s ease-in-out infinite alternate;
}

@keyframes sxMediaBreathe {
  from { transform: scale(1.015) translate3d(0,0,0); }
  to { transform: scale(1.055) translate3d(0,-.8%,0); }
}

.sana-float-chip,
.sana-floating-cta,
.sana-ui-stack span {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 37px;
  padding: 0 13px;
  color: var(--sx-ink);
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  font-size: 12px;
  backdrop-filter: blur(9px);
}

.sana-float-chip--left { left: 11%; bottom: 28%; animation: sxFloat 5s ease-in-out infinite; }
.sana-float-chip--right { right: 9%; bottom: 19%; animation: sxFloat 5.5s -1.1s ease-in-out infinite; }
.sana-floating-cta {
  right: 5.8%;
  bottom: 4.7%;
  min-height: 39px;
  padding-inline: 16px;
  color: #fff;
  background: var(--sx-ink);
  border-radius: 999px;
  text-decoration: none;
}

@keyframes sxFloat { 50% { transform: translateY(-10px); } }

/* Story */
.sana-story {
  position: relative;
  height: min(48vw, 552px);
  min-height: 460px;
  margin-top: 32px;
  overflow: hidden;
  color: #fff;
  background: #53200d;
  border-radius: var(--sx-radius);
}

.sana-story > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sana-story::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17,4,0,.18), transparent 63%);
  pointer-events: none;
}

.sana-story__copy {
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 63%;
  padding: 50px 58px;
  text-align: center;
}

.sana-story__brand { margin-bottom: 36px; font-size: 19px; font-weight: 720; }
.sana-story h2 {
  max-width: 690px;
  margin: 0 0 34px;
  color: #fff;
  font-size: clamp(28px, 2.7vw, 38px);
  font-weight: 530;
  line-height: 1.08;
}
.sana-story__copy > p:nth-of-type(2) { display: flex; flex-direction: column; gap: 3px; margin-bottom: 28px; }
.sana-story__copy strong { font-size: 14px; }
.sana-story__copy span { color: rgba(255,255,255,.67); font-size: 13px; }

/* Second product */
.sana-product-block--agents { margin-top: 32px; background: #f5f6f4; }
.sana-media--person { min-height: 600px; }
.sana-media--person > img { object-position: center; }
.sana-ui-stack {
  position: absolute;
  right: 8%;
  bottom: 11%;
  display: grid;
  gap: 9px;
  width: 220px;
}
.sana-ui-stack span {
  position: static;
  opacity: 0;
  transform: translateY(12px);
  animation: sxStack 7.5s infinite;
}
.sana-ui-stack span:nth-child(2) { animation-delay: 1.2s; }
.sana-ui-stack span:nth-child(3) { animation-delay: 2.4s; }
@keyframes sxStack {
  0%, 8% { opacity: 0; transform: translateY(12px); }
  16%, 75% { opacity: 1; transform: translateY(0); }
  90%, 100% { opacity: 0; transform: translateY(-8px); }
}

/* Embedded preview */
#home-preview-mount {
  width: var(--sx-page);
  margin: 32px auto 0;
}

#home-preview-mount .preview-section {
  padding: 88px 0;
  background: #f3f3f1;
  border-radius: var(--sx-radius);
}

#home-preview-mount .preview-section > .section-inner { width: calc(100% - 64px); }
#home-preview-mount .section-heading { text-align: center; }
#home-preview-mount .section-heading h2 { margin-inline: auto; font-size: clamp(42px, 4vw, 54px); }
#home-preview-mount .section-heading > p:last-child { margin-inline: auto; }

/* Summit */
.sana-summit { padding: 32px 0 0; }

.sana-summit__card {
  position: relative;
  height: min(50vw, 575px);
  min-height: 510px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--sx-line);
  border-radius: var(--sx-radius);
}

.sana-summit__media {
  position: absolute;
  inset: 0;
  background: #fbfbfa;
}

.sana-summit__media > img,
.sana-summit__media > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sana-summit__fallback {
  z-index: 0;
  display: block;
}

.sana-summit__video {
  z-index: 1;
  display: block;
  opacity: 0;
  background: #fbfbfa;
  transition: opacity .18s linear;
}

.sana-summit__video.is-playing { opacity: 1; }

.sana-summit__copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 35px 40px 39px;
  pointer-events: none;
}

.sana-summit__copy > span {
  padding: 7px 11px;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--sx-line);
  border-radius: 999px;
  font-size: 11px;
}

.sana-summit h2 {
  max-width: 440px;
  margin: auto 0 0;
  font-size: clamp(44px, 4.2vw, 58px);
  line-height: .96;
}
.sana-summit h2 em { color: #9d9d99; font-style: normal; font-weight: 500; }
.sana-summit .sana-pill { margin-top: 27px; pointer-events: auto; }

/* Proof and final */
.sana-proof-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 90px;
  padding: 140px 0 120px;
}

.sana-proof-grid h2 {
  margin: 0;
  font-size: clamp(38px, 3.6vw, 50px);
  line-height: 1;
}

.sana-proof-list { border-top: 1px solid var(--sx-line); }
.sana-proof-list a {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  min-height: 84px;
  border-bottom: 1px solid var(--sx-line);
  text-decoration: none;
}
.sana-proof-list span { color: #9c9c98; font-size: 12px; }
.sana-proof-list strong { font-size: 19px; font-weight: 540; }
.sana-proof-list em { font-size: 12px; font-style: normal; }
.sana-proof-list a:hover strong { text-decoration: underline; text-underline-offset: 5px; }

.sana-final {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 550px;
  padding: 90px 30px;
  text-align: center;
  border-top: 1px solid var(--sx-line);
}
.sana-final h2 {
  margin: 0 0 36px;
  font-size: clamp(54px, 5.5vw, 72px);
  line-height: .94;
}
.sana-final > div { display: flex; gap: 8px; }

/* Shared subpages */
.section { padding: 108px 0; background: #fff; }
.section--page-top { padding-top: 92px; }
.section.muted,
.preview-section,
.package-builder-section,
.templates-section,
.pricing-section,
.my-projects-section,
.billing-section { background: #fff; }

body.is-subpage #main { min-height: 70vh; }

body.is-subpage .section--page-top > .section-inner > .section-heading,
.templates-section > .section-inner > .section-heading,
.pricing-section > .section-inner > .section-heading,
.package-builder-section > .section-inner > .section-heading,
.preview-section > .section-inner > .section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto 70px;
  text-align: center;
}

body.is-subpage .section--page-top > .section-inner > .section-heading h2,
.templates-section > .section-inner > .section-heading h2,
.pricing-section > .section-inner > .section-heading h2,
.package-builder-section > .section-inner > .section-heading h2,
.preview-section > .section-inner > .section-heading h2 {
  max-width: 900px;
  font-size: clamp(46px, 4.6vw, 60px);
  line-height: 1;
}

body[data-route="pricing"] .pricing-section > .section-inner > .section-heading h2 {
  max-width: 760px;
  font-size: clamp(46px, 4.35vw, 56px);
}

body.is-subpage .section--page-top > .section-inner > .section-heading > p:last-child,
.templates-section > .section-inner > .section-heading > p:last-child,
.pricing-section > .section-inner > .section-heading > p:last-child,
.package-builder-section > .section-inner > .section-heading > p:last-child,
.preview-section > .section-inner > .section-heading > p:last-child { margin-inline: auto; }

/* Forms */
.preview-grid,
.package-grid,
.checkout-layout,
.billing-grid,
.faq-layout { gap: 24px; }

.preview-form,
.preview-result,
.package-form,
.package-result,
.checkout-card,
.billing-panel,
.faq-list,
.project-detail-card,
.auth-dialog {
  padding: 34px;
  background: #f4f4f2;
  border: 0;
  border-radius: 20px;
  box-shadow: none;
}

.preview-result,
.package-result { background: #f4f4f2; }

.field span,
.field-label,
.preview-form label > span,
.package-form label > span,
.auth-form label > span {
  display: block;
  margin-bottom: 8px;
  color: var(--sx-ink);
  font-size: 12px;
  font-weight: 650;
}

input,
textarea,
select {
  color: var(--sx-ink);
  background: #fff;
  border: 1px solid #d9d9d6;
  border-radius: 10px;
  box-shadow: none !important;
}

input:focus,
textarea:focus,
select:focus {
  outline: 1px solid var(--sx-ink);
  border-color: var(--sx-ink);
}

.preview-result h3,
.package-result h3,
.empty-result h3 { font-size: 30px; font-weight: 560; letter-spacing: -.05em; }

.package-selected-banner,
.package-access-summary {
  padding: 28px 30px;
  color: #fff;
  background: var(--sx-ink);
  border: 0;
  border-radius: 18px;
  box-shadow: none;
}

.package-selected-banner .eyebrow,
.package-selected-banner strong,
.package-selected-banner span,
.package-selected-banner p { color: inherit; }

.package-stepper {
  gap: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--sx-line);
  border-radius: 14px;
}

.package-step,
.package-stepper button {
  color: var(--sx-ink);
  background: #fff;
  border: 0;
  border-right: 1px solid var(--sx-line);
  border-radius: 0;
  box-shadow: none;
}
.package-step.is-active,
.package-stepper button[aria-current="step"] { color: #fff; background: var(--sx-ink); }
.package-step legend span { color: #fff; background: var(--sx-ink); border-color: var(--sx-ink); }
.package-workspace,
.generation-status,
.package-preview-card,
.package-form-section,
.builder-lock-card { background: #fff; border: 1px solid var(--sx-line); border-radius: 16px; box-shadow: none; }
.builder-lock { background: rgba(245,245,242,.82); backdrop-filter: blur(8px); }

/* Cards */
.product-grid,
.problem-grid,
.flow-grid,
.asset-grid,
.example-grid,
.premium-proof-grid,
.sample-output-grid { gap: 12px; }

.product-card,
.problem-card,
.flow-grid article,
.asset-card,
.example-card,
.premium-proof-grid article,
.sample-output-card,
.my-project-card,
.workspace-metric,
.workspace-metrics article {
  color: var(--sx-ink);
  background: #f4f4f2 !important;
  border: 0 !important;
  border-radius: 17px;
  box-shadow: none !important;
}

.product-card,
.problem-card,
.flow-grid article,
.asset-card,
.sample-output-card { min-height: 230px; padding: 28px; }
.product-card h3,
.problem-card strong,
.flow-grid h3,
.asset-card h3,
.example-card h3 { font-family: var(--sx-font); font-size: 27px; font-weight: 560; letter-spacing: -.05em; }
.product-card p,
.problem-card p,
.flow-grid p,
.asset-card p,
.example-card p { color: var(--sx-muted); }
.product-card > span,
.flow-grid article > span { color: var(--sx-ink); background: transparent; border: 1px solid #cfcfcc; }

/* Templates */
.template-grid { gap: 16px; }
.template-card {
  overflow: hidden;
  background: #f4f4f2;
  border: 0;
  border-radius: 20px;
  box-shadow: none;
}
.template-preview { min-height: 500px; padding: 18px; background: #ecece9; }
.template-card:nth-child(2n) .template-preview { background: #f1eee7; }
.template-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; filter: saturate(.78); }
.template-card-body { padding: 24px; }
.template-card h3 { font-family: var(--sx-font); font-size: 28px; font-weight: 560; letter-spacing: -.05em; }

/* Workspace */
.my-workspace-shell {
  display: grid;
  grid-template-columns: 225px minmax(0,1fr);
  min-height: 720px;
  overflow: hidden;
  background: #f4f4f2;
  border: 0;
  border-radius: 20px;
  box-shadow: none;
}
.workspace-sidebar { padding: 24px 16px; background: #fff; border-right: 1px solid var(--sx-line); }
.workspace-sidebar nav a { color: #555; background: transparent; border-radius: 999px; }
.workspace-sidebar nav a.is-active,
.workspace-sidebar nav a:hover { color: #fff; background: var(--sx-ink); }
.workspace-sidebar-note,
.workspace-note { color: var(--sx-ink); background: var(--sx-yellow) !important; border: 0 !important; border-radius: 14px; box-shadow: none !important; }
.workspace-main { padding: 42px; }
.workspace-main h2 { font-size: 50px; line-height: 1; }
.workspace-metrics article:first-child { color: #fff; background: var(--sx-ink) !important; }

/* Pricing */
.pricing-section { padding-bottom: 110px; }
.pricing-grid { gap: 0; padding: 0; background: transparent; border: 0; border-top: 1px solid var(--sx-line); border-radius: 0; }
.plan-card {
  min-height: 520px;
  margin: 0 !important;
  padding: 33px 20px 28px 0;
  color: var(--sx-ink) !important;
  background: #fff !important;
  border: 0 !important;
  border-right: 1px solid var(--sx-line) !important;
  border-radius: 0;
  box-shadow: none;
}
.plan-card + .plan-card { padding-left: 20px; }
.plan-card:last-child { border-right: 0 !important; }
.plan-card::before { top: 25px !important; right: 18px !important; left: auto !important; color: #fff !important; background: var(--sx-ink) !important; border-radius: 999px !important; }
.plan-card h3 { color: inherit; font-family: var(--sx-font); font-size: 31px; font-weight: 560; letter-spacing: -.055em; }
.plan-card li { color: #333; opacity: 1; }
.plan-limit { display: inline-flex; width: max-content; padding: 6px 10px; color: var(--sx-ink); background: #f3f3f1; border: 0; border-radius: 999px; font-size: 11px; }
.premium-sample,
.checkout-section,
.policy-band { border-color: var(--sx-line); box-shadow: none; }

/* Checkout */
.checkout-plan-option {
  color: var(--sx-ink);
  background: #f3f3f1;
  border: 0;
  border-radius: 14px;
  box-shadow: none;
}
.checkout-plan-option.is-active { color: #fff; background: var(--sx-ink); }
.checkout-card { position: sticky; top: 76px; }
.checkout-card h3 { font-size: 31px; font-weight: 560; letter-spacing: -.05em; }
.checkout-card strong,
.checkout-price,
.checkout-summary-price,
.checkout-card .price { color: var(--sx-ink) !important; }
.checkout-price *,
.checkout-summary-price * { color: var(--sx-ink) !important; }
.checkout-benefits li,
.billing-summary-card,
.billing-history-item,
.billing-plan-card { background: #f4f4f2; border: 0; border-radius: 14px; box-shadow: none; }

/* Examples */
.example-card { min-height: auto; padding: 30px; overflow: hidden; }
.example-block { background: #fff !important; border: 1px solid var(--sx-line) !important; border-radius: 12px !important; }
.example-input-badge,
.example-profile-title { color: var(--sx-muted) !important; background: transparent !important; }

/* FAQ */
.faq-layout { grid-template-columns: .76fr 1.24fr; }
.faq-intro { position: sticky; top: 83px; align-self: start; }
.faq-intro h2 { font-size: 56px; line-height: .98; }
.faq-contact-card { background: #f3f3f1; border: 0; border-radius: 17px; box-shadow: none; }
.faq-list { padding: 0; background: #fff; border-radius: 0; }
.faq-list details { background: #fff; border: 0; border-bottom: 1px solid var(--sx-line); border-radius: 0; }
.faq-list summary { min-height: 82px; color: var(--sx-ink); font-family: var(--sx-font); font-size: 19px; font-weight: 560; }

/* Auth */
.auth-panel { background: rgba(0,0,0,.56); backdrop-filter: blur(8px); }
.auth-dialog { width: min(460px, calc(100% - 32px)); background: #fff; }
.auth-dialog h2 { font-size: 36px; line-height: 1.02; }
.auth-close { color: var(--sx-ink); background: #f3f3f1; border: 0; }
#signin-email { color: var(--sx-ink) !important; background: #f4f4f2 !important; border-color: #f4f4f2 !important; }

/* Footer */
.site-footer {
  padding: 0;
  color: var(--sx-ink);
  background: #fff;
  border-top: 1px solid var(--sx-line);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 90px;
  width: 100%;
  min-height: 505px;
  padding: 65px 32px 26px;
  border: 0;
  border-radius: 0;
}
.footer-brand { margin-bottom: 27px; }
.footer-inner > div > p { max-width: 360px; color: var(--sx-muted); font-size: 15px; line-height: 1.35; }
.business-info { display: grid; gap: 4px; margin-top: 98px; color: #777; font-size: 10px; }
.footer-inner > nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-content: start; gap: 14px 32px; padding-top: 5px; color: #5d5d59; font-size: 12px; }
.footer-inner > nav a { text-decoration: none; }
.footer-inner > nav a:hover { color: var(--sx-ink); text-decoration: underline; }

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

@media (max-width: 1000px) {
  :root { --sx-page: min(936px, calc(100vw - 40px)); }
  .site-header { grid-template-columns: 170px minmax(0,1fr) 170px; padding-inline: 20px; }
  .site-nav { gap: 15px; }
  .site-nav a:nth-child(4), .site-nav a:nth-child(7) { display: none; }
  .sana-product-block--learn,
  .sana-product-block--agents { padding-inline: 20px; }
  .sana-media { min-height: 500px; }
}

@media (max-width: 760px) {
  :root { --sx-page: calc(100vw - 24px); }
  body { font-size: 14px; }
  .site-header { grid-template-columns: 1fr auto; min-height: 58px; padding-inline: 12px; }
  .site-nav { display: none; }
  .brand { font-size: 15px; }
  .brand-logo { width: 22px !important; height: 22px !important; }
  .header-cta { min-height: 35px; padding-inline: 13px; font-size: 12px; }
  .auth-chip span, .auth-chip a { display: none; }

  .sana-home-hero { padding-top: 53px; }
  .sana-home-hero__inner { min-height: auto; }
  .sana-home-hero h1 { max-width: 360px; font-size: clamp(42px, 12vw, 48px); line-height: .96; }
  .sana-lead { margin-top: 22px; padding-inline: 10px; font-size: 15px; }
  .sana-logo-cloud {
    grid-template-columns: repeat(3,1fr);
    gap: 15px 5px;
    min-height: 165px;
    margin-top: 32px;
    padding: 25px 0;
  }
  .sana-logo-cloud span:nth-child(7) { display: none; }

  .sana-product-block--learn,
  .sana-product-block--agents { padding: 55px 12px 0; }
  .sana-section-head { padding-inline: 16px; }
  .sana-section-head h2 { font-size: 40px; line-height: 1.02; }
  .sana-section-head > p:not(.sana-product-label) { font-size: 15px; }
  .sana-capability-row { grid-template-columns: repeat(2,1fr); gap: 27px 10px; margin: 41px 0 26px; }
  .sana-capability-row p { font-size: 12px; }
  .sana-media { height: 540px; min-height: 0; border-radius: 18px 18px 0 0; }
  .sana-media > img { object-position: center; }
  .sana-media--product > img { object-position: 50% center; }
  .sana-float-chip--left { left: 4%; bottom: 29%; }
  .sana-float-chip--right { right: 4%; bottom: 19%; }
  .sana-floating-cta { right: 4%; bottom: 4%; }

  .sana-story { height: 625px; min-height: 0; margin-top: 12px; }
  .sana-story > img { object-position: 63% center; }
  .sana-story::after { background: linear-gradient(180deg, rgba(0,0,0,.52), rgba(0,0,0,.03) 68%); }
  .sana-story__copy { inset: 0 0 auto; width: 100%; padding: 42px 22px; }
  .sana-story__brand { margin-bottom: 24px; }
  .sana-story h2 { font-size: 26px; line-height: 1.12; }

  .sana-media--person { height: 570px; min-height: 0; }
  .sana-media--person > img { object-position: 32% center; }
  .sana-ui-stack { right: 4%; bottom: 8%; width: 188px; }

  #home-preview-mount { margin-top: 12px; }
  #home-preview-mount .preview-section { padding: 70px 0; }
  #home-preview-mount .preview-section > .section-inner { width: calc(100% - 24px); }
  #home-preview-mount .section-heading h2 { font-size: 40px; line-height: 1.02; }

  .sana-summit { padding-top: 12px; }
  .sana-summit__card { height: 610px; min-height: 0; }
  .sana-summit__media > img,
  .sana-summit__media > video { object-position: center; }
  .sana-summit__copy { padding: 24px; }
  .sana-summit h2 { max-width: 280px; font-size: 42px; line-height: .98; }

  .sana-proof-grid { grid-template-columns: 1fr; gap: 52px; padding: 95px 0; }
  .sana-proof-grid h2 { font-size: 40px; line-height: 1.02; }
  .sana-proof-list a { grid-template-columns: 38px 1fr auto; min-height: 76px; }
  .sana-proof-list strong { font-size: 17px; }
  .sana-final { min-height: 470px; padding: 70px 20px; }
  .sana-final h2 { font-size: 48px; line-height: .96; }

  .section { padding: 82px 0; }
  .section--page-top { padding-top: 70px; }
  body.is-subpage .section--page-top > .section-inner > .section-heading,
  .templates-section > .section-inner > .section-heading,
  .pricing-section > .section-inner > .section-heading,
  .package-builder-section > .section-inner > .section-heading,
  .preview-section > .section-inner > .section-heading { margin-bottom: 48px; }
  body.is-subpage .section--page-top > .section-inner > .section-heading h2,
  .templates-section > .section-inner > .section-heading h2,
  .pricing-section > .section-inner > .section-heading h2,
  .package-builder-section > .section-inner > .section-heading h2,
  .preview-section > .section-inner > .section-heading h2,
  .section-heading h2,
  .section--page-top h2 { font-size: 39px; line-height: 1.03; }

  body[data-route="pricing"] .pricing-section > .section-inner > .section-heading h2 {
    max-width: 350px;
    font-size: 38px;
  }

  .preview-grid,
  .package-grid,
  .checkout-layout,
  .billing-grid,
  .faq-layout,
  .product-grid,
  .problem-grid,
  .flow-grid,
  .template-grid,
  .example-grid,
  .pricing-grid,
  .premium-proof-grid,
  .sample-output-grid { grid-template-columns: 1fr !important; }
  .preview-form,
  .preview-result,
  .package-form,
  .package-result,
  .checkout-card,
  .billing-panel,
  .project-detail-card { padding: 22px; border-radius: 16px; }
  .template-preview { min-height: 360px; }
  .plan-card,
  .plan-card + .plan-card { min-height: auto; padding: 28px 0 38px; border-right: 0 !important; border-bottom: 1px solid var(--sx-line) !important; }
  .my-workspace-shell { grid-template-columns: 1fr; }
  .workspace-sidebar { border-right: 0; border-bottom: 1px solid var(--sx-line); }
  .workspace-main { padding: 24px; }
  .workspace-main h2 { font-size: 40px; }
  .faq-intro { position: static; }
  .faq-intro h2 { font-size: 44px; }

  .footer-inner { grid-template-columns: 1fr; gap: 54px; min-height: 0; padding: 52px 20px 30px; }
  .business-info { margin-top: 54px; }
}
