/* ROAS1000X Contact page: same proof sheet as the About page. Contact form on a white slip,
   help rows as a ledger, one red handwritten margin note. Tokens come from theme.css. */

.roas-main:has(> .ct),
body:has(.ct) .roas-foot { background: var(--paper-2); }

.ct {
  --hand: "Kalam", "Segoe Print", cursive;
  --ct-pad: 10px;
  --ct-mark: 28px;
  --ct-sec: 48px;
  --slip: 0 12px 26px -16px rgba(17, 17, 17, .38), 0 1px 2px rgba(17, 17, 17, .08);
  padding: 30px var(--gutter) 44px;
  color: var(--ink);
}

/* =========================================================
   SHEET + PRINT MARKS
   ========================================================= */
.ct-sheet {
  position: relative;
  container-type: inline-size;
  max-width: 1120px;
  margin-inline: auto;
  padding: 24px var(--ct-pad) 26px;
}
.ct-crop {
  position: absolute;
  width: var(--ct-mark);
  height: var(--ct-mark);
  pointer-events: none;
}
.ct-crop::before,
.ct-crop::after {
  content: "";
  position: absolute;
  background: var(--ink);
}
.ct-crop::before { left: 0; right: 0; top: calc(50% - .5px); height: 1px; }
.ct-crop::after { top: 0; bottom: 0; left: calc(50% - .5px); width: 1px; }
.ct-crop--tl { top: calc(var(--ct-mark) / -2); left: calc(var(--ct-mark) / -2); }
.ct-crop--tr { top: calc(var(--ct-mark) / -2); right: calc(var(--ct-mark) / -2); }
.ct-crop--bl { bottom: calc(var(--ct-mark) / -2); left: calc(var(--ct-mark) / -2); }
.ct-crop--br { bottom: calc(var(--ct-mark) / -2); right: calc(var(--ct-mark) / -2); }

.ct-reg {
  position: absolute;
  left: 50%;
  width: var(--ct-mark);
  height: var(--ct-mark);
  color: var(--ink);
  transform: translateX(-50%);
  pointer-events: none;
}
.ct-reg--top { top: calc(var(--ct-mark) / -2); }
.ct-reg--bottom { bottom: calc(var(--ct-mark) / -2); }
.ct-reg-svg { display: block; width: 100%; height: 100%; }

.ct-sec {
  position: relative;
  margin-top: var(--ct-sec);
  padding-top: 26px;
  border-top: 1px solid var(--ink);
}
.ct-sec::before,
.ct-sec::after {
  content: "";
  position: absolute;
  top: -1px;
  width: 10px;
  height: 1px;
  background: var(--ink);
}
.ct-sec::before { left: calc(-1 * var(--ct-pad) - 14px); }
.ct-sec::after { right: calc(-1 * var(--ct-pad) - 14px); }

.ct-h2 {
  margin: 0 0 20px;
  font-family: var(--display);
  font-variation-settings: "wdth" 64;
  font-weight: 900;
  font-size: clamp(2.1rem, 11cqi, 4rem);
  line-height: .9;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}

/* =========================================================
   HERO
   ========================================================= */
.ct-h1 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-variation-settings: "wdth" 62;
  font-weight: 900;
  font-size: min(24cqi, 9rem);
  line-height: .84;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.ct-lede {
  margin: 0;
  max-width: 46ch;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.42;
  color: var(--ink);
  text-wrap: pretty;
}

/* =========================================================
   FORM SLIP
   ========================================================= */
.ct-slip {
  padding: 20px 16px 22px;
  background: var(--paper);
  box-shadow: var(--slip);
}

