:root {
  --ink: #142033;
  --ink-soft: #3a4a63;
  --paper: #f4f8fc;
  --sky: #8ed4ef;
  --sky-deep: #2f7fd6;
  --sky-wash: #d7effa;
  --orange: #f07020;
  --orange-deep: #d45a12;
  --apron: #1f6fd4;
  --glove: #e85a9b;
  --fog: rgba(244, 248, 252, 0.88);
  --shadow: 0 18px 50px rgba(20, 32, 51, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Syne", "Avenir Next", sans-serif;
  --font-body: "Figtree", "Avenir Next", sans-serif;
}

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

/* Author display rules (e.g. .btn { display: inline-flex }) must not defeat HTML hidden. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(240, 112, 32, 0.18), transparent 55%),
    radial-gradient(1100px 640px at -10% 20%, rgba(142, 212, 239, 0.55), transparent 50%),
    linear-gradient(180deg, #eaf5fb 0%, var(--paper) 38%, #eef4f8 100%);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--apron);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: white;
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

/* ——— Top-right account CTA (desktop + mobile) ——— */
.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0.75rem clamp(0.85rem, 3vw, 1.5rem);
  pointer-events: none;
}

.site-nav__auth {
  pointer-events: auto;
  min-height: 2.55rem;
  padding: 0.55rem 1rem;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 26px rgba(240, 112, 32, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.18);
}

@media (min-width: 600px) {
  .site-nav__auth {
    min-height: 2.75rem;
    padding: 0.65rem 1.15rem;
    font-size: 0.98rem;
  }
}

/* ——— Hero: brand + lead form, one composition ——— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: stretch;
  color: white;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.08);
  animation: ken 18s var(--ease) both;
}

.hero__wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(20, 32, 51, 0.72) 0%, rgba(20, 32, 51, 0.45) 48%, rgba(20, 32, 51, 0.62) 100%),
    radial-gradient(70% 55% at 70% 20%, rgba(47, 127, 214, 0.28), transparent 60%),
    radial-gradient(50% 40% at 15% 80%, rgba(240, 112, 32, 0.22), transparent 55%);
}

.hero__inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  /* Extra top pad so brand lockup clears the fixed top-right Sign in button */
  padding: clamp(3.75rem, 7vh, 4.5rem) 0 clamp(1.5rem, 4vh, 2.75rem);
  display: grid;
  gap: 1.5rem 2rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    padding: clamp(4rem, 7vh, 5rem) 0 clamp(2rem, 5vh, 3.5rem);
  }
}

.hero__brand {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) 0.08s forwards;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.15rem;
}

.brand-lockup img {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  background: #bfe8f7;
}

.brand-lockup__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.5vw, 2.85rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.brand-lockup__tag {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 4.4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 14ch;
  margin: 0 0 0.85rem;
}

.hero__support {
  margin: 0 0 1.25rem;
  max-width: 32rem;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255, 255, 255, 0.9);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.75rem;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.15rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 650;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--orange);
  color: white;
  box-shadow: 0 12px 28px rgba(240, 112, 32, 0.35);
}

.btn--primary:hover {
  background: var(--orange-deep);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn--ink {
  background: var(--ink);
  color: white;
}

.btn--ink:hover {
  background: #0c1524;
}

.btn--apron {
  background: var(--apron);
  color: white;
  box-shadow: 0 10px 24px rgba(31, 111, 212, 0.28);
}

.btn--apron:hover {
  background: var(--sky-deep);
}

/* Form panel in first viewport — frosted sheet, not a card cluster.
   No overflow:auto / max-height: page is the only scroller (esp. mobile). */
.hero__form {
  background: var(--fog);
  color: var(--ink);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 1.25rem;
  padding: 1.15rem 1.15rem 1.25rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.95s var(--ease) 0.22s forwards;
  overflow: visible;
}

@media (min-width: 960px) {
  .hero__form {
    padding: 1.35rem 1.4rem 1.5rem;
  }
}

.hero-form__title {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  letter-spacing: -0.02em;
  font-weight: 700;
}

.hero-form__lede {
  margin: 0 0 0.95rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ——— Sections ——— */
section {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 4.5rem 0;
}

.section-kicker {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky-deep);
}

.section-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 16ch;
}

.section-lede {
  margin: 0 0 2rem;
  color: var(--ink-soft);
  max-width: 38rem;
}

.services {
  display: grid;
  gap: 1.75rem 2.5rem;
}

@media (min-width: 820px) {
  .services {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
  }
}

