:root {
  color-scheme: dark;
  --bg: #020819;
  --panel: rgba(7, 19, 44, 0.72);
  --panel-border: rgba(96, 176, 255, 0.34);
  --text: #e8f2ff;
  --muted: #9ab1cf;
  --blue: #5ca9ff;
  --blue-strong: #3d95ff;
  --success: #4fd09b;
  --danger: #f37070;
  --radius: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Noto Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at 20% 10%, #183b7a 0%, #08152f 28%, #030b1d 58%, #020819 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 16px auto 36px;
}

.header {
  position: sticky;
  top: 12px;
  z-index: 30;
  background: rgba(3, 12, 28, 0.82);
  border: 1px solid rgba(118, 179, 255, 0.28);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 36px rgba(0, 5, 15, 0.45);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 12px 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #67c1ff, #2f85ff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #001430;
  font-weight: 800;
}

.brand-text {
  font-size: 1.03rem;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.name-beta {
  font-size: 0.68em;
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0.88;
  vertical-align: 0.1em;
}

.nav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.93rem;
}

.nav a:hover {
  color: #d7e8ff;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.language-toggle,
.signin-button,
.primary-cta {
  border-radius: 999px;
  border: 1px solid rgba(123, 184, 255, 0.42);
  background: rgba(13, 35, 77, 0.62);
  color: #dbecff;
  padding: 8px 14px;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
}

.language-toggle {
  min-width: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.signin-button:hover,
.language-toggle:hover {
  border-color: rgba(157, 206, 255, 0.74);
}

.primary-cta {
  background: linear-gradient(90deg, #4da9ff, #3d95ff);
  color: #00122f;
  border: 1px solid rgba(120, 196, 255, 0.9);
}

.language-menu {
  position: absolute;
  right: auto;
  left: auto;
  inset-inline-end: 12px;
  top: calc(100% + 8px);
  width: min(340px, calc(100% - 24px));
  border-radius: 14px;
  border: 1px solid #dce9f8;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(31, 77, 136, 0.12);
  overflow: hidden;
  color: #1d3e67;
  z-index: 100;
}

.language-menu-search {
  padding: 10px;
  border-bottom: 1px solid #e6f1fc;
  position: sticky;
  top: 0;
  background: #ffffff;
}

.language-menu-search input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #d9e9fa;
  background: #f6fbff;
  color: #1d3f68;
  padding: 9px 12px;
  outline: none;
}

.language-list {
  max-height: 286px;
  overflow-y: auto;
  background: #ffffff;
}

.language-item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #edf4fc;
  background: transparent;
  color: #1d3f68;
  text-align: left;
  padding: 11px 12px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 26px 46px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.language-item:hover,
.language-item.active {
  background: #eef6ff;
}

.language-item-abbr {
  opacity: 0.78;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.language-item-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.language-item-local {
  opacity: 0.78;
  font-size: 0.75rem;
  color: #5c7ea7;
}

.hidden {
  display: none !important;
}

.hero {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 26px;
  align-items: stretch;
}

.hero-copy,
.visual-panel {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 30px;
}

h1 {
  margin: 0;
  font-size: clamp(1.95rem, 2.35vw, 3.05rem);
  line-height: 1.16;
  letter-spacing: 0.01em;
}

h2,
h3,
p {
  margin: 0;
}

.blue {
  color: #66b8ff;
}

.hero-subtitle {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 720px;
}

.login-card {
  margin-top: 26px;
  border: 1px solid rgba(123, 183, 253, 0.34);
  border-radius: 18px;
  padding: 18px;
  background: rgba(5, 16, 36, 0.77);
  display: grid;
  gap: 10px;
}

.login-button,
.email-button {
  border: 1px solid rgba(118, 177, 250, 0.39);
  border-radius: 12px;
  background: rgba(13, 33, 73, 0.9);
  color: #e8f3ff;
  font-size: 0.95rem;
  font-weight: 600;
  min-height: 44px;
  width: 100%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.social-mark {
  font-weight: 800;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #84a3c7;
  font-size: 0.84rem;
  margin: 2px 0;
}

.input-wrap {
  display: flex;
  align-items: center;
  background: rgba(8, 22, 48, 0.95);
  border: 1px solid rgba(113, 171, 245, 0.34);
  border-radius: 12px;
  min-height: 44px;
  padding: 0 12px;
  gap: 8px;
}

.input-icon {
  color: #85a9d1;
  width: 14px;
  text-align: center;
  font-weight: 700;
}

.email-input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  color: #e9f2ff;
  font-size: 0.92rem;
}

.email-button {
  margin-top: 2px;
  background: linear-gradient(90deg, #4da9ff, #3d95ff);
  color: #001730;
  border-color: rgba(129, 202, 255, 0.96);
}

.guest-signin-link {
  border: 0;
  background: transparent;
  color: #c8ddfb;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 0;
  justify-self: center;
}

.guest-signin-link:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.guest-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
}

.guest-modal.hidden {
  display: none;
}

.guest-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 24, 48, 0.45);
  backdrop-filter: blur(4px);
}

.guest-modal-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(147, 197, 253, 0.75);
  background: linear-gradient(165deg, #f8fbff 0%, #eef5ff 48%, #e3efff 100%);
  box-shadow: 0 22px 50px rgba(8, 30, 72, 0.28);
  padding: 20px;
  display: grid;
  gap: 14px;
  color: #0f2744;
}

.guest-modal-card h2 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  color: #0c3a6e;
}

.guest-modal-card p {
  margin: 0;
  color: #3d5a7a;
  font-size: 0.88rem;
  line-height: 1.5;
}

.guest-terms-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #1e3a5f;
  font-size: 0.86rem;
  line-height: 1.45;
}

.guest-terms-check input[type="checkbox"] {
  margin-top: 3px;
  accent-color: #3d95ff;
}

.guest-terms-check a {
  color: #1d6fd6;
  font-weight: 600;
  text-decoration: underline;
}

.guest-modal-card .email-button {
  margin-top: 0;
}

.guest-modal-cancel {
  border: 1px solid rgba(118, 177, 250, 0.55);
  border-radius: 12px;
  background: #ffffff;
  color: #1e4a7a;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 42px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.guest-modal-cancel:hover {
  background: #f0f7ff;
}

.form-error {
  color: var(--danger);
  font-size: 0.83rem;
}

.form-loading {
  color: var(--success);
  font-size: 0.82rem;
}

.terms {
  color: #94abca;
  font-size: 0.75rem;
  line-height: 1.45;
}

.terms a {
  color: #b4d8ff;
  text-decoration: underline;
}

.mobile-button {
  margin-top: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(118, 177, 250, 0.45);
  padding: 0 18px;
  font-size: 0.9rem;
  color: #d2e8ff;
}

.visual-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.logo-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
}

