/* =========================================================
   tomek.com.au — inner pages
   Same brand as the landing page: black, white, grey, a
   whisper of red. Lots of air, thin lines, no boxes.
   ========================================================= */

:root {
  --black: #000000;
  --white: #ffffff;
  --grey: #9a9a9a;
  --grey-dim: #6f6f6f;
  --line: rgba(255, 255, 255, 0.14);
  --red: #e10600;

  --font-sans: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  background: var(--black);
}

body {
  min-height: 100vh;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ---------- Page column ---------- */
.page {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 36px 24px 72px;
  opacity: 0;
  transition: opacity 0.9s ease;
}

body.is-ready .page {
  opacity: 1;
}

/* ---------- Back link ---------- */
.page__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--grey);
  transition: color 0.25s ease;
}

.page__back:hover,
.page__back:focus-visible {
  color: var(--white);
  outline: none;
}

.page__back-arrow {
  font-size: 13px;
  letter-spacing: 0;
}

/* ---------- Header ---------- */
.page__header {
  text-align: center;
  padding-top: 72px;
}

.page__title {
  font-size: clamp(22px, 6vw, 34px);
  font-weight: 300;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  line-height: 1.15;
}

.page__subtitle {
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ---------- Rules ---------- */
.rule {
  display: block;
  margin: 0 auto;
  height: 1px;
}

.rule--red {
  width: 56px;
  height: 2px;
  margin-top: 26px;
  background: var(--red);
}

.rule--split {
  width: 180px;
  height: 2px;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.35) 34.5%,
    transparent 34.5%,
    transparent 36%,
    var(--red) 36%,
    var(--red) 64%,
    transparent 64%,
    transparent 65.5%,
    rgba(255, 255, 255, 0.35) 65.5%,
    rgba(255, 255, 255, 0.35) 100%
  );
}

/* ---------- Options ---------- */
.options {
  margin-top: 88px;
  border-top: 1px solid var(--line);
}

.option {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 32px;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.option__name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  line-height: 1.6;
}

.option__desc {
  margin-top: 14px;
  max-width: 34em;
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--grey);
}

.option__price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  padding-top: 1px;
}

.option__amount {
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.option__duration {
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--grey);
  white-space: nowrap;
}

/* The initial consultation sits a touch larger, with a red mark */
.option--featured {
  padding: 48px 0;
}

.option--featured .option__name {
  font-size: 14px;
  letter-spacing: 0.3em;
}

.option--featured .option__name::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 16px;
  background: var(--red);
}

.option--featured .option__desc {
  margin-top: 18px;
  color: #b4b4b4;
}

.option--featured .option__amount {
  font-size: 26px;
}

/* ---------- CTA ---------- */
.cta-wrap {
  text-align: center;
  margin-top: 80px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  transition: border-color 0.3s ease;
}

.cta__arrow {
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0;
  transition: transform 0.3s ease;
}

.cta:hover,
.cta:focus-visible {
  border-color: var(--red);
  outline: none;
}

.cta:hover .cta__arrow,
.cta:focus-visible .cta__arrow {
  transform: translateX(6px);
}

/* ---------- Footer ---------- */
.page__footer {
  margin-top: 96px;
}

/* ---------- Mobile ---------- */
@media (max-width: 480px) {
  .page {
    padding: 28px 20px 56px;
  }

  .page__header {
    padding-top: 56px;
  }

  .options {
    margin-top: 64px;
  }

  .option {
    grid-template-columns: 1fr;
    row-gap: 18px;
    padding: 32px 0;
  }

  .option--featured {
    padding: 40px 0;
  }

  .option__price {
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 18px;
    text-align: left;
  }

  .option__duration {
    margin-top: 0;
  }

  .cta-wrap {
    margin-top: 64px;
  }

  .page__footer {
    margin-top: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page,
  .cta,
  .cta__arrow,
  .page__back {
    transition: none;
  }
}

/* =========================================================
   Enquiry form
   Underlined fields, no boxes. Red appears only on focus
   and on the chosen option.
   ========================================================= */
.form {
  margin-top: 72px;
}

.field {
  border: 0;
  padding: 0;
  margin: 0 0 44px;
}

.field__label {
  display: block;
  padding: 0;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grey);
}

