/* PhasePanel start page (https://phasepanel.com/). Static, self-contained: fonts, logo and script are served from
   /homepage-assets/ next to this file. Fonts: Inter and JetBrains Mono, SIL Open Font License 1.1 (fonts/OFL-*.txt). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: #F7F7F5; }
a { color: #15181C; }
a:hover { color: #4A4F56; }

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

.page {
  font-family: Inter, system-ui, sans-serif;
  color: #15181C;
  background: #F7F7F5;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  gap: 56px;
}

.brand { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.brand-logo { width: min(520px, 82vw); height: auto; display: block; }
.brand-tagline {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2.5px;
  color: #5A5F66;
}

.chooser { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 12px; }
.region { position: relative; }

/* region selector */
.region-trigger {
  position: relative;
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 48px;
  background: #FFFFFF;
  border: 1px solid #CFD1CC;
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  color: #15181C;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s ease;
  touch-action: manipulation;
}
.region-trigger:hover { border-color: #15181C; }
.region-placeholder { color: #5A5F66; }
.region-value { display: flex; align-items: center; gap: 12px; min-width: 0; }

.code {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  border: 1px solid #15181C;
  border-radius: 4px;
  padding: 2px 6px;
  flex: none;
}

.chevron {
  position: absolute;
  right: 18px;
  top: 50%;
  margin-top: -8px;
  transform: rotate(0deg);
  transition: transform .15s ease;
}
.region-trigger[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.region-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #FFFFFF;
  border: 1px solid #CFD1CC;
  border-radius: 10px;
  box-shadow: 0 20px 40px -20px rgba(21, 24, 28, 0.25);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.region-list:focus { outline: none; }

.region-option {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 15px;
  color: #15181C;
  cursor: pointer;
  text-align: left;
  touch-action: manipulation;
}
.region-option:hover,
.region-list:focus-visible .region-option.is-active { background: #F1F1EE; }
.option-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.option-lang { font-family: "JetBrains Mono", monospace; font-size: 11px; color: #8B5A2B; flex: none; }

/* Start */
.start {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #15181C;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  transition: background .15s ease;
  touch-action: manipulation;
}
.start-disabled { background: #E6E7E3; color: #6E737A; }

/* keyboard focus */
.region-trigger:focus-visible { outline: 2px solid #8B5A2B; outline-offset: 2px; }
.region-list:focus-visible .region-option.is-active { outline: 2px solid #8B5A2B; outline-offset: 2px; }

/* phones: a little less inner space so "DE  Germany / Deutschland" and the tagline stay on one line */
@media (max-width: 399px) {
  .region-trigger { padding: 0 40px; gap: 8px; }
  .region-value, .option-main { gap: 8px; }
}
@media (max-width: 359px) {
  .main { padding-left: 16px; padding-right: 16px; }
  .brand-tagline { letter-spacing: 2px; text-align: center; }
  .region-trigger { padding: 0 36px; font-size: 15px; }
  .region-option { gap: 8px; padding: 0 10px; font-size: 14px; }
}
