/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo__mark { flex: none; }
.logo__word {
  display: block;
  padding-top: 2px;
  font: 500 22px/1 var(--font-serif);
  letter-spacing: -.01em;
}
.logo--sm .logo__word { font-size: 21px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--r-12);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.btn--lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn--primary { background: var(--accent); color: #FFFFFF; }
.btn--primary:hover { background: var(--accent-hover); color: #FFFFFF; }
.btn--secondary { background: var(--card); border-color: var(--border-strong); color: var(--ink); font-weight: 500; }
.btn--secondary:hover { background: var(--subtle); color: var(--ink); }

/* UI language switch (HR / EN / DE) */
.lang-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: var(--r-8);
  font: 500 11px var(--font-mono);
}
.lang-toggle > * {
  padding: 5px 8px;
  border: 0;
  border-radius: var(--r-6);
  background: transparent;
  color: var(--text-3);
  font: inherit;
}
.lang-toggle > *:hover { color: var(--ink); }
.lang-toggle > [aria-current="true"], .lang-toggle > [aria-pressed="true"] { background: var(--ink); color: #FFFFFF; }

/* Segmented toggle (Monthly / Yearly, Cash / Mortgage) */
.segmented {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: var(--r-10);
  background: var(--track-2);
}
.segmented > * {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 0;
  border-radius: var(--r-8);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}
.segmented > [aria-pressed="true"], .segmented > [aria-current="true"], .segmented > [aria-current="page"] {
  background: var(--card);
  box-shadow: var(--shadow-toggle);
}
.segmented__note { font-size: 12px; color: var(--success); }
[data-switch] button { cursor: pointer; }

/* Plan cards (landing pricing, plan selection) */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; align-items: stretch; }
.plans-more { margin-top: 20px; font-size: 14px; color: var(--text-3); }
.plans-more a { color: var(--accent); font-weight: 500; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-18);
  background: var(--subtle);
}
.plan--featured { border: 2px solid var(--accent); background: var(--card); }
.plan__badge {
  position: absolute;
  top: -12px;
  left: 28px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
}
.plan__name { display: flex; flex-direction: column; gap: 6px; }
.plan__name strong { font-size: 16px; font-weight: 600; }
.plan__name span { font-size: 14px; color: var(--text-3); }
.plan__pricing { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; min-height: 56px; }
.plan__price { font: 500 46px/1.2 var(--font-serif); letter-spacing: -.02em; }
.plan__per { font-size: 14px; color: var(--text-3); }
.plan__action { display: flex; flex-direction: column; }
.plan__action form { display: contents; }
.plan__cta { width: 100%; height: 46px; border-radius: 11px; font-size: 14.5px; font-weight: 600; }
.plan__features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--border-soft);
  list-style: none;
}
.plan__features li { display: flex; gap: 10px; font-size: 14px; line-height: 1.4; color: var(--prose); }
.plan__features li::before { content: '✓'; color: var(--accent); }

/* Notices */
.notice { padding: 14px 18px; border-radius: var(--r-12); font-size: 14px; line-height: 1.5; }
.notice--info { background: var(--accent-tint); color: #1F3F57; }
.notice--warning { background: var(--warning-tint); color: #6B4A0C; }
.notice--error { background: var(--error-tint); color: var(--error); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 500; }
.field input { height: 46px; padding: 0 14px; font-size: 15px; width: 100%; }
.field input[aria-invalid="true"] { border-color: var(--error-2); }
.field__error { font-size: 12.5px; color: var(--error); }
.link-button { padding: 0; border: 0; background: none; color: var(--accent); font-weight: 600; }

/* Text */
.eyebrow {
  font: 500 11px var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.eyebrow--accent { color: var(--accent); }
.display {
  font: 500 clamp(40px, 6vw, 48px)/1.05 var(--font-serif);
  letter-spacing: -.02em;
  text-wrap: balance;
}
.page-title {
  font: 500 38px/1.05 var(--font-serif);
  letter-spacing: -.015em;
}

/* Surfaces */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-16);
  padding: 22px 24px;
}

/* Centred one-message page (home placeholder, errors) */
.simple { min-height: 100vh; display: flex; flex-direction: column; background: var(--subtle); }
.simple__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(16px, 4vw, 32px);
}
.simple__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 48px 16px 96px;
  text-align: center;
}
.simple__main .display { max-width: 900px; }
.simple__main p { max-width: 560px; font-size: 17px; color: var(--text-2); }

/* Photo placeholder (grey stripes, as in the designs) until real photos exist */
.ph {
  background: repeating-linear-gradient(135deg, #EDEAE5 0 10px, #E5E2DC 10px 20px);
}

/* Agent avatar (initials until a photo is uploaded) */
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
