/* raintally.shop: the front page and /questions/. A field of the accent, heavy grotesque type, flat buttons. */
:root {
  --blue: #1F5C7A;
  --blue-d: #164559;
  --ink: #0E2430;
  --mute: #4A5F6B;
  --line: #D5E0E6;
  --wash: #EEF3F6;
  --hi: #FFD23F;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --pad: 20px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.55 var(--sans); color: var(--ink); background: #fff; }
img { display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-stretch: 78%; font-weight: 850; line-height: .98; letter-spacing: -.01em; margin: 0; }
h2 { font-size: clamp(32px, 4.4vw, 54px); }
h3 { font-size: 24px; line-height: 1.05; }
p { margin: 0; }
p, dd, li { text-wrap: pretty; }
h1, h2, h3, dt { text-wrap: balance; }
.mono { font-family: var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fine, .small { font-size: 14px; color: var(--mute); }

/* Buttons: big, flat, square. Hi-vis yellow on blue; the blue on white. */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; background: var(--hi); color: var(--ink); font: 800 19px/1 var(--sans); font-stretch: 85%; text-decoration: none; border: 0; border-radius: 3px; cursor: pointer; }
.btn:hover { background: #FFE07A; }
.btn:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--hi); outline-offset: 3px; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 16px; }

/* Nav sits on the field */
.bar { display: flex; align-items: center; gap: 18px; padding: 12px var(--pad); background: var(--blue); color: #fff; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: inherit; text-decoration: none; font-weight: 800; font-size: 19px; font-stretch: 85%; }
.brand img { border-radius: 4px; }
.bar .brand { margin-right: auto; }
.bar .login { color: #fff; text-decoration: none; font-weight: 600; padding: 10px 4px; }
.bar .login:hover { text-decoration: underline; }

/* The field of colour: blue down to where the product overlaps into white */
.field { position: relative; color: #fff; background: linear-gradient(var(--blue) calc(100% - 150px), #fff calc(100% - 150px)); padding: 20px var(--pad) 0; }
.field-in { max-width: 1320px; margin: 0 auto; }
.field h1 { font-size: clamp(44px, 11.5vw, 76px); font-weight: 900; line-height: .94; max-width: 17ch; }
.field-lede { margin-top: 18px; }
.sub { font-size: 18px; line-height: 1.45; color: #E3EEF3; max-width: 34em; }
.cta { display: flex; align-items: center; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.cta span { font-size: 15px; line-height: 1.3; color: #E3EEF3; }
.gauge { display: none; }

/* The product as it runs */
.screen { margin: 26px 0 0; position: relative; max-height: 520px; overflow: hidden; background: #fff; color: var(--ink); border-radius: 6px; box-shadow: 0 24px 50px -20px rgba(8, 30, 42, .55), 0 0 0 1px rgba(14, 36, 48, .08); }
.screen::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(rgba(255,255,255,0), #fff 85%); pointer-events: none; }
.screen-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 16px; background: var(--ink); color: #fff; font-size: 14px; }
.screen-top b { font-size: 16px; }
.screen-top span { color: #A9C2CF; font-size: 12px; }
.screen-body { padding: 14px 16px 30px; }
.where { font-size: 13.5px; color: var(--mute); line-height: 1.4; }
.where + .where { margin-top: 3px; }
.where b { color: var(--ink); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 12px; }
.tiles div { background: var(--wash); border-radius: 4px; padding: 10px; }
.tiles b { display: block; font: 600 30px/1 var(--mono); color: var(--blue); }
.tiles span { display: block; font-size: 12px; line-height: 1.25; margin-top: 6px; color: var(--mute); }
.due { background: #FFF4C7; border-left: 5px solid var(--hi); padding: 10px 12px; font-size: 14.5px; line-height: 1.35; }
.days { list-style: none; margin: 10px 0 0; padding: 0; }
.days li { display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.days .d { font-weight: 700; font-size: 16px; line-height: 1.1; }
.days .r { font: 600 18px/1.1 var(--mono); }
.days small { display: block; font: 400 12px/1.3 var(--sans); color: var(--mute); margin-top: 3px; }
.t { font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 3px; }
.t.lost { background: var(--blue); color: #fff; }
.t.ok { background: var(--wash); color: var(--ink); }

/* Sections */
main section { padding: 56px var(--pad); }
main section > *, .tight { max-width: 1320px; margin-left: auto; margin-right: auto; }

#how { padding-top: 40px; }
#how h2 { max-width: 15ch; margin-left: 0; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 26px; }
.steps li { border-top: 4px solid var(--ink); padding-top: 16px; }
.steps h3 { margin: 12px 0 8px; }
.steps p { color: var(--mute); }
.tally { display: block; height: 30px; width: calc(var(--n) * 10px); background: repeating-linear-gradient(90deg, var(--blue) 0 5px, transparent 5px 10px); }

#what { background: var(--ink); color: #fff; display: grid; gap: 28px; }
#what h2 { max-width: 14ch; }
.what-text p { margin-top: 14px; color: #C9D8E0; max-width: 32em; }
#what .fine { color: #9FB6C2; }
.sheet { background: #fff; color: var(--ink); padding: 18px 16px; border-radius: 4px; overflow-x: auto; background-image: linear-gradient(90deg, transparent 0 calc(100% - 8px), var(--blue) calc(100% - 8px)); }
.sheet-top { display: flex; justify-content: space-between; font: 500 12px/1.4 var(--mono); color: var(--mute); border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.sheet h3 { font-size: 22px; margin-top: 12px; }
.sheet-src { font-size: 12.5px; color: var(--mute); margin: 4px 0 10px; }
.sheet table { width: 100%; border-collapse: collapse; font: 500 13px/1.3 var(--mono); }
.sheet th { text-align: left; font: 700 12px/1.2 var(--sans); color: var(--mute); padding: 6px 6px 6px 0; border-bottom: 1px solid var(--line); }
.sheet td { padding: 7px 6px 7px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sheet tr.hit td { background: #E3EEF3; font-weight: 600; }
.sheet tr.gap td { color: var(--mute); }
.sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.sum div { border-top: 3px solid var(--blue); padding-top: 6px; }
.sum span { display: block; font-size: 12px; color: var(--mute); line-height: 1.25; }
.sum b { font: 600 24px/1.2 var(--mono); }

#price { display: grid; gap: 36px; }
.plan { background: var(--blue); color: #fff; padding: 28px 22px; border-radius: 4px; align-self: start; }
.plan h2 { font-size: 30px; }
.amount { display: flex; align-items: baseline; gap: 10px; margin: 16px 0 10px; }
.amount b { font: 900 84px/.9 var(--sans); font-stretch: 78%; }
.amount span { font-size: 20px; color: #E3EEF3; }
.plan p { color: #E3EEF3; margin-bottom: 22px; }
.plan .btn { width: 100%; }
#faq dl, .qa dl { margin: 0; }
#faq dt, .qa dt { font-weight: 800; font-size: 19px; line-height: 1.25; font-stretch: 90%; padding-top: 16px; border-top: 1px solid var(--line); }
#faq dt:first-child, .qa dt:first-child { border-top: 4px solid var(--ink); }
#faq dd, .qa dd { margin: 6px 0 18px; color: var(--mute); }
.more { display: inline-block; margin-top: 4px; font-weight: 700; padding: 8px 0; }

.band { background: var(--blue); color: #fff; text-align: left; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
main section.band > * { margin-left: 0; }
.band h2 { font-size: clamp(36px, 6vw, 72px); max-width: 16ch; }

.foot { padding: 32px var(--pad) 40px; background: var(--ink); color: #C9D8E0; font-size: 14px; }
.foot > * { max-width: 1320px; margin-left: auto; margin-right: auto; }
.foot .brand { color: #fff; }
.foot p { margin-top: 12px; }
.foot nav { margin-top: 12px; }
.foot a { color: #fff; }
.foot nav a { display: inline-block; padding: 12px 4px; min-width: 44px; text-align: center; }

/* /questions/ */
.field-short { background: var(--blue); padding-bottom: 44px; }
.field-short .sub { margin-top: 14px; }
.qa dl { display: grid; gap: 0 56px; }
.qa dl > div { border-top: 1px solid var(--line); }
.qa dl > div:first-child { border-top: 4px solid var(--ink); }
.qa dt, .qa dt:first-child { border-top: 0; }
@media (min-width: 900px) { .qa dl { grid-template-columns: 1fr 1fr; } .qa dl > div:nth-child(2) { border-top: 4px solid var(--ink); } }
.tint { background: var(--wash); }
.tint h2 + p { margin: 12px 0 18px; color: var(--mute); max-width: 40em; }
.demo-form { display: flex; gap: 10px; flex-wrap: wrap; }
.demo-form input { flex: 1 1 260px; min-height: 56px; padding: 0 14px; font: 400 17px var(--sans); border: 2px solid var(--ink); border-radius: 3px; background: #fff; color: var(--ink); }
.demo-form .btn { background: var(--blue); color: #fff; }
.demo-form .btn:hover { background: var(--blue-d); }
.msg { margin: 12px 0; font-size: 15px; }
.msg.err { color: #A3261B; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: spin 1s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
.stations { list-style: none; padding: 0; margin: 0 0 14px; }
.stations li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.stations .rec { font-weight: 600; }
.stations .mi { font-family: var(--mono); white-space: nowrap; }
.tbl-wrap { overflow-x: auto; background: #fff; border-radius: 4px; }
.ten { width: 100%; border-collapse: collapse; font: 500 14px/1.3 var(--mono); }
.ten caption { text-align: left; font: 400 14px/1.4 var(--sans); padding: 12px; color: var(--mute); }
.ten th { font: 700 12px/1.2 var(--sans); text-transform: uppercase; color: var(--mute); text-align: right; padding: 8px 12px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.ten td { text-align: right; padding: 7px 12px; border-bottom: 1px solid var(--line); }
.ten th:first-child, .ten td:first-child { text-align: left; font-family: var(--sans); font-weight: 600; }
.ten tfoot td { font-weight: 700; border-bottom: 0; }
.demo-out .small { margin-top: 10px; }
.two-col { display: grid; gap: 44px; }
.two-col h2 + p { margin: 12px 0 16px; color: var(--mute); }
.src, .trades { list-style: none; padding: 0; margin: 0; }
.src li, .trades li { padding: 12px 0; border-top: 1px solid var(--line); }
.trades b { display: block; font-size: 18px; }
.trades span { color: var(--mute); }

/* Computer: the field spans the width; the product breaks out of its lower edge */
@media (min-width: 900px) {
  :root { --pad: 48px; }
  .bar { padding-top: 16px; padding-bottom: 16px; }
  .field { padding-top: 26px; padding-left: 96px; background: linear-gradient(var(--blue) calc(100% - 210px), #fff calc(100% - 210px)); }
  .field-short { padding-bottom: 60px; background: var(--blue); }
  .field-in { display: grid; grid-template-columns: 5fr 7fr; column-gap: 56px; }
  .field h1 { grid-column: 1 / -1; font-size: clamp(56px, 5.4vw, 80px); max-width: 21ch; }
  .field-short .field-in { display: block; }
  .field-lede { margin-top: 30px; align-self: start; }
  .sub { font-size: 20px; }
  .screen { margin-top: 30px; max-height: 470px; }
  .gauge { display: flex; flex-direction: column; justify-content: space-between; position: absolute; left: 0; top: 0; bottom: 210px; width: 56px; padding: 18px 0; border-right: 2px solid rgba(255,255,255,.35); background: repeating-linear-gradient(180deg, transparent 0 13px, rgba(255,255,255,.35) 13px 14px) right / 14px 100% no-repeat; font: 500 11px/1 var(--mono); color: #A9C9D9; }
  .gauge span { padding-left: 10px; }
  main section { padding-top: 84px; padding-bottom: 84px; }
  #how { padding-top: 56px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  #what { grid-template-columns: 5fr 7fr; align-items: center; column-gap: 64px; }
  #what > * { margin: 0; }
  #price { grid-template-columns: 4fr 7fr; column-gap: 72px; }
  #price > * { margin: 0; }
  .band { flex-direction: row; align-items: center; justify-content: space-between; }
  .band > * { margin: 0 !important; }
  main section.band { padding-left: max(var(--pad), calc((100% - 1320px) / 2)); padding-right: max(var(--pad), calc((100% - 1320px) / 2)); }
  .two-col { grid-template-columns: 1fr 1fr; column-gap: 72px; }
  .two-col > * { margin: 0; }
}
@media (min-width: 1500px) {
  #what, #price, .two-col { padding-left: calc((100% - 1320px) / 2); padding-right: calc((100% - 1320px) / 2); }
}
