:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #111111;
  --border-subtle: color-mix(in srgb, var(--fg) 12%, transparent);
  --panel-bg: color-mix(in srgb, var(--bg) 92%, transparent);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0c;
    --fg: #e5e7eb;
    --border-subtle: color-mix(in srgb, var(--fg) 18%, transparent);
    --panel-bg: color-mix(in srgb, var(--bg) 80%, transparent);
  }
}

:root[data-theme="light"] {
  --bg: #ffffff;
  --fg: #111111;
  --border-subtle: color-mix(in srgb, var(--fg) 12%, transparent);
  --panel-bg: color-mix(in srgb, var(--bg) 92%, transparent);
}

:root[data-theme="dark"] {
  --bg: #0b0b0c;
  --fg: #e5e7eb;
  --border-subtle: color-mix(in srgb, var(--fg) 18%, transparent);
  --panel-bg: color-mix(in srgb, var(--bg) 80%, transparent);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100svh;
  background: var(--bg);
  color: color-mix(in srgb, var(--fg) 85%, transparent);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.shell {
  width: 100%;
  max-width: 600px;
  padding: 2.5rem 1.5rem;
}

.logo {
  width: 100%;
  max-width: 180px;
  height: auto;
  margin: 100px auto 2rem;
  opacity: 0.9;
}

a {
  color: #2563eb;
  text-decoration: underline;
}

a:hover {
  opacity: 0.9;
}

.footer-link {
  margin-top: 0.10rem;
  text-align: center;
  font-size: 0.75rem;
}

.legal-footer {
  margin-top: 4.5rem;
  text-align: center;
  font-size: 0.7rem;
  opacity: 0.7;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  letter-spacing: -0.04em;
  color: var(--fg);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

h2 {
  font-size: clamp(1.4rem, 5.2vw, 2rem);
  color: var(--fg);
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

h3 {
  font-size: clamp(1.1rem, 3.6vw, 1.3rem);
  color: var(--fg);
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

h4 {
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--fg) 85%, transparent);
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

h5 {
  font-size: 0.95rem;
  color: var(--fg);
  font-weight: 400;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

h6 {
  font-size: 0.95rem;
  color: var(--fg);
  font-weight: 600;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

p {
  line-height: 1.5;
}

/* - - - - - - - - - - - - - - - - - - - - - - - */

a.btn-pill,
button.btn-pill {
  margin-top: 0;

  padding: 0.6rem 1.25rem;
  border-radius: 999px;

  border: 1px solid transparent;
  font: inherit;
  font-size: 0.95rem;

  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;

  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}

a.btn-pill-solid,
button.btn-pill-solid {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

a.btn-pill-outline,
button.btn-pill-outline {
  background: transparent;
  color: var(--fg);
  border-color: color-mix(in srgb, var(--fg) 55%, transparent);
}

a.btn-pill:hover,
button.btn-pill:hover {
  opacity: 0.92;
  filter: none;
}

a.btn-pill:active,
button.btn-pill:active {
  transform: translateY(1px);
}

a.btn-pill:focus-visible,
button.btn-pill:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

.auth-actions{
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

a.btn-primary,
a.btn-secondary,
button.btn-primary,
button.btn-secondary{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;

  padding: 0.6rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;

  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

a.btn-primary,
button.btn-primary{
  background: #2da44e;
  border-color: #2da44e;
  color: #fff;
}

a.btn-primary:hover,
button.btn-primary:hover{
  background: #2c974b;
  border-color: #2c974b;
  opacity: 1;
  filter: none;
}

a.btn-primary:active,
button.btn-primary:active{
  background: #26863f;
  border-color: #26863f;
  filter: none;
}

a.btn-secondary,
button.btn-secondary{
  background: transparent;
  border-color: color-mix(in srgb, var(--fg) 55%, transparent);
  color: var(--fg);
}

a.btn-secondary:hover,
button.btn-secondary:hover{
  opacity: 0.9;
  filter: none;
}

/* - - - - - - - - - - - - - - - - - - - - - - - */

#theme-toggle {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  margin: 0;
  padding: 6px 10px;
  min-width: 40px;
  min-height: 32px;
  border-radius: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--fg) 55%, transparent);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  color: var(--fg);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  opacity: 0.9;
  backdrop-filter: blur(8px);
  -webkit-tap-highlight-color: transparent;
}

body.page #theme-toggle {
  top: 22px;
  right: 24px;
  left: auto;
  transform: none;
}

#theme-toggle:hover {
  opacity: 1;
  filter: none;
}

.intro {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  text-align: justify;
}

.card {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1rem 1.25rem 1.5rem;
  border-radius: 0rem;
  border: 1px solid var(--border-subtle);
  background: var(--panel-bg);
  text-align: left;
}

.card--wide {
  max-width: 876px;
}

.card.card--wide .card-cta {
  display: flex;
  justify-content: flex-end;
}

.card :is(h1,h2,h3,h4,h5,h6){
  margin-top: 0;
}

.card::after {
  content: "";
  display: block;
  clear: both;
}

.card-icon{
  float:right;
  width:125px;
  height:125px;
  margin-left:18px;
  margin-bottom:10px;
  line-height:0;
  color:var(--fg);
}
.card-icon svg{
  width:125px;
  height:125px;
  display:block;
}

.lang-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.75rem;
}

.lang-picker label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.lang-picker input[type="radio"] {
  accent-color: var(--fg);
}

.cookie-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cookie-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
}

.cookie-text p {
  margin-top: 0.15rem;
}

.cookie-row input[type="checkbox"] {
  width: 2.3rem;
  height: 1.3rem;
  accent-color: var(--fg);
}

@media (max-width: 480px) {
  .shell {
    padding: 2rem 1.25rem;
  }

  .logo {
    max-width: 150px;
    margin-bottom: 1.75rem;
  }

  .card {
    padding: 1.25rem 1rem;
  }
}

/* - - - - - - - - - - - - - - - - - - - - - - - */

body.page {
  min-height: 100vh;
  background: var(--bg);
  color: color-mix(in srgb, var(--fg) 85%, transparent);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
  display: block;
  text-align: left;
}

body.page h1,
body.page h2,
body.page h3,
body.page h4,
body.page h5,
body.page h6{
  text-align: left;
}

body.page p {
  text-align: justify;
}

body.page ul {
  padding-left: 1.25rem;
  list-style-position: outside;
}

body.page li {
  text-align: left;
}

.page-shell {
  max-width: 800px;
  padding: 110px 1.5rem 2.5rem;
  margin: 0 auto;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 75px;
  background: color-mix(in srgb, var(--bg) 25%, transparent);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  z-index: 900;
}

.topbar-inner {
  height: 100%;
  margin: 0;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-logo {
  height: 52px;
  width: auto;
  opacity: 0.9;
}

.topbar-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.topbar-title {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  color: var(--fg);
  font-weight: 500;
}

.page-section {
  margin-bottom: 2.5rem;
}

.scroll-top-container {
  margin-top: 2rem;
  text-align: center;
}

.scroll-top-button {
  padding: 0.5rem 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--fg) 55%, transparent);
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.scroll-top-button:hover {
  opacity: 0.9;
}

/* - - - - - - - - - - - - - - - - - - - - - - - */

.contact-info {
  margin-top: 1rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.contact-info-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--fg);
}

