/* Eastside Tennis Restring: design system ("Modern Specialist").
   Tokens first, then components. Mobile-first; desktop rules at the end of each block. */

/* ---------- Font: Figtree (SIL OFL), served from this site so no visitor is sent to Google ---------- */
@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("/fonts/figtree-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
                 U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #f8f8f6;            /* near-white neutral page */
  --surface: #ffffff;       /* tiles, inputs */
  --surface-2: #efefec;     /* service rows, photo placeholders */
  --navy: #0f1e36;          /* headings, buttons, links */
  --navy-hover: #1d3354;
  --text: #2b3546;          /* body copy */
  --muted: #5b6b7e;         /* labels, secondary text (5:1 on --bg) */
  --line: #e1e3e6;          /* hairline dividers */
  --line-strong: #c8cdd4;   /* input borders */

  --font: "Figtree", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --head-weight: 600;

  /* Type scale: five sizes only */
  --fs-title: clamp(30px, 4.2vw, 42px);    /* page title */
  --fs-h2: clamp(23px, 2.8vw, 29px);       /* section heading */
  --fs-h3: 18px;                           /* item heading */
  --fs-body: 17px;
  --fs-small: 14.5px;

  --radius: 8px;
  --gutter: 20px;
  --wide: 1120px;          /* home, catalogue */
  --narrow: 760px;         /* reading pages */
  --space: 48px;           /* between sections */
}
@media (min-width: 900px) {
  :root { --gutter: 40px; --space: 72px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 var(--fs-body)/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3 { color: var(--navy); font-weight: var(--head-weight); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-title); line-height: 1.12; }
h2 { font-size: var(--fs-h2); line-height: 1.2; }
h3 { font-size: var(--fs-h3); line-height: 1.3; }
p { margin: 0 0 12px; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

.container { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
/* Reading pages: same left edge as the header, line length capped. */
.container--narrow > * { max-width: var(--narrow); }
.section { padding: var(--space) 0 0; }
.section--rule { border-top: 1px solid var(--line); margin-top: var(--space); padding-top: calc(var(--space) * .75); }
.section__head { margin-bottom: 18px; }
.section__head p { color: var(--text); margin: 6px 0 0; }
.lead { font-size: 18px; max-width: 40em; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Wordmark ---------- */
.wordmark { display: inline-flex; flex-direction: column; align-items: flex-start; text-decoration: none; color: var(--navy); line-height: 1; text-transform: uppercase; }
.wordmark__main { font-weight: 700; font-size: 23px; letter-spacing: 0.14em; margin-right: -0.14em; }
.wordmark__sub { font-weight: 600; font-size: 11.5px; letter-spacing: 0.185em; margin-right: -0.185em; margin-top: 5px; }  /* fitted so both lines match width in Figtree */

/* ---------- Header and menu ---------- */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; color: var(--navy); cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }
.menu-btn .i-close { display: none; }
.site-header.is-open .menu-btn .i-open { display: none; }
.site-header.is-open .menu-btn .i-close { display: block; }
.site-nav { display: none; }
.site-header.is-open .site-nav { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 0 var(--gutter) 12px; }
.site-nav ul { list-style: none; margin: 0 auto; padding: 0; max-width: var(--wide); }
.site-nav li + li { border-top: 1px solid var(--line); }
.site-nav a { display: block; padding: 15px 0; font-size: 18px; font-weight: 500; text-decoration: none; color: var(--navy); }
.site-nav a[aria-current="page"] { font-weight: 700; }

@media (min-width: 1080px) {
  .site-header__bar { min-height: 84px; }
  .menu-btn { display: none; }
  .site-nav, .site-header.is-open .site-nav { display: block; position: static; padding: 0; border: 0; }
  .site-nav ul { display: flex; gap: 30px; }
  .site-nav li + li { border: 0; }
  .site-nav a { padding: 6px 0; font-size: 15.5px; border-bottom: 1.5px solid transparent; }
  .site-nav a:hover { border-bottom-color: var(--line-strong); }
  .site-nav a[aria-current="page"] { font-weight: 500; border-bottom-color: var(--navy); }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: var(--space); padding: 28px 0 40px; font-size: var(--fs-small); color: var(--muted); }
.site-footer__name { color: var(--navy); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 15px; margin: 0 0 2px; }
.site-footer p { margin: 0 0 10px; }
.site-footer__links a { color: var(--navy); text-decoration: none; font-size: 15.5px; display: inline-block; padding: 6px 0; }
.site-footer__links a:hover { text-decoration: underline; }
.site-footer__links span { margin: 0 12px; color: var(--line-strong); }

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: var(--radius); border: 1.5px solid var(--navy); font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-hover); border-color: var(--navy-hover); }
.btn--secondary { background: transparent; color: var(--navy); }
.btn--secondary:hover { background: var(--navy); color: #fff; }
.btn-stack { display: flex; flex-direction: column; gap: 12px; max-width: 360px; }
@media (min-width: 600px) { .btn-stack { flex-direction: row; max-width: none; } }

.arrow-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy); text-decoration: none; padding: 6px 0; }
.arrow-link .icon { transition: transform .15s; }
.arrow-link:hover .icon { transform: translateX(3px); }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); text-decoration: none; font-size: 15.5px; padding: 6px 0; }
.text-link { color: var(--navy); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.text-link:hover { text-decoration-color: var(--navy); }

/* ---------- Photos and placeholders ---------- */
.photo { border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--wide { aspect-ratio: 16 / 9; }
.photo--banner { aspect-ratio: 21 / 9; }
.photo--square { aspect-ratio: 1; }
.photo-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; padding: 16px; color: #4f5e71; border: 1px solid var(--line); }
.photo-slot strong { font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.photo-slot span { font-size: 13px; }

/* ---------- Service rows (home) ---------- */
.service-list { display: grid; gap: 12px; }
.service { display: grid; grid-template-columns: 32% 1fr auto; align-items: center; gap: 12px; background: var(--surface-2); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); padding-right: 14px; min-height: 108px; transition: background .15s; }
.service:hover { background: #e7e7e3; }
.service .photo { border-radius: 0; height: 100%; width: 100%; min-height: 108px; min-width: 0; aspect-ratio: auto; }
.service .photo-slot strong { font-size: 11px; }
.service .photo-slot { border: 0; background: #e4e4e0; }
.service h3 { margin-bottom: 3px; font-size: 17px; }
.service .photo-slot span { display: none; }
.service p { margin: 0; font-size: 15px; line-height: 1.4; }
.service .icon { color: var(--navy); }
@media (min-width: 900px) {
  .service-list { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .service { grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; padding: 0 0 20px; align-items: start; }
  .service > .icon { margin-right: 18px; }
  .service .photo { grid-column: 1 / -1; aspect-ratio: 4 / 3; min-height: 0; }
  .service > div { padding-left: 20px; }
  .service .icon { margin-top: 4px; }
  .service h3 { font-size: var(--fs-h3); }
  .service .photo-slot span { display: block; }
}

/* ---------- Price rows ---------- */
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 20px; padding: 9px 0; }
.price-list--ruled li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.price-list--ruled li:last-child { border-bottom: 0; }
.price-list .price { font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.price-list h3 { font-size: 17.5px; }
.price-list .desc { grid-column: 1 / -1; margin: 0; }
.price-list .note { grid-column: 1 / -1; margin: 2px 0 0; color: var(--muted); font-size: var(--fs-small); }

/* ---------- Definition rows (tuning terms, racquet specs) ---------- */
.def-list { display: grid; grid-template-columns: max-content 1fr; margin: 0; }
.def-list dt, .def-list dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.def-list dt { font-weight: 600; color: var(--navy); padding-right: 24px; }
.def-list--quiet dt { font-weight: 400; color: var(--muted); }
.def-list > :nth-last-child(-n + 2) { border-bottom: 0; }

/* ---------- Forms ---------- */
.input { width: 100%; min-height: 50px; padding: 0 14px; font: 400 16.5px/1 var(--font); color: var(--navy); background: var(--surface); border: 1px solid #858f9c; border-radius: var(--radius); }   /* 3.3:1 boundary contrast */
.input::placeholder { color: #677386; }
.input:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: transparent; }
.inline-form { display: flex; gap: 10px; max-width: 520px; }
.inline-form .input { flex: 1; min-width: 0; }
.inline-form .btn { flex: none; }

/* ---------- Brand logo grid and string tables ---------- */
.logo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 700px) { .logo-grid { grid-template-columns: repeat(6, 1fr); gap: 10px; } }
.logo-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px 6px 9px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--navy); font-size: 13.5px; text-align: center; line-height: 1.2; min-height: 100px; }
.logo-tile:hover { border-color: var(--line-strong); }
.logo-tile img { width: 100%; height: 54px; object-fit: contain; padding: 0 8px; box-sizing: border-box; }   /* side padding keeps wide wordmarks off the tile edges */
.logo-tile--text { font-size: 16px; font-weight: 600; }

.brand-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.brand-head img { width: 44px; height: 30px; object-fit: contain; }
.string-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 16px; }
.string-table td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.string-table td:first-child { width: 48%; color: var(--navy); }
.string-table td.g { color: var(--muted); padding-left: 12px; }
.string-table td.p { width: 64px; text-align: right; font-variant-numeric: tabular-nums; padding-left: 12px; font-weight: 600; color: var(--navy); }
.string-table tr:last-child td { border-bottom: 0; }
.to-top { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 15px; font-weight: 600; color: var(--navy); text-decoration: none; }

/* ---------- Demo catalogue tiles ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .tile-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .tile-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.tile { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--surface-2); transition: transform .2s; }
.tile:hover { transform: translateY(-2px); }
.tile img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Numbered steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 48px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps .num { font-size: 20px; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1.3; }
.steps h3 { font-size: 15px; letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 3px; }
.steps p { margin: 0; }

/* ---------- Accordion (FAQ) ---------- */
.accordion details { border-bottom: 1px solid var(--line); }
.accordion details:first-child { border-top: 1px solid var(--line); }
.accordion summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 0; cursor: pointer; color: var(--navy); font-weight: 500; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .icon { transition: transform .2s; }
.accordion details[open] summary .icon { transform: rotate(45deg); }
.accordion details > div { padding: 0 0 16px; max-width: 40em; }

/* ---------- Link list (demo detail) ---------- */
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; color: var(--navy); text-decoration: none; }
.link-list a:hover .icon { transform: translateX(3px); }
.link-list .icon { transition: transform .15s; }

/* ======================================================================
   Page: Home
   ====================================================================== */
/* Hero: photo fills the band; heading and buttons sit on the left over a soft fade. */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__media { position: absolute; inset: 0 0 0 30%; }
.hero__media .photo, .hero__media img { width: 100%; height: 100%; border-radius: 0; border: 0; object-fit: cover; }
.hero__media .photo-slot { align-items: flex-end; justify-content: flex-start; padding: 14px 16px; background: #e8e8e4; text-align: right; }
.hero__media .photo-slot span { display: none; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 28%, rgba(248,248,246,.88) 46%, rgba(248,248,246,0) 78%); }
.hero__inner { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 40px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; max-width: 6.6em; margin-bottom: 24px; }
.hero .btn-stack { max-width: 290px; }
.hero .btn { white-space: nowrap; padding: 0 18px; }
@media (min-width: 600px) { .hero .btn-stack { max-width: none; } }
@media (min-width: 900px) {
  .hero__media { left: 40%; }
  .hero::before { background: linear-gradient(90deg, var(--bg) 38%, rgba(248,248,246,.85) 48%, rgba(248,248,246,0) 70%); }
  .hero__inner { padding-top: 96px; padding-bottom: 96px; }
  .hero h1 { max-width: 8em; }
  .hero__media .photo-slot { justify-content: flex-end; }
  .hero__media .photo-slot span { display: block; }
}

/* Workshop preview: stacked on phones, photo beside text on desktop. */
.workshop-preview h2 { margin-bottom: 18px; }
.workshop-preview__text { margin-top: 14px; }
.workshop-preview__text p { margin-bottom: 6px; }
@media (min-width: 900px) {
  .workshop-preview { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0 40px; align-items: center; }
  .workshop-preview h2 { grid-column: 1 / -1; }
  .workshop-preview .photo { aspect-ratio: 16 / 9; }
  .workshop-preview__text { margin-top: 0; }
}

/* ======================================================================
   Page: Racquet Restringing
   ====================================================================== */
.contact-lines { margin: 10px 0 12px; }
.contact-lines a { color: var(--navy); text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }
.browse { margin-top: 28px; }
.browse h3 { font-size: 20px; }
.browse p { margin: 4px 0 14px; }
.brand-section { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 28px; scroll-margin-top: 12px; }
.brand-head h2 { font-size: 24px; }
.string-table tr.new td { color: #c0201e; }   /* rows flagged "new" in strings.txt */
.updated { margin-top: 40px; }

/* Check My Restring results */
.status-result { margin-top: 18px; max-width: 560px; }
.status-result .err { color: #a3261b; }
.loyalty { margin: 4px 0 6px; font-size: 15.5px; }
.loyalty__bar { display: flex; gap: 4px; margin-top: 8px; }
.loyalty__bar i { flex: 1; height: 8px; border-radius: 4px; background: var(--line); }
.loyalty__bar i.on { background: var(--navy); }
.job { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 6px; margin-top: 12px; }
.job__status { margin: 0 0 4px; font-weight: 600; color: var(--navy); }
.job__status.is-ready::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2f7d4f; margin-right: 8px; vertical-align: 1px; }
.lastline { margin: 0 0 6px; }
.rc { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 14px; margin-top: 14px; box-shadow: 0 2px 10px rgba(15, 31, 51, .05); }
.rc.is-ready { border-color: #2f7d4f; box-shadow: 0 2px 14px rgba(47, 125, 79, .16); }
.rc__name { margin: 0 0 14px; font-size: 20px; line-height: 1.25; color: var(--navy); }
.rc__free { font-size: 13px; font-weight: 600; background: #e7f3ec; color: #1f6b3f; border-radius: 99px; padding: 2px 9px; vertical-align: 2px; margin-left: 4px; }
.track { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.track li { position: relative; text-align: center; padding-top: 22px; font-size: 13.5px; color: var(--muted); }
.track li::before { content: ""; position: absolute; top: 7px; left: -50%; width: 100%; height: 3px; background: var(--line-strong); z-index: 0; }
.track li:first-child::before { display: none; }
.track li.done::before, .track li.now::before { background: var(--navy); }
.track__dot { position: absolute; top: 0; left: 50%; margin-left: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line-strong); box-sizing: border-box; z-index: 1; }
.track li.done .track__dot { background: var(--navy); border-color: var(--navy); }
.track li.now .track__dot { background: var(--surface); border-color: var(--navy); box-shadow: 0 0 0 4px rgba(15, 31, 51, .14); }
.track li.now { color: var(--navy); font-weight: 700; }
.is-ready .track li.now .track__dot { background: #2f7d4f; border-color: #2f7d4f; box-shadow: 0 0 0 4px rgba(47, 125, 79, .2); }
.is-ready .track li.now { color: #1f6b3f; }
.rc__msg { margin: 0 0 14px; padding: 10px 12px; background: #f1f4f8; border-radius: 10px; font-size: 16px; font-weight: 600; color: var(--navy); }
.is-ready .rc__msg { background: #e7f3ec; color: #1f6b3f; }
.rc__pos { font-weight: 500; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 18px; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.facts dt { font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 2px; }
.facts dd { margin: 0; font-size: 16px; color: var(--navy); font-variant-numeric: tabular-nums; }
.facts dd small { display: block; font-size: 13px; color: var(--muted); }
.facts__wide { grid-column: 1 / -1; }
.def-list--compact dt, .def-list--compact dd { padding: 6px 0; font-size: 15.5px; }

/* Small spacing helpers */
.mb { margin-bottom: 14px; }
.mb-sm { margin-bottom: 4px; }
.intro-copy { margin-top: 14px; max-width: 40em; }

/* ======================================================================
   Page: Racquet Tuning
   ====================================================================== */
/* One image: main machine photo with a small inset of its screen (top right). */
.photo-composite { position: relative; margin: 0; }
.photo--tune { aspect-ratio: 4 / 3; }
.photo-composite__inset { position: absolute; top: 12px; right: 12px; width: 38%; aspect-ratio: 4 / 3; border-radius: 6px;
  background: #e2e2de; box-shadow: 0 1px 3px rgba(15, 30, 54, .12); }
.photo-composite__inset strong { font-size: 10px; }
.photo-composite__inset span { font-size: 11px; line-height: 1.3; }
@media (max-width: 599px) { .photo-composite__inset span { display: none; } }

/* ======================================================================
   Page: Our Workshop
   ====================================================================== */
/* Feature: photo then text on phones; photo beside text on desktop. */
.feature > .photo { aspect-ratio: 16 / 10; }
.feature__text { margin-top: 18px; max-width: 34em; }
.feature__text h2 { margin-bottom: 8px; }
@media (min-width: 900px) {
  .feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
  .feature__text { margin-top: 0; }
}

/* ======================================================================
   Page: Demo Racquet Hire (catalogue and detail)
   ====================================================================== */
#how-it-works, #faq { scroll-margin-top: 16px; }
.demo-detail { display: grid; gap: 22px; margin-top: 14px; }
.demo-detail__art { max-width: 560px; }
.demo-detail h1 { font-size: clamp(26px, 3.4vw, 34px); }
.demo-detail__price { margin: 8px 0 2px; font-size: 18px; color: var(--navy); }
.demo-specs { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 20px; }
.demo-detail__links { border-top: 1px solid var(--line); margin-top: 24px; }
.cta-row { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line);
  color: var(--navy); font-weight: 600; font-size: 19px; text-decoration: none; }
.cta-row:hover .icon { transform: translateX(3px); }
.cta-row .icon { transition: transform .15s; }
@media (min-width: 900px) {
  .demo-detail { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
}
.readable > .section { max-width: var(--narrow); }

/* ---------- Accessibility ---------- */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Contact page: one tappable row per way to reach Adam */
#message { scroll-margin-top: 16px; }
.cx-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.cx-list > li { border-bottom: 1px solid var(--line); }
.cx-list > li:last-child { border-bottom: 0; }
.cx-row { display: grid; grid-template-columns: 36px 1fr 20px; align-items: center; gap: 14px; padding: 14px 16px; text-decoration: none; color: inherit; }
.cx-row:hover { background: #f4f6f9; }
.cx-list > li:first-child .cx-row { border-radius: var(--radius) var(--radius) 0 0; }
.cx-list > li:last-child .cx-row { border-radius: 0 0 var(--radius) var(--radius); }
.cx-row .tile-icon { width: 36px; height: 36px; }
.cx-t b { display: block; color: var(--navy); }
.cx-t span { color: var(--muted); font-size: .92em; }
.cx-chev { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cx-qrm { padding: 0 16px 14px 66px; margin-top: -6px; }
.cx-qrm summary { cursor: pointer; color: var(--navy); font-size: 15px; text-decoration: underline; }
.cx-qrm .qr-card { margin-top: 10px; }
.cx-drop { margin-top: 40px; }
.cx-qr { display: none; }

/* Top bar: contact icons (left) and language switch (right), on every page */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.contact-icons { display: flex; gap: 10px; }
.ci { display: inline-flex; width: 32px; height: 32px; padding: 0; border: 0; background: none; border-radius: 8px; cursor: pointer; transition: transform .15s; }
.ci:hover { transform: translateY(-1px); }
.ci .tile-icon { width: 32px; height: 32px; display: block; }
.lang-switch { display: flex; align-items: center; font-size: 14.5px; }
.lang-switch a { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); text-decoration: none; padding: 9px 8px; }
.flag { width: 24px; height: 16px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(15, 30, 54, .22); flex: none; }
.lang-switch a:hover { color: var(--navy); }
.lang-switch a[aria-current] { color: var(--navy); font-weight: 700; }
.lang-sep { color: var(--line-strong); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: var(--navy); color: #fff;
  padding: 12px 18px; border-radius: var(--radius); max-width: min(92vw, 420px); font-size: 15px; box-shadow: 0 4px 16px rgba(15, 30, 54, .25); }
.toast[hidden] { display: none; }

/* Chinese pages */
:lang(zh-Hans) body { line-height: 1.7; }
:lang(zh-Hans) .eyebrow, :lang(zh-Hans) .track h3 { letter-spacing: 0; text-transform: none; }
:lang(zh-Hans) { line-break: strict; }
:lang(zh-Hans) h1, :lang(zh-Hans) h2, :lang(zh-Hans) h3, :lang(zh-Hans) .service p, :lang(zh-Hans) .desc { text-wrap: balance; }
:lang(zh-Hans) .hero h1 { max-width: 12em; }

/* WeChat QR code (Contact page). White card so the code scans cleanly. */
#wechat { scroll-margin-top: 16px; }
.qr-card { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; max-width: 288px; text-align: center; }
.qr-card img { width: 240px; max-width: 100%; height: auto; margin: 0 auto; }
.qr-card p { margin: 10px 0 0; }

/* Past restrings on Check My Restring: facts only */
.past-h { margin: 26px 0 8px; font-size: 18px; }
.past-list { list-style: none; margin: 0; padding: 0; }
.past-list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.past-list li:last-child { border-bottom: 0; }
.pl-main { font-weight: 600; color: var(--navy); }
.pl-sub { color: var(--muted); font-size: 15px; }
.pl-free { font-weight: 500; color: var(--muted); }

/* String search on the Restringing page: box + button on one line */
.string-search { display: flex; gap: 8px; }
.string-search .input { flex: 1; min-width: 0; }
.string-search .btn { flex: none; }

/* Demo hire: one spec column per model (e.g. EZONE 98 and 100) */
.spec-cols { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-cols th, .spec-cols td { text-align: left; padding: 6px 10px 6px 0; vertical-align: top; }
.spec-cols thead th { color: var(--navy); font-weight: 700; border-bottom: 1px solid var(--line); }
.spec-cols tbody th { color: var(--muted); font-weight: 400; width: 38%; }

/* ======================================================================
   Desktop layout (1000px and wider). Phones are unchanged.
   Short intros run the full width; long text keeps a readable line
   length; side-by-side columns use the space instead of leaving it empty.
   ====================================================================== */
@media (min-width: 1000px) {
  :root { --fs-body: 18px; }
  .container--narrow > *, .readable > .section, .readable > .dsk-2 { max-width: none; }
  .intro-copy, .lead { max-width: none; }
  .dsk-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; align-items: start; }
  .dsk-2--center { align-items: center; }
  /* Restringing price list: one brand under another, as on phones, at a readable width */
  .brand-cols { max-width: var(--narrow); }
  /* Contact: message options and details left, QR codes right */
  .cx { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0 64px; align-items: start; }
  .cx-qr { display: block; }
  .cx-qrm { display: none; }
}

/* Real photos (replacing placeholders): keep their own shape */
.photo--real { width: 100%; height: auto; border-radius: var(--radius); background: #fff; }
.feature > .photo--real { aspect-ratio: auto; }
/* Workshop: string brand logos standing in for the string collection photo */
.feature > .brand-wall { aspect-ratio: auto; display: flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--line); padding: 5%; text-decoration: none; }
.brand-wall__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px 12px; width: 100%; }
@media (min-width: 600px) { .brand-wall__grid { gap: 16px 22px; } }
.brand-wall img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.brand-wall:hover { border-color: var(--line-strong); }