.hero-logo {
  width: min(220px, 70%);
  animation: pulse 3.8s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.logo-glow {
  position: absolute;
  width: min(260px, 80%);
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 172, 255, 0.58) 0%, rgba(41, 90, 170, 0.22) 40%, rgba(7, 20, 43, 0) 72%);
  filter: blur(3px);
  z-index: 1;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.055); }
}

.scroll-section {
  margin-top: 24px;
}

.section-card,
.browser-card,
.download-card,
.faq-box-large {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.section-card {
  padding: 30px;
}

.section-kicker {
  color: #76b4ff;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.76rem;
  margin-bottom: 10px;
}

.section-copy {
  color: #d8e9ff;
  display: grid;
  gap: 10px;
  line-height: 1.62;
}

.feature-grid-wide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.feature-tile {
  border: 1px solid rgba(114, 171, 246, 0.28);
  border-radius: 16px;
  background: rgba(8, 21, 44, 0.76);
  padding: 16px;
  display: grid;
  gap: 8px;
}

.pillar-number {
  font-size: 0.73rem;
  color: #8db5e4;
  letter-spacing: 0.1em;
}

.feature-icon {
  font-size: 1.4rem;
  color: #87c2ff;
}

.feature-tile h3 {
  font-size: 0.95rem;
}

.feature-tile p {
  color: #9ab1cf;
  font-size: 0.83rem;
  line-height: 1.5;
}

.about-combo {
  margin-top: 16px;
  color: #b7d5f8;
  font-weight: 700;
}

.browser-card {
  padding: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: center;
}

.browser-card p:not(.about-kicker) {
  color: var(--muted);
  line-height: 1.65;
}

.browser-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.browser-primary,
.browser-secondary {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(120, 179, 250, 0.44);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.89rem;
}

.browser-primary,
.browser-primary:visited {
  background: linear-gradient(90deg, #4da9ff, #3d95ff);
  color: #ffffff;
  font-weight: 600;
}

.browser-secondary {
  color: #d5e7ff;
  background: rgba(10, 27, 57, 0.7);
}

.browser-chat-preview {
  border: 1px solid rgba(114, 171, 246, 0.3);
  border-radius: 18px;
  background: rgba(9, 23, 47, 0.82);
  padding: 14px;
  display: grid;
  gap: 8px;
}

.browser-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.browser-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6ba3e8;
}

.preview-message {
  border-radius: 12px;
  padding: 9px 11px;
  font-size: 0.81rem;
  line-height: 1.45;
  max-width: 92%;
}

.preview-message.left {
  justify-self: flex-start;
  background: rgba(58, 110, 184, 0.32);
}

.preview-message.right {
  justify-self: flex-end;
  background: rgba(102, 161, 235, 0.4);
  color: #031027;
}

.download-card {
  padding: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
}

.download-subtitle {
  color: var(--muted);
  line-height: 1.6;
}

.download-features {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.download-feature {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #d6e7fd;
}

.feature-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6db7ff;
}

.qr-grid {
  display: grid;
  gap: 12px;
}

.qr-card {
  border: 1px solid rgba(123, 180, 251, 0.28);
  border-radius: 14px;
  background: rgba(8, 22, 47, 0.86);
  padding: 12px;
  display: grid;
  gap: 9px;
}

.qr-store-name {
  color: #bddcfd;
  font-size: 0.86rem;
}

.qr-placeholder {
  width: 94px;
  aspect-ratio: 1/1;
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(155, 204, 255, 0.5);
  color: #8dbcec;
  font-weight: 700;
}

.qr-hint {
  color: #8ea9cb;
  font-size: 0.74rem;
}

.faq-box-large {
  padding: 20px;
}

.faq-item {
  border-top: 1px solid rgba(125, 182, 253, 0.2);
}

.faq-item:first-child {
  border-top: 0;
}

.faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  color: #ddedff;
  padding: 15px 4px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  cursor: pointer;
}

.chevron {
  opacity: 0.72;
  transition: transform 180ms ease;
}

.faq-item.open .chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  color: #8fa9ca;
  line-height: 1.55;
  font-size: 0.86rem;
  transition: max-height 250ms ease, padding-bottom 250ms ease;
  padding: 0 4px;
}

.faq-item.open .faq-answer {
  max-height: 240px;
  padding-bottom: 14px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .browser-card,
  .download-card {
    grid-template-columns: 1fr;
  }

  .visual-panel {
    min-height: 260px;
  }

  .feature-grid-wide.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: calc(100% - 18px);
    margin: 10px auto 24px;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    font-size: 0.84rem;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero-copy,
  .section-card,
  .browser-card,
  .download-card,
  .faq-box-large {
    padding: 18px;
  }

  h1 {
    font-size: 1.65rem;
  }

  .feature-grid-wide.three {
    grid-template-columns: 1fr;
  }
}

