/* ==========================================================================
   rigrate.app — the public pages.
   Same brand as the app: steel #39424F, amber #F59F00, Barlow Condensed
   headings over Barlow body. Tokens are lifted from www/css/app.css so the
   site and the product cannot drift apart.

   Self-hosted fonts, no analytics, no third-party requests of any kind. That
   is not only a performance choice — the privacy page on this very site says
   RigRate does not track anyone, and a page that phoned a CDN while saying so
   would be making a liar of itself.
   ========================================================================== */

@import url('fonts/fonts.css');

:root {
  --steel:      #39424F;
  --steel-deep: #2E3641;
  --amber:      #F59F00;
  --amber-ink:  #7A4E00;
  --amber-soft: #FFF4DC;
  --paper:      #FAFAF7;
  --card:       #FFFFFF;
  --ink:        #191B1E;
  --mut:        #6B7280;
  --line:       #E4E2DC;
  --go:         #188A50;
  --maxw:       720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Barlow', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------------- header ---------------- */

.top {
  background: linear-gradient(180deg, var(--steel) 0%, var(--steel-deep) 100%);
  color: #F2F4F7;
  padding: 18px 0;
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -.01em;
  line-height: 1;
  color: #FFFFFF;
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: var(--amber); }

.topnav { display: flex; gap: 18px; flex-wrap: wrap; }
.topnav a {
  color: #C9D1DC;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.topnav a:hover { color: #FFFFFF; }

/* ---------------- hero (landing only) ---------------- */

.hero {
  background: linear-gradient(180deg, var(--steel-deep) 0%, #262D37 100%);
  color: #F2F4F7;
  padding: 54px 0 60px;
  position: relative;
  overflow: hidden;
}
/* the app's amber corner glow, same idea, same restraint */
.hero::after {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 320px;
  height: 260px;
  background: radial-gradient(closest-side, rgba(245,159,0,.20), transparent);
  pointer-events: none;
}
.hero .wrap { position: relative; }

h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(38px, 9vw, 62px);
  line-height: 1.03;
  letter-spacing: -.015em;
  margin-bottom: 18px;
}
h1 em { font-style: normal; color: var(--amber); }

.lede { font-size: 19px; color: #C9D1DC; max-width: 30em; }
.lede strong { color: #FFFFFF; font-weight: 600; }

.points { list-style: none; margin: 24px 0 0; display: grid; gap: 12px; max-width: 34em; }
.points li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 17.5px;
  color: #DCE2EA;
}
.points .tick {
  flex: 0 0 auto;
  width: 21px; height: 21px;
  margin-top: 4px;
  border-radius: 6px;
  background: rgba(245,159,0,.16);
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ---------------- App Store badge placeholder ---------------- */

.cta { margin-top: 32px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px dashed rgba(255,255,255,.34);
  background: rgba(255,255,255,.05);
  color: #C9D1DC;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.25;
}
.badge b { display: block; color: #FFFFFF; font-size: 17px; font-weight: 700; }
.badge .apple { font-size: 26px; line-height: 1; }
.cta .soon {
  margin-top: 10px;
  font-size: 13px;
  color: #93A0B0;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ---------------- document pages ---------------- */

main { padding: 44px 0 20px; }

h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 0 0 6px;
}
h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 23px;
  line-height: 1.2;
  margin: 30px 0 6px;
}
.updated {
  font-size: 13.5px;
  color: var(--mut);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 700;
  margin-bottom: 26px;
}
main p { margin: 0 0 14px; }
main ul, main ol { margin: 0 0 16px 22px; }
main li { margin-bottom: 7px; }
main a { color: var(--amber-ink); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 20px 22px;
  margin: 0 0 18px;
}

/* the mailto row on /support */
.mail {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--amber);
  color: #241A05;
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 11px;
}
.mail:hover { filter: brightness(1.05); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 17.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--amber); font-weight: 800; flex: 0 0 auto; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 10px 0 0; color: #3A3F47; }

/* ---- the block the owner pastes into. Deliberately loud: it is meant to be
        impossible to deploy by accident without noticing. ---- */
.paste {
  border: 2px dashed var(--amber);
  background: var(--amber-soft);
  color: var(--amber-ink);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 0 0 22px;
}
.paste h3 { margin-top: 0; color: var(--amber-ink); }
.paste code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  background: rgba(0,0,0,.06);
  padding: 1px 5px;
  border-radius: 4px;
}

/* ---------------- footer ---------------- */

footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding: 26px 0 46px;
  font-size: 14.5px;
  color: var(--mut);
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--mut); text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 520px) {
  body { font-size: 16.5px; }
  .top .wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero { padding: 40px 0 46px; }
  footer .wrap { flex-direction: column; }
}
