:root {
  color-scheme: light;
  --green-950: #103d2a;
  --green-800: #19603e;
  --green-700: #23754b;
  --green-100: #e8f3ec;
  --ink: #15201a;
  --muted: #5c6a62;
  --line: #dfe8e2;
  --paper: #ffffff;
  --wash: #f4f8f5;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -10%, rgba(35, 117, 75, 0.15), transparent 38rem),
    var(--wash);
}

button, a { -webkit-tap-highlight-color: transparent; }

[hidden] { display: none !important; }

.page-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(100%, 440px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(16, 61, 42, 0.1);
  border-radius: 28px;
  box-shadow: 0 24px 65px rgba(16, 61, 42, 0.14);
  padding: 32px 28px 26px;
  text-align: center;
}

.brand-mark {
  display: block;
  width: 104px;
  height: 104px;
  object-fit: contain;
  margin: 0 auto 22px;
  border-radius: 25px;
  box-shadow: 0 12px 28px rgba(16, 61, 42, 0.2);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green-700);
  font-size: 0.875rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--green-950);
  font-size: clamp(1.9rem, 8vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.intro {
  margin: 14px auto 22px;
  max-width: 31ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.technician {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdfb;
  text-align: left;
}

.technician span { color: var(--muted); }
.technician strong { color: var(--green-950); }

.button {
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  background: var(--green-800);
  color: white;
  font: inherit;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 9px 20px rgba(25, 96, 62, 0.2);
}

.button:hover { background: var(--green-950); }
.button:focus-visible { outline: 3px solid #8bd2aa; outline-offset: 3px; }
.button:disabled { opacity: 0.55; cursor: wait; }

.button--secondary {
  border: 1px solid var(--line);
  background: white;
  color: var(--green-800);
  box-shadow: none;
}

.button--secondary:hover { background: var(--green-100); }

.button--install { margin-top: 10px; }

.notice {
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  background: var(--green-100);
  color: var(--green-950);
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.5;
}

.notice--attention { background: #fff4d9; color: #604813; }
.notice p { margin: 6px 0 0; }
.notice ol { margin: 8px 0 0; padding-left: 22px; }
.notice li + li { margin-top: 5px; }

.installed-message {
  margin: 18px 0 0;
  color: var(--green-800);
  font-weight: 700;
}

.provider-attribution {
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: #748078;
  font-size: 0.8125rem;
  line-height: 1.45;
  text-align: center;
}

.provider-attribution a {
  color: #59665e;
  font-weight: 650;
  text-underline-offset: 2px;
}

.provider-attribution a:hover { color: var(--green-800); }
.provider-attribution a:focus-visible { outline: 2px solid #8bd2aa; outline-offset: 3px; }

.loading { color: var(--green-800); font-weight: 700; }

.form-view {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  background: white;
}

.form-view iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: white;
}

.form-fallback {
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--green-800);
  background: white;
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

@media (max-width: 380px) {
  .page-shell { padding: 14px; }
  .card { padding: 26px 20px 22px; border-radius: 22px; }
  .brand-mark { width: 88px; height: 88px; border-radius: 21px; }
}

@media (prefers-reduced-motion: no-preference) {
  .card { animation: arrive 320ms ease-out both; }
  @keyframes arrive { from { opacity: 0; transform: translateY(8px); } }
}