/* Sketch-match pass: first screen visual overrides */
html,
body {
  color-scheme: light;
  font-family: "Inter", "Noto Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at 15% 15%, rgba(117, 192, 255, 0.12) 0%, rgba(117, 192, 255, 0) 52%),
    linear-gradient(180deg, #fafdff 0%, #f5fbff 60%, #f7fbff 100%);
  color: #173057;
}

.site-shell {
  width: min(1240px, calc(100% - 24px));
  margin: 10px auto 30px;
}

.header {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #eaf2fb;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(29, 71, 123, 0.05);
  backdrop-filter: blur(8px);
}

.header-inner {
  padding: 10px 14px;
}

.brand {
  gap: 10px;
}

.brand-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.brand-text {
  font-size: 1.8rem;
  font-weight: 600;
  color: #0f2f5b;
  line-height: 1;
}

.brand .name-beta {
  font-size: 0.58em;
  font-weight: 700;
  letter-spacing: 0.07em;
  opacity: 0.86;
  vertical-align: 0.12em;
}

.nav {
  color: #29466f;
  font-size: 0.98rem;
  font-weight: 600;
  gap: 24px;
}

.nav a:hover {
  color: #1578ff;
}

.language-toggle,
.signin-button,
.primary-cta {
  border: 1px solid #dbe9f8;
  background: #ffffff;
  color: #29486f;
  font-size: 0.94rem;
  padding: 8px 16px;
}

.primary-cta {
  background: linear-gradient(180deg, #2f8dff, #1379ff);
  color: #ffffff;
  border-color: #0d71f7;
  box-shadow: 0 10px 20px rgba(25, 122, 255, 0.2);
}

.hero {
  margin-top: 28px;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 30px;
  min-height: calc(100vh - 160px);
}

.hero-copy,
.visual-panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.hero-copy {
  padding: 18px 8px 18px 24px;
}

h1 {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(3.1rem, 4.5vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
  color: #102b59;
  max-width: 760px;
}

.blue {
  color: #1d80ff;
}

.hero-subtitle {
  margin-top: 16px;
  color: #476388;
  font-size: 1.65rem;
  line-height: 1.45;
  font-weight: 500;
  max-width: 590px;
}

.login-card {
  margin-top: 34px;
  border: 1px solid #e2edf9;
  border-radius: 30px;
  padding: 22px 20px;
  background: #ffffff;
  max-width: 530px;
  box-shadow: 0 20px 52px rgba(35, 84, 145, 0.09);
}

.login-button,
.email-button {
  min-height: 60px;
  border-radius: 14px;
  border: 1px solid #dce9f7;
  background: #ffffff;
  color: #15365f;
  font-size: 1.25rem;
  font-weight: 600;
}

.social-mark {
  color: #1c7fff;
}

.divider {
  color: #7a98bf;
  font-size: 1rem;
}

.input-wrap {
  min-height: 58px;
  border-radius: 14px;
  border: 1px solid #dfebf8;
  background: #ffffff;
  padding: 0 16px;
}

.input-icon {
  width: 20px;
  color: #8ca8cb;
}

.email-input {
  color: #163761;
  font-size: 1.12rem;
}

.email-button {
  background: linear-gradient(180deg, #2f8dff, #1278ff);
  color: #ffffff;
  border-color: #0e72f8;
}

.terms {
  margin-top: 4px;
  color: #748fb3;
  font-size: 0.86rem;
  text-align: center;
}

.terms a {
  color: #1d7fff;
}

.mobile-button {
  min-height: 58px;
  margin-top: 18px;
  border: 1px solid #dce9f8;
  background: #ffffff;
  color: #1a3a64;
  font-size: 1.28rem;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(43, 95, 157, 0.08);
}

.visual-panel {
  min-height: 620px;
}

.hero-logo {
  width: min(760px, 126%);
  opacity: 0.72;
  filter: saturate(1.3) brightness(1.08);
  animation: float-logo 5.2s ease-in-out infinite;
}

@keyframes float-logo {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.03); }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

@media (max-width: 1080px) {
  .visual-panel {
    min-height: 320px;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }
}

@media (max-width: 760px) {
  .brand-text {
    font-size: 1.4rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .login-card {
    max-width: 100%;
    padding: 16px 14px;
  }

  .login-button,
  .email-button,
  .input-wrap {
    min-height: 48px;
  }

  .login-button,
  .email-button,
  .email-input,
  .mobile-button {
    font-size: 0.98rem;
  }
}

/* Final simplification pass: plain header and hero */
.header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 8px 12px;
}

.header-inner {
  display: contents;
}

.brand-text {
  font-size: 1.95rem;
  letter-spacing: 0;
}

.nav {
  justify-self: center;
}

.header-actions {
  justify-self: end;
}

.hero {
  align-items: center;
  min-height: calc(100vh - 150px);
  grid-template-columns: minmax(0, 1fr) 480px;
  gap: 18px;
}

.hero-copy {
  padding: 4px 8px 0 24px;
}

h1 {
  max-width: 590px;
  font-size: clamp(2.65rem, 4.1vw, 5rem);
  line-height: 0.97;
}

.hero-subtitle {
  max-width: 560px;
  margin-top: 12px;
  font-size: clamp(0.98rem, 1.85vw, 1.28rem);
  line-height: 1.4;
  font-weight: 600;
  color: #3f5f89;
}

.hero-logo {
  justify-self: end;
  width: min(690px, 155%);
  max-width: 100%;
  transform: translateX(82px) translateY(-26px);
  opacity: 0.62;
  filter: saturate(1.2) brightness(1.03);
}

.logo-stage {
  align-items: start;
}

.login-card {
  width: min(100%, 488px);
  margin-top: 26px;
  border-radius: 24px;
  padding: 18px 16px;
  gap: 10px;
}

.login-button,
.email-button,
.input-wrap {
  min-height: 54px;
}

.login-button,
.email-button {
  font-size: 1.08rem;
}

.email-input {
  font-size: 1.02rem;
}

.terms {
  font-size: 0.8rem;
  line-height: 1.3;
}

.mobile-button {
  min-height: 52px;
  margin-top: 14px;
  font-size: 1.05rem;
  box-shadow: 0 8px 20px rgba(43, 95, 157, 0.06);
}

.form-error {
  min-height: 0;
  margin-top: -2px;
  font-size: 0.78rem;
  opacity: 0.62;
}

@media (max-width: 1080px) {
  .header {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 10px;
  }

  .nav {
    justify-self: start;
  }

  .header-actions {
    justify-self: start;
  }

  .hero-logo {
    justify-self: center;
    width: min(560px, 100%);
    transform: none;
    opacity: 0.7;
  }
}

/* Final logo/button correction */
.brand-logo {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}

.brand-text {
  font-size: 2rem !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

.primary-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 38px !important;
  min-height: 38px !important;
  border-radius: 10px !important;
  padding: 0 20px !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

/* Performance + top-menu alignment pass */
body {
  background: #f7fbff;
}

.header {
  position: relative;
  top: 0;
  border-radius: 6px;
  border: 1px solid #eef4fb;
  box-shadow: 0 2px 10px rgba(37, 80, 132, 0.03);
  backdrop-filter: none;
  padding: 10px 18px;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
}

.brand-text {
  font-size: 1.52rem;
  font-weight: 650;
  color: #0f2d57;
}

.brand-logo {
  width: 22px;
  height: 22px;
}

.nav {
  gap: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2b486f;
}

.header-actions {
  gap: 10px;
  align-items: center;
}

.language-toggle {
  min-width: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #436387;
  padding: 0 4px;
  font-size: 0.9rem;
}

.language-toggle #language-flag {
  display: none;
}

.signin-button {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #19385f;
  padding: 0 4px;
  min-height: auto;
}

.language-toggle,
.signin-button,
.primary-cta {
  min-height: 38px;
  padding: 0 13px;
  font-size: 0.92rem;
}

.hero-logo {
  animation: none !important;
  filter: none;
  opacity: 0.58;
  transform: translateX(68px) translateY(-18px);
  will-change: auto;
}

.language-menu-search {
  position: static;
}

@media (max-width: 1080px) {
  .header {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 8px;
    padding: 8px 12px;
  }

  .nav,
  .header-actions {
    justify-self: start;
  }
}

/* Strict sketch-match overrides for top header/hero */
.site-shell {
  width: 100% !important;
  margin: 0 !important;
}

:root {
  --landing-header-height: 64px;
}

/*
 * One offset for all anchor/fragment scrolls (sticky header). Avoid stacking per-id
 * scroll-margin + scrollIntoView — it was overshooting/undershooting when header wraps.
 */
html {
  scroll-padding-top: calc(var(--landing-header-height) + 14px);
  scroll-behavior: auto;
  overscroll-behavior-y: contain;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #ffffff !important;
  border-bottom: 1px solid #eef3f9 !important;
  padding: 10px 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
}

.brand {
  gap: 8px !important;
}

.brand-logo {
  width: 21px !important;
  height: 21px !important;
}

.brand-text {
  font-size: 1.18rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

.nav {
  margin-left: auto;
  margin-right: 10px;
  display: inline-flex !important;
  gap: 24px !important;
  align-items: center !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: #173a66 !important;
}

.header-actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  justify-self: auto !important;
}

.language-toggle {
  display: inline-flex !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  border-radius: 8px !important;
  border: 1px solid #dce9f8 !important;
  background: #ffffff !important;
  box-shadow: none !important;
  color: #3f6288 !important;
  padding: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  gap: 1px !important;
  line-height: 1 !important;
}

.language-toggle #language-flag {
  font-size: 0.72rem !important;
  line-height: 1 !important;
}

.language-toggle #language-code {
  display: inline !important;
  font-size: 0.5rem !important;
  letter-spacing: 0.08em !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  color: #3f6288 !important;
}

.signin-button {
  border: 0 !important;
  background: transparent !important;
  color: #173a66 !important;
  box-shadow: none !important;
  font-size: 0.92rem !important;
  min-height: auto !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.primary-cta {
  border: 0 !important;
  border-radius: 11px !important;
  min-height: 34px !important;
  padding: 0 18px !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  background: linear-gradient(180deg, #2f8cff, #187cff) !important;
  box-shadow: 0 8px 16px rgba(39, 132, 255, 0.22) !important;
}

.hero {
  min-height: calc(100vh - var(--landing-header-height)) !important;
  align-items: center !important;
  grid-template-columns: minmax(0, 1fr) 500px !important;
  gap: 8px !important;
  padding: 16px 32px 0 !important;
  margin-top: 0 !important;
}

.hero-copy {
  padding: 0 !important;
}

h1 {
  max-width: 540px !important;
}

.hero-subtitle {
  max-width: 560px !important;
}

.hero-logo {
  width: min(700px, 145%) !important;
  transform: none !important;
  align-self: center !important;
  justify-self: center !important;
}

@media (max-width: 1080px) {
  .header {
    padding: 10px 12px !important;
    flex-wrap: wrap;
    align-items: center !important;
  }

  .nav {
    margin: 0;
    order: 3;
    width: 100%;
    justify-content: flex-start !important;
    gap: 14px !important;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr !important;
    padding: 16px 14px 0 !important;
  }
}

/* Hero logo fit fix (no clipping/out-of-page) */
.hero {
  overflow: visible !important;
}

.hero-logo {
  width: min(420px, 100%) !important;
  max-width: 100% !important;
  justify-self: center !important;
  transform: translateX(0) translateY(0) !important;
  object-fit: contain !important;
  object-position: center !important;
}

/* About section sketch-matching */
.about-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 14px;
}

.about-section .about-card {
  border: 1px solid #e4effb !important;
  border-radius: 24px !important;
  background: #f9fdff !important;
  box-shadow: 0 12px 32px rgba(43, 95, 157, 0.06) !important;
  padding: 26px 22px 20px !important;
}

.about-section .section-copy {
  gap: 8px !important;
  color: #5a7599 !important;
  font-size: 0.96rem !important;
  line-height: 1.5 !important;
  font-weight: 500;
}

.about-section .feature-grid-wide.three {
  margin-top: 18px !important;
  gap: 10px !important;
}

.about-section .feature-tile {
  background: #ffffff !important;
  border: 1px solid #e6f1fc !important;
  border-radius: 18px !important;
  box-shadow: none !important;
  padding: 14px 14px 12px !important;
  min-height: 176px;
}

.about-section .pillar-number {
  justify-self: end;
  color: #d9e7fb !important;
  font-size: 2rem !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  margin-top: -4px;
}

.about-section .feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #f2f7ff;
  color: #1d4e83 !important;
  font-size: 1.02rem !important;
  margin-top: -8px;
}

.about-section .feature-tile h3 {
  font-size: 0.86rem !important;
  line-height: 1.32 !important;
  color: #153762 !important;
  font-weight: 700 !important;
}

.about-section .feature-tile p {
  color: #5d789b !important;
  font-size: 0.78rem !important;
  line-height: 1.46 !important;
  font-weight: 500;
}

.about-combo {
  margin-top: 12px !important;
  border: 1px solid #e5f0fb;
  border-radius: 14px;
  background: #fbfdff;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
}

.about-combo-badge {
  border-radius: 999px;
  background: linear-gradient(180deg, #1d83ff, #0f72f8);
  color: #ffffff;
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  font-weight: 700;
  padding: 4px 10px;
  white-space: nowrap;
}

.about-combo-text {
  color: #163964;
  font-size: 0.82rem;
  font-weight: 600;
}

/* Harmonize remaining sections with light product style */
.browser-card,
.download-card,
.faq-box-large {
  border: 1px solid #e4effb !important;
  border-radius: 22px !important;
  background: #f9fdff !important;
  box-shadow: 0 10px 28px rgba(43, 95, 157, 0.06) !important;
}

.browser-card p:not(.about-kicker),
.faq-answer {
  color: #5c779b !important;
}

/* Download panel body copy: darker than generic muted for contrast on #f9fdff */
.download-card .download-subtitle {
  color: #2f4666 !important;
  font-weight: 500;
}

/* Legacy palette targeted dark QR cards; panel is light — use About-scale ink */
.download-card .download-feature {
  color: #243d5c !important;
  font-weight: 600;
}

.download-card .qr-store-name {
  color: #1d72e8 !important;
  font-weight: 700;
}

.download-card .qr-placeholder {
  color: #3d5a7a !important;
  border-color: rgba(61, 90, 122, 0.45) !important;
}

.download-card .qr-hint {
  color: #3d5a7a !important;
  font-size: 0.78rem;
  text-align: center !important;
  margin: 0;
  width: 100%;
}

.download-card .qr-card {
  justify-items: center;
  text-align: center;
}

.download-card .qr-store {
  display: flex;
  justify-content: center;
  width: 100%;
}

.download-card .qr-placeholder {
  justify-self: center;
}

.browser-chat-preview,
.qr-card {
  border: 1px solid #e6f1fc !important;
  background: #ffffff !important;
}

.browser-secondary {
  background: #f3f8ff !important;
  color: #1d456f !important;
  border-color: #dce9f8 !important;
}

.faq-question {
  color: #153a64 !important;
}

@media (max-width: 980px) {
  .about-section .section-copy {
    font-size: 0.9rem !important;
  }

  .about-section .feature-tile h3 {
    font-size: 0.8rem !important;
  }

  .about-section .feature-tile p {
    font-size: 0.72rem !important;
  }
}

/* Full-screen responsive sections */
.scroll-section {
  min-height: calc(100vh - var(--landing-header-height));
  display: flex;
  align-items: center;
  padding: 16px 0;
}

.scroll-section > * {
  width: 100%;
}

.about-section,
.browser-mobile-combo {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 14px;
}

@media (max-width: 1080px) {
  :root {
    --landing-header-height: 74px;
  }

  .scroll-section {
    min-height: calc(100vh - var(--landing-header-height));
    padding: 12px 0;
  }
}

@media (max-width: 760px) {
  :root {
    --landing-header-height: 92px;
  }

  .scroll-section {
    min-height: calc(100vh - var(--landing-header-height));
    padding: 10px 0;
  }
}

/* Responsive geometry pass (not simple centering) */
.scroll-section {
  min-height: calc(100vh - var(--landing-header-height));
  display: flex;
  align-items: flex-start;
  padding: 0;
}

.hero {
  min-height: calc(100vh - var(--landing-header-height)) !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr) !important;
  align-items: stretch !important;
  gap: clamp(20px, 3.2vw, 56px) !important;
  padding:
    clamp(26px, 6vh, 88px)
    clamp(16px, 3.2vw, 56px)
    clamp(18px, 4.4vh, 56px) !important;
}

.hero > .hero-copy,
.hero > .hero-logo-aside {
  min-height: 0;
}

.hero-copy {
  align-self: stretch;
  max-width: min(700px, 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: clamp(0px, 1.2vh, 14px) !important;
}

h1 {
  max-width: 640px !important;
  font-size: clamp(3rem, 5.1vw, 5.4rem) !important;
  line-height: 0.95 !important;
}

.hero-subtitle {
  margin-top: clamp(8px, 2vh, 18px) !important;
  max-width: 600px !important;
  font-size: clamp(1.22rem, 2.25vw, 1.9rem) !important;
  line-height: 1.37 !important;
}

.login-card {
  margin-top: clamp(20px, 3.5vh, 40px) !important;
  width: min(100%, 500px) !important;
  max-width: min(100%, 500px) !important;
  box-sizing: border-box !important;
}

.mobile-button {
  margin-top: clamp(12px, 2.2vh, 22px) !important;
}

.hero-logo {
  width: clamp(320px, 43vw, 560px) !important;
  max-width: 100% !important;
  align-self: center !important;
  justify-self: center !important;
  transform: translateY(clamp(-12px, -1.6vh, 0px)) !important;
}

.hero-logo-part {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  clip-path: none;
}

.hero-logo-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  overflow: hidden;
  clip-path: inset(0 100% 0 0);
  --water-edge: rgba(120, 160, 210, 0.26);
}

.hero-logo-fill::after {
  content: none;
}

.hero-logo-fill-gray {
  --water-edge: rgba(182, 187, 198, 0.45);
  animation: logoRevealClip 1400ms ease-out forwards;
}

.hero-logo-fill-blue {
  --water-edge: rgba(108, 208, 255, 0.48);
  animation: logoRevealClip 1400ms ease-out 700ms forwards;
}

.hero-logo-fill-blue::after {
  content: none;
}

@keyframes logoRevealClip {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo-fill-gray,
  .hero-logo-fill-blue {
    animation: none !important;
    clip-path: inset(0 0 0 0) !important;
  }

  .hero-logo-fill::after { display: none !important; }
}

.about-section {
  padding-top: clamp(20px, 4.6vh, 56px);
  padding-bottom: clamp(16px, 3.6vh, 42px);
}

/* Browser + app: one viewport; inner handles rhythm */
.browser-mobile-combo {
  padding-top: clamp(10px, 1.8vh, 28px);
  padding-bottom: clamp(10px, 1.8vh, 28px);
}

.browser-mobile-combo.scroll-section {
  min-height: calc(100vh - var(--landing-header-height));
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.browser-mobile-combo-inner {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 14px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.5vh, 16px);
  justify-content: center;
  min-height: 0;
}

@media (min-width: 1040px) {
  .browser-mobile-combo-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: clamp(12px, 1.6vw, 20px);
  }
}