.services__visual {
  position: relative;
  min-height: 22rem;
  overflow: hidden;
  border-radius: 1.5rem 1.5rem 0.4rem 1.5rem;
  box-shadow: var(--shadow);
}

.services__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 22rem;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

.service-list h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.service-list p {
  margin: 0;
  color: var(--ink-soft);
}

.area {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 820px) {
  .area {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
  }
}

.area__visual {
  order: 2;
  min-height: 18rem;
  overflow: hidden;
  border-radius: 0.4rem 1.5rem 1.5rem 1.5rem;
  box-shadow: var(--shadow);
}

@media (min-width: 820px) {
  .area__visual {
    order: 0;
  }
}

.area__visual img {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: cover;
}

.area__copy p {
  color: var(--ink-soft);
  max-width: 34rem;
}

.area__contact {
  margin-top: 1.25rem !important;
  font-weight: 650;
}

.area__contact a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--orange) 55%, transparent);
}

.area__contact a:hover {
  color: var(--orange-deep);
}

/* ——— Lead form fields ——— */
.lead-form {
  display: grid;
  gap: 0.7rem;
  position: relative;
}

.field {
  display: grid;
  gap: 0.22rem;
}

.field label {
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--ink);
}

.field .hint {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--sky-deep) 28%, #c9d7e6);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 0.7rem;
  padding: 0.65rem 0.85rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sky-deep);
  background: white;
  box-shadow: 0 0 0 4px rgba(47, 127, 214, 0.16);
}

.field textarea {
  min-height: 4.25rem;
  resize: vertical;
}

.field-row {
  display: grid;
  gap: 0.7rem;
}

@media (min-width: 520px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.consent-box {
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--sky-deep) 22%, #c9d7e6);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem 0.7rem;
  align-items: start;
  color: var(--ink);
  font-weight: 500;
  cursor: pointer;
}

.consent input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  accent-color: var(--sky-deep);
  flex-shrink: 0;
}

.consent-meta p {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.consent-meta p:last-child {
  margin-bottom: 0;
}

.consent-meta a {
  color: var(--ink);
  font-weight: 650;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.15rem;
}

.form-note {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.form-note a {
  color: var(--ink);
  font-weight: 650;
}

.form-status {
  min-height: 1.1rem;
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
}

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

.form-status[data-state="ok"] {
  color: #0f6b45;
}

.lead-form[data-busy="true"] .btn {
  opacity: 0.72;
  pointer-events: none;
}

.success {
  display: none;
  padding: 0.35rem 0 0.1rem;
  opacity: 0;
  transform: translateY(12px);
}

.lead-form.is-success {
  display: none;
}

.success.is-visible {
  display: block;
  animation: rise 0.7s var(--ease) forwards;
}

.success h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.success p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 32rem;
}

.site-footer {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 0 0 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.site-footer a {
  color: inherit;
  font-weight: 600;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ken {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .hero__media img {
    transform: none;
  }

  .hero__brand,
  .hero__form {
    opacity: 1;
    transform: none;
  }
}

/* ——— Auth / portal / office stubs ——— */
.auth-page {
  min-height: 100svh;
}

.auth-shell {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  isolation: isolate;
  color: white;
}

.auth-shell__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.auth-shell__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.06);
  animation: ken 16s var(--ease) both;
}

.auth-shell__wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(20, 32, 51, 0.78) 0%, rgba(20, 32, 51, 0.5) 55%, rgba(20, 32, 51, 0.7) 100%),
    radial-gradient(55% 45% at 80% 15%, rgba(47, 127, 214, 0.28), transparent 60%);
}

.auth-shell__inner {
  width: min(520px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0;
  display: grid;
  gap: 1.25rem;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.8s var(--ease) 0.05s forwards;
}

.auth-brand img {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: #bfe8f7;
}

.auth-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.auth-brand em {
  display: block;
  margin-top: 0.25rem;
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.82;
}

.auth-brand--ink {
  color: var(--ink);
  opacity: 1;
  transform: none;
  animation: none;
}

.auth-panel {
  background: var(--fog);
  color: var(--ink);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 1.25rem;
  padding: 1.35rem 1.35rem 1.45rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) 0.18s forwards;
}

