/* Local Links LLC */

:root {
  --ink: #161616;
  --ink-2: #3d3d3d;
  --muted: #525252;
  --line: #d4d4d4;
  --line-soft: #e0e0e0;
  --surface: #f2f4f4;
  --mint: #e8f3f2;
  --teal: #0a7c79;        /* text, links and buttons on white (5:1) */
  --teal-dark: #074c4b;
  --teal-bright: #15cdca; /* logo teal: large fills with dark text only */
  --white: #ffffff;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --wrap: 1200px;
  --gutter: 32px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }

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

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }

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

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

/* ---------- Labels, buttons, phones ---------- */

.label {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  text-transform: uppercase;
}
.label a { color: inherit; }
.label--accent { color: var(--teal); font-weight: 600; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--ink);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: #333; border-color: #333; color: var(--white); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }

.btn--accent { background: var(--teal); border-color: var(--teal); }
.btn--accent:hover { background: var(--teal-dark); border-color: var(--teal-dark); }

.btn--light { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--surface); border-color: var(--surface); color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.store-badges a { display: block; }
.store-badges img { height: 52px; width: auto; display: block; }

.phone {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
  border: 9px solid var(--ink);
  border-radius: 38px;
  background: var(--ink);
}

.phones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
}
.phones .phone:nth-child(even) { margin-top: 64px; }

/* ---------- Header ---------- */

.site-header { border-bottom: 1px solid var(--line-soft); background: var(--white); }

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.brand img { width: 32px; height: auto; display: block; }

.nav { display: flex; flex-wrap: wrap; gap: 0 28px; font-family: var(--mono); font-size: 14px; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.nav a:hover { text-decoration: underline; color: var(--ink); }
.nav a[aria-current="page"] { color: var(--teal); font-weight: 600; }

/* ---------- Home hero ---------- */

.hero { padding: 96px 0 120px; }

.hero-name {
  display: flex;
  align-items: center;
  gap: 0.18em;
  font-size: clamp(40px, 12.5vw, 172px);
  line-height: 0.95;
  white-space: nowrap;
  letter-spacing: -0.045em;
}
.hero-name img { height: 0.92em; width: auto; display: block; flex: none; }

.hero-sub {
  margin-top: 36px;
  max-width: 900px;
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.hero-sub em { font-style: normal; color: var(--teal); }

.hero-body { margin-top: 28px; max-width: 640px; font-size: 20px; color: var(--ink-2); }
.hero .btn-row { margin-top: 40px; }

/* ---------- Sections ---------- */

.rule-top { border-top: 1px solid var(--ink); }

.split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 64px;
  padding-top: 96px;
  padding-bottom: 96px;
}
.split > .split-text { flex: 1 1 440px; min-width: 0; }
.split > .split-media { flex: 1 1 420px; min-width: 0; }
.split--reverse > .split-media { order: -1; }

.section-title { margin-top: 12px; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.05; letter-spacing: -0.025em; }
.section-title a { color: inherit; text-decoration: none; }
.section-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

.lede { margin-top: 20px; font-size: 20px; max-width: 540px; }

.points { list-style: none; margin: 32px 0 0; padding: 0; }
.points li {
  display: flex;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.points li:last-child { border-bottom: 1px solid var(--line); }
.points .label { padding-top: 3px; flex: none; }

.note { margin-top: 20px; }

.band { background: var(--teal-bright); color: var(--ink); }
.band .label, .band .label--accent { color: var(--ink); }

.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px;
  border-top: 1px solid rgba(22, 22, 22, 0.4);
}
.trio > div { padding: 16px 16px 0 0; }
.trio strong { display: block; font-weight: 600; }
.trio span { display: block; margin-top: 4px; font-size: 15px; }

.band .store-badges, .band .btn-row { margin-top: 36px; }

.cta-band { border-bottom: 1px solid var(--line); }
.cta-band .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding-top: 72px;
  padding-bottom: 72px;
}
.cta-band p {
  flex: 1 1 520px;
  min-width: 0;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.cta-band--accent { background: var(--teal); color: var(--white); border-bottom: 0; }

.rail {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  padding-top: 96px;
  padding-bottom: 96px;
}
.rail > .label { flex: 1 1 240px; }
.rail > .rail-body { flex: 3 1 560px; min-width: 0; }
.rail-body > p + p { margin-top: 16px; }
.rail-body .big { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; letter-spacing: -0.01em; }
.rail-body .muted { color: var(--ink-2); }
.rail--tight { padding-top: 56px; padding-bottom: 56px; }

.contact-title { font-size: clamp(48px, 6.6vw, 92px); letter-spacing: -0.035em; line-height: 1; }
.contact .btn-row { margin-top: 32px; }
.contact p { margin-top: 16px; color: var(--muted); }

.link-row { display: flex; flex-wrap: wrap; gap: 0 28px; margin-top: 16px; }
.link-row a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Product pages ---------- */

.page-head { padding: 72px 0 64px; }
.page-head .label + .label { margin-top: 40px; }
.page-title { margin-top: 12px; font-size: clamp(46px, 6.6vw, 88px); line-height: 1.02; letter-spacing: -0.035em; }
.page-lede { margin-top: 24px; max-width: 700px; font-size: 22px; line-height: 1.45; color: var(--ink-2); }
.page-head .store-badges, .page-head .btn-row { margin-top: 36px; }

.page-head--band { background: var(--teal-bright); }
.page-head--band .label, .page-head--band .page-lede { color: var(--ink); }

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 48px 0 0;
  border-top: 1px solid var(--ink);
}
.facts > div { padding: 16px 24px 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; }
.facts dd { margin: 4px 0 0; font-weight: 500; }

