:root {
    --navy:        #0d2440;
    --navy-light:  #1b3a63;
    --fairway:     #1f9d55;
    --fairway-dk:  #15803d;
    --sand:        #e7dcc4;
    /* Paper is #FBFAF7 across the app, the website and print — one name, one
       hex. It read #faf8f4 here, which is the same mistake in miniature. */
    --paper:       #FBFAF7;
    --card:        #ffffff;
    --ink:         #12202e;
    --ink-soft:    #4d5f70;
    --ink-faint:   #7b8b99;
    --rule:        #e4e0d7;

    --display: "Instrument Serif", Georgia, "Times New Roman", serif;
    --body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  }

  * { box-sizing: border-box; }

  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
  }

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

  .shell { max-width: 62rem; margin: 0 auto; padding: 0 1.5rem; }

  a { color: inherit; }
  a:focus-visible,
  button:focus-visible {
    outline: 2px solid var(--fairway);
    outline-offset: 3px;
    border-radius: 2px;
  }

  /* ---------- Hero ---------- */

  .hero {
    background: var(--navy);
    color: #fff;
    padding: 2rem 0 4.5rem;
  }

  .brandbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 4rem;
  }
  /*
    The drawn lockup, not the mark beside typeset text.

    The wordmark has its own lettering — using the mark and then setting
    "RoundHQ" in the body face meant the header and the link-preview card were
    two different logos, and only one of them was the real one.

    Sized off the viewport so it holds its presence on a phone without
    crowding the nav link beside it. This is the first thing anybody sees of
    the brand, and at 2rem it was apologising for itself.
  */
  .wordmark { display: inline-flex; align-items: center; color: #fff; text-decoration: none; }
  .wordmark svg { height: clamp(2.1rem, 5.5vw, 3rem); width: auto; display: block; }

  .navlink {
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
  }
  .navlink:hover { color: #fff; }

  /*
    On a narrow phone the lockup and this link fight for the same row, and the
    lockup should win — there is a full-width "Open the app" button a few
    centimetres below it, so nothing is lost by dropping the duplicate.
  */
  @media (max-width: 30rem) {
    .navlink { display: none; }
  }

  .hero h1 {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(2.6rem, 7.5vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -0.015em;
    margin: 0;
    max-width: 15ch;
    text-wrap: balance;
  }
  .hero h1 em { font-style: italic; color: var(--sand); }

  .hero p.lede {
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    color: rgba(255,255,255,0.78);
    max-width: 46ch;
    margin: 1.5rem 0 0;
  }

  .cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.8rem 1.4rem;
    border-radius: 6px;
    transition: background-color 140ms ease, color 140ms ease;
  }
  .btn-primary { background: var(--fairway); color: #fff; }
  .btn-primary:hover { background: var(--fairway-dk); }
  .btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,0.35); }
  .btn-ghost:hover { background: rgba(255,255,255,0.09); }

  .hero-note {
    margin: 1.75rem 0 0;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.5);
  }

  /*
    The paragraph under the sub-line. The sub-line is the claim and this is the
    explanation, so it sits a step back from it — quieter than .lede, but not as
    quiet as .hero-note, which is a footnote and would bury a sentence that
    actually has to be read.
  */
  .hero p.hero-body {
    font-size: 1.02rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.62);
    max-width: 56ch;
    margin: 1.15rem 0 0;
  }

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

  section.band { padding: 4.5rem 0; }
  section.band + section.band { border-top: 1px solid var(--rule); }

  .eyebrow {
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fairway-dk);
    margin: 0 0 0.85rem;
  }

  h2 {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(1.9rem, 4.2vw, 2.7rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 0;
    max-width: 20ch;
    text-wrap: balance;
  }

  .section-lede {
    font-size: 1.05rem;
    color: var(--ink-soft);
    max-width: 52ch;
    margin: 1rem 0 0;
  }

  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1.75rem;
    margin-top: 2.75rem;
  }

  .item h3 {
    font-family: var(--body);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    line-height: 1.3;
  }
  .item p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

  .item.numbered { display: flex; flex-direction: column; gap: 0.55rem; }
  .step {
    font-family: var(--display);
    font-size: 2rem;
    line-height: 1;
    color: var(--sand);
  }

  /* ---------- Formats ---------- */

  /*
    Definitions in the open rather than behind a hover.

    Hover doesn't exist on a phone, which is most of this audience, and it is
    invisible to anyone using a keyboard or a screen reader. A definition
    nobody discovers isn't reassurance, it's decoration — and reassurance is
    the entire job of this section.

    Three groups because they are three different decisions: what the round is
    scored as, whether it is played in teams, and what runs across the week.
    An organiser picks one from each, and the grouping says so without a
    paragraph explaining it.
  */
  .chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
  .chip {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--rule);
    border-radius: 99px;
    background: var(--card);
    color: var(--ink-soft);
  }

  /*
    A <details>, not a hover and not a script.

    It opens on click and on Enter, announces itself as expandable to a screen
    reader, and behaves identically on a phone and a desktop — which is the
    whole problem with hovering. The browser does all of it; there is nothing
    here to break.
  */
  .explainer { margin-top: 1.5rem; }

  .explainer summary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    list-style: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--fairway-dk);
    padding: 0.2rem 0;
  }
  .explainer summary::-webkit-details-marker { display: none; }
  .explainer summary::after {
    content: "";
    width: 0.42rem;
    height: 0.42rem;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: rotate(45deg) translate(-0.1em, -0.1em);
    transition: transform 140ms ease;
  }
  .explainer[open] summary::after {
    transform: rotate(-135deg) translate(-0.05em, -0.05em);
  }
  .explainer summary:hover { color: var(--fairway); }
  .explainer summary:focus-visible { outline: 2px solid var(--fairway); outline-offset: 3px; }

  .explainer-body {
    border-left: 2px solid var(--rule);
    padding-left: 1.25rem;
    margin-top: 0.5rem;
  }

  .fmt-group { margin-top: 1.75rem; }
  .fmt-group:first-child { margin-top: 1.25rem; }

  .fmt-group h3 {
    font-family: var(--body);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin: 0 0 0.9rem;
  }

  dl.fmts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 0.9rem 2rem;
    margin: 0;
  }
  dl.fmts > div {
    border-top: 1px solid var(--rule);
    padding-top: 0.7rem;
  }
  dl.fmts dt {
    font-weight: 600;
    color: var(--ink);
    font-size: 0.98rem;
  }
  dl.fmts dd {
    margin: 0.2rem 0 0;
    color: var(--ink-soft);
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .fmt-foot {
    margin: 2.5rem 0 0;
    color: var(--ink-soft);
    font-size: 0.98rem;
    max-width: 52ch;
  }

  /*
    A single link under a section lede — "see it live", not a button.

    Styled as the explainer's summary is, because it does the same job: an
    invitation to go and look, in the green that means "this is a link" on this
    page. One per section, deliberately; six links to six screens is a menu
    nobody reads when the demo already lists them.
  */
  .morelink { margin: 1.25rem 0 0; }
  .morelink a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--fairway-dk);
    text-decoration: none;
  }
  .morelink a:hover { color: var(--fairway); text-decoration: underline; }

  /* The qualifying line after a pair of options — the third way, in passing. */
  .aside {
    margin: 2rem 0 0;
    font-style: italic;
    color: var(--ink-soft);
    font-size: 0.98rem;
    max-width: 52ch;
  }

  /* ---------- Screens ---------- */

  .screens {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1.25rem;
    margin-top: 2.75rem;
  }
  .screen {
    background: var(--navy);
    color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 9.5rem;
  }
  .screen h3 {
    font-family: var(--body);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
  }
  .screen p { margin: 0; font-size: 0.95rem; color: rgba(255,255,255,0.72); }
  .screen .tag {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sand);
    font-weight: 600;
    margin-bottom: 0.2rem;
  }

  /* ---------- Honest note ---------- */

  .note {
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2.5rem;
  }
  .note p { margin: 0 0 0.9rem; color: var(--ink-soft); max-width: 58ch; }
  .note p:last-child { margin-bottom: 0; }
  .note strong { color: var(--ink); font-weight: 600; }

  /* ---------- Contact ---------- */

  /* The eyebrow's green reads as dirt on navy; sand is the light-ground twin. */
  .eyebrow-on-navy { color: var(--sand); }

  .contact { background: var(--navy); color: #fff; padding: 4.5rem 0; }
  .contact h2 { color: #fff; }
  .contact p { color: rgba(255,255,255,0.75); max-width: 46ch; margin: 1rem 0 0; }
  /* Two of these now — a phone number and an address — so they stack. */
  .contact a.mail {
    display: block;
    width: fit-content;
    margin-top: 1.25rem;
    font-family: var(--display);
    font-size: clamp(1.4rem, 4vw, 2rem);
    color: var(--sand);
    text-decoration: none;
    border-bottom: 1px solid rgba(231,220,196,0.4);
    word-break: break-word;
  }
  .contact a.mail:hover { border-bottom-color: var(--sand); }

  /* ---------- Legal pages ---------- */

  /*
    A document, not a landing page.

    The marketing sections set their own measure per block; a policy is read
    top to bottom, so it gets one column at a comfortable measure and nothing
    else. 70ch is the brief's number and the long-standing advice for continuous
    prose — past about 75 the eye loses the start of the next line.
  */
  .legalbar { background: var(--navy); padding: 1.5rem 0; }
  .legalbar .wordmark svg { height: 2.1rem; }

  .legal { max-width: 70ch; }

  .legal h1 {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(2.1rem, 5vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--navy);
    margin: 0;
  }

  .legal-version {
    margin: 0.6rem 0 0;
    color: var(--ink-soft);
    font-size: 0.95rem;
  }

  /*
    Sized for a document rather than a section heading. The site's h2 runs to
    2.7rem, which across fifteen numbered sections reads as fifteen shouts.
  */
  .legal h2 {
    font-family: var(--display);
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--navy);
    max-width: none;
    margin: 2.75rem 0 0.75rem;
  }

  .legal p { margin: 0 0 1rem; }
  .legal ul { margin: 0 0 1rem; padding-left: 1.25rem; }
  .legal li { margin: 0 0 0.5rem; }
  .legal a { color: var(--fairway-dk); }
  .legal a:hover { color: var(--fairway); }

  /*
    The retention table, which has to survive a phone.

    A real table, because it is tabular — but a four-column-wide cell of prose
    cannot be made to fit 360px, and a horizontal scrollbar inside a policy is
    how a reader misses the column that mattered. So below 36rem each row
    becomes a block and each cell carries its own heading, taken from the
    column it came from via data-label. Same markup, same reading order, no
    sideways scroll.
  */
  .retention {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1rem;
    font-size: 0.96rem;
  }
  .retention th,
  .retention td {
    text-align: left;
    vertical-align: top;
    padding: 0.7rem 1rem 0.7rem 0;
    border-bottom: 1px solid var(--rule);
  }
  .retention th { color: var(--ink); font-weight: 600; }
  .retention td { color: var(--ink-soft); }
  .retention td:first-child { color: var(--ink); }

  @media (max-width: 36rem) {
    .retention thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .retention tr {
      display: block;
      padding: 0.9rem 0;
      border-bottom: 1px solid var(--rule);
    }
    .retention td {
      display: block;
      padding: 0;
      border: 0;
    }
    .retention td + td { margin-top: 0.35rem; }
    .retention td::before {
      content: attr(data-label);
      display: block;
      font-size: 0.72rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--ink-faint);
      font-weight: 600;
      margin-bottom: 0.15rem;
    }
  }

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

  footer {
    padding: 2.25rem 0;
    font-size: 0.9rem;
    color: var(--ink-faint);
    border-top: 1px solid var(--rule);
  }
  .footrow { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; justify-content: space-between; }
  footer a { color: var(--ink-soft); text-decoration: none; }
  footer a:hover { color: var(--ink); text-decoration: underline; }