.browser-mobile-combo .browser-card,
.browser-mobile-combo .download-card {
  padding: clamp(14px, 1.8vh, 22px) clamp(14px, 2vw, 22px);
  min-height: 0;
}

.browser-mobile-combo .browser-card {
  grid-template-columns: minmax(0, 1fr) minmax(180px, min(32vw, 300px));
  gap: clamp(12px, 1.4vw, 18px);
  align-items: center;
}

.browser-mobile-combo .download-card {
  grid-template-columns: minmax(0, 1fr) minmax(160px, min(30vw, 280px));
  gap: clamp(12px, 1.4vw, 16px);
  align-items: center;
}

.browser-mobile-combo .browser-actions {
  margin-top: clamp(10px, 1.2vh, 14px);
}

.browser-mobile-combo .browser-chat-preview {
  padding: clamp(10px, 1.2vh, 12px);
  gap: 6px;
}

.browser-mobile-combo .preview-message {
  padding: 7px 9px;
  font-size: 0.76rem;
}

.browser-mobile-combo .download-features {
  margin-top: clamp(10px, 1.2vh, 14px);
  gap: 8px;
}

.browser-mobile-combo .qr-grid {
  gap: 8px;
}

.browser-mobile-combo .qr-card {
  padding: 10px;
  gap: 7px;
}

