/* The customer's pages, in the website's look: Sharp Earth for words, Lars Mono for small print,
   black on paper with one blue and a lilac tint, hairlines between the parts. */

@font-face { font-family: "Sharp Earth OLPE"; src: url("/static/fonts/sharp-earth-light.woff2") format("woff2"); font-weight: 300; font-display: block; }
@font-face { font-family: "Sharp Earth OLPE"; src: url("/static/fonts/sharp-earth-regular.woff2") format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "Sharp Earth OLPE"; src: url("/static/fonts/sharp-earth-medium.woff2") format("woff2"); font-weight: 500; font-display: block; }
@font-face { font-family: "Lars Mono"; src: url("/static/fonts/lars-mono.woff2") format("woff2"); font-weight: 400; font-display: block; }

:root {
  color-scheme: light;
  --sans: "Sharp Earth OLPE", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Lars Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --paper: #fbfaf6;
  --tile: #efede6;
  --rule: #d9d6cc;
  --grey: #8e8e8e;
  --blue: #0000ff;
  --tint: #e3e3ff;
  --yellow: #ffcd3c;
  --red: #ff5b4a;
  --edge: 40px;
  --gap: 120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font: 400 15px/21px var(--sans); color: #000; background: var(--paper); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; }
h1, h2 { font: inherit; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; border-radius: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
::selection { background: var(--blue); color: #fff; }

.skip { position: absolute; left: -9999px; }
.g { color: var(--grey); }
.link { color: var(--blue); }
.link:hover { color: #000; }

/* header: one slim row that stays at the top, the hairline inset to the margins */
.util { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; height: 38px; padding: 2px var(--edge) 0; font-size: 14px; background: var(--paper); }
.util::after { content: ""; position: absolute; left: var(--edge); right: var(--edge); bottom: 0; height: 1px; background: var(--rule); }
.util .name { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.util .name svg { flex: none; width: 12px; height: 14px; }
.util nav { display: flex; gap: 22px; }
.util nav a { color: var(--grey); }
.util nav a[aria-current="page"] { color: #000; }
.util nav a:hover { color: var(--blue); }
.util .end { width: 137px; justify-content: flex-end; }   /* as wide as the name, so the middle links sit centred */
.burger, .menu, .menu .x { display: none; }

/* a page: its title and opening line, then sections with a big head */
.lead { margin: 64px var(--edge) 0; padding-bottom: 72px; border-bottom: 1px solid var(--rule); }
.lead.end { padding-bottom: 0; border-bottom: 0; }
.lead .actions { margin-top: 32px; }
.sec { margin: var(--gap) var(--edge) 0; }
.sec.first { margin-top: 0; padding-top: 22px; }
.h { font: 400 36px/42px var(--sans); letter-spacing: -0.012em; }
.h .g { display: block; }
.h a { color: var(--blue); }
.h a:hover { color: #000; }

.copy { max-width: 900px; margin-top: 32px; font: 400 19px/26px var(--sans); }
.copy p + p { margin-top: 14px; }
.copy a { color: var(--blue); }
.copy a:hover { color: #000; }
.copy .rows { margin-top: 0; }
.copy .rows + p { margin-top: 32px; }
.copy .tight { margin-top: 0; }

/* buttons: tinted, solid blue under the pointer */
.button { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 14px; font: 400 15px/1 var(--sans); background: var(--tint); color: var(--blue); white-space: nowrap; }
.button:hover { background: var(--blue); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sec .actions { margin-top: 28px; }

/* rows: a name, a mono line under it, a button at the right */
.rows { margin-top: 32px; font: 400 19px/26px var(--sans); }
.rows > li { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 12px 0 13px; border-top: 1px solid var(--rule); }
.rows > li:last-child { border-bottom: 1px solid var(--rule); }
.rows .g { display: block; margin-top: 2px; font: 400 11px/14px var(--mono); }

/* facts: a mono name, then the fact, between hairlines */
.spec { max-width: 640px; margin-top: 32px; font-size: 13px; line-height: 17px; }
.spec div { display: grid; grid-template-columns: 120px 1fr; align-items: center; padding: 8px 0 9px; border-top: 1px solid var(--rule); }
.spec div:last-child { border-bottom: 1px solid var(--rule); }
.spec dt { font: 400 11px/17px var(--mono); color: var(--grey); }
.spec dd { min-width: 0; }
.key { display: inline-block; padding: 4px 10px; background: var(--tint); color: var(--blue); font: 400 15px/21px var(--mono); letter-spacing: .04em; overflow-wrap: anywhere; user-select: all; }

/* the trial: a segment a day, the days used in yellow */
.days { max-width: 640px; margin-top: 28px; }
.days .line { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.days i { height: 10px; background: var(--tile); }
.days i.used { background: var(--yellow); }
.days .ends { display: flex; justify-content: space-between; margin-top: 6px; font: 400 11px/14px var(--mono); color: var(--grey); }

/* forms: a mono label over a line to write on */
.form { max-width: 640px; margin-top: 32px; }
.form label { display: block; font: 400 11px/14px var(--mono); color: var(--grey); }
.form input { display: block; width: 100%; margin-top: 4px; font: 400 19px/26px var(--sans); color: inherit; background: none; border: 0; border-bottom: 1px solid #000; border-radius: 0; padding: 4px 0 6px; }
.form input:focus { outline: none; border-bottom-color: var(--blue); }
.form .button { margin-top: 24px; }

/* footer: red, black type, one solid black button */
.foot { margin-top: 140px; padding: 64px var(--edge) 28px; background: var(--red); color: #000; }
.foot a:hover { color: #fff; }
.foot .tp, .foot .base { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 14px; }
.news { grid-column: 1 / 6; font: 400 17px/23px var(--sans); }
.signup { display: flex; gap: 8px; margin-top: 16px; max-width: 400px; }
.signup input[type="email"] { flex: 1; min-width: 0; height: 34px; font: 400 13px/17px var(--mono); color: inherit; border: 0; border-bottom: 1px solid #000; border-radius: 0; padding: 0; background: none; }
.signup input[type="email"]::placeholder { color: rgba(0, 0, 0, .55); }
.signup input[type="email"]:focus { outline: none; border-bottom-color: #fff; }
.signup button { height: 34px; padding: 0 14px; font: 400 14px/1 var(--sans); background: #000; color: #fff; }
.signup button:hover { background: #fff; color: #000; }
.fc { grid-column: 7 / 13; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 14px; }
.fc h2 { font: 400 13px/17px var(--mono); padding-bottom: 7px; border-bottom: 1px solid rgba(0, 0, 0, .2); margin-bottom: 12px; }
.fc li + li { margin-top: 6px; }
.foot .base { margin-top: 64px; align-items: end; }
.l6 { grid-column: 1 / 8; position: relative; width: 500px; }
.l6 img { width: 100%; }
.l6 .reg { position: absolute; top: calc(24.8% - 6px); right: -22px; font: 400 20px/1 "Helvetica Neue", Helvetica, Arial, sans-serif; }
.small { grid-column: 9 / 13; display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid rgba(0, 0, 0, .2); font: 400 13px/17px var(--mono); }
.small span { color: rgba(0, 0, 0, .55); }

@media (max-width: 760px) {
  :root { --edge: 20px; --gap: 56px; }
  .util { height: 52px; padding: 0 var(--edge); }
  .util nav { display: none; }
  .burger { display: grid; place-items: center; width: 40px; height: 40px; margin-right: -11px; }
  .burger svg { width: 18px; height: 12px; fill: currentColor; }

  /* the menu: no JavaScript, it opens as the page's #menu target and covers the screen */
  .menu:target { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; background: var(--paper); overflow-y: auto; }
  body:has(.menu:target) { overflow: hidden; }
  .menu .util { position: relative; }
  .menu .x { display: grid; place-items: center; width: 40px; height: 40px; margin-right: -12px; }
  .menu .x svg { width: 16px; height: 16px; fill: currentColor; }
  .menu nav { display: block; padding: 12px var(--edge) 0; }
  .menu nav a { display: block; font: 400 28px/34px var(--sans); padding: 12px 0 13px; border-bottom: 1px solid var(--rule); }
  .menu nav a[aria-current="page"] { color: var(--blue); }

  .lead { margin-top: 40px; padding-bottom: 56px; }
  .lead .actions { margin-top: 24px; }
  .sec { padding-top: 14px; border-top: 1px solid var(--rule); }
  .sec.first { padding-top: 14px; border-top: 0; }
  .h { font-size: 24px; line-height: 30px; letter-spacing: -0.01em; }
  .copy { margin-top: 24px; font-size: 16px; line-height: 23px; }
  .copy p + p { margin-top: 12px; }
  .copy .rows + p { margin-top: 24px; }
  .button { height: 40px; }
  .rows { margin-top: 24px; font-size: 16px; line-height: 22px; }
  .rows > li { align-items: flex-start; padding: 10px 0 11px; }
  .spec { margin-top: 24px; }
  .form { margin-top: 24px; }
  .form input { font-size: 16px; line-height: 22px; }

  .foot { margin-top: 96px; padding: 48px var(--edge) 28px; }
  .foot .tp, .foot .base { display: block; }
  .news { font-size: 16px; line-height: 22px; }
  .signup { max-width: none; }
  /* the first column as wide as its longest line, so nothing in it wraps */
  .fc { margin-top: 44px; grid-template-columns: max-content 1fr 1fr; column-gap: 16px; }
  .foot .base { margin-top: 52px; }
  .l6 { width: 250px; }
  .l6 .reg { right: -13px; top: calc(24.8% - 2px); font-size: 11px; }
  .small { margin-top: 32px; }
}