.auth-panel h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.auth-lede {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.auth-form {
  display: grid;
  gap: 0.85rem;
}

.auth-form[data-busy="true"] .btn {
  opacity: 0.72;
  pointer-events: none;
}

.auth-alt {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.linkish {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  color: var(--apron);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.auth-footnote {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.app-stub {
  min-height: 100svh;
}

.app-top {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.app-top__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.btn--ghost-ink {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(20, 32, 51, 0.18);
}

.btn--ghost-ink:hover {
  background: rgba(20, 32, 51, 0.05);
}

.app-main {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.5rem 0 3rem;
}

.meta-list {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  padding: 0;
}

.meta-list div {
  display: grid;
  gap: 0.15rem;
}

.meta-list dt {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.meta-list dd {
  margin: 0;
  font-weight: 650;
}

.stub-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.stub-list li {
  padding: 0.7rem 0;
  border-top: 1px solid rgba(20, 32, 51, 0.1);
  color: var(--ink-soft);
}

.stub-list li:last-child {
  border-bottom: 1px solid rgba(20, 32, 51, 0.1);
}

.portal-actions {
  display: grid;
  gap: 2rem;
  margin: 1.5rem 0 0;
  max-width: 26rem;
}

.portal-actions__primary {
  display: grid;
  gap: 1.5rem;
}

.portal-action {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.2rem;
  width: 100%;
  text-decoration: none;
  text-align: left;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

/* Solid brand CTAs — Properties / Update card / Visits share one look. */
a.portal-action--main {
  min-height: 3.5rem;
  padding: 0.95rem 1.25rem;
  border-radius: 0.85rem;
  border: 0;
  background: var(--orange);
  color: #fff;
  box-shadow: 0 12px 28px rgba(240, 112, 32, 0.32);
}

a.portal-action--main:hover,
a.portal-action--main:focus-visible {
  background: var(--orange-deep);
  color: #fff;
  transform: translateY(-2px);
}

a.portal-action--main .portal-action__label {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
}

a.portal-action--main .portal-action__hint {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.9);
}

/* Plain text link — not a button or faux label. */
.portal-actions__cancel {
  margin: 0;
  padding: 0;
}

.portal-actions__cancel a {
  color: var(--apron);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.portal-actions__cancel a:hover,
.portal-actions__cancel a:focus-visible {
  color: var(--sky-deep);
}

.portal-snapshot {
  margin-bottom: 1.75rem;
}

.portal-stack {
  display: grid;
  gap: 1.25rem;
}

.portal-card {
  padding: 1.1rem 0 1.25rem;
  border-top: 1px solid rgba(20, 32, 51, 0.12);
}

.portal-card h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.portal-card__meta {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
}

.portal-note {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.portal-note--steps {
  display: grid;
  gap: 0.55rem;
}

.portal-note--steps p {
  margin: 0;
}

.portal-note--steps ol {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
}

.portal-note--steps code {
  font-size: 0.88em;
  word-break: break-all;
}

.portal-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.portal-form--stack {
  max-width: 36rem;
}

.portal-form__row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
}

.portal-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.5rem;
  align-items: center;
  margin-top: 1.25rem;
}

/* Property / plan card toolbars — room for orange button shadows. */
.portal-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.5rem;
  align-items: center;
  margin-top: 1.35rem;
}

.portal-card .portal-form + .portal-card__actions,
.portal-card .portal-form + .portal-card__quiet,
.portal-card .portal-card__actions + .portal-card__quiet {
  margin-top: 1.5rem;
}

.portal-card .btn--primary {
  box-shadow: 0 6px 16px rgba(240, 112, 32, 0.22);
}

.portal-card__quiet {
  margin: 1.35rem 0 0;
  padding: 0;
}

.portal-card__quiet a {
  color: var(--apron);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.portal-card__quiet a:hover,
.portal-card__quiet a:focus-visible {
  color: var(--sky-deep);
}

@media (max-width: 560px) {
  .portal-form__actions,
  .portal-card__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .portal-form__actions .btn,
  .portal-card__actions .btn {
    width: 100%;
  }
}

.portal-plan-fields {
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(20, 32, 51, 0.1);
  display: grid;
  gap: 0.85rem;
}

.portal-plan-fields[hidden] {
  display: none;
}

.portal-airbnb-fields {
  margin: 0.35rem 0 0;
  padding: 0.85rem 0 0;
  border: 0;
  border-top: 1px solid rgba(20, 32, 51, 0.1);
  display: grid;
  gap: 0.75rem;
  min-inline-size: 0;
}

.portal-airbnb-fields legend {
  padding: 0;
  font-family: var(--font-display, "Syne", sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--orange-deep);
}

/* Airbnb indicators — brand orange (henis-way-brand.md) */
.portal-badge--airbnb {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--orange) 18%, white);
  color: var(--orange-deep);
  border: 1px solid color-mix(in srgb, var(--orange) 32%, transparent);
  vertical-align: 0.05em;
}
.portal-card__meta--airbnb,
.portal-note--airbnb {
  color: var(--ink-soft);
}
.portal-card__meta--airbnb a {
  color: var(--orange-deep);
}

.portal-ical-status {
  margin: 0.15rem 0 0;
  padding: 0.55rem 0.7rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(20, 32, 51, 0.12);
  background: rgba(246, 248, 251, 0.9);
}
.portal-ical-status[data-state="missing"] {
  border-style: dashed;
}
.portal-ical-status[data-state="error"] {
  border-color: rgba(155, 58, 47, 0.35);
  background: rgba(155, 58, 47, 0.06);
}
.portal-ical-status[data-state="ok"] {
  border-color: rgba(47, 107, 79, 0.3);
  background: rgba(47, 107, 79, 0.06);
}
.portal-ical-status .portal-card__meta {
  margin: 0;
}
.portal-ical-status .portal-card__quiet {
  margin: 0.25rem 0 0;
}

.portal-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
}

.portal-choice {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  cursor: pointer;
}

.portal-choice input {
  width: auto;
  margin: 0;
}

.portal-form textarea {
  width: 100%;
  border: 1px solid rgba(20, 32, 51, 0.18);
  border-radius: 0.55rem;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  resize: vertical;
  min-height: 4.5rem;
}

.portal-form textarea:focus {
  outline: 2px solid rgba(47, 127, 214, 0.35);
  outline-offset: 1px;
}

.portal-form label {
  display: grid;
  gap: 0.35rem;
}

.portal-form label span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.portal-form input,
.portal-form select {
  width: 100%;
  border: 1px solid rgba(20, 32, 51, 0.18);
  border-radius: 0.55rem;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.portal-form input:focus,
.portal-form select:focus {
  outline: 2px solid rgba(47, 127, 214, 0.35);
  outline-offset: 1px;
}

.portal-form[data-busy="true"] {
  opacity: 0.7;
  pointer-events: none;
}

.btn--danger {
  background: #b42318;
  color: #fff;
  border: none;
}

.btn--danger:hover {
  background: #912018;
}

.btn--small {
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
}

.portal-section {
  margin-top: 1.75rem;
}

.portal-section--nested {
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(20, 32, 51, 0.1);
}

/* Lawnster-style address search + map confirm */
.address-search {
  position: relative;
}

.address-suggestions {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0.35rem 0;
  border: 1px solid rgba(20, 32, 51, 0.16);
  border-radius: 0.65rem;
  background: #fff;
  max-height: 16rem;
  overflow: auto;
  box-shadow: 0 12px 28px rgba(20, 32, 51, 0.12);
}

.address-suggestions li {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0.95rem;
  cursor: pointer;
}

.address-suggestions li:hover,
.address-suggestions li:focus {
  background: rgba(240, 112, 32, 0.08);
}

.address-suggestions strong {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
}

.address-suggestions span {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.address-confirm {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.35rem;
}

/* display:grid above must not override the hidden attribute */
.address-confirm[hidden] {
  display: none !important;
}

.address-confirm__label {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}

.address-confirm__map {
  overflow: hidden;
  border-radius: 0.85rem;
  border: 1px solid rgba(20, 32, 51, 0.12);
  background: rgba(20, 32, 51, 0.04);
  aspect-ratio: 2 / 1;
  min-height: 12rem;
}

.address-confirm__map[hidden] {
  display: none !important;
}

.address-confirm__map img,
.address-confirm__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 12rem;
  border: 0;
  object-fit: cover;
}

.portal-fee-callout {
  margin: 1.25rem 0 0;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--orange);
  background: rgba(240, 112, 32, 0.1);
  border-radius: 0 0.65rem 0.65rem 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.45;
}

.portal-fee-callout strong {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.portal-fee-callout em {
  font-style: normal;
  font-weight: 700;
  color: var(--orange-deep);
}

.portal-fee-inline {
  margin: 0.35rem 0 0.75rem;
  color: var(--orange-deep);
  font-weight: 600;
  font-size: 0.95rem;
}

.stripe-element {
  padding: 0.85rem 0.35rem;
  border: 1px solid rgba(20, 32, 51, 0.14);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.85);
  min-height: 3rem;
}

.stripe-element:empty {
  display: none;
}

#add-method-actions[hidden],
#add-ach[hidden] {
  display: none !important;
}

.pm-default {
  font-weight: 600;
  color: var(--ink-soft);
}

/* Fixed Stripe overlay — page list/actions do not reflow when adding a PM */
.pm-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.pm-modal[hidden] {
  display: none !important;
}

.pm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 32, 51, 0.48);
}

