:root {
  /* Brand palette: public/brand/palette.css */
  --teal: #073F43;
  --gold: #C99B3B;
  --white: #FFFFFF;
  --pale-teal: #D9E9E8;
  --ink: #152D30;
  /* Supporting tints derived from the palette */
  --tint: #EEF5F4;
  --rule: #C3D9D7;
  --muted: #3A5457;

  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wrap: 68rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 10px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

h1, h2, h3 { color: var(--teal); line-height: 1.2; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); letter-spacing: -0.02em; font-weight: 750; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.125rem); letter-spacing: -0.01em; font-weight: 700; }
h3 { font-size: 1.1875rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 68ch; }

a { color: var(--teal); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--teal);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  z-index: 10;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--white); }
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1.5rem;
  padding-block: 0.25rem;
}
/* The logo artwork has generous built-in padding; trim it slightly without cropping the art. */
.brand { display: block; width: clamp(190px, 30vw, 260px); margin-block: -0.75rem; border-radius: 4px; }
.brand:focus-visible { outline-offset: -0.6rem; }
.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}
.nav-list a {
  display: inline-block;
  padding: 0.5rem 0.1rem;
  font-weight: 600;
  text-decoration: none;
}
.nav-list a:hover { text-decoration: underline; }
@media (min-width: 48rem) { .nav-list { margin: 0; } }
/* Keep the four links on one row on most phones. */
@media (max-width: 26rem) { .nav-list { gap: 0.25rem 0.7rem; font-size: 0.94rem; } }
@media (max-width: 22.5rem) { .nav-list { gap: 0.25rem 0.6rem; font-size: 0.9rem; } }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 8vw, 6.5rem);
}
.orbit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.orbit ellipse { fill: none; stroke: var(--gold); stroke-width: 5; opacity: 0.5; }
/* Only shown where there is empty space beside the copy. */
@media (max-width: 63.99rem) { .orbit { display: none; } }
.hero-inner { position: relative; }
.hero h1 { max-width: 20ch; }
.lede { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem); color: var(--ink); max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* Buttons */
.button {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border: 2px solid var(--teal);
  border-radius: var(--radius);
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}
.button:hover { background: var(--ink); border-color: var(--ink); }
.button-quiet { background: transparent; color: var(--teal); }
.button-quiet:hover { background: var(--tint); color: var(--teal); border-color: var(--teal); }
.button-on-dark {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  font-size: 1.125rem;
  overflow-wrap: anywhere;
}
.button-on-dark:hover { background: var(--white); border-color: var(--white); color: var(--teal); }

/* Sections */
.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section-tint { background: var(--tint); }
.section-intro { color: var(--muted); font-size: 1.125rem; margin-bottom: 2rem; }

.explainers {
  display: grid;
  gap: 1.5rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  margin-top: 1.5rem;
}
.explainers article { border-top: 3px solid var(--pale-teal); padding-top: 1rem; }
.explainers p { margin: 0; }

/* Plans */
.plans {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}
.plan {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 5px solid var(--teal);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.price { margin: 0.25rem 0 0.25rem; color: var(--teal); }
.amount { font-size: clamp(2.5rem, 2rem + 2vw, 3.25rem); font-weight: 750; letter-spacing: -0.02em; line-height: 1; }
.amount-words { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem); }
.per { font-size: 1.0625rem; color: var(--muted); }
.hours { font-size: 1.125rem; padding-bottom: 1rem; border-bottom: 2px solid var(--gold); }
.plan .plan-list { margin-top: 0.25rem; }
.plan-list { margin: 0 0 1.25rem; padding-left: 1.2rem; }
.plan-list li { margin-bottom: 0.5rem; }
.plan-list li::marker { color: var(--teal); }
.plan-note { margin: auto 0 0; padding-top: 1rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.975rem; }

.best-for { font-weight: 600; margin-bottom: 0.5rem; }
.price-detail { margin-top: 0; color: var(--muted); font-size: 1.125rem; }

/* Websites: new projects beside hourly changes */
.split { display: grid; gap: 2.5rem 3rem; }
@media (min-width: 52rem) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.steps { padding-left: 1.4rem; margin: 0 0 1.5rem; }
.steps li { margin-bottom: 0.5rem; padding-left: 0.25rem; }
.steps li::marker { color: var(--teal); font-weight: 700; }

