:root {
  --page:        #7c8085;
  --panel:       #ffffff;
  --tab-idle:    #9a9ea3;
  --ink:         #171717;
  --price:       #0000ff;
  --button:      #111111;
  --button-hot:  #363636;
  --contact-bg:  #ededed;
  --error:       #c62828;
  --rule:        #d7d7d7;

  --tagline-lift:  10px;
  --tabs-lift:     20px;
  --panel-min-h:   600px;
  --tab-pad-x:     40px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 40px 24px 72px;
  background: var(--page);
  color: var(--ink);
  font-family: "Josefin Sans", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

/* ---------------- masthead ---------------- */

.masthead {
  max-width: 1180px;
  margin: 0 auto 30px;
  text-align: center;
}

.logo {
  margin: 0;
  font-size: clamp(64px, 12vw, 112px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  color: #ffffff;
}

.tagline {
  position: relative;
  top: calc(-1 * var(--tagline-lift));
  margin: 6px 0 0;
  font-size: 18px;
  letter-spacing: 0.22em;
  color: #000000;
}

/* ---------------- tabs ---------------- */

.tabs {
  max-width: 1180px;
  margin: calc(-1 * var(--tabs-lift)) auto 0;
  display: flex;
  gap: 4px;
  padding-left: 18px;
}

.tab {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  color: #171717;
  background: var(--tab-idle);
  padding: 11px var(--tab-pad-x) 12px;
  border-radius: 8px 8px 0 0;
  position: relative;
  top: 3px;
}

.tab:hover { background: #a9adb2; }

.tab.is-active {
  background: var(--panel);
  top: 0;
  padding-bottom: 15px;
  margin-bottom: -3px;
}

.tab:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

/* ---------------- panel ---------------- */

.panel {
  max-width: 1180px;
  margin: 0 auto;
  background: var(--panel);
  border-radius: 0 10px 10px 10px;
  padding: 40px;
  min-height: var(--panel-min-h);
}

.tabpanel:focus-visible { outline: none; }

/* ---------------- plugins ---------------- */

.product {
  display: grid;
  grid-template-columns: 460px minmax(0, 1fr) 190px;
  gap: 34px;
  align-items: start;
}

.shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.watch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

.watch:hover span { text-decoration: underline; }

.watch__icon {
  width: 30px;
  height: auto;
  display: block;
}

.product__name {
  margin: 0 0 14px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}

.product__copy p {
  margin: 0;
  max-width: 46ch;
}

.product__buy {
  text-align: center;
  border-left: 1px solid var(--rule);
  padding-left: 28px;
}

.price {
  margin: 0 0 18px;
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  color: var(--price);
}

.buy-note {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: #555555;
}

/* ---------------- buttons ---------------- */

.cta {
  display: inline-block;
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #ffffff;
  background: var(--button);
  padding: 12px 40px;
  border-radius: 6px;
}

.cta:hover { background: var(--button-hot); }

.cta:focus-visible {
  outline: 3px solid var(--price);
  outline-offset: 2px;
}

/* ---------------- about ---------------- */

.prose {
  max-width: 62ch;
  font-size: 19px;
}

.prose p { margin: 0 0 1em; }

/* ---------------- contact ---------------- */

.contact {
  max-width: 560px;
  background: var(--contact-bg);
  border-radius: 10px;
  padding: 30px 32px 34px;
}

.field { display: block; margin-bottom: 4px; }

.field__label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.contact input,
.contact textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #bcbcbc;
  border-radius: 6px;
  padding: 10px 12px;
}

.contact textarea { resize: vertical; line-height: 1.5; }

.contact input:focus-visible,
.contact textarea:focus-visible {
  outline: 2px solid var(--price);
  outline-offset: 1px;
}

.contact input.is-wrong { border-color: var(--error); }

.error {
  margin: 6px 0 16px;
  color: var(--error);
  font-weight: 600;
  font-size: 15px;
}

.counter {
  margin: 6px 0 20px;
  font-size: 14px;
  color: #5a5a5a;
}

.sent {
  margin: 14px 0 0;
  font-weight: 600;
}

/* ---------------- narrow screens ---------------- */

@media (max-width: 860px) {
  body { padding: 28px 14px 56px; }

  .product {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .product__buy {
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding-left: 0;
    padding-top: 26px;
    text-align: left;
  }

  .panel { padding: 26px 20px; }

  .tabs { padding-left: 8px; }

  .tab { padding: 10px 16px 11px; }

  .tab.is-active { padding-bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* TEMPORARY - delete before the site goes public */
.paidtoggle {
  position: fixed;
  top: 10px;
  right: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 7px;
  background: #ffe9a8;
  border: 1px solid #b49a4a;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 600;
  color: #3b3000;
  cursor: pointer;
}