@media (max-width: 900px) {
  .browser-mobile-combo .browser-card,
  .browser-mobile-combo .download-card {
    grid-template-columns: 1fr;
  }
}

/* Hero stays two columns up to 900px so logo stays in the right track (not a second row with empty "desktop" gutter). */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr !important;
    padding:
      clamp(16px, 3.2vh, 30px)
      clamp(12px, 2.4vw, 22px)
      clamp(12px, 2.8vh, 24px) !important;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-logo-aside .hero-logo-stack {
    margin-top: clamp(8px, 1.8vh, 16px);
  }
}

/* About section: fullscreen + sketch fidelity pass */
.about-section.scroll-section {
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: clamp(24px, 4.5vh, 52px);
  padding-bottom: clamp(24px, 4.5vh, 52px);
}

.about-section .about-card {
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: 1px solid #e6f1fc !important;
  border-radius: 24px !important;
  background: #fbfdff !important;
  box-shadow: 0 12px 32px rgba(53, 102, 164, 0.08) !important;
  padding: clamp(20px, 2.4vw, 28px) clamp(16px, 2vw, 26px) clamp(14px, 1.8vw, 20px) !important;
}

.about-section .section-copy {
  gap: clamp(10px, 1.6vh, 16px) !important;
  max-width: 780px;
  color: #58769c !important;
  font-size: clamp(0.98rem, 1.08vw, 1.16rem) !important;
  line-height: 1.5 !important;
  font-weight: 520 !important;
}

.about-section .feature-grid-wide.three {
  margin-top: clamp(12px, 1.8vh, 18px) !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.1vw, 16px) !important;
}

.about-section .feature-tile {
  border: 1px solid #e8f2fd !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  box-shadow: 0 2px 10px rgba(78, 121, 178, 0.08) !important;
  padding: clamp(12px, 1.3vw, 18px) !important;
  min-height: clamp(170px, 20vh, 240px) !important;
  gap: 6px !important;
}

