:root {
  color-scheme: dark;
  --bg: #101010;
  --panel: #1f1f1f;
  --panel-2: #262626;
  --text: #f4f4f4;
  --muted: #a7a7a7;
  --line: #343434;
  --button: #f4f4f4;
  --button-text: #111;
  --accent: #7aa7ff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.18), transparent 42%),
    radial-gradient(circle at 80% 8%, rgba(255, 255, 255, 0.08), transparent 24%),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.page.with-topbar {
  padding-top: 88px;
}

.shell {
  width: min(440px, 100%);
  text-align: center;
}

.wide-shell {
  width: min(920px, 100%);
}

h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 500;
  letter-spacing: 0;
}

.shell h1 {
  font-size: 28px;
}

.login-title {
  font-weight: 400;
}

p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.stack {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  justify-items: center;
}

.login-stack .button {
  width: min(100%, 280px);
  min-height: 50px;
}

.callback-body {
  background: #1a1a1a;
}

.callback-page {
  min-height: 100vh;
  padding: 32px;
}

.callback-shell {
  width: min(440px, 100%);
  text-align: center;
}

.callback-message {
  margin: 0;
  color: #b7b7b7;
  font-size: 21px;
  line-height: 1.4;
}

.callback-button {
  width: min(100%, 280px);
  min-width: 230px;
  min-height: 50px;
  padding: 0 26px;
  border-color: #303030;
  background: #262626;
  color: #d7d7d7;
  font-size: 18px;
  font-weight: 650;
}

.stack .callback-button {
  width: min(100%, 280px);
}

.callback-button-mark {
  width: 24px;
  height: 24px;
  border: 1.5px solid currentColor;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.button {
  width: min(100%, 392px);
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 560;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}

.button.primary {
  background: var(--button);
  border-color: var(--button);
  color: var(--button-text);
}

.login-stack .button,
.button.callback-button {
  background: #fff;
  border-color: #fff;
  color: #111;
}

.button:disabled {
  cursor: default;
  opacity: 0.55;
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin: 22px 0 6px;
  color: var(--muted);
  font-size: 13px;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.fine-print {
  margin-top: 28px;
  font-size: 12px;
  color: #8e8e8e;
}

.legal-consent {
  width: min(100%, 360px);
  margin: 18px auto 0;
  color: #8e8e8e;
  font-size: 12px;
  line-height: 1.45;
}

.legal-consent a {
  color: #bdbdbd;
  text-underline-offset: 3px;
}

.status {
  margin-top: 18px;
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
}

.status.error {
  color: #ff8a8a;
}

.topbar {
  width: min(1120px, calc(100vw - 48px));
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
  z-index: 10;
}

#site-header {
  min-height: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
}

.brand-icon {
  display: block;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask: url("/assets/brand-icon.png") center / contain no-repeat;
  mask: url("/assets/brand-icon.png") center / contain no-repeat;
  mask-mode: luminance;
}

.brand-logo {
  display: block;
  width: 132px;
  height: auto;
}

.nav-actions,
.home-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.nav-actions {
  gap: 18px;
}

.nav-actions a {
  color: var(--muted);
  text-decoration: none;
}

.nav-actions a:hover,
.site-footer a:hover {
  color: var(--text);
}

.nav-button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
}

.primary-nav {
  background: var(--button);
  border-color: var(--button);
  color: var(--button-text) !important;
  font-weight: 560;
}

