/* Coach Marco Sandroni · brand tokens (Brand guidelines v3.0).
   Layout: black court-style header band with the 76° diagonal, then a light
   column of summary → form → reviews. Square corners, 18px chamfers. */
:root {
  --orange: #FF5A00;
  --orange-text: #B83E00;
  --black: #0D0D0D;
  --graphite: #1C1C1C;
  --steel: #3A3A3A;
  --mist: #F2F2F2;
  --white: #FFFFFF;
  --grey: #6B6B6B;
  --line: #DADADA;
  --star: var(--orange);
  --star-off: #D9D9D9;
  --ok: #1E9E4A;
  --err: #D23C3C;

  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-data: "JetBrains Mono", ui-monospace, monospace;
  --tracking-display: -0.04em;
  --chamfer: 18px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font: 400 16px/1.55 var(--font);
}
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.wrap { width: 100%; max-width: 980px; margin: 0 auto; padding-inline: 20px; }
.mono { font-family: var(--font-data); }
.eyebrow {
  font: 700 12px/1.2 var(--font);
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1, h2, h3 { font-weight: 900; letter-spacing: var(--tracking-display); line-height: 1.02; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(26px, 4vw, 28px); }
.chamfer { clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%); }

/* ---- Top bar ---- */
.topbar { background: var(--black); color: var(--white); padding-top: env(safe-area-inset-top, 0px); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.lockup { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; }
.lockup .symbol { width: 40px; height: 26px; color: #fff; }
.lockup .words { display: grid; line-height: .92; }
.lockup .coach { font: 700 8px/1 var(--font); letter-spacing: .4em; color: #9a9a9a; margin-bottom: 3px; }
.lockup .nm { font-weight: 900; letter-spacing: var(--tracking-display); font-size: 17px; text-transform: uppercase; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border: 0; border-radius: 0; cursor: pointer;
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--orange); color: var(--black); }
.btn-primary:hover { background: #ff7124; }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--steel); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost:hover { background: rgba(127,127,127,.12); }
.btn-small { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btn-danger { background: transparent; color: var(--err); box-shadow: inset 0 0 0 1.5px var(--err); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }

/* ---- Hero ---- */
.hero { background: var(--black); color: var(--white); position: relative; overflow: hidden; }
.hero::before, .hero::after {
  content: ""; position: absolute; top: 0; bottom: 0; transform: skewX(-14deg); transform-origin: bottom;
}
.hero::before { right: 9%; width: 120px; background: var(--graphite); }
.hero::after { right: -40px; width: 70px; background: var(--orange); }
/* Desktop: the photo stretches to the height of the text column so both sides end level. */
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 40px; padding-block: 44px 48px; align-items: stretch; }
.portrait { width: 100%; height: 100%; min-height: 420px; object-fit: cover; object-position: 96% 40%; background: var(--steel); max-width: 100%; }
.hero-text { display: flex; flex-direction: column; min-width: 0; }
.hero-text .contact { margin-top: auto; }
.hero h1 { font-size: clamp(40px, 6vw, 62px); text-transform: uppercase; }
.hero .headline { color: var(--orange); font-weight: 600; margin: 12px 0 20px; text-wrap: balance; }
.hero .bio { color: #bdbdbd; font-size: 15px; margin: 0 0 22px; display: grid; gap: 10px; }
.hero .bio p { margin: 0; }
.flag { display: inline-block; width: 18px; height: 12px; vertical-align: -1px; margin-right: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.hero .bio p:last-child { color: var(--white); font-family: var(--font-data); font-size: 14px; margin-top: 4px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 22px; padding: 0; list-style: none; }
.facts li { display: grid; gap: 2px; }
.facts .k { font: 700 11px/1.2 var(--font); letter-spacing: .14em; text-transform: uppercase; color: #8c8c8c; }
.facts .v { font-family: var(--font-data); font-size: 14px; }
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.contact .mail { font-family: var(--font-data); font-size: 14px; user-select: all; color: var(--white); word-break: break-all; }

/* ---- Summary ---- */
.section { padding-block: 44px; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.summary { display: grid; grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1.25fr); gap: 36px; align-items: start; }
.big { font-weight: 900; letter-spacing: var(--tracking-display); font-size: 88px; line-height: .9; }
.big-sub { color: var(--grey); font-size: 14px; margin-top: 8px; }
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.dist { display: grid; gap: 8px; }
.dist-row { display: grid; grid-template-columns: 14px minmax(0, 1fr) 32px; gap: 10px; align-items: center; font-family: var(--font-data); font-size: 13px; }
.dist-row .n { text-align: right; color: var(--grey); font-variant-numeric: tabular-nums; }
.track { height: 10px; background: var(--mist); position: relative; }
.track > i { position: absolute; inset: 0 auto 0 0; background: var(--orange); }
.track.steel > i { background: var(--steel); }
.cats { display: grid; gap: 12px; }
.cat-row { display: grid; grid-template-columns: minmax(0, 1fr) 36px; gap: 4px 12px; align-items: center; }
.cat-row .lbl { font-size: 14px; font-weight: 600; }
.cat-row .val { font-family: var(--font-data); font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.cat-row .track { grid-column: 1 / -1; height: 6px; }

/* ---- Form ---- */
.panel { background: var(--mist); padding: 28px; position: relative; }
.panel.accent { box-shadow: inset 4px 0 0 var(--orange); }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field .label { font-size: 13px; font-weight: 700; }
.input, textarea.input {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1.5px solid #c8c8c8; border-radius: 0; background: var(--white);
}
.input:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 1px var(--black); }
textarea.input { resize: vertical; min-height: 84px; }
.counter { font-family: var(--font-data); font-size: 12px; color: var(--grey); text-align: right; }
.counter.full { color: var(--orange-text); }
.rate-grid { display: grid; gap: 4px; margin: 24px 0; }
.rate-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-block: 8px; border-bottom: 1px solid var(--line); }
.rate-row:last-child { border-bottom: 0; }
.rate-row .lbl { font-weight: 600; font-size: 15px; }
.star-input { display: inline-flex; gap: 2px; }
.star-input button { background: none; border: 0; padding: 4px; cursor: pointer; line-height: 0; }
.star-input svg { width: 28px; height: 28px; fill: var(--star-off); transition: fill .12s, transform .12s; }
.star-input button.on svg { fill: var(--star); }
.star-input button:hover svg { transform: scale(1.12); }
.star-input .hint { font-family: var(--font-data); font-size: 12px; color: var(--grey); min-width: 3.5em; align-self: center; margin-left: 6px; }
.overall-preview { display: flex; align-items: center; gap: 10px; font-family: var(--font-data); font-size: 13px; color: var(--grey); }
.photo-picker { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.thumb { width: 72px; height: 72px; object-fit: cover; background: var(--line); }
.thumb-wrap { position: relative; }
.thumb-wrap button { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border: 0; background: var(--black); color: #fff; cursor: pointer; font-size: 14px; line-height: 24px; padding: 0; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.msg { font-size: 14px; }
.msg.error { color: var(--err); }
.msg.ok { color: var(--ok); }

/* ---- Reviews ---- */
.select { min-height: 40px; padding: 6px 10px; border: 1.5px solid #c8c8c8; background: var(--white); border-radius: 0; }
.reviews { display: grid; gap: 0; }
.review { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.review:first-child { padding-top: 0; }
.avatar { width: 44px; height: 44px; background: var(--black); color: var(--white); display: grid; place-items: center; font-weight: 900; letter-spacing: -.02em; font-size: 15px; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
.review.mine .avatar { background: var(--orange); color: var(--black); }
.r-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.r-name { font-weight: 700; }
.r-country { color: var(--grey); font-size: 14px; }
.r-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 4px 0 8px; font-family: var(--font-data); font-size: 12px; color: var(--grey); }
.r-meta .score { color: var(--black); font-weight: 700; }
.r-comment { margin: 0; overflow-wrap: anywhere; white-space: pre-line; max-width: 72ch; }
.chip { font: 700 10px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; padding: 4px 6px; box-shadow: inset 0 0 0 1px currentColor; }
.chip.sample { color: var(--grey); }
.chip.hidden { color: var(--err); }
.chip.you { color: var(--orange-text); }
.r-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.r-photos button { padding: 0; border: 0; background: none; cursor: zoom-in; }
.r-photos img { width: 88px; height: 88px; object-fit: cover; }
details.r-detail { margin-top: 10px; font-size: 14px; }
details.r-detail summary { cursor: pointer; color: var(--grey); font-size: 13px; width: max-content; }
.r-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 6px 24px; margin-top: 8px; }
.r-cats div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dotted var(--line); padding-block: 3px; }
.r-cats .mono { font-size: 12px; }
.reply { margin-top: 14px; background: var(--mist); padding: 12px 16px; box-shadow: inset 3px 0 0 var(--orange); font-size: 14px; }
.reply .eyebrow { color: var(--orange-text); margin-bottom: 4px; font-size: 11px; }
.reply p { margin: 0; overflow-wrap: anywhere; }
.r-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.empty { padding: 28px; background: var(--mist); color: var(--grey); }

/* ---- Misc ---- */
.banner { background: #FFF1E8; color: var(--orange-text); font-size: 14px; }
.banner .wrap { padding-block: 10px; }
.banner a { color: inherit; font-weight: 700; }
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px);
  background: var(--black); color: var(--white); padding: 12px 18px; font-weight: 600; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.lightbox { position: fixed; inset: 0; background: rgba(13,13,13,.92); display: grid; place-items: center; z-index: 60; padding: 24px; cursor: zoom-out; }
.lightbox img { max-height: 90vh; max-width: 100%; object-fit: contain; }
footer.foot { background: var(--black); color: #8c8c8c; font-size: 13px; }
footer.foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 24px calc(24px + env(safe-area-inset-bottom, 0px)); }
.skeleton { color: var(--grey); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 860px) {
  .summary { grid-template-columns: 1fr 1fr; }
  .summary .cats { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; padding-block: 28px 36px; }
  .portrait { max-width: 260px; height: auto; min-height: 0; aspect-ratio: 4 / 5; object-position: 50% 50%; }
}
@media (max-width: 680px) {
  .wrap { padding-inline: 16px; }
  .portrait { max-width: 220px; }
  .hero::before { right: -10px; width: 70px; }
  .hero::after { right: -50px; width: 50px; }
  .summary { grid-template-columns: 1fr; gap: 24px; }
  .big { font-size: 72px; }
  .form-grid { grid-template-columns: 1fr; }
  .panel { padding: 20px 16px; }
  .star-input svg { width: 30px; height: 30px; }
  .lockup .nm { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