.field__input {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;            /* stops iOS zooming the page on focus */
  font-weight: 300;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.field__input:focus {
  border-bottom-color: var(--red);
}

.field__input--area {
  resize: vertical;
  min-height: 72px;
}

/* an invalid field, only after the visitor tried to send */
.form.is-checked .field__input:invalid {
  border-bottom-color: rgba(225, 6, 0, 0.6);
}

/* ---------- Session length choices ---------- */
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  margin-top: 20px;
}

.choices--stack {
  flex-direction: column;
  gap: 16px;
}

.choice__meta {
  color: var(--grey);
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 24px;
  cursor: pointer;
}

.choice__input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.choice__mark {
  position: relative;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  transition: border-color 0.25s ease;
}

.choice__mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.choice__text {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #d0d0d0;
  transition: color 0.25s ease;
}

.choice:hover .choice__mark,
.choice__input:focus-visible + .choice__mark {
  border-color: var(--white);
}

.choice__input:checked + .choice__mark {
  border-color: var(--white);
}

.choice__input:checked + .choice__mark::after {
  opacity: 1;
  transform: scale(1);
}

.choice__input:checked ~ .choice__text {
  color: var(--white);
}

/* ---------- Note + send ---------- */
.form__note {
  min-height: 1.6em;
  margin-top: -8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--grey);
  text-align: center;
}

.cta-wrap--form {
  margin-top: 36px;
}

.cta--button {
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  font-family: var(--font-sans);
  cursor: pointer;
}

/* ---------- Sent state ---------- */
.sent {
  margin-top: 88px;
  text-align: center;
}

.sent__title {
  font-size: clamp(20px, 5vw, 28px);
  font-weight: 300;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
}

.sent__text {
  margin-top: 28px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--grey);
}

.cta-wrap--sent {
  margin-top: 56px;
}

@media (max-width: 480px) {
  .form {
    margin-top: 56px;
  }

  .field {
    margin-bottom: 36px;
  }

  .choices {
    flex-direction: column;
    gap: 16px;
  }

  .cta-wrap--form {
    margin-top: 28px;
  }
}

/* =========================================================
   Free resources
   Two guides on plain rows, divided by thin lines.
   ========================================================= */
.page__intro {
  max-width: 30em;
  margin: 20px auto 0;
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--grey);
}

.resources {
  margin-top: 88px;
  border-top: 1px solid var(--line);
}

.resource {
  padding: 52px 0;
  border-bottom: 1px solid var(--line);
}

.resource__kicker {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grey);
}

.resource__name {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 1.5;
}

.resource__name::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 16px;
  background: var(--red);
}

.resource__desc {
  margin-top: 18px;
  max-width: 34em;
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.75;
  color: #b4b4b4;
}

.resource__desc + .resource__desc {
  margin-top: 12px;
}

.cta--resource {
  margin-top: 30px;
}

@media (max-width: 480px) {
  .resources {
    margin-top: 64px;
  }

  .resource {
    padding: 40px 0;
  }
}

/* ---------- Resources gate ---------- */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form--gate {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.gate-thanks {
  margin-top: 72px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--grey);
}

.gate-thanks + .resources {
  margin-top: 40px;
}

.resources.is-revealed {
  animation: reveal 0.9s ease both;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .resources.is-revealed {
    animation: none;
  }
}

/* Gate form on phones: a touch more compact */
@media (max-width: 480px) {
  .form--gate {
    margin-top: 48px;
  }

  .form--gate .field {
    margin-bottom: 30px;
  }

  .form--gate .field__input {
    padding: 10px 0;
  }

  .form--gate .form__note {
    margin-top: -12px;
  }

  .form--gate .cta-wrap--form {
    margin-top: 20px;
  }
}