.about-section .pillar-number {
  justify-self: end;
  margin-top: -2px;
  margin-right: -2px;
  color: #dceafb !important;
  font-size: clamp(1.6rem, 2.2vw, 2.25rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  line-height: 1 !important;
}

.about-section .feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f2f7ff !important;
  color: #1c4d82 !important;
  font-size: 1.08rem !important;
  box-shadow: 0 3px 10px rgba(69, 114, 171, 0.14);
  margin-top: -8px;
}

.about-section .feature-tile h3 {
  font-size: clamp(0.95rem, 1.06vw, 1.12rem) !important;
  line-height: 1.28 !important;
  font-weight: 720 !important;
  color: #173d67 !important;
}

.about-section .feature-tile p {
  color: #5d7c9f !important;
  font-size: clamp(0.86rem, 0.9vw, 0.97rem) !important;
  line-height: 1.4 !important;
  font-weight: 520 !important;
}

.about-combo {
  margin-top: clamp(12px, 1.7vh, 18px) !important;
  border: 1px solid #e6f1fc;
  border-radius: 16px;
  background: #f9fcff;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  box-shadow: 0 2px 10px rgba(93, 137, 192, 0.08);
}

.about-combo-badge {
  border-radius: 999px;
  background: linear-gradient(180deg, #1f83ff, #0f73f8);
  color: #fff;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  font-weight: 700;
  padding: 5px 11px;
  white-space: nowrap;
}

.about-combo-text {
  color: #173f69;
  font-size: clamp(0.86rem, 0.9vw, 0.98rem);
  font-weight: 620;
}

@media (max-width: 900px) {
  .about-section .about-card {
    min-height: auto;
  }

  .about-section .feature-grid-wide.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .about-section.scroll-section {
    min-height: 0;
    padding-top: clamp(18px, 3.5vh, 32px);
    padding-bottom: clamp(18px, 3.5vh, 32px);
  }

  .about-section .feature-grid-wide.three {
    grid-template-columns: 1fr;
  }
}

/* FAQ — full viewport row so content sits at top with empty space below when content is short */
.faq-scroll-section {
  max-width: min(1200px, 100%) !important;
  margin-inline: auto !important;
  padding-inline: clamp(20px, 5vw, 72px) !important;
  box-sizing: border-box !important;
}

.faq-scroll-section.scroll-section {
  min-height: calc(100vh - var(--landing-header-height));
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: clamp(24px, 4.5vh, 52px);
  padding-bottom: clamp(24px, 4.5vh, 52px);
}

.faq-scroll-layout {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.4vh, 18px);
}

.faq-scroll-section .faq-box-large {
  width: 100%;
  padding: clamp(14px, 1.8vw, 22px) clamp(14px, 2vw, 22px);
  box-sizing: border-box;
}

.faq-scroll-section .faq-question {
  gap: 12px;
  align-items: flex-start;
  padding: clamp(12px, 1.6vh, 16px) 2px;
  font-size: clamp(0.88rem, 2.8vw, 0.98rem);
  line-height: 1.35;
}

