/* Hide the inactive surface before the first paint. */
.marketing-mode .app-only, .app-mode .marketing-only,
html[lang="en"] .marketing-only [lang="de"], html[lang="de"] .marketing-only [lang="en"],
html[lang="en"] .app-loading [lang="de"], html[lang="de"] .app-loading [lang="en"] { display: none; }
body { background: #f5f1ea; }
.landing-page { width: min(1320px, calc(100% - 64px)); margin: 24px auto; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.hero { display: grid; grid-template-columns: 5fr 6fr; column-gap: 32px; padding: 28px; overflow: hidden; border: 1px solid #e7dbcf; border-radius: 28px; background: rgba(255,255,255,.82); }
.hero-header { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; }
.hero-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hero .brand-pill { gap: 10px; padding: 10px 14px; font-weight: 700; font-size: 16px; box-shadow: none; }
.editor-pill { background: #ffe6db; color: #b45231; border-radius: 999px; padding: 7px 12px; font-weight: 700; font-size: 14px; }
.web-app-button, #app-retry { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 12px 20px; border: 0; border-radius: 999px; background: #bb5a3c; color: white; text-decoration: none; font: inherit; font-weight: 600; cursor: pointer; }
.web-app-button:hover, #app-retry:hover { background: #a64b30; }
a:focus-visible, button:focus-visible { outline: 3px solid #bb5a3c; outline-offset: 4px; }
.hero-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; min-height: 400px; }
.hero h1 { max-width: 540px; margin: 0 0 14px; font: 700 clamp(2.2rem, 4vw, 3rem)/1.05 Arial, sans-serif; letter-spacing: -.03em; }
.hero-description { max-width: 560px; margin: 0 0 20px; color: #4c4f55; font-size: 17px; line-height: 1.45; }
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.store-badges a { display: inline-flex; }
.store-badges img { height: 56px; max-width: 100%; }
.capabilities { width: 100%; list-style: none; margin: auto 0 0; padding: 14px 16px; border: 1px solid #e8ddd1; border-radius: 18px; background: #f7f3ed; }
.capabilities li { display: flex; gap: 11px; align-items: center; color: #4c4f55; font-size: 14px; font-weight: 600; }
.capabilities li + li { margin-top: 10px; }
.capability-icon { flex: 0 0 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: #b45231; background: #ffe6db; font-size: 20px; }
.hero-showcase { position: relative; min-width: 0; min-height: 400px; }
.hero-showcase img { position: absolute; bottom: -28px; left: 0; width: 100%; height: auto; }
.preview-panel { margin-top: 18px; padding: 22px; border: 1px solid #334143; border-radius: 28px; background: #232d2d; color: #f6f3ee; }
.preview-panel h2 { margin: 0; color: #f6f3ee; font-size: 24px; }
.preview-subtitle, .preview-note, .example-note { color: #b7c1c3; }
.preview-subtitle { margin: 8px 0 16px; font-size: 14px; }
.preview-columns { display: grid; grid-template-columns: 7fr 3fr; gap: 14px; align-items: start; }
.desktop-preview, .mobile-preview { min-width: 0; padding: 16px; border: 1px solid #36474b; border-radius: 22px; background: #283436; }
.sheet-example { border-spacing: 8px; table-layout: fixed; margin: -8px; width: calc(100% + 16px); font-size: 14px; }
.sheet-example th, .sheet-example td { padding: 12px 10px; text-align: left; border-radius: 14px; background: #314043; font-weight: 600; overflow-wrap: anywhere; }
.sheet-example .focused-row td { background: #3a8f61; color: white; }
.preview-note { margin: 8px 0 0; font-size: 12px; }
.mobile-preview h3 { margin: 0 0 10px; font-size: 16px; }
.mobile-example { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; margin: 0; font-size: 14px; font-weight: 600; }
.mobile-example dt, .mobile-example dd { min-width: 0; margin: 0; padding: 12px 10px; border: 1px solid #36474b; border-radius: 14px; overflow-wrap: anywhere; }
.mobile-example dt { background: #1f292b; color: #dde4e1; }
.mobile-example dd { background: rgba(76,175,117,.16); border-color: rgba(76,175,117,.35); }
.example-note { margin: 24px 0 0; font-size: 14px; }
.drive-notice { margin: 20px 16px 0; text-align: center; font-size: 14px; }
.app-loading { min-height: 100svh; padding: 24px; display: grid; place-content: center; justify-items: center; text-align: center; }
.app-loading p { max-width: 420px; }
#app-retry[hidden] { display: none; }
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 0; }
  .hero-showcase { min-height: 0; aspect-ratio: 1.5; margin-top: 24px; }
  .hero-showcase img { width: min(100%, 600px); left: 50%; transform: translateX(-50%); }
  .preview-columns { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .landing-page { width: calc(100% - 32px); margin: 16px auto; }
  .hero { padding: 20px; border-radius: 24px; }
  .hero-header { align-items: flex-start; }
  .hero-pills { gap: 8px; }
  .editor-pill { font-size: 12px; }
  .web-app-button { padding: 12px 16px; }
  .hero-showcase img { bottom: -20px; }
  .preview-panel { padding: 16px; border-radius: 24px; }
  .desktop-preview, .mobile-preview { padding: 12px; }
  .sheet-example { border-spacing: 4px; font-size: 11px; }
  .sheet-example th, .sheet-example td { padding: 10px 5px; border-radius: 10px; }
}