/* Plan comparison: behind a disclosure; a table on wide screens, one block per row on phones */
.compare-details { margin-top: 2.5rem; }
.compare-details summary { display: list-item; list-style-position: inside; cursor: pointer; font-size: 1.1875rem; font-weight: 700; color: var(--teal); padding: 0.5rem 0; text-decoration: underline; text-underline-offset: 0.18em; }
.compare-details summary::marker, .compare-details summary::-webkit-details-marker { color: var(--teal); }
.plans-cta { margin: 2rem 0 0; }
.compare { width: 100%; margin-top: 1rem; border-collapse: collapse; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 0.75rem 1rem; border-top: 1px solid var(--rule); }
.compare thead th { border-top: 0; color: var(--teal); border-bottom: 2px solid var(--gold); }
.compare tbody th { color: var(--teal); }
@media (max-width: 47.99rem) {
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare { border: 0; background: transparent; margin-top: 0.5rem; }
  .compare thead { display: none; }
  .compare tbody tr { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); margin-bottom: 1rem; padding: 0.5rem 1rem; }
  .compare tbody th { border-top: 0; padding: 0.5rem 0; }
  .compare td { padding: 0.5rem 0; }
  .compare td::before { content: attr(data-plan); display: block; font-weight: 600; color: var(--muted); font-size: 0.95rem; }
}

.rules { margin: 0; padding-left: 1.2rem; }
#automation li { margin-bottom: 0.4rem; }
#automation h3 { margin-top: 2rem; }
.rules li { margin-bottom: 0.4rem; }

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

/* Support terms */
.terms {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  margin: 0 0 2rem;
}
.term { border-left: 4px solid var(--pale-teal); padding: 0.25rem 0 0.25rem 1.1rem; }
.term-accent { border-left-color: var(--gold); }
.term dt { color: var(--teal); font-weight: 700; font-size: 1.1875rem; margin-bottom: 0.4rem; }
.term dd { margin: 0; }
.fine { color: var(--muted); font-size: 0.975rem; }

.two-col { display: grid; gap: 0 3rem; }
@media (min-width: 52rem) { .two-col { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }

/* Contact and footer */
.contact { background: var(--teal); color: var(--white); }
.contact h2 { color: var(--white); }
.contact p, .contact-list { font-size: 1.125rem; }
.contact-list { padding-left: 1.25rem; }
.contact .fine { color: var(--pale-teal); font-size: 0.975rem; }
.contact a:not(.button) { color: var(--white); }
.contact-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1rem 1.5rem;
  max-width: 48rem;
  margin: 1.5rem 0 2.5rem;
}
.contact-form[hidden] { display: none; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 600; }
.optional { font-weight: 400; color: var(--pale-teal); }
.field input[type="text"], .field input[type="email"], .field select { font: inherit; color: var(--ink); background: var(--white); padding: 0.65rem 0.75rem; border: 2px solid var(--pale-teal); border-radius: var(--radius); width: 100%; }
.field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--pale-teal);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  width: 100%;
  box-sizing: border-box;
}
.field select { font: inherit; color: var(--ink); background: var(--white); padding: 0.65rem 0.75rem; border: 2px solid var(--pale-teal); border-radius: var(--radius); width: 100%; }
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--gold); }
.field-check { flex-direction: row; align-items: center; gap: 0.6rem; }
.field-check input { width: 1.25rem; height: 1.25rem; accent-color: var(--gold); }
.field-check label { font-weight: 400; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-actions .button[disabled] { opacity: 0.6; cursor: progress; }
.form-status { margin: 0; font-size: 1rem; }
.form-status[data-kind="error"] { color: var(--white); font-weight: 600; border-left: 4px solid var(--gold); padding-left: 0.75rem; }
.form-status[data-kind="success"] { color: var(--white); font-weight: 600; }
.contact-alt { margin-bottom: 0.5rem; }
.field-hint { margin: -0.5rem 0 0; }

.site-footer { background: var(--ink); color: var(--pale-teal); font-size: 0.95rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 2rem; padding-block: 1.25rem; }
.footer-inner p { margin: 0.25rem 0; }
/* Reversed logo on the dark footer. alt="": the footer text already names Raeltek. */
.footer-brand { flex: 0 0 100%; margin-bottom: 0.5rem; }
.footer-brand img { display: block; width: clamp(150px, 22vw, 190px); height: auto; }
.site-footer a { color: var(--white); }
.site-footer :focus-visible, .contact :focus-visible { outline-color: var(--white); }
.prose { max-width: 42rem; }
.prose h2 { margin-top: 2rem; }

/* Service entry points use ordinary anchors, including without JavaScript. */
.service-choices { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.service-choice { display: flex; flex-direction: column; padding: 1.5rem; border: 1px solid var(--rule); border-top: 4px solid var(--gold); border-radius: var(--radius); background: var(--white); text-decoration: none; }
.service-choice:hover { border-color: var(--teal); }
.service-choice p { color: var(--ink); }
.service-choice span { margin-top: auto; font-weight: 700; text-decoration: underline; }