.gallery { background: var(--surface); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.gallery .wrap { padding-top: 64px; padding-bottom: 64px; }
.gallery .phone { width: 220px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}
.gallery-grid .phone { width: 100%; border-width: 7px; border-radius: 26px; }

.features { padding-top: 96px; }
.features > .label { padding-bottom: 20px; border-bottom: 1px solid var(--ink); }

.feature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 64px;
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}
.feature:last-child { border-bottom: 0; }
.feature-text { flex: 1 1 440px; min-width: 0; }
.feature-media { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; }
.feature:nth-child(odd) .feature-media { order: -1; }
.feature h3 { margin-top: 12px; font-size: clamp(28px, 3vw, 40px); line-height: 1.12; }
.feature p { margin-top: 16px; max-width: 500px; color: var(--ink-2); }
.feature .phone { width: 260px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.feature-grid > div { padding: 40px 32px 48px 0; border-bottom: 1px solid var(--line); }
.feature-grid h3 { margin-top: 12px; font-size: 26px; line-height: 1.2; letter-spacing: -0.015em; }
.feature-grid p { margin-top: 12px; color: var(--ink-2); }

/* ---------- Work index ---------- */

.work-item {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.work-item:last-child { border-bottom: 1px solid var(--ink); }
.work-text { flex: 1 1 440px; min-width: 0; }
.work-text h2 { margin-top: 12px; font-size: clamp(32px, 3.6vw, 48px); letter-spacing: -0.02em; }
.work-text h2 a { color: var(--ink); text-decoration: none; }
.work-text h2 a:hover { text-decoration: underline; }
.work-text p { margin-top: 16px; font-size: 19px; max-width: 520px; }
.work-text .btn-row { margin-top: 28px; }
.work-media { flex: 1 1 440px; min-width: 0; display: flex; justify-content: center; gap: 20px; }
.work-media .phone { width: 200px; }

/* ---------- Simple pages (contact, legal, support, 404) ---------- */

.simple { padding: 72px 0 96px; }
.simple .page-title { font-size: clamp(40px, 5vw, 64px); }
.simple .page-lede { font-size: 19px; }

.form-embed { margin-top: 40px; max-width: 680px; }
.form-embed iframe { display: block; width: 100%; height: 1060px; border: 1px solid var(--line-soft); }

.legal-embed {
  margin-top: 40px;
  min-height: 600px;
  max-width: 900px;
  overflow-wrap: anywhere;
}
.legal-embed strong, .legal-embed b { font-weight: 700; }
.legal-embed [id], .legal-embed a[name] { scroll-margin-top: 16px; }

.app-legal { margin-top: 40px; max-width: 820px; line-height: 1.65; }
.app-legal h2 { font-size: 24px; margin: 40px 0 12px; letter-spacing: -0.015em; }
.app-legal p, .app-legal li { margin: 0 0 12px; }
.app-legal ul { padding-left: 22px; margin: 0 0 12px; }
.app-legal-meta { font-family: var(--mono); font-size: 13px; color: var(--muted); text-transform: uppercase; margin-bottom: 24px; }
.app-legal-meta a { color: inherit; }
.app-legal-note { border: 1px solid var(--line); padding: 14px 18px; background: var(--surface); }
.app-legal h2[id] { scroll-margin-top: 16px; }
.app-legal-table { overflow-x: auto; margin: 0 0 12px; }
.app-legal table { width: 100%; border-collapse: collapse; font-size: 15px; }
.app-legal th, .app-legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.app-legal th { font-weight: 600; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #c6c6c6; font-family: var(--mono); font-size: 13px; }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  padding-top: 24px;
  padding-bottom: 24px;
}
.site-footer a { color: #c6c6c6; display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a:hover { color: var(--white); }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 18px; height: auto; display: block; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 20px; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid > div { padding-right: 0; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .hero { padding: 56px 0 72px; }
  .hero-sub { margin-top: 24px; }
  .hero-body { font-size: 18px; }
  .split, .rail { padding-top: 64px; padding-bottom: 64px; gap: 40px; }
  .page-head { padding: 48px 0 48px; }
  .page-lede { font-size: 19px; }
  .features { padding-top: 64px; }
  .feature { padding: 48px 0; gap: 32px; }
  .feature:nth-child(odd) .feature-media { order: 0; }
  .feature .phone { width: 220px; }
  .phones { gap: 16px; }
  .phones .phone { width: calc(50% - 8px); border-width: 6px; border-radius: 26px; }
  .phones .phone:nth-child(even) { margin-top: 40px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .gallery .wrap { padding-top: 40px; padding-bottom: 40px; }
  .trio { grid-template-columns: 1fr; }
  .trio > div { padding: 14px 0; border-bottom: 1px solid rgba(22, 22, 22, 0.25); }
  .work-media .phone { width: calc(50% - 10px); border-width: 6px; border-radius: 26px; }
  .simple { padding: 48px 0 72px; }
  .store-badges img { height: 46px; }
}
