/* jethrolegal.com · v0.4.0. Theme after apple.com: translucent sticky nav, centered display type,
   pill buttons, alternating tiles. System fonts only: the site loads nothing from a third party. */
:root {
  --bg: #FFFFFF; --surface: #F5F5F7; --tile: #FFFFFF; --ink: #1D1D1F; --muted: #6E6E73; --rule: #D2D2D7;
  --accent: #0071E3; --link: #0066CC; --accent-ink: #FFFFFF; --field: #86868B;
  --nav-bg: rgba(250, 250, 252, 0.8); --nav-ink: rgba(0, 0, 0, 0.8);
  --cta-bg: #000000; --cta-ink: #F5F5F7; --cta-muted: #A1A1A6;
  --ok: #1D7F3A; --bad: #D70015;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --surface: #101010; --tile: #1D1D1F; --ink: #F5F5F7; --muted: #A1A1A6; --rule: #424245;
    --accent: #0071E3; --link: #2997FF; --accent-ink: #FFFFFF; --field: #6E6E73;
    --nav-bg: rgba(22, 22, 23, 0.8); --nav-ink: rgba(255, 255, 255, 0.8);
    --cta-bg: #1D1D1F; --cta-ink: #F5F5F7; --cta-muted: #A1A1A6;
    --ok: #30D158; --bad: #FF6961;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.47 var(--sans); letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 45%, transparent);
}
.wrap { max-width: 1024px; margin: 0 auto; padding-inline: 22px; }

/* Global nav: thin, translucent, pinned */
.top {
  position: sticky; top: 0; z-index: 10;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 60%, transparent);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; min-height: 48px; }
.brand { font: 600 17px/1 var(--display); color: var(--ink); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; opacity: .8; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 12px; letter-spacing: -0.01em; }
.nav a { color: var(--nav-ink); transition: color .2s; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav .lang { color: var(--muted); }

/* Buttons: pills */
.btn {
  display: inline-block; font: 400 17px/1.18 var(--sans); letter-spacing: -0.022em;
  padding: 12px 22px; border-radius: 980px; border: 1px solid var(--accent);
  cursor: pointer; text-align: center; transition: background-color .2s, color .2s, opacity .2s;
}
.btn:hover { text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #0077ED; border-color: #0077ED; }
.btn.secondary { background: transparent; color: var(--link); border-color: var(--link); }
.btn.secondary:hover { background: var(--link); color: var(--accent-ink); }
.btn:disabled { opacity: .5; cursor: default; }
.nav .btn { padding: 5px 12px; font-size: 12px; color: var(--accent-ink); letter-spacing: -0.01em; }
.nav .btn:hover { color: var(--accent-ink); }

/* Type: big, tight, centered */
h1, h2, h3 { font-family: var(--display); color: var(--ink); text-wrap: balance; margin: 0; font-weight: 600; }
h1 { font-size: clamp(40px, 7vw, 80px); line-height: 1.05; letter-spacing: -0.015em; }
h2 { font-size: clamp(32px, 5vw, 56px); line-height: 1.07; letter-spacing: -0.005em; }
h3 { font-size: 21px; line-height: 1.19; letter-spacing: 0.011em; }
p { margin: 0; max-width: 64ch; }
.lead { font-size: clamp(19px, 2.4vw, 28px); line-height: 1.2; letter-spacing: 0.007em; color: var(--muted); max-width: 40ch; text-wrap: balance; }
.eyebrow { font: 600 clamp(17px, 1.8vw, 21px)/1.2 var(--display); letter-spacing: 0.01em; color: var(--muted); }

/* Sections: alternating full-bleed tiles */
section { padding-block: clamp(64px, 10vw, 120px); }
.band { background: var(--surface); }
.stack { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.stack p { margin-inline: auto; }
.hero { padding-block: clamp(80px, 13vw, 160px); }
.hero .stack { gap: 22px; }
.hero h1 { font-size: clamp(44px, 8vw, 96px); }
.actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }

/* Service areas: rounded cards */
.areas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 48px; }
.area {
  background: var(--surface); border-radius: 28px; padding: 36px 32px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .3s cubic-bezier(0, 0, .5, 1), box-shadow .3s cubic-bezier(0, 0, .5, 1);
}
.band .area { background: var(--tile); }
.area:hover { transform: scale(1.015); box-shadow: 0 8px 30px rgba(0, 0, 0, .08); }
.area h3 { font-size: 24px; }
.area ul { margin: 4px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 17px; color: var(--muted); }
.area p { color: var(--muted); }

/* Model points: centered columns */
.points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; margin-top: 56px; }
.point { display: flex; flex-direction: column; gap: 8px; text-align: center; align-items: center; }
.point h3 { font-size: 24px; }
.point p { color: var(--muted); }

/* Steps: a real sequence, so numbered */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 10px; background: var(--surface); border-radius: 28px; padding: 32px; }
.band .steps li { background: var(--tile); }
.steps li::before {
  content: counter(step); font: 600 48px/1 var(--display); letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent), #8E5CF7); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.steps p { color: var(--muted); }

/* Closing call to action: the dark tile */
.cta-band { background: var(--cta-bg); color: var(--cta-ink); }
.cta-band h2 { color: var(--cta-ink); }
.cta-band p { color: var(--cta-muted); font-size: clamp(19px, 2vw, 21px); }

/* Form */
form { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px 20px; margin: 48px auto 0; max-width: 720px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field.full:has(button) { align-items: center; margin-top: 8px; }
label { font-weight: 600; font-size: 14px; letter-spacing: -0.016em; }
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  font: 17px/1.3 var(--sans); letter-spacing: -0.022em; color: var(--ink); background: var(--bg);
  border: 1px solid var(--field); border-radius: 12px; padding: 16px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { grid-column: 1 / -1; font-size: 14px; color: var(--muted); text-align: center; margin-inline: auto; }
.form-status { grid-column: 1 / -1; font-weight: 600; text-align: center; }
.form-status.ok { color: var(--ok); }
.form-status.bad { color: var(--bad); }

/* Footer: small and quiet */
.foot { background: var(--surface); padding-block: 20px 28px; font-size: 12px; line-height: 1.33; letter-spacing: -0.01em; color: var(--muted); }
.foot .wrap { display: flex; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: 16px; }
.foot a { color: var(--ink); }

/* Content rises in as it scrolls into view, where the browser supports it without script */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    main .stack, .area, .point, .steps li, form {
      animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%;
    }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }

/* Four-item grids go 4 → 2 → 1 so a row never leaves one card alone */
@media (max-width: 1023px) { .points, .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 734px) {
  .areas, .points, .steps { grid-template-columns: 1fr; }
  .wrap { padding-inline: 16px; }
  .top .wrap { padding-block: 10px 0; position: relative; }
  /* The nav CTA sits beside the brand, not at the clipped end of the scrolling link row */
  .nav .btn { position: absolute; top: 9px; right: 16px; }
  .nav { order: 3; width: 100%; gap: 22px; overflow-x: auto; white-space: nowrap; padding-block: 10px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .area, .steps li { border-radius: 22px; padding: 28px 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