.contact-info-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

/* - - - - - - - - - - - - - - - */

.contact-form {
  margin-top: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem 1.5rem;
  margin-top: 1rem;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  color: color-mix(in srgb, var(--fg) 90%, transparent);
}

.field {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  color: var(--fg);
  font: inherit;
  font-size: 0.95rem;
  -webkit-appearance: none;
  appearance: none;
}

.field[type="number"] {
  -moz-appearance: textfield;
}

.field[type="number"]::-webkit-outer-spin-button,
.field[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.field:focus {
  outline: 2px solid color-mix(in srgb, var(--fg) 40%, transparent);
  outline-offset: 1px;
  border-color: color-mix(in srgb, var(--fg) 40%, transparent);
  background: var(--bg);
}

.field::placeholder {
  color: color-mix(in srgb, var(--fg) 45%, transparent);
}

textarea.field {
  min-height: 160px;
  resize: vertical;
  line-height: 1.5;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.form-status {
  margin-top: 0.75rem;
  min-height: 1.6em;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  font-size: 1rem;
  line-height: 1.4;
  color: color-mix(in srgb, var(--fg) 85%, transparent);
}

.form-status[hidden] {
  display: flex !important;
  visibility: hidden;
}

.form-status::before {
  display: none;
  width: 1.25em;
  height: 1.25em;
  border-radius: 999px;
  place-items: center;
  font-weight: 700;
}

.form-status[data-state="success"] {
  color: #16a34a;
}

.form-status[data-state="success"]::before {
  display: inline-grid;
  content: "✓";
  color: #16a34a;
  border: 1px solid color-mix(in srgb, #16a34a 45%, transparent);
  background: color-mix(in srgb, #16a34a 18%, transparent);
}

.form-status[data-state="error"] {
  color: #dc2626;
}

.form-status[data-state="error"]::before {
  display: inline-grid;
  content: "!";
  color: #dc2626;
  border: 1px solid color-mix(in srgb, #dc2626 45%, transparent);
  background: color-mix(in srgb, #dc2626 18%, transparent);
}

.inline-field-row{
  display:flex;
  align-items:center;
  gap:0.75rem;
}

.inline-field-row .field{
  flex:1;
  min-width:0;
}

.inline-field-row > button,
.inline-field-row > a{
  margin-top:0;
}

@media (max-width:480px){
  .inline-field-row{
    flex-direction:column;
    align-items:stretch;
  }

  .inline-field-row > button,
  .inline-field-row > a{
    width:100%;
  }
}

/* - - - - - - - - - - - - - - - */


.topbar-inner{
  justify-content: space-between;
}

.topbar-actions{
  display:flex;
  align-items:center;
  gap:0.5rem;
  flex-wrap:wrap;
  justify-content:flex-end;
}

#session-menu-wrap{
  position:relative;
  display:inline-flex;
  margin-right:0.5rem;
}

#session-menu-btn{
  margin-top:0;
  padding:6px 10px;
  min-width:40px;
  min-height:32px;
  border-radius:0.75rem;
  border:1px solid color-mix(in srgb, var(--fg) 55%, transparent);
  background:color-mix(in srgb, var(--bg) 80%, transparent);
  color:var(--fg);
  font:inherit;
  font-size:0.9rem;
  cursor:pointer;
  opacity:0.9;
  backdrop-filter:blur(8px);
  -webkit-tap-highlight-color:transparent;
  appearance:none;
  -webkit-appearance:none;
  box-shadow:none;
  filter:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
}

#session-menu-btn svg{
  width:18px;
  height:18px;
  display:block;
}

#session-menu{
  position:absolute;
  right:0;
  top:calc(100% + 8px);
  min-width:210px;
  background:var(--panel-bg);
  border:1px solid var(--border-subtle);
  border-radius:14px;
  padding:10px;
  text-align:left;
  box-shadow:0 10px 30px rgba(0,0,0,0.18);
  z-index:999;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}

#session-menu-label{
  font-size:0.95rem;
  opacity:.85;
  padding:6px 8px 10px 8px;
  border-bottom:1px solid var(--border-subtle);
  margin-bottom:10px;
  word-break:break-word;
}

#session-menu-action,
#session-menu-register{
  width:100%;
  margin:0;
  justify-content:center;
}

#session-menu-register{
  margin-top:8px;
}

.topbar #theme-toggle{
  margin-top:0;
  position:static;
  top:auto;
  right:auto;
  left:auto;
  transform:none;
}