.pm-modal__panel {
  position: relative;
  z-index: 1;
  width: min(32rem, 100%);
  max-height: min(90vh, 40rem);
  overflow: auto;
  padding: 1.25rem 1.35rem 1.5rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 18px 48px rgba(20, 32, 51, 0.28);
}

.pm-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.pm-modal__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.pm-modal__close {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.pm-modal__close:hover,
.pm-modal__close:focus-visible {
  color: var(--sky-deep);
}

body.pm-modal-open {
  overflow: hidden;
}

.pm-modal__actions {
  margin-top: 1rem;
}

#save-setup[hidden] {
  display: none !important;
}

/* Large host-page skip — Stripe keeps meatball items; this surfaces Pay without Link */
.pm-pay-without-link {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  min-height: 3rem;
  margin: 0.75rem 0 1rem;
  padding: 0.85rem 1.1rem;
  font-size: 1.05rem;
  font-weight: 600;
  border: 1px solid rgba(20, 32, 51, 0.18);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
}

.pm-pay-without-link[hidden] {
  display: none !important;
}


button.linkish {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  color: var(--apron);
  font: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

button.linkish:hover,
button.linkish:focus-visible {
  color: var(--sky-deep);
}

.portal-section--nested .portal-section__title {
  margin-top: 0.85rem;
}

.portal-section__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.portal-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.portal-rows li {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(20, 32, 51, 0.1);
}

.portal-rows li:last-child {
  border-bottom: 1px solid rgba(20, 32, 51, 0.1);
}

.portal-rows em {
  color: var(--ink-soft);
  font-style: normal;
  font-size: 0.9rem;
}

.portal-empty {
  color: var(--ink-soft);
}

.portal-empty p {
  margin: 0 0 0.4rem;
}

.text-link {
  color: var(--apron);
}

#admin-pane,
#employee-pane {
  margin-top: 1.75rem;
}

