:root {
  --bg: #edeede;
  --card: rgba(255, 255, 255, 0.82);
  --card-strong: rgba(255, 255, 255, 0.94);
  --ink: #1f2f42;
  --muted: #6d7b8c;
  --blue: #3f6f8b;
  --blue-deep: #025275;
  --yellow: #e8a40d;
  --orange: #ef6a44;
  --line: rgba(63, 111, 139, 0.14);
  --shadow-soft: 0 22px 60px rgba(35, 52, 68, 0.12);
  --shadow-button: 0 18px 34px rgba(63, 111, 139, 0.28);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --font-ui: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--bg);
}

a,
button {
  font: inherit;
}

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

img {
  display: block;
  max-width: 100%;
}

.notranslate {
  translate: no;
}

.app-body {
  min-height: 100vh;
}

.home-image-shell {
  position: relative;
  width: min(100vw, 420px);
  margin: 0 auto;
}

.home-screen-image {
  width: 100%;
  height: auto;
  display: block;
}

.home-screen-cta-button {
  position: absolute;
  left: 15.2%;
  right: 15.2%;
  top: 60.15%;
  height: 8.85%;
  border: 0;
  border-radius: 28px;
  background: #176487;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  text-align: center;
  box-shadow:
    0 8px 0 rgba(22, 74, 102, 0.28),
    0 16px 24px rgba(35, 52, 68, 0.16);
  cursor: pointer;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    filter 120ms ease;
  z-index: 2;
}

.home-screen-cta-button:hover {
  filter: brightness(1.03);
}

.home-screen-cta-button:active {
  transform: translateY(2px) scale(0.995);
  box-shadow:
    0 5px 0 rgba(22, 74, 102, 0.28),
    0 10px 18px rgba(35, 52, 68, 0.14);
}

.home-screen-cta-button:focus-visible {
  outline: 3px solid rgba(232, 164, 13, 0.45);
  outline-offset: 2px;
}

.home-screen-cta-label {
  color: #ffffff;
  font-size: clamp(0.98rem, 2.72vw, 1.16rem);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.012em;
}

.home-screen-disclaimer {
  position: absolute;
  left: 6.2%;
  right: 6.2%;
  bottom: 0.58%;
  margin: 0;
  color: rgba(31, 47, 66, 0.92);
  font-size: clamp(0.30rem, 0.95vw, 0.46rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-align: center;
  z-index: 2;
}

.home-lang-switch {
  position: absolute;
  top: 13.4%;
  right: 8.6%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #1f2f42;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home-lang-button {
  border: 0;
  background: transparent;
  color: rgba(31, 47, 66, 0.62);
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
  cursor: pointer;
}

.home-lang-button.is-active {
  color: #1f2f42;
}

.home-lang-separator {
  color: rgba(31, 47, 66, 0.62);
}

.topbar,
.ar-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.pill,
.lang-button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(63, 111, 139, 0.12);
}


.cta-button,
.ar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 62px;
  padding: 0 22px;
  border: 0;
  border-radius: 20px;
  background: var(--blue);
  color: var(--yellow);
  text-align: center;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
  box-shadow:
    0 10px 0 rgba(24, 73, 104, 0.28),
    0 18px 30px rgba(35, 52, 68, 0.12);
}

.ar-body {
  min-height: 100vh;
  overflow-x: hidden;
}

.ar-topbar {
  position: fixed;
  inset: 16px 16px auto;
  z-index: 30;
}

.ar-status {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.ar-shell {
  position: relative;
  min-height: 100vh;
}

.ar-quote {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 78px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 24;
  width: min(calc(100vw - 72px), 320px);
  padding: 12px 18px;
  border-radius: 18px;
  background: rgba(22, 27, 34, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 32px rgba(12, 17, 24, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
}

.ar-quote p {
  margin: 0;
  color: rgba(255, 255, 255, 0.98);
  font-size: clamp(0.98rem, 2.8vw, 1.14rem);
  line-height: 1.18;
  letter-spacing: -0.012em;
  font-weight: 600;
  text-wrap: balance;
}

.ar-viewer {
  width: 100vw;
  height: 100vh;
  display: block;
  --poster-color: transparent;
  --progress-mask: none;
  background:
    radial-gradient(circle at top left, rgba(232, 164, 13, 0.1), transparent 24%),
    linear-gradient(180deg, #f4f1e8 0%, #e6e1d5 100%);
}

.ar-action-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  z-index: 25;
  display: block;
}

.ar-cta {
  font-weight: 700;
}

.ar-secondary-link {
  margin-top: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  color: rgba(31, 47, 66, 0.86);
  font-size: 0.98rem;
  font-weight: 600;
  text-align: center;
}

.ar-cta:disabled {
  background: var(--blue-deep);
  opacity: 0.9;
}

.story-panel {
  position: fixed;
  inset: 0;
  z-index: 45;
  padding: 22px 16px;
  background: rgba(18, 24, 32, 0.54);
  overflow-y: auto;
}

.story-panel-open {
  overflow: hidden;
}

.story-card {
  position: relative;
  width: min(100%, 420px);
  margin: 56px auto 0;
  padding: 22px 18px 20px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 56px rgba(12, 17, 24, 0.26);
}

.story-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(31, 47, 66, 0.08);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
}

.story-title {
  margin: 0 28px 10px 0;
  font-size: 1.22rem;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.story-copy {
  margin: 0;
  color: var(--ink);
  line-height: 1.28;
  font-size: 0.98rem;
}

.story-copy + .story-copy {
  margin-top: 8px;
}

.story-copy-muted {
  color: rgba(31, 47, 66, 0.72);
}

.story-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.story-button {
  min-height: 52px;
  border-radius: 18px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  text-align: center;
  font-weight: 700;
}

.story-button-light {
  background: rgba(23, 100, 135, 0.08);
  color: var(--blue-deep);
  border: 1px solid rgba(23, 100, 135, 0.12);
}

.story-button-primary {
  background: var(--blue);
  color: #edeede;
  box-shadow:
    0 8px 0 rgba(24, 73, 104, 0.24),
    0 16px 24px rgba(35, 52, 68, 0.12);
}

.story-upload-label {
  cursor: pointer;
}

.story-upload-input {
  display: none;
}

@media (max-width: 420px) {
  .hero {
    padding-left: 42px;
    padding-right: 42px;
  }

  .ar-quote {
    top: calc(env(safe-area-inset-top, 0px) + 80px);
    width: calc(100vw - 72px);
  }
}

@media (min-width: 700px) {
  .app-shell {
    min-height: 100vh;
  }
}
