:root {
  color-scheme: light;
  --ink: #1f2933;
  --muted: #5c6773;
  --paper: #fffaf5;
  --surface: #ffffff;
  --line: #d8ccc2;
  --brand: #7c2d5b;
  --brand-dark: #591b3f;
  --accent: #f6e4ec;
  --success: #17633a;
  --danger: #9b1c31;
  --focus: #075985;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 100%;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--paper);
  color: var(--ink);
  margin: 0;
  min-height: 100vh;
}

a {
  color: var(--brand-dark);
  text-underline-offset: 0.2em;
}

button,
input,
select {
  font: inherit;
}

button,
.button,
input,
select {
  min-height: 48px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-header {
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.75rem max(1rem, env(safe-area-inset-left));
}

.brand {
  color: var(--brand-dark);
  font-size: 1.35rem;
  font-weight: 800;
  text-decoration: none;
}

.main-nav,
.language-switch,
.button-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.main-nav form {
  margin: 0;
}

.language-switch button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  min-height: 44px;
  padding: 0.4rem 0.65rem;
}

.language-switch button[aria-current="true"] {
  background: var(--accent);
  border-color: var(--brand);
  font-weight: 700;
}

.page-shell {
  margin: 0 auto;
  max-width: 52rem;
  padding: 1.25rem 1rem 4rem;
}

.hero {
  padding: clamp(2rem, 9vw, 5rem) 0;
}

.hero h1,
.panel-heading h1,
.customer-heading h1 {
  font-size: clamp(2rem, 9vw, 3.5rem);
  line-height: 1.08;
  margin: 0.25rem 0 1rem;
}

.eyebrow {
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0;
  text-transform: uppercase;
}

.form-card,
.balance-card,
.secret-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 0.35rem 1.25rem rgb(69 42 54 / 8%);
  margin: 1rem 0;
  padding: clamp(1rem, 5vw, 1.75rem);
}

.balance-card {
  background: var(--accent);
  border-color: #dba9c0;
}

.balance {
  color: var(--brand-dark);
  font-size: clamp(2rem, 12vw, 4rem);
  line-height: 1;
  margin: 0.5rem 0;
}

form > div {
  margin: 0 0 1rem;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

input:not([type="checkbox"]),
select {
  background: #fff;
  border: 1px solid #81756d;
  border-radius: 0.6rem;
  color: var(--ink);
  display: block;
  padding: 0.65rem 0.75rem;
  width: 100%;
}

input[type="checkbox"] {
  height: 1.35rem;
  margin-right: 0.5rem;
  min-height: auto;
  width: 1.35rem;
}

.helptext {
  color: var(--muted);
  display: block;
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.errorlist {
  color: var(--danger);
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.warning {
  background: #fff4d6;
  border-left: 5px solid #9a6700;
  border-radius: 0.4rem;
  padding: 0.8rem 1rem;
}

.button {
  align-items: center;
  background: var(--surface);
  border: 2px solid var(--brand);
  border-radius: 0.7rem;
  color: var(--brand-dark);
  cursor: pointer;
  display: inline-flex;
  font-weight: 750;
  justify-content: center;
  padding: 0.65rem 1rem;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  background: var(--accent);
}

.button-primary {
  background: var(--brand);
  color: #fff;
}

.button-primary:hover {
  background: var(--brand-dark);
}

.button-quiet {
  border-color: transparent;
  min-height: 44px;
}

.action-grid {
  display: grid;
  gap: 0.75rem;
}

.primary-action {
  border: 2px solid var(--brand);
}

.message {
  background: var(--surface);
  border-left: 5px solid var(--brand);
  border-radius: 0.4rem;
  padding: 0.8rem 1rem;
}

.message-success {
  border-color: var(--success);
}

.message-error {
  border-color: var(--danger);
}

.salon-list,
.reward-list,
.reward-progress-list {
  padding-left: 1.25rem;
}

.reward-list li,
.reward-progress-list li {
  margin-bottom: 1rem;
}

progress {
  accent-color: var(--brand);
  display: block;
  height: 1.25rem;
  margin: 0.4rem 0;
  max-width: 24rem;
  width: 100%;
}

.secret-link {
  overflow-wrap: anywhere;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

[hidden] {
  display: none !important;
}

@media (min-width: 42rem) {
  .action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-shell {
    padding-top: 2rem;
  }
}