.faq-scroll-section .faq-question > span:not(.chevron) {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.faq-scroll-section .faq-question .chevron {
  flex-shrink: 0;
  margin-top: 0.2em;
  line-height: 1;
}

.faq-scroll-section .faq-answer {
  padding-left: 2px;
  padding-right: 2px;
  font-size: clamp(0.84rem, 2.6vw, 0.9rem);
  line-height: 1.55;
}

.faq-scroll-section .faq-item.open .faq-answer {
  max-height: min(75vh, 36rem);
  padding-bottom: clamp(12px, 1.6vh, 18px);
}

@media (max-width: 760px) {
  .faq-scroll-section.scroll-section {
    padding-top: clamp(16px, 3.5vh, 28px);
    padding-bottom: clamp(18px, 3.8vh, 36px);
  }

  .faq-scroll-section {
    padding-inline: clamp(16px, 4.2vw, 24px) !important;
  }

  .faq-scroll-section .faq-box-large {
    padding: 14px 12px;
  }
}

/* Final typography and style lock for About section */
:root {
  --landing-font-main: "Inter", "Noto Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --landing-font-display: "Manrope", "Inter", "Noto Sans", "Segoe UI", sans-serif;
}

html,
body {
  font-family: var(--landing-font-main) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.about-section .section-copy,
.about-section .section-copy p {
  font-family: var(--landing-font-main) !important;
  letter-spacing: 0.002em;
}

.about-section .feature-tile h3 {
  font-family: var(--landing-font-display) !important;
  font-weight: 800 !important;
  font-size: clamp(1rem, 1.08vw, 1.16rem) !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em !important;
}

.about-section .feature-tile p {
  font-family: var(--landing-font-main) !important;
  font-size: clamp(0.88rem, 0.92vw, 0.99rem) !important;
  line-height: 1.45 !important;
  letter-spacing: 0.001em;
}

.about-section .feature-tile {
  align-content: start;
  row-gap: 7px !important;
}

.about-section .pillar-number {
  font-family: var(--landing-font-display) !important;
  font-weight: 800 !important;
  opacity: 0.9;
}

.about-combo-badge {
  font-family: var(--landing-font-display) !important;
  font-weight: 800 !important;
}

.about-combo-text {
  font-family: var(--landing-font-main) !important;
  font-size: clamp(0.9rem, 0.96vw, 1rem) !important;
  font-weight: 700 !important;
}

/* About section — sketch reference (margins, type, combo bar, serif numerals) */
:root {
  --about-text: #1a2b47;
  --about-text-muted: #4a6288;
  --about-kicker: #1a2b47;
  --about-pillar: #c9daf4;
  --about-bar-bg: #e8f4fc;
}

.about-section {
  max-width: min(1200px, 100%) !important;
  margin-inline: auto !important;
  padding-inline: clamp(20px, 5vw, 72px) !important;
  box-sizing: border-box !important;
}

.about-section .about-card {
  padding: clamp(36px, 4.8vw, 64px) clamp(28px, 3.8vw, 56px) clamp(28px, 3.6vw, 52px) !important;
  border-radius: 28px !important;
  box-shadow: 0 14px 40px rgba(30, 72, 120, 0.07) !important;
}

.about-section .about-kicker,
.browser-mobile-combo .about-kicker,
.faq-scroll-section .about-kicker {
  font-family: var(--landing-font-display) !important;
  font-size: clamp(1.4rem, 2.1vw, 2rem) !important;
  line-height: 1.2 !important;
  color: #1d72e8 !important;
  margin-bottom: clamp(12px, 1.5vh, 18px) !important;
  margin-top: 0 !important;
  opacity: 1;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  gap: 0.35em 0.55em !important;
  text-transform: none !important;
}

.about-section .about-kicker-prefix,
.browser-mobile-combo .about-kicker-prefix,
.faq-scroll-section .about-kicker-prefix {
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  font-size: 1em !important;
  color: inherit !important;
}

.about-section .about-kicker-brand,
.browser-mobile-combo .about-kicker-brand,
.faq-scroll-section .about-kicker-brand {
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  font-size: 1em !important;
  color: inherit !important;
}

/* Sub-headline line (browser + download): black; upper kicker stays blue from .about-kicker */
.browser-card .about-kicker-brand,
.download-card .about-kicker-brand {
  color: #0d0d0d !important;
}

.about-section .section-copy {
  max-width: 52rem !important;
  gap: clamp(12px, 1.5vh, 18px) !important;
}

.about-section .section-copy p:not(.section-kicker) {
  font-size: clamp(1rem, 1.05vw, 1.0625rem) !important;
  line-height: 1.68 !important;
  font-weight: 500 !important;
  color: var(--about-text) !important;
}

.about-section .feature-grid-wide.three {
  margin-top: clamp(22px, 2.8vh, 32px) !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(14px, 1.6vw, 20px) !important;
}

.about-section .feature-tile {
  display: grid !important;
  grid-template-columns: auto 1fr !important;
  grid-template-rows: auto auto minmax(0, 1fr) !important;
  column-gap: 12px !important;
  row-gap: 8px !important;
  padding: clamp(16px, 1.6vw, 22px) clamp(16px, 1.6vw, 22px) clamp(14px, 1.4vw, 18px) !important;
  min-height: clamp(168px, 20vh, 228px) !important;
  border-radius: 22px !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 2px 12px rgba(55, 100, 150, 0.06) !important;
}

.about-section .feature-tile .feature-icon {
  grid-column: 1 !important;
  grid-row: 1 !important;
  margin-top: 0 !important;
  align-self: start !important;
  box-shadow: none !important;
  border: 1px solid rgba(26, 43, 71, 0.06) !important;
}

.about-section .feature-tile .pillar-number {
  grid-column: 2 !important;
  grid-row: 1 !important;
  justify-self: end !important;
  align-self: start !important;
  margin: 0 !important;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif !important;
  font-weight: 600 !important;
  font-size: clamp(2.35rem, 3vw, 3rem) !important;
  line-height: 0.85 !important;
  letter-spacing: -0.03em !important;
  color: var(--about-pillar) !important;
  opacity: 1 !important;
}

.about-section .feature-tile h3 {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  font-size: clamp(1.05rem, 1.12vw, 1.2rem) !important;
  line-height: 1.28 !important;
  color: var(--about-text) !important;
}

.about-section .feature-tile p {
  grid-column: 1 / -1 !important;
  grid-row: 3 !important;
  font-size: clamp(0.9rem, 0.95vw, 0.97rem) !important;
  line-height: 1.52 !important;
  font-weight: 400 !important;
  color: var(--about-text-muted) !important;
}

.about-section .feature-tile--sun .feature-icon {
  background: #fff9e8 !important;
  color: #b07a12 !important;
}

.about-section .feature-tile--chat .feature-icon {
  background: #f3e8ff !important;
  color: #6b4fb3 !important;
}

.about-section .feature-tile--star .feature-icon {
  background: #e8f2ff !important;
  color: #1f5fae !important;
}

.about-section .about-combo {
  margin-top: clamp(18px, 2.2vh, 26px) !important;
  padding: clamp(14px, 1.8vh, 18px) clamp(20px, 2.4vw, 32px) !important;
  background: var(--about-bar-bg) !important;
  border: 1px solid #d8e8f4 !important;
  border-radius: 18px !important;
  box-shadow: none !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.about-section .about-combo-inner {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px 18px !important;
  text-align: center !important;
  max-width: 100% !important;
}

.about-section .about-combo-badge {
  flex-shrink: 0 !important;
  font-size: 0.56rem !important;
  letter-spacing: 0.22em !important;
  padding: 6px 12px !important;
}

.about-section .about-combo-text {
  margin: 0 !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
  max-width: min(100%, 46rem) !important;
  font-size: clamp(0.92rem, 0.98vw, 1.05rem) !important;
  line-height: 1.45 !important;
  font-weight: 600 !important;
  color: var(--about-text) !important;
  text-align: center !important;
}

.about-section .about-combo-strong {
  font-weight: 800 !important;
  color: var(--about-text) !important;
}

.about-section .about-combo-tail {
  font-weight: 700 !important;
  color: var(--about-text) !important;
}

.about-section .about-combo-plus {
  font-weight: 600 !important;
  color: var(--about-text-muted) !important;
}

@media (max-width: 900px) {
  .about-section .feature-grid-wide.three {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .about-section .about-combo-inner {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .about-section .about-combo-text {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    text-align: center !important;
  }

  .about-section .about-combo-badge {
    align-self: center !important;
  }
}

@media (max-width: 760px) {
  .about-section .feature-grid-wide.three {
    grid-template-columns: 1fr !important;
  }
}

/* Hero: mobile CTA width matches login card; logo scales in right column; drop shadow */
/* Keep second track min width from base .hero (minmax(320px, 0.92fr)); minmax(0, fr) can collapse the logo column. */

.hero-copy .mobile-button {
  width: min(100%, 500px) !important;
  max-width: min(100%, 500px) !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.hero-logo-aside {
  position: relative;
  min-width: 0;
  min-height: 0;
  width: 100%;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 1.8vw, 28px);
  box-sizing: border-box;
  overflow: visible;
}

/*
 * % padding resolves against the containing block width (the aside), not the stack width.
 * ::before gets padding % against the stack — correct aspect for any stack width.
 */
.hero-logo-aside .hero-logo-stack {
  position: relative;
  display: block;
  box-sizing: border-box;
  flex: 0 1 auto;
  margin: auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Off hero: hide logo stack so it does not show through / flash when scrolling back (replay runs on return). */
body.landing-off-hero .hero-logo-aside .hero-logo-stack {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  filter: none !important;
}

.hero-logo-aside .hero-logo-stack::before {
  content: "";
  display: block;
  width: 100%;
  padding-bottom: calc(100% * 110 / 113);
}

/* Two-column hero: cap logo height via width (aspect 113:110); center in track */
@media (min-width: 901px) {
  .hero-logo-aside .hero-logo-stack {
    width: min(100%, calc(min(75vh, 560px) * 113 / 110));
    margin-left: auto;
    margin-right: auto;
    filter: drop-shadow(0 2px 3px rgba(10, 42, 82, 0.35))
      drop-shadow(0 6px 10px rgba(10, 42, 82, 0.18))
      drop-shadow(0 1px 0 rgba(10, 42, 82, 0.12));
  }
}

@media (max-width: 900px) {
  .hero-logo-aside {
    container-type: normal;
    width: 100%;
    min-height: 0;
    padding: clamp(12px, 3vh, 28px) 0 0;
  }

  /* Stacked hero: cap width so padding-bottom ratio does not exceed viewport */
  .hero-logo-aside .hero-logo-stack {
    width: min(100%, 360px, calc(min(40vh, 320px) * 113 / 110));
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    filter: drop-shadow(0 2px 3px rgba(10, 42, 82, 0.3))
      drop-shadow(0 6px 10px rgba(10, 42, 82, 0.15))
      drop-shadow(0 1px 0 rgba(10, 42, 82, 0.1));
  }
}

/* Share landing pages: /smile/:id and /bepositive/:id */
.share-page-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 10%, rgba(117, 192, 255, 0.18), transparent 48%),
    radial-gradient(circle at 86% 0%, rgba(74, 222, 128, 0.12), transparent 42%),
    linear-gradient(180deg, #f9fdff 0%, #eef8ff 100%);
  color: #173057;
  font-family: "Inter", "Noto Sans", "Segoe UI", sans-serif;
}

.share-page-shell {
  width: min(1080px, calc(100% - 24px));
  margin: 10px auto 30px;
}

.share-page-header {
  padding: 4px 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.share-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #12345f;
  font-weight: 700;
  text-decoration: none;
}

.share-brand img {
  width: 22px;
  height: 22px;
}

.share-brand .name-beta {
  font-size: 0.52em;
  letter-spacing: 0.07em;
  vertical-align: 0.42em;
}

.share-lang-wrap {
  position: relative;
}

.share-lang-toggle {
  border: 1px solid #d8e8f9;
  background: #fff;
  color: #1b446d;
  border-radius: 999px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.share-lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: min(280px, calc(100vw - 24px));
  border: 1px solid #dce9f8;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(39, 83, 134, 0.14);
  overflow: hidden;
  z-index: 40;
}

.share-lang-search {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #eaf2fb;
  min-height: 38px;
  padding: 0 10px;
  font-size: 0.8rem;
  color: #1e446b;
  outline: none;
}

.share-lang-list {
  max-height: 260px;
  overflow-y: auto;
}

.share-lang-item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #eef4fb;
  background: #fff;
  text-align: left;
  padding: 8px 10px;
  cursor: pointer;
}

.share-lang-item.active,
.share-lang-item:hover {
  background: #f4f9ff;
}

.share-lang-item-main {
  display: block;
  color: #17436f;
  font-size: 0.8rem;
  font-weight: 700;
}

.share-lang-item-sub {
  display: block;
  color: #5f7fa3;
  font-size: 0.73rem;
}

.share-lang-empty {
  color: #5f7fa3;
  font-size: 0.78rem;
  padding: 9px 10px;
}

.share-page-card {
  border: 1px solid #e3effb;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 36px rgba(35, 89, 147, 0.1);
  padding: clamp(18px, 2.7vw, 30px);
}

.share-page-loading {
  font-size: 0.98rem;
  color: #47668e;
}

.share-page-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.share-page-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 15px rgba(14, 71, 116, 0.14);
}

.share-page-avatar--placeholder {
  display: inline-block;
  background: linear-gradient(180deg, #dbeafb, #c7def6);
}

.share-page-author {
  margin: 0;
  color: #133961;
  font-size: 0.95rem;
  font-weight: 700;
}

.share-page-caption {
  margin: 2px 0 0;
  color: #50749c;
  font-size: 0.79rem;
  font-weight: 600;
}

.share-page-title {
  margin: 10px 0 14px;
  color: #12385f;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.15;
  font-weight: 800;
}

.share-note {
  position: relative;
  border: 1px solid rgba(167, 214, 246, 0.95);
  border-radius: 24px;
  background: linear-gradient(180deg, #f9feff 0%, #edf8ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 16px 30px rgba(16, 83, 124, 0.11);
  overflow: hidden;
  min-height: 260px;
}

.share-note__paper {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(180deg, rgba(48, 164, 225, 0.13) 0 1px, transparent 1px 40px),
    linear-gradient(90deg, transparent 0 34px, rgba(243, 82, 82, 0.16) 34px 35px, transparent 35px);
}

.share-note__text {
  position: relative;
  z-index: 1;
  padding: clamp(22px, 2.4vw, 36px);
  white-space: pre-wrap;
  word-break: break-word;
  font-size: clamp(1.18rem, 2.4vw, 1.72rem);
  line-height: 1.42;
  color: #123a62;
  text-wrap: pretty;
}

.share-note__snapshot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  z-index: 1;
  pointer-events: none;
}

.share-note--joke .share-note__text {
  font-family: "Caveat", "Marck Script", "Bad Script", "Inter", sans-serif;
  font-weight: 600;
}

.share-note--affirmation .share-note__text {
  font-family: "Inter", "Noto Sans", sans-serif;
  font-weight: 600;
}

.share-note--affirmation .share-note__text::first-letter {
  float: left;
  margin-right: 8px;
  margin-top: 2px;
  font-family: "Ruthie", "Caveat", "Inter", sans-serif;
  font-size: 2.65em;
  line-height: 0.82;
  font-weight: 700;
  color: #0d4e84;
}

.share-page-value {
  margin: 14px 0 0;
  color: #315476;
  font-size: 0.9rem;
  line-height: 1.48;
}

.share-page-link-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dbe8f7;
  border-radius: 12px;
  background: #f7fbff;
  padding: 8px 9px;
}

.share-page-link {
  min-width: 0;
  flex: 1;
  color: #165fbe;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-page-copy-btn {
  border: 1px solid #cce0f6;
  border-radius: 999px;
  background: #fff;
  color: #1a466f;
  font-size: 0.76rem;
  font-weight: 700;
  min-height: 32px;
  padding: 0 12px;
  cursor: pointer;
}

.share-page-social-row {
  margin-top: 11px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-page-social-row button {
  border: 1px solid #d7e8fb;
  border-radius: 999px;
  background: #fff;
  color: #2a4c73;
  font-size: 0.75rem;
  font-weight: 700;
  min-height: 32px;
  padding: 0 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.share-page-social-row button svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  stroke: none;
}

.share-page-native-btn {
  background: linear-gradient(180deg, #2f8dff, #1379ff) !important;
  color: #fff !important;
  border-color: #0e72f8 !important;
}

.share-page-cta-row {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.share-page-cta {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0 15px;
}

.share-page-cta--primary {
  color: #fff;
  background: linear-gradient(180deg, #2f8dff, #1379ff);
  box-shadow: 0 9px 20px rgba(25, 122, 255, 0.22);
}

.share-page-cta--secondary {
  color: #1e486f;
  border: 1px solid #d6e8fa;
  background: #fff;
}

.share-page-status {
  margin: 10px 0 0;
  color: #3e6286;
  font-size: 0.76rem;
  min-height: 1.2em;
}

.share-page-card--error {
  text-align: center;
}

@media (max-width: 760px) {
  .share-page-shell {
    width: calc(100% - 14px);
    margin: 8px auto 18px;
  }
  .share-note {
    min-height: 200px;
  }
  .share-note__text {
    font-size: clamp(1rem, 5.4vw, 1.2rem);
    line-height: 1.36;
  }
  .share-page-header {
    align-items: flex-start;
  }
}
