/* Jupiter Property Care: shared design system (main site + ad pages)
   Layout concept: open white pages with one navy band per page; the orange "orbit" from the logo is the single bold gesture.
*/
:root {
  /* Color */
  --ink: #0b2545;          /* deep navy from the logo: text, dark bands */
  --ink-deep: #061730;     /* footer */
  --blue: #0e4a86;         /* brand blue: links, focus */
  --orbit: #f7941d;        /* logo orange: primary buttons, the orbit line */
  --orbit-deep: #e8590c;   /* end of the orbit gradient */
  --orbit-hover: #ef8508;
  --paper: #ffffff;
  --mist: #eef3f8;         /* blue-biased light surface */
  --line: #d5dee8;
  --slate: #4a5868;        /* secondary text */
  --star: #c2410c;         /* rating star (AA on white) */
  --ok: #1d7a4d;
  --error: #b42318;
  --on-ink: #ffffff;
  --on-ink-soft: #c9d5e3;

  /* Type */
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  --step-3: clamp(1.85rem, 1.45rem + 1.7vw, 2.75rem);
  --step-4: clamp(2.3rem, 1.6rem + 3.2vw, 4.1rem);

  /* Space and shape */
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(11, 37, 69, 0.06), 0 12px 32px -12px rgba(11, 37, 69, 0.22);
  --max: 1200px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: rgba(14, 74, 134, 0.15);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { touch-action: manipulation; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-variation-settings: "opsz" 96; }
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.016em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; line-height: 1.25; font-variation-settings: "opsz" 24; }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--slate); max-width: 38em; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 40px);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.band-ink :focus-visible, .lp-header :focus-visible, .lp-pitch :focus-visible, .lp-final :focus-visible, .ty-hero :focus-visible, .lp-footer :focus-visible, .site-footer :focus-visible { outline-color: var(--orbit); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: var(--radius-sm); border: 2px solid transparent;
  font-family: var(--body); font-weight: 700; font-size: 1.0625rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.65; cursor: progress; }
.btn-primary { background: var(--orbit); color: var(--ink); }
.btn-primary:hover { background: var(--orbit-hover); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { background: var(--blue); color: var(--on-ink); }
.band-ink .btn-ghost { color: var(--on-ink); border-color: rgba(255, 255, 255, 0.35); }
.band-ink .btn-ghost:hover { border-color: var(--on-ink); color: var(--on-ink); }
.btn svg { flex: none; }

/* Header */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--paper);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header > .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: 118px; height: auto; }
@media (max-width: 389px) { .brand img { width: 100px; } }
@media (min-width: 640px) { .brand img { width: 132px; } }

/* Forms */
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field .label { font-weight: 600; font-size: 0.95rem; }
.field .hint { font-size: var(--step--1); color: var(--slate); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  border: 1.5px solid #7d8fa3; border-radius: var(--radius-sm);
  background: var(--paper); color: var(--ink); font-size: 1.0625rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.textarea { min-height: 110px; resize: vertical; }
.select {
  appearance: none; -webkit-appearance: none; background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230b2545' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px;
}
@media (hover: hover) { .input:hover, .select:hover, .textarea:hover { border-color: #5f7186; } }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(14, 74, 134, 0.2); }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: var(--step--1); font-weight: 600; }
.consent a { color: var(--blue); }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 0.8125rem; line-height: 1.5; color: var(--slate); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); }

/* Rating */
.rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rating svg { color: var(--star); }

/* Footer */
.site-footer { background: var(--ink-deep); color: var(--on-ink-soft); padding-block: 56px 40px; font-size: 0.95rem; }
.site-footer a { color: var(--on-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--on-ink); }
.site-footer .foot-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .site-footer .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .foot-logo { width: 150px; }
.site-footer .tagline { margin-top: 14px; font-family: var(--display); font-size: 1.25rem; color: var(--on-ink); font-weight: 600; }
.site-footer h2 { font-size: 1rem; letter-spacing: 0; color: var(--on-ink); margin-bottom: 12px; font-family: var(--body); font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: var(--step--1); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
