:root {
  color-scheme: light;
  --background: #f7f3ef;
  --surface: rgba(255,255,255,.86);
  --text: #211d1d;
  --muted: #746d69;
  --line: rgba(33,29,29,.16);
  --shadow: 0 14px 36px rgba(35, 27, 24, .10);
  --radius: 20px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(255,255,255,.95), transparent 42%),
    linear-gradient(180deg, #fbf9f7 0%, var(--background) 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

button,
a {
  font: inherit;
}

button {
  border: 0;
}

.app-shell {
  width: 100%;
  min-height: 100svh;
  padding:
    max(18px, env(safe-area-inset-top))
    20px
    max(24px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

.language-switcher {
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .08em;
}

.language-button {
  padding: 8px 3px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.language-button.active {
  color: var(--text);
  font-weight: 650;
}

.content {
  width: min(100%, 430px);
  margin: auto;
  padding: 20px 0 44px;
  text-align: center;
}

.logo {
  display: block;
  width: min(88%, 330px);
  height: auto;
  margin: 0 auto 32px;
  user-select: none;
}

.intro {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: .03em;
}

.actions {
  display: grid;
  gap: 13px;
}

.action-button {
  width: 100%;
  min-height: 64px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
  text-align: left;
  font-weight: 620;
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease;
  touch-action: manipulation;
}

.action-button:hover {
  background: #fff;
  box-shadow: 0 18px 42px rgba(35, 27, 24, .13);
}

.action-button:active {
  transform: scale(.985);
  box-shadow: 0 8px 20px rgba(35, 27, 24, .10);
}

.action-button:focus-visible,
.language-button:focus-visible {
  outline: 3px solid rgba(33,29,29,.28);
  outline-offset: 3px;
}

.button-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ede7e1;
}

.button-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.review-button .button-icon svg {
  fill: none;
}

.privacy-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 10;
  max-width: calc(100vw - 36px);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  color: white;
  background: #211d1d;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
  opacity: 0;
  transform: translate(-50%, 18px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  white-space: nowrap;
  font-size: 14px;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast-check {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #211d1d;
  background: white;
  font-weight: 800;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-height: 650px) {
  .content {
    padding-top: 8px;
  }

  .logo {
    width: min(72%, 280px);
    margin-bottom: 20px;
  }

  .action-button {
    min-height: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