#admin-pane h2,
#employee-pane h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

/* portal-home-20261107c */

/* —— CLN-313 mobile-friendly portal / login (~390px) —— */
@media (max-width: 560px) {
  .app-top {
    width: min(960px, calc(100% - 1.5rem));
    padding: 0.9rem 0;
    gap: 0.65rem;
  }

  .app-main {
    width: min(960px, calc(100% - 1.5rem));
  }

  .auth-brand img {
    width: 2.75rem;
    height: 2.75rem;
  }

  .auth-brand strong {
    font-size: 1.25rem;
  }

  .auth-panel {
    padding: 1.15rem 1.05rem 1.25rem;
  }

  .auth-form .btn,
  .btn--primary,
  .btn--ink,
  a.portal-action--main {
    min-height: 2.75rem;
  }

  .auth-form input,
  .portal-form input,
  .portal-form select,
  .portal-form textarea {
    min-height: 2.75rem;
    font-size: 1rem; /* avoid iOS zoom */
  }

  .portal-actions {
    max-width: none;
  }

  .section-title {
    font-size: clamp(1.45rem, 7vw, 1.85rem);
  }

  .meta-list div {
    word-break: break-word;
  }
}


/* CLN-372 — Quote scope on customer portal (PDF layout) */
.portal-scope-doc {
  margin: 0.85rem 0;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(20, 48, 80, 0.12);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(20, 48, 80, 0.03), transparent);
}
.portal-scope-doc__intro {
  margin: 0 0 0.65rem;
}
.portal-scope-cat h4,
.portal-scope-boiler h4 {
  margin: 0.65rem 0 0.25rem;
  font-size: 0.95rem;
}
.portal-scope-cat ul {
  margin: 0;
  padding-left: 1.2rem;
}
.portal-scope-boiler {
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(20, 48, 80, 0.12);
}
.portal-scope-boiler p {
  margin: 0;
  color: #5a6a80;
  white-space: pre-wrap;
  font-size: 0.9rem;
}
.portal-scope-print {
  margin-top: 0.75rem;
}
@media print {
  .topbar, .portal-nav, .portal-form__actions, .btn, header, footer {
    display: none !important;
  }
  .portal-scope-doc {
    border: none;
    padding: 0;
  }
}