/* Status message at the top of the slip */
.ct-msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 20px;
  padding: 14px 14px 13px;
  background: var(--red-tint);
  border: 2px solid var(--red);
}
.ct-msg::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  -webkit-mask: var(--i-x) center / contain no-repeat;
  mask: var(--i-x) center / contain no-repeat;
  background: var(--red-deep);
}
.ct-msg p {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
.ct-msg--sent {
  margin-bottom: 22px;
  padding: 18px 16px 17px;
  background: var(--paper-2);
  border-color: var(--ink);
}
.ct-msg--sent::before {
  width: 26px;
  height: 26px;
  -webkit-mask-image: var(--i-check);
  mask-image: var(--i-check);
  background: var(--red);
}
.ct-msg--sent p {
  font-family: var(--display);
  font-variation-settings: "wdth" 80;
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.15;
}

/* Honeypot: out of sight for people, still in the form for bots */
.ct-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ct-form { margin: 0; }
.ct-grid { display: grid; }
.ct-field { margin: 0 0 16px; }
.ct-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: .92rem;
  line-height: 1.3;
  color: var(--ink);
}
.ct-opt { font-weight: 400; color: var(--muted); }
.ct-field input,
.ct-field textarea {
  display: block;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 14px 16px;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--field);
  border-radius: 0;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .15s, box-shadow .2s;
}
.ct-field textarea { min-height: 160px; resize: vertical; }
.ct-field input::placeholder { color: var(--hint); opacity: 1; }
.ct-field input:hover,
.ct-field textarea:hover { border-color: var(--ink); }
.ct-field input:focus,
.ct-field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, .14);
}
.ct-field input:-webkit-autofill,
.ct-field input:-webkit-autofill:hover,
.ct-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  box-shadow: inset 0 0 0 100px var(--paper);
  caret-color: var(--red);
}
.ct-reply {
  margin: -4px 0 16px;
  font-size: .9rem;
  line-height: 1.4;
  color: var(--muted);
}

/* Red buy button, same as .roas-btn */
.ct-send {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  width: 100%;
  min-height: 60px;
  margin: 4px 0 0;
  padding: 14px 22px 12px;
  background: var(--red);
  color: #fff;
  border: 0;
  border-radius: 0;
  font-family: var(--display);
  font-variation-settings: "wdth" 84;
  font-weight: 900;
  font-size: 1.3rem;
  line-height: 1.1;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 14px 28px -10px rgba(220, 38, 38, .6);
  transition: background .2s, transform .25s var(--ease), box-shadow .25s;
}
.ct-send .roas-ic { width: 1.05em; height: 1.05em; transition: transform .25s var(--ease); }
.ct-send:hover { background: var(--red-deep); transform: translateY(-2px); box-shadow: 0 20px 34px -12px rgba(185, 28, 28, .65); }
.ct-send:hover .roas-ic { transform: translateX(4px); }
.ct-send:active { transform: translateY(0); }
.ct-send:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }

