/* The one-screen TradieRing page: logo, what we do, the links to TradieRing, its use cases, a tiny footer.
   Same structure in every direction; each direction's CSS sets the variables and the type. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

/* Logo */
.top { height: 76px; display: flex; align-items: center; }
.mark {
  display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap);
  font-weight: 600; font-size: 19px; letter-spacing: -0.035em; text-decoration: none; color: var(--fg);
}
.ring { position: relative; width: 20px; height: 20px; flex: none; border-radius: 50%; border: 4.5px solid var(--mark); }
.ring::after { content: ""; position: absolute; inset: 0; margin: auto; width: 4.5px; height: 4.5px; border-radius: 50%; background: var(--mark-dot); }

/* What we do */
.hero { padding: clamp(36px, 8vw, 104px) 0 0; }
h1 { font-size: var(--h1-size); font-weight: var(--h1-weight); letter-spacing: var(--h1-track); line-height: var(--h1-lh, 1.04); max-width: var(--h1-measure, 17ch); text-wrap: balance; }
.sub { margin-top: clamp(16px, 2vw, 24px); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--muted); max-width: 32rem; text-wrap: pretty; letter-spacing: -0.012em; }

/* The links to TradieRing */
.ctas { margin-top: clamp(28px, 4vw, 44px); display: grid; justify-items: start; gap: 4px; }
.go {
  display: inline-flex; align-items: center; gap: .3em; min-height: 52px;
  font-size: clamp(23px, 2.3vw, 30px); font-weight: var(--go-weight, 500); letter-spacing: -0.03em; text-decoration: none; color: var(--fg);
}
.go .t {
  background: linear-gradient(var(--hl), var(--hl)) 0 86% / 100% .34em no-repeat;
  padding: 0 .06em; transition: background-size .25s var(--ease-out);
}
.go .chev { display: inline-block; width: .5em; height: .5em; transition: transform .2s var(--ease-out); }
.go:hover .t { background-size: 100% .9em; }
.go:hover .chev { transform: translateX(3px); }
.go-small { min-height: var(--tap); margin-top: 6px; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; color: var(--muted); }
.go-small .t { padding-bottom: 3px; background-size: 100% 1px; background-position: 0 100%; background-image: linear-gradient(currentColor, currentColor); }
.go-small:hover { color: var(--fg); }
.go-small:hover .t { background-size: 100% 1px; }
.where { margin-top: 2px; font-size: 14px; color: var(--muted); }

/* Use cases */
.uses { padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 80px); }
.uses h2 { font-size: 17px; font-weight: 550; letter-spacing: -0.015em; color: var(--fg); margin-bottom: 18px; }
.uses h2 span { color: var(--muted); font-weight: 400; }
.tiles {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.tiles::-webkit-scrollbar { display: none; }
.tile {
  flex: 0 0 min(84%, 340px); scroll-snap-align: start;
  background: var(--tile-bg); border-radius: 28px; box-shadow: var(--tile-ring, none);
  padding: 16px 14px 18px; display: flex; flex-direction: column; gap: 14px;
}
.tile-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0 4px; }
.tile-cap b { font-size: 15px; font-weight: 600; letter-spacing: -0.015em; }
.tile-cap time, .tile-cap span { font-family: var(--mono); font-size: 13px; color: var(--meta); letter-spacing: -0.02em; white-space: nowrap; }
.tile .thread { margin-top: auto; }
.swipe { margin-top: 10px; font-size: 14px; color: var(--muted); }
@media (min-width: 900px) {
  .tiles { display: block; columns: 3; column-gap: 20px; overflow: visible; margin: 0; padding: 0; }
  .tile { break-inside: avoid; margin-bottom: 20px; padding: 20px 18px 22px; }
  .swipe { display: none; }
}
.note { margin-top: 4px; font-size: 14px; color: var(--muted); }

/* Footer */
.foot { padding: 28px 0 40px; display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; font-size: 14px; color: var(--muted); border-top: 1px solid var(--hair); }
.foot a { display: inline-flex; align-items: center; min-height: var(--tap); min-width: var(--tap); text-decoration: none; }
.foot a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.foot .by { margin-right: auto; }
@media (max-width: 560px) { .foot .by { flex-basis: 100%; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Small links under the two big ones */
.minor { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 4px; }

/* The mark rings once on load: two rings spread out from it, like a phone ringing. */
.ring i { position: absolute; inset: -4.5px; border-radius: 50%; border: 1.5px solid var(--mark); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .ring i { animation: ripple 1.6s .5s var(--ease-out) 2; }
  .ring i + i { animation-delay: .8s; }
  @keyframes ripple { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(2.4); } }
}

/* The big links wrap as text: the chevron stays with the last word and the highlighter follows each line. */
.go:not(.go-small) { display: inline-block; font-size: clamp(20px, 5.6vw, 30px); line-height: 1.25; padding: 8px 0; min-height: 0; }
.go:not(.go-small) .t { -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.go:not(.go-small) .chev { margin-left: .28em; vertical-align: .02em; }
@media (min-width: 640px) { .go:not(.go-small) { font-size: clamp(22px, 2.3vw, 30px); } }

/* Logo: lime ring on a navy disc, like the chat avatar and favicon (Kamyar, 2026-10-30) */
.mark { gap: 12px; }
.mark .ring { width: 18px; height: 18px; border-width: 4px; border-color: var(--lime-100); margin: 7px; box-shadow: 0 0 0 7px var(--navy-900); background: var(--navy-900); }
.mark .ring::after { width: 4px; height: 4px; background: var(--lime-100); }
.mark .ring i { inset: -11px; border-color: var(--navy-900); }
