: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:  14px;
  --tabs-lift:     20px;
  --panel-min-h:   600px;
  --tab-pad-x:     44px;
}

* { 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: 390px 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: 60px;
  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;
}

.specs {
  margin: 20px 0 0;
  padding-left: 20px;
  max-width: 46ch;
  list-style: disc;
}

.specs li {
  margin: 0 0 4px;
  font-weight: 600;
}

.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;
}

.contact__lead {
  margin: 0 0 24px;
  font-size: 18px;
}

.contact__email {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.contact__address {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  word-break: break-all;
}

.copybtn {
  appearance: none;
  border: 1px solid #bcbcbc;
  background: #ffffff;
  border-radius: 6px;
  cursor: pointer;
  padding: 7px;
  line-height: 0;
  color: var(--ink);
  flex: 0 0 auto;
}

.copybtn:hover { background: #f3f3f3; }

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

.copybtn svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.copied {
  font-size: 15px;
  font-weight: 600;
  color: #2e7d32;
}

@media (max-width: 860px) {
  .contact__address { font-size: 22px; }
}

.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;
}

/* ---------------- download page ---------------- */

.logo a {
  color: inherit;
  text-decoration: none;
}

.panel--solo { border-radius: 10px; }

.download {
  text-align: center;
  padding-top: 30px;
}

.download__title {
  margin: 0 0 48px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
}

.download__brand { color: #ffa500; }

.download__options {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 64px;
}

.download__option {
  width: 340px;
  max-width: 100%;
}

.download__option .cta {
  display: block;
  padding-left: 0;
  padding-right: 0;
}

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

/* ---------------- version line (under the Download button) ---------------- */

.version {
  margin: 10px 0 0;
  font-size: 13px;
  color: #777777;
}

/* ---------------- screenshot lightbox ---------------- */

.shot { cursor: zoom-in; }

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

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.75);   /* the dimming - 0.75 = 75% dark */
  cursor: zoom-out;
}

.lightbox[hidden] { display: none; }

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* ---------------- second screenshot (small thumbnail under the main one) ---------------- */

.shot--thumb {
  width: 25%;
  margin-top: 12px;
  border: 1px solid var(--rule);
}

.lightbox__img { cursor: pointer; }       /* clicking the big picture shows the next one */

.lightbox { padding-bottom: 56px; }       /* room for the 1 / 2 counter */

.lightbox__count {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  margin: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #ffffff;
  pointer-events: none;
}

/* ---------------- clickable email in the Contact tab ---------------- */

a.contact__address {
  color: inherit;
  text-decoration: none;
}

a.contact__address:hover { text-decoration: underline; }

/* ---------------- footer (every page) ---------------- */

.site-footer {
  max-width: 1180px;
  margin: 22px auto 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 26px;
  font-size: 14px;
}

.site-footer a {
  color: #ffffff;
  text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; }

/* ---------------- legal pages (terms, privacy, refunds) ---------------- */

.legal {
  max-width: 72ch;
  margin: 0 auto;
}

.legal__title {
  margin: 0 0 6px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
}

.legal__date {
  margin: 0 0 30px;
  font-size: 14px;
  color: #777777;
}

.legal h3 {
  margin: 28px 0 6px;
  font-size: 20px;
  font-weight: 700;
}

.legal p,
.legal ul { margin: 0 0 12px; }

.legal ul { padding-left: 22px; }

.legal li { margin-bottom: 4px; }

.legal a { color: var(--price); }

/* ---------------- 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; }

  .download__title { font-size: 30px; }

  .download__options { gap: 36px; }

  .shot--thumb { width: 30%; }

  .legal__title { font-size: 30px; }
}

@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;
}