/* Black button + red arrow block, same as About and home */
.ct-go {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 60px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  transition: background .2s;
}
.ct-go-txt {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 76px 11px 16px;
  font-family: var(--display);
  font-variation-settings: "wdth" 72;
  font-weight: 900;
  font-size: 1.4rem;
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
  text-align: center;
}
.ct-go-ic {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 20px;
  background: var(--red);
  clip-path: inset(0 0 0 20px);
  transition: clip-path .35s var(--ease), background .2s;
}
.ct-go-ic .roas-ic { width: 26px; height: 26px; transition: transform .35s var(--ease); }
.ct-go:hover { background: #000; color: #fff; }
.ct-go:hover .ct-go-ic { clip-path: inset(0); }
.ct-go:hover .roas-ic { transform: translateX(4px); }
.ct-go:active .ct-go-ic { background: var(--red-deep); }
.ct-go:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.ct-go--wa { margin-top: 14px; background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.ct-go--wa:hover { background: var(--paper-2); color: var(--ink); }

/* =========================================================
   BEFORE YOU EMAIL
   ========================================================= */
.ct-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.ct-row { margin: 0; }
.ct-row + .ct-row { border-top: 1px solid var(--rule); }
.ct-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  grid-template-areas:
    "label ic"
    "line ic";
  align-items: center;
  column-gap: 12px;
  min-height: 64px;
  padding: 12px 0;
  color: var(--ink);
  text-decoration: none;
}
.ct-link-label {
  grid-area: label;
  font-family: var(--display);
  font-variation-settings: "wdth" 80;
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.1;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: .16em;
  transition: text-decoration-color .2s;
}
.ct-link-line {
  grid-area: line;
  margin-top: 3px;
  font-size: .9rem;
  line-height: 1.4;
  color: var(--muted);
}
.ct-link-ic {
  grid-area: ic;
  display: flex;
  justify-content: flex-end;
  color: var(--red);
}
.ct-link-ic .roas-ic { width: 24px; height: 24px; transition: transform .35s var(--ease); }
.ct-link:hover .ct-link-label { text-decoration-color: var(--red); }
.ct-link:hover .roas-ic { transform: translateX(4px); }
.ct-link:focus-visible { outline-offset: -3px; }

.ct-row--tip { padding: 16px 0 14px; }
.ct-tip {
  margin: 0;
  max-width: 40ch;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}
.ct-note {
  margin: 12px 0 0;
  font-family: var(--hand);
  font-size: 1.2rem;
  line-height: 1;
  color: var(--red-deep);
}
.ct-note > span {
  display: inline-block;
  transform: rotate(-3deg);
  transform-origin: left center;
}

.ct-end {
  margin-top: 44px;
  border-top: 1px solid var(--ink);
}

/* =========================================================
   >= 600px
   ========================================================= */
@media (min-width: 600px) {
  .ct {
    --ct-pad: 20px;
    --ct-mark: 34px;
    --ct-sec: 64px;
    padding-top: 44px;
    padding-bottom: 64px;
  }
  .ct-sheet { padding-top: 36px; padding-bottom: 34px; }
  .ct-lede { font-size: 1.35rem; }
  .ct-sec { padding-top: 34px; }
  .ct-h2 { margin-bottom: 26px; }
  .ct-slip { padding: 30px 32px 30px; }
  .ct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .ct-send { width: auto; min-width: 280px; }
  .ct-go--wa { max-width: 380px; }
  .ct-link { min-height: 76px; padding: 16px 0; }
  .ct-link-label { font-size: 1.6rem; }
  .ct-link-line { font-size: 1rem; }
  .ct-tip { font-size: 1.1rem; }
  .ct-note { font-size: 1.4rem; }
}

/* =========================================================
   >= 900px
   ========================================================= */
@media (min-width: 900px) {
  .ct {
    --ct-pad: 48px;
    --ct-mark: 40px;
    --ct-sec: 88px;
    padding-top: 64px;
    padding-bottom: 88px;
  }
  .ct-sheet { padding-top: 56px; padding-bottom: 44px; }
  .ct-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 40px;
    align-items: end;
  }
  .ct-h1 { margin: 0; font-size: min(17cqi, 10rem); }
  .ct-lede { font-size: 1.5rem; padding-bottom: .5rem; }
  .ct-sec { padding-top: 44px; }
  .ct-slip { max-width: 820px; padding: 40px 48px 44px; }
  .ct-go--sent { max-width: 420px; }
  .ct-go-txt { font-size: 1.5rem; }
  .ct-link {
    grid-template-columns: 280px minmax(0, 1fr) 40px;
    grid-template-areas: "label line ic";
    column-gap: 24px;
  }
  .ct-link-line { margin-top: 0; font-size: 1.0625rem; }
  .ct-link-label { font-size: 1.9rem; }
  .ct-link-ic .roas-ic { width: 28px; height: 28px; }
  .ct-row--tip {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    column-gap: 24px;
    align-items: baseline;
    padding: 22px 0 20px;
  }
  .ct-tip { grid-column: 2; font-size: 1.2rem; }
  .ct-note { grid-column: 1; grid-row: 1; margin: 0; font-size: 1.6rem; }
  .ct-end { margin-top: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .ct-go:hover .ct-go-ic { clip-path: inset(0 0 0 20px); }
  .ct-send:hover,
  .ct-send:hover .roas-ic { transform: none; }
  .ct-go:hover .roas-ic,
  .ct-link:hover .roas-ic { transform: none; }
}
