/* Frozen Rope marketing site: the shared base for the home page (index.html), with its
   page-specific layout in css/home.css.
   The brand carries the page: navy, sky blue, gold and cream, Teko for headings and
   Montserrat for reading (the same system as the logo and the rest of the site). The gold
   is the rope: a short gold rule under each section heading.
   The product's own colours appear only inside its screenshots. */

:root {
  --navy: #1E3554;
  --navy-dark: #162840;
  --navy-light: #2A4568;
  --sky: #7FB6D6;
  --sky-dark: #5A9FC9;
  --sky-light: #BFD7E6;
  --gold: #D4AE73;
  --gold-dark: #C49A5A;
  --cream: #F4F1EB;
  --charcoal: #2B2E34;
  --muted: #4E5A68;          /* reading-grade grey on cream (6.6:1); the brand grey is for rules */
  --line: #D9D3C7;           /* hairlines on cream */
  --display: "Teko", "Arial Narrow", sans-serif;
  --body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--cream); color: var(--navy);
  font: 400 16.5px/1.65 var(--body); -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--sky-dark); }
:focus-visible { outline: 3px solid var(--sky-dark); outline-offset: 3px; }
p, li, dd { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; margin: 0; font-family: var(--display); font-weight: 600; }
h2 { font-size: clamp(40px, 5vw, 64px); line-height: .9; color: var(--navy); }
h3 { font-size: 30px; line-height: 1; color: var(--navy); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: #fff; padding: 8px 12px; z-index: 50; }

/* ---- Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  font: 600 15px var(--body); text-decoration: none; border-radius: 4px; border: 2px solid transparent;
  cursor: pointer; white-space: nowrap;
}
.btn-sky { background: var(--sky); color: var(--navy); }
.btn-sky:hover { background: var(--sky-light); color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-light); color: #fff; }
.btn-ghost { border-color: #fff; color: #fff; background: transparent; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }

/* ---- Header (as on the rest of the site: white, logo left) ------------------------ */
.top { background: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand img { width: 210px; }
.topnav { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.topnav a { text-decoration: none; font-size: 14.5px; font-weight: 500; }
.topnav a:not(.btn):hover { color: var(--sky-dark); }
.topnav .signin { color: var(--muted); }
.topnav .btn { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.menu { display: none; margin-left: auto; background: none; border: 2px solid var(--navy); border-radius: 4px;
  font: 600 14.5px var(--body); padding: 6px 12px; color: var(--navy); cursor: pointer; }

/* ---- Hero: navy, as the brand's hero has always been ------------------------------- */
.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.hero h1 { line-height: .86; color: #fff; letter-spacing: .005em; }
.lede { font-size: 18px; color: #D6E2EC; max-width: 33em; margin: 22px 0 30px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.fine { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.hero .fine { color: var(--sky-light); }
.demo-error { font-size: 14px; margin: 8px 0 0; }
.hero .demo-error, .demo .demo-error { color: #FFC7BD; }
.hero :focus-visible, .demo :focus-visible { outline-color: var(--gold); }

/* ---- Shared content pieces ----------------------------------------------------------- */
.ticks { list-style: none; margin: 0 0 30px; padding: 0; max-width: 34em; }
.ticks li { padding: 10px 0 10px 30px; border-top: 1px solid var(--line); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 12px; height: 7px;
  border-left: 3px solid var(--gold-dark); border-bottom: 3px solid var(--gold-dark); transform: rotate(-45deg); }
.shot { border-radius: 4px; box-shadow: 0 20px 40px -26px rgba(30, 53, 84, .55); }
.index { margin: 0; border-top: 2px solid var(--navy); }
.index > div { display: grid; grid-template-columns: 8em 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.index dt { font: 600 24px/1 var(--display); padding-top: 3px; }
.index dd { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---- The demo band: navy, so the invitation is easy to find ---------------------------- */
.demo { background: var(--navy); color: #fff; padding: 72px 0; }
.demo-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.demo h2 { color: #fff; }
.demo p { color: #D6E2EC; max-width: 36em; margin: 16px 0 0; font-size: 17px; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.demo-actions .fine { width: 100%; color: var(--sky-light); margin: 0; }
.demo .demo-error { width: 100%; }

/* ---- Footer: charcoal, as on the rest of the site --------------------------------- */
.foot { background: var(--charcoal); color: #C9CED6; padding: 32px 0 40px; }
.foot-in { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.foot img { width: 160px; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot nav a { font-size: 14px; color: #E4E8EE; }
.foot nav a:hover { color: var(--sky); }
.foot p { margin: 0 0 0 auto; font-size: 13.5px; }
.foot :focus-visible { outline-color: var(--sky); }

/* ---- Smaller screens --------------------------------------------------------------- */
@media (max-width: 980px) {
  .demo-in { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 820px) {
  .menu { display: inline-block; }
  .topnav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 28px 18px; box-shadow: 0 8px 16px -12px rgba(0, 0, 0, .3); }
  .topnav.open { display: flex; }
  .topnav a { padding: 11px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .topnav .btn { margin-top: 12px; width: auto; border-bottom: 0; }
  .top-in { position: relative; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  body { font-size: 16px; }
  .brand img { width: 170px; }
  .lede { font-size: 16.5px; }
  .index > div { grid-template-columns: 1fr; gap: 4px; }
  .foot p { margin-left: 0; }
}
