html { scroll-behavior: auto; scroll-padding-top: 92px; }
body { background: #fff; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 120; padding: 10px 14px; background: #fff; color: var(--accent); }
.skip-link:focus { top: 10px; }
.topbar { height: 72px; padding-inline: max(24px, calc((100vw - 1240px) / 2)); }
.brand img { display: block; width: 152px; height: auto; }
.site-nav { display: flex; gap: 26px; margin-left: 30px; }
.site-nav a, .site-footer a { color: #626b76; text-decoration: none; font-size: 13px; }
.site-nav a:hover, .site-footer a:hover { color: var(--accent); }
main.homepage { display: block; width: 100%; max-width: none; height: auto; margin: 0; }
.page-intro { max-width: 1200px; margin: 0 auto; padding: 32px 24px 28px; text-align: center; }
.page-intro h1 { font-size: clamp(28px, 3vw, 36px); line-height: 1.18; letter-spacing: -.035em; font-weight: 600; }
.page-intro p { margin: 12px 0 0; font-size: 15px; line-height: 1.55; color: #626b76; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 400px; max-width: 1200px; margin: 0 auto; border: 1px solid #e0e4e9; border-radius: 18px; align-items: start; background: #f2f5f8; }
.workspace .stage { position: sticky; top: 88px; height: auto; min-height: 0; padding: 28px 24px; border-radius: 18px 0 0 18px; background: #f2f5f8; }
.workspace .phone-preview, .workspace #reference { height: min(calc(100svh - 320px), 600px); min-height: 300px; border-radius: 28px; }
.workspace .editor { height: auto; overflow: visible; padding: 26px 26px 28px; border-radius: 0 18px 18px 0; }
.editor-heading h2 { font-size: 21px; letter-spacing: -.025em; }
.workspace .transport { max-width: 430px; }
.content-section { max-width: 1200px; margin: 0 auto; padding: 96px 0; }
.content-section h2, .customize-section h2 { font-size: clamp(25px, 3vw, 32px); line-height: 1.2; font-weight: 600; letter-spacing: -.03em; }
.content-section p, .customize-section p { color: #626b76; line-height: 1.7; font-size: 15px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 32px; }
.section-heading p { margin: 12px 0 0; }
.quiet-link { display: inline-flex; gap: 12px; align-items: center; color: var(--accent); font-size: 13px; text-decoration: none; white-space: nowrap; }
.quiet-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.example-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.example-scene { position: relative; display: flex; align-items: center; justify-content: center; min-height: 380px; padding: 28px; border-radius: 14px; background: #eef2f6; }
.example-card:nth-child(2) .example-scene { background: #e9eef5; }
.example-card:nth-child(3) .example-scene { background: #edf1ee; }
.example-scene canvas, .example-scene .example-poster { display: block; width: 154px; height: auto; border-radius: 22px; background: #e1e8f0; box-shadow: 0 12px 26px #223c5420; }
.example-play { position: absolute; bottom: 16px; right: 16px; width: 38px; height: 38px; min-height: 38px; padding: 9px; background: #ffffffec; border: 0; border-radius: 50%; }
.example-caption { padding-top: 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.example-caption h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.example-caption p { margin: 7px 0 0; font-size: 12px; }
.example-caption button { flex-shrink: 0; font-size: 12px; min-height: 25px; padding-top: 0; }
.how-section { border-top: 1px solid var(--line); padding-top: 64px; }
.how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; padding: 0; margin: 38px 0 0; list-style: none; counter-reset: steps; }
.how-steps li { counter-increment: steps; }
.how-steps li::before { content: counter(steps); display: block; color: var(--accent); font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.how-steps h3 { font-size: 17px; font-weight: 600; margin: 0; }
.how-steps p { margin: 12px 0 0; font-size: 14px; }
.customize-section { background: #f5f7fa; }
.customize-inner { max-width: 1100px; margin: 0 auto; padding: 80px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.customize-heading > img { display: block; margin-bottom: 20px; width: 54px; height: 54px; }
.customize-heading h2 { max-width: 420px; }
.customize-heading p { margin: 20px 0 24px; }
.detail-list { margin: 0; }
.detail-list > div { padding: 22px 0; border-bottom: 1px solid #dce1e7; }
.detail-list > div:first-child { padding-top: 0; }
.detail-list dt { font-size: 16px; font-weight: 600; }
.detail-list dd { margin: 9px 0 0; color: #626b76; font-size: 14px; line-height: 1.7; }
.faq-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 80px; padding: 96px 0; }
.faq-section > div:first-child p { margin: 14px 0 0; }
.faq-list details { padding: 20px 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; gap: 20px; align-items: center; list-style: none; font-size: 15px; font-weight: 500; line-height: 1.5; color: #222830; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-size: 22px; font-weight: 400; color: #626b76; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details > p { font-size: 14px; margin: 14px 28px 0 0; }
.site-footer { padding: 42px max(24px, calc((100vw - 1200px) / 2)) 26px; border-top: 1px solid var(--line); }
.footer-main { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.footer-main img { display: block; width: 140px; height: auto; }
.footer-main p { color: #626b76; font-size: 12px; }
.footer-main nav { display: flex; gap: 20px; align-items: center; }
.footer-main nav .text-button { color: #626b76; font-size: 12px; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 32px; font-size: 11px; color: #626b76; }
@media (max-width: 1270px) { .workspace { margin-inline: 24px; } .content-section { margin-inline: 32px; } .customize-inner { padding-inline: 32px; gap: 64px; } .example-caption { flex-direction: column; gap: 8px; } }
@media (max-width: 1000px) { .site-nav { gap: 18px; margin-left: 12px; } .workspace { grid-template-columns: minmax(0, 1fr) 370px; } .footer-main { grid-template-columns: auto 1fr; } .footer-main nav { grid-column: 1 / -1; } .example-scene { min-height: 340px; padding: 24px 12px; } .example-scene canvas, .example-scene .example-poster { width: 135px; } }
@media (max-width: 760px) {
  html { scroll-padding-top: 80px; }
  .topbar { height: 64px; padding-inline: 16px; gap: 8px; }
  .brand img { width: 115px; }
  .site-nav { display: none; }
  .page-intro { padding: 26px 22px 22px; text-align: left; }
  .page-intro h1 { font-size: 28px; max-width: 420px; }
  .page-intro p { margin-top: 10px; font-size: 13px; max-width: 420px; }
  .workspace { display: block; margin: 0 12px; border-radius: 14px; }
  .workspace .mobile-tabs { top: 64px; border-radius: 14px 14px 0 0; padding: 5px 12px; }
  .workspace .stage { position: relative; top: auto; padding: 20px 12px; border-radius: 0 0 14px 14px; gap: 12px; }
  .workspace .phone-preview, .workspace #reference { height: min(calc(100svh - 310px), 500px); min-height: 250px; border-radius: 26px; }
  .workspace .editor { min-height: 0; padding: 22px 18px 28px; border: 0; border-radius: 0 0 14px 14px; }
  .content-section { margin-inline: 22px; padding-block: 64px; }
  .section-heading { display: block; margin-bottom: 24px; }
  .section-heading .quiet-link { display: none; }
  .content-section h2, .customize-section h2 { font-size: 27px; }
  .example-gallery { grid-template-columns: 1fr; gap: 30px; }
  .example-scene { min-height: 330px; padding: 24px; }
  .example-scene canvas, .example-scene .example-poster { width: 138px; }
  .example-caption { flex-direction: row; align-items: start; }
  .how-steps { grid-template-columns: 1fr; gap: 30px; margin-top: 28px; }
  .how-steps li { display: grid; grid-template-columns: 24px 1fr; column-gap: 12px; }
  .how-steps li::before { grid-row: span 2; margin-top: 3px; }
  .how-steps p { grid-column: 2; margin-top: 8px; }
  .customize-inner { padding: 56px 22px; grid-template-columns: 1fr; gap: 32px; }
  .customize-heading h2 { max-width: 370px; }
  .faq-section { display: block; }
  .faq-list { margin-top: 28px; }
  .site-footer { padding: 34px 22px 22px; }
  .footer-main { display: flex; align-items: start; flex-direction: column; gap: 12px; }
  .footer-main p { margin: 0; }
  .footer-main nav { flex-wrap: wrap; gap: 12px 20px; }
  .footer-bottom { gap: 20px; margin-top: 26px; line-height: 1.6; }
}
@media (max-width: 360px) { .brand img { width: 104px; } .topbar { padding-inline: 10px; } .page-intro { padding-inline: 18px; } .workspace { margin-inline: 8px; } .workspace .editor { padding-inline: 14px; } .example-caption { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html { background: #fff; height: auto; }
body { height: auto; min-height: 100svh; overflow: visible; }

.quiet-link [data-icon], .example-caption [data-icon] { display: inline-flex; }
.quiet-link svg, .example-caption button svg { width: 14px; height: 14px; }

.export-options { position: fixed; inset: 80px max(24px, calc((100vw - 1240px) / 2)) auto auto; margin: 0; width: 282px; padding: 7px; border: 1px solid #e0e4e9; border-radius: 14px; background: #fff; color: #222830; box-shadow: 0 10px 32px #18263b26; }
.export-options-heading { display: none; }
#exportOptions .export-option { display: flex; align-items: center; gap: 13px; width: 100%; padding: 14px 12px; border: 0; border-radius: 9px; background: #fff; text-align: left; font-weight: 400; }
#exportOptions .export-option:hover:not(:disabled) { background: #eef5ff; }
#exportOptions .export-option > [data-icon] { display: inline-flex; flex-shrink: 0; color: var(--accent); }
#exportOptions .export-option > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; gap: 5px; }
#exportOptions .export-option strong { font-size: 14px; font-weight: 600; }
#exportOptions .export-option small { font-size: 12px; color: #626b76; }
#exportOptions .export-option > [data-icon]:last-child svg { width: 15px; height: 15px; color: #626b76; }
@media (max-width: 760px) {
  .top-actions #exportTrigger { padding: 8px 14px; font-size: 13px; }
  .export-options { inset: auto 0 0; width: 100%; max-width: none; padding: 12px 16px max(18px, env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; }
  .export-options::backdrop { background: #14233455; }
  .export-options-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 8px; }
  .export-options-heading h2 { font-size: 18px; }
  .export-options-heading button { border: 0; }
  #exportOptions .export-option { min-height: 76px; padding: 16px 12px; }
  #exportOptions .export-option strong { font-size: 16px; }
}
/* Equal side columns keep navigation centered independently of logo/button widths. */
@media (min-width: 761px) {
  .topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); column-gap: 24px; padding-inline: max(24px, calc((100vw - 1200px) / 2)); }
  .topbar .brand { justify-self: start; }
  .topbar .site-nav { justify-self: center; margin-left: 0; gap: 28px; transform: translateY(2px); }
  .topbar .top-actions { justify-self: end; margin-left: 0; }
  .export-options { right: max(24px, calc((100vw - 1200px) / 2)); }
}

.page-intro { padding-top: 28px; padding-bottom: 22px; }
.page-intro .intro-description { max-width: 700px; margin-inline: auto; }
.page-intro .intro-free { color: var(--accent); }
.page-intro .intro-assurance { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 14px 0 0; padding: 0; color: #515b67; font-size: 13px; line-height: 1.5; }
.intro-assurance li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.intro-assurance [data-icon] { display: inline-flex; color: #15803d; }
.intro-assurance svg { width: 16px; height: 16px; stroke-width: 2.4; }
@media (max-width: 760px) {
  .page-intro { padding-top: 22px; padding-bottom: 20px; }
  .page-intro .intro-description { margin-inline: 0; max-width: 420px; }
  .page-intro .intro-assurance { justify-content: flex-start; gap: 8px 16px; margin-top: 12px; font-size: 12px; }
}
@media (max-width: 760px) {
  .workspace .phone-preview, .workspace #reference { height: min(calc(100svh - 338px), 472px); }
}

/* Purchase controls stay secondary to the editor and export action. */
#watermarkDialog > div > p { font-size: 14px; line-height: 1.6; }
#watermarkDialog .billing-price { margin: 0 0 12px; font-size: 32px; font-weight: 600; letter-spacing: -.025em; }
.billing-price span { font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
#billingBuy, #billingExport { width: 100%; margin-top: 8px; min-height: 44px; }
#billingStatus { margin-block: 16px 8px; }
#billingStatus.billing-error { color: #a32626; }
#billingRestoreToggle, #billingFree { display: block; min-height: 40px; }
#billingRestore { padding-top: 8px; }
#billingRestore label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
#billingRestore input { width: 100%; min-height: 44px; }
#billingRestoreSubmit { margin-top: 12px; min-height: 44px; }
#billingBadge { color: #515b67; white-space: nowrap; }
@media (max-width: 760px) {
  .topbar .top-actions { gap: 10px; }
  #billingBadge { font-size: 11px; }
}

.analytics-consent { position: fixed; left: 20px; bottom: 20px; z-index: 130; width: min(370px, calc(100vw - 40px)); padding: 16px; background: #fff; border: 1px solid #dce1e7; border-radius: 14px; }
.analytics-consent p { margin: 0 0 12px; font-size: 13px; line-height: 1.6; color: #515b67; }
.analytics-consent a { color: var(--accent); }
.analytics-consent > div { display: flex; gap: 10px; }
.analytics-consent button { flex: 1; min-height: 44px; }
@media (max-width: 760px) { .analytics-consent { left: 12px; bottom: 12px; width: calc(100vw - 24px); } }
