/* =========================================================
   base.css — shared by all of Aaron's sites.
   Edit THIS file in _shared/. deploy.sh copies it into each
   site's css/ folder, so never edit those copies directly.
   Each site sets its own colours/fonts in css/site.css.
   ========================================================= */

:root {
  /* Defaults — override any of these in site.css */
  --bg: #ffffff;
  --text: #16131f;
  --text-soft: #4a4658;
  --brand: #5a26f0;
  --brand-2: #8a5bf2;
  --brand-text: #ffffff;
  --line: rgba(0, 0, 0, .12);
  --card: rgba(0, 0, 0, .03);
  --field-bg: #ffffff;
  --field-text: #16131f;
  --field-line: #cfcbe0;
  --focus: #8a5bf2;
  --ok: #0f7b4b;
  --error: #b42318;
  --font-head: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 12px;
  --max: 760px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.25; margin: 0; }
p { margin: 0 0 1.1em; color: var(--text-soft); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
section { padding: 40px 0; }
.center { text-align: center; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.small { font-size: 14px; }

/* ---------- Button ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 40px;
  border: 0; border-radius: 100px; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: 18px; text-decoration: none;
  color: var(--brand-text);
  background: linear-gradient(var(--brand), var(--brand-2));
  box-shadow: 0 8px 28px color-mix(in srgb, var(--brand) 45%, transparent);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.cta { text-align: center; margin: 28px 0 8px; }

/* ---------- Video (YouTube) ---------- */
.video {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  border-radius: var(--radius); overflow: hidden; background: #000;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Placeholder shown until a real embed is pasted in */
.placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  padding: 24px; font-size: 15px; color: rgba(255,255,255,.75);
  background: repeating-linear-gradient(45deg, #120a24, #120a24 14px, #170d2e 14px, #170d2e 28px);
}

/* ---------- Calendly ---------- */
.calendly {
  border-radius: var(--radius); overflow: hidden; background: #fff;
}
.calendly .calendly-inline-widget { min-width: 300px; height: 720px; }
@media (max-width: 560px) {
  .calendly .calendly-inline-widget { height: 1000px; }
}

/* ---------- Ticked list ---------- */
ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li {
  position: relative; padding: 14px 16px 14px 48px; margin-bottom: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  font-weight: 600; color: var(--text);
}
ul.ticks li::before {
  content: ""; position: absolute; left: 16px; top: 17px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- Simple form (phone-friendly) ---------- */
.form {
  display: grid; gap: 18px;
  padding: 24px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
}
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; color: var(--text); font-size: 16px; }
.field .hint { font-weight: 400; color: var(--text-soft); font-size: 14px; }
.field input,
.field textarea {
  width: 100%;
  min-height: 52px;               /* big enough to tap */
  padding: 13px 14px;
  font: inherit; font-size: 17px; /* 16px+ stops iPhones zooming in */
  color: var(--field-text);
  background: var(--field-bg);
  border: 1.5px solid var(--field-line);
  border-radius: 10px;
  appearance: none;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 35%, transparent); }
.field.bad input, .field.bad textarea { border-color: var(--error); box-shadow: 0 0 0 3px color-mix(in srgb, var(--error) 30%, transparent); }
.form .btn { width: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* spam trap */
.form-status { min-height: 1.4em; margin: 0; font-weight: 600; }
.form-status.ok { color: var(--ok); }
.form-status.error { color: var(--error); }

/* ---------- Top navigation (same on every page) ---------- */
.nav {
  max-width: 1040px; margin: 0 auto; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.nav .home {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--font-head); font-weight: 700; color: var(--text);
}
.nav .home img { width: 34px; height: 34px; border-radius: 9px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a.link {
  display: inline-block; padding: 8px 10px; border-radius: 8px;
  text-decoration: none; font-size: 15px; font-weight: 600; color: var(--text-soft);
}
.nav a.link:hover, .nav a.link[aria-current="page"] { color: var(--text); background: var(--card); }
.ext::after { content: " ↗"; font-size: .85em; opacity: .7; }
@media (max-width: 560px) {
  .nav { padding: 10px 12px; gap: 6px; }
  .nav .home span { display: none; }      /* just the logo on phones */
  .nav ul { gap: 0; }
  .nav a.link { padding: 8px 7px; font-size: 14px; }
}

/* ---------- "What brings you here?" cards ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 24px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
}
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(var(--brand), var(--brand-2)); color: #fff;
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 21px; color: var(--text); }
.card p { margin: 0; flex: 1; }
.card .btn { width: 100%; padding: 12px 18px; font-size: 16px; min-height: 48px; }
.card .alt { text-align: center; font-size: 15px; font-weight: 600; color: var(--text-soft); }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Topic picker (one tap) ---------- */
.topics { border: 0; padding: 0; margin: 0; order: -1; }   /* shown first; sits later in the HTML so emails list fields in the shared order */
.topics legend { font-weight: 600; color: var(--text); font-size: 16px; margin-bottom: 8px; padding: 0; }
.chips { display: grid; grid-template-columns: repeat(4, auto); gap: 8px; justify-content: start; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: flex; align-items: center; justify-content: center; min-height: 46px;
  padding: 10px 16px; border-radius: 100px; font-weight: 600; font-size: 15px;
  border: 1.5px solid var(--line); background: var(--card); color: var(--text);
  transition: background .15s ease, border-color .15s ease;
}
.chip input:checked + span { background: linear-gradient(var(--brand), var(--brand-2)); border-color: transparent; color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 560px) { .chips { grid-template-columns: 1fr 1fr; } }

footer { text-align: center; padding: 48px 16px 40px; font-size: 14px; color: var(--text-soft); }
footer a { color: inherit; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .btn { width: 100%; max-width: 420px; }
  .form { padding: 18px; }
}