.home {
  width: min(1120px, calc(100vw - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 120px 0 96px;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.home-hero {
  width: min(980px, 100%);
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.web-hourglass {
  width: min(620px, 62vw);
  height: min(900px, 86vh);
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  display: block;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0.9;
}

.home-kicker {
  margin: 0 0 18px;
  color: #a9a9a9;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.download-kicker {
  margin: 34px 0 0;
  font-size: 12px;
}

.home-hero h1 {
  max-width: 1040px;
  margin-inline: auto;
  font-family: Didot, "Bodoni 72", "Bodoni 72 Oldstyle", "Times New Roman", serif;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.04;
  font-weight: 400;
}

.home-lede {
  max-width: 680px;
  margin-inline: auto;
  margin-top: 14px;
  color: #f4f4f4;
  font-family: Didot, "Bodoni 72", "Bodoni 72 Oldstyle", "Times New Roman", serif;
  font-size: clamp(20px, 2.8vw, 30px);
  font-weight: 400;
  line-height: 1.25;
}

.home-actions {
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.home-actions .button {
  width: auto;
  min-width: 184px;
  padding: 0 22px;
}

.download-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.store-badge {
  width: 168px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.2));
}

.store-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.store-badge-coming-soon {
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f4f4f4;
  font-family: Arial, sans-serif;
  cursor: default;
  opacity: 1;
}

.store-badge-coming-soon img {
  filter: grayscale(1) brightness(0.28);
}

.store-badge-status {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-shadow: 0 1px 4px #000;
}

.site-footer {
  width: min(1120px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 28px 0 34px;
  border-top: 1px solid var(--line);
  gap: 18px;
  color: #858585;
  font-size: 13px;
}

.site-footer span {
  margin-right: auto;
}

.site-footer a {
  color: #858585;
  text-decoration: none;
}

.language-selector {
  position: relative;
  margin-left: 8px;
}

.language-select {
  border: 0;
  background: transparent;
  color: #858585;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.language-select:hover {
  color: var(--text);
}

.language-select:focus {
  outline: none;
}

.sr-only {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.legal-page {
  width: min(820px, calc(100vw - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 148px 0 88px;
}

.legal-shell {
  padding: 0;
}

.legal-shell h1 {
  font-size: 42px;
}

.legal-shell h2 {
  margin: 34px 0 0;
  font-size: 18px;
  font-weight: 560;
}

.legal-updated {
  margin-top: 10px;
  font-size: 14px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 42px;
  align-items: center;
}

.hero-copy {
  text-align: left;
}

.eyebrow {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(31, 31, 31, 0.88);
  padding: 26px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.card .button {
  width: min(100%, 340px);
  margin-inline: auto;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 18px;
}

.price strong {
  font-size: 34px;
  font-weight: 600;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f4f4f4;
  color: #111;
  font-size: 12px;
  font-weight: 700;
}

.features {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.features li {
  display: flex;
  gap: 10px;
  color: var(--muted);
  line-height: 1.35;
}

.features li::before {
  content: "✓";
  color: var(--text);
}

@media (max-width: 780px) {
  .topbar {
    position: absolute;
    width: calc(100vw - 32px);
    top: 18px;
  }

  .brand-logo {
    width: 120px;
  }

  .brand-icon {
    width: 28px;
    height: 28px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .nav-actions {
    gap: 12px;
  }

  .nav-button {
    display: none;
  }

  .home {
    width: calc(100vw - 32px);
    padding: 112px 0 64px;
  }

  .web-hourglass {
    width: min(380px, 82vw);
    height: min(720px, 80vh);
    top: 49%;
    opacity: 0.68;
  }

  .home-hero h1 {
    font-size: 38px;
    line-height: 1.04;
  }

  .home-lede {
    font-size: 23px;
  }

  html:is([lang="en"], [lang="ja"], [lang="es"]) .home-hero h1 {
    font-size: clamp(18px, 6vw, 40px);
    white-space: nowrap;
  }

  html:is([lang="en"], [lang="ja"], [lang="es"]) .home-lede {
    font-size: clamp(11px, 3.6vw, 23px);
    white-space: nowrap;
  }

  html:is([lang="en"], [lang="ja"]) .home-hero h1 {
    font-size: clamp(20px, 6.6vw, 44px);
  }

  html:is([lang="en"], [lang="ja"]) .home-lede {
    font-size: clamp(12px, 3.95vw, 25px);
  }

  html[lang="ko"] .home-hero h1 {
    font-size: clamp(22px, 8vw, 34px);
    white-space: nowrap;
  }

  html[lang="ko"] .home-lede {
    font-size: clamp(13px, 4.65vw, 21px);
    white-space: nowrap;
  }

  .home-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-actions .button {
    width: 100%;
  }

  .download-badges {
    align-items: center;
    flex-direction: column;
  }

  .store-badge {
    width: min(100%, 180px);
    min-height: 56px;
    height: 56px;
  }

  .site-footer {
    width: calc(100vw - 32px);
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer span {
    margin-right: 0;
  }

  .language-selector {
    margin-left: 0;
  }

  .legal-page {
    width: calc(100vw - 32px);
    padding: 128px 0 64px;
  }

  .legal-shell {
    padding: 0;
  }

  .legal-shell h1 {
    font-size: 34px;
  }
}

/* One header width shared by the landing, legal and account pages. */
@media (min-width: 901px) {
  .topbar { width: min(1040px, calc(100% - 96px)); }
}
body.legal-document {
  color-scheme: light;
  --bg: #fff;
  --panel: #f7f7f7;
  --panel-2: #f0f0f0;
  --text: #111;
  --muted: #555;
  --line: #ddd;
  --accent: #245fbd;
  background: #fff;
  color: var(--text);
}
.legal-document .brand-logo { filter: brightness(0); }
.legal-document .legal-shell p { color: #555; }
.legal-document .legal-updated { color: #777; }
.legal-document .language-select { color: #555; background: #fff; }
@media (min-width: 901px) {
  .legal-document .site-footer { width: min(1040px, calc(100% - 96px)); }
}

/* Browser auth follows the app's choice; ordinary website pages keep their design. */
:root[data-auth-theme="light"]{color-scheme:light;--bg:#fff;--panel:#f7f7f7;--panel-2:#eee;--text:#171717;--muted:#555;--line:#d5d5d5;--button:#171717;--button-text:#fff}
[data-auth-theme="light"] body{background:#fff}
[data-auth-theme="light"] .brand-logo{filter:invert(1)}
[data-auth-theme="light"] .callback-message{color:#333}
[data-auth-theme="light"] .login-stack .button,[data-auth-theme="light"] .button.callback-button{background:#171717;border-color:#171717;color:#fff}
