/* StudioLand form pages (/application, /join-for-free).
   Same tokens as the landing page. Two sizes only: display for the headline, body for everything
   else (the consent fine print is the one small exception, like the money-card disclaimers). */
:root{
  /* teal, red and ink are Homegrown's exact hexes since 4 Nov 2026 (site sweep quiz: "Match them") */
  --charcoal:#396168;--charcoal-2:#48787F;--rust:#BF7538;--rust-ink:#9E612E;--mustard:#F6CC60;--red:#a8462b;
  --cream:#fcf7e8;--white:#FEFDF9;--dk:#2c2c2a;--mint:#BFCDC0;
  --line-w:2px;--line-faint:rgba(44,44,42,.38);
  --display:'DW Fairfield',sans-serif;
  --body:'DM Sans',sans-serif;
  --fs-display:clamp(2.35rem, 7.5vw, 4.5rem); --fs-body:.95rem; /* the landing page's size (site polish quiz, 4 Nov 2026: "Match the landing page"), which is Homegrown's 15.2px since 5 Nov 2026 (type quiz: "Match Homegrown"); was 1.3rem, and 1.15rem before that */
  --fw-bold:700; --fw-reg:500;
  --lh-display:0.85; --lh-body:1.2; /* Homegrown's ("Use Homegrown's"); was 1.5 */
  --radius:12px; --space:32px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{background:var(--charcoal);}
body{
  font-family:var(--body);font-size:var(--fs-body);line-height:var(--lh-body);font-weight:var(--fw-reg);
  color:var(--white);background:radial-gradient(circle at 75% 30%,#4F858D 0%,#426E76 45%,var(--charcoal) 100%);
  min-height:100vh;-webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}

/* paper grain: the landing page's teal grain (Homegrown's, in soft light; see index.html) */
.page{position:relative;isolation:isolate;min-height:100vh;display:flex;flex-direction:column;
  background:radial-gradient(circle at 75% 30%,#4F858D 0%,#426E76 45%,var(--charcoal) 100%);} /* the ground the grain blends into */
.page::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:url("/assets/paper-grain-dark.webp") 0 0/640px 640px repeat;mix-blend-mode:soft-light;}

.topbar{background:var(--rust-ink);color:var(--cream);text-align:center;padding:9px 16px;
  text-transform:uppercase;font-weight:var(--fw-bold);}
/* the top bar: the wordmark (to the plans) on the left, Join free and Book a call on the right, each Carl's drawing
   with its word under it on a phone and beside it on a laptop */
.topbar{text-align:left;padding:6px 16px;}
.tb{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:980px;margin:0 auto;}
.tb-logo{display:block;flex:0 0 auto;}
.tb-logo img{height:30px;width:auto;display:block;}
.tb-nav{display:flex;gap:18px;align-items:center;}
.tb-nav a{display:flex;flex-direction:column;align-items:center;gap:2px;color:var(--cream);text-decoration:none;font-size:13px;line-height:1.1;font-weight:var(--fw-bold);text-transform:uppercase;transition:transform .12s ease;}
.tb-nav img{height:32px;width:auto;display:block;}
@media (min-width:861px){ .tb-nav{gap:28px;} .tb-nav a{flex-direction:row;gap:8px;font-size:var(--fs-body);} .tb-logo img{height:36px;} }
@media (hover:hover){ .tb-nav a:hover,.tb-logo:hover{transform:scale(1.06);} }
@media (prefers-reduced-motion: reduce){ .tb-nav a,.tb-logo{transition:none;} .tb-nav a:hover,.tb-logo:hover{transform:none;} }


.form-wrap{flex:1;width:100%;max-width:600px;margin:0 auto;padding:40px 16px 56px;}
.logo{display:block;width:min(320px,70%);margin:0 auto 18px;}
.logo img{width:100%;height:auto;}

h1{font-family:var(--display);font-weight:var(--fw-bold);font-synthesis:none;font-size:var(--fs-display);
  line-height:var(--lh-display);text-transform:uppercase;text-align:center;margin:0 0 28px;overflow-wrap:break-word;}
h1 .accent{color:var(--mustard);display:block;}

/* THE DRAWN LINE (assets/wobble.js), Homegrown's, as on the landing page: a box says its colours with
   --fill and --stroke; until the line is drawn (html.wob-on) it keeps a plain fill and border. */
.card,.btn,.box,.iti{position:relative;z-index:0;background:var(--fill);border:var(--line-w) solid var(--stroke);}
html.wob-on .card,html.wob-on .btn,html.wob-on .box,html.wob-on .iti{background:none;border-color:transparent;}
.wobble{position:absolute;inset:-6px;width:calc(100% + 12px);height:calc(100% + 12px);z-index:-1;pointer-events:none;overflow:visible;display:block;}
.wobble path{fill:var(--fill,transparent);stroke:var(--stroke,var(--line-faint));stroke-width:var(--line-w);stroke-linejoin:round;stroke-linecap:round;}

/* the card: cream, Homegrown's faint ink line, no shadow */
.card{color:var(--dk);padding:32px 28px 28px;--fill:var(--cream);--stroke:var(--line-faint);}

.field{margin-bottom:18px;}
.field label{display:block;font-weight:var(--fw-bold);margin-bottom:6px;color:var(--dk);}
.field .req{color:var(--rust);}
.row{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
@media (max-width:520px){.row{grid-template-columns:1fr;gap:0;}}

/* FORM BOXES ARE DRAWN (Carl, site polish quiz, 4 Nov 2026: "Draw them"), Homegrown's way: the box round each
   input (.box, or the phone picker's own .iti) gets the drawn line from wobble.js; the input inside has none.
   The one you're typing in turns rust, and one with a problem turns red. */
.box,.iti{display:block;width:100%;--fill:#fff;--stroke:var(--line-faint);}
.box:focus-within,.iti:focus-within{--stroke:var(--rust);}
.iti:focus-within{z-index:2;} /* the country list opens over the fields below it */
.field.invalid .box,.field.invalid .iti{--stroke:var(--red);}
/* the box you're in stands out from the other boxes, red ones included: rust and a thicker line, as the buttons */
.box:focus-within,.iti:focus-within,.field.invalid .box:focus-within,.field.invalid .iti:focus-within{--stroke:var(--rust);--line-w:3px;}
input[type=text],input[type=email],input[type=tel]{
  width:100%;font:inherit;color:var(--dk);background:transparent;border:0;border-radius:6px;padding:12px 14px;
}
input:focus{outline:none;}
.field .err,.consent-field .err{display:none;color:var(--red);font-weight:var(--fw-bold);margin-top:6px;font-size:.95rem;}
.field.invalid .err,.consent-field.invalid .err{display:block;}
.consent-field{margin:6px 0 22px;}
.consent-field .consent{margin:0;}
.consent input:focus-visible{outline:2px solid var(--rust);outline-offset:2px;}

/* phone field: let the country picker fill the row */
.iti{width:100%;}
/* The country list is never wider than the phone box (Godzilla H7, 9 Nov 2026). The library picks its full-screen
   list or its 502px dropdown once, when the page loads, so a laptop window made narrow afterwards kept the 502px list
   and the page scrolled sideways. The box is the list's measure (cqw), so it fits whatever the window does. */
.iti{container-type:inline-size;}
.iti--inline-country-selector .iti__country-selector{max-width:100cqw;}
.iti--inline-country-selector .iti__country-list{white-space:normal;}
.iti__selected-dial-code{color:var(--dk);}

.consent{display:flex;gap:12px;align-items:flex-start;margin:6px 0 22px;font-size:.85rem;line-height:1.45;color:#4a4843;}
.consent input{margin-top:4px;width:18px;height:18px;flex:0 0 auto;accent-color:var(--rust);}

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

/* submit: the landing page's button, Homegrown's way: mustard, an ink line, no shadow, grows on hover */
.btn-row{text-align:center;}
.btn{display:inline-block;cursor:pointer;--fill:var(--mustard);--stroke:var(--dk);
  font-family:var(--body);font-size:var(--fs-body);font-weight:var(--fw-bold);text-transform:uppercase;
  color:var(--dk);padding:16px 40px;text-decoration:none;transition:transform .12s ease;}
@media (hover:hover){ .btn:hover{transform:scale(1.06);} }
.btn:active{transform:scale(1.02) translate(2px,2px);}
.btn[disabled]{cursor:wait;opacity:.75;transform:none;}
.btn:focus-visible{outline:none;--stroke:var(--rust);--line-w:3px;}
a:focus-visible{outline:2px solid var(--rust);outline-offset:3px;}
.topbar a:focus-visible{outline-color:var(--cream);}

.form-error{display:none;margin:0 0 18px;padding:12px 14px;border-radius:9px;background:rgba(192,88,56,.12);
  color:var(--red);font-weight:var(--fw-bold);}
.form-error.show{display:block;}
.form-error:focus{outline:none;}

.footer{background:var(--charcoal-2);text-align:center;padding:20px 16px;text-transform:uppercase;
  font-weight:var(--fw-bold);color:var(--white);}

@media (prefers-reduced-motion: reduce){ .btn{transition:none;} .btn:hover,.btn:active{transform:none;} }

/* ---------- content pages (/schedule, /success) ---------- */
.form-wrap.wide{max-width:760px;}
.card .lead{margin:0 0 18px;}
/* the one line under the application's heading (Carl, 8 Nov 2026: "Use the draft") */
.h1-line{text-align:center;margin:-8px auto 24px;max-width:var(--w-read,520px);}
.card p{margin:0 0 14px;}
.steps{list-style:none;margin:6px 0 22px;padding:0;counter-reset:step;}
.steps li{position:relative;padding:12px 0 12px 44px;}
/* drawn dividers (wobble.js data-rules), as on the landing page */
.wobble.wob-rule{inset:auto;left:4px;top:calc(100% - 4px);width:calc(100% - 8px);height:8px;z-index:0;}
.wobble.wob-rule path{fill:none;stroke:var(--rule,var(--line-faint));}
.steps li::before{counter-increment:step;content:counter(step);position:absolute;left:0;top:11px;width:30px;height:30px;
  border-radius:50%;background:var(--mustard);color:var(--dk);font-weight:var(--fw-bold);text-align:center;line-height:30px;}
.steps b{color:var(--dk);}
.video{position:relative;aspect-ratio:16/9;border-radius:8px;overflow:hidden;background:#1d1c19;margin:4px 0 18px;}
.video iframe{position:absolute;inset:0;width:100%;height:100%;border:0;}
.video-label{font-weight:var(--fw-bold);text-transform:uppercase;margin:8px 0 8px;text-align:center;}
.ps{font-style:italic;margin:0;}
.cal-embed{min-height:640px;}
/* 640px until the calendar's own script sizes it (its height is set on the frame itself, which wins), so a blocked
   script still leaves a calendar you can scroll (Godzilla round, 9 Nov 2026, H11) */
.cal-embed iframe{width:100%;border:none;height:640px;}
/* a way through if the calendar never loads (site polish quiz: "Add a link") */
.cal-link{text-align:center;margin:18px 0 0;}
.cal-link a{color:var(--dk);font-weight:var(--fw-bold);text-underline-offset:3px;}
/* Typed-in boxes stay at 16px (Homegrown's rule): an iPhone zooms the whole page in on a tapped box under 16px, and
   the reading size is 15.2px since 5 Nov 2026 (type quiz: "Match Homegrown"). */
input,select,textarea,.iti input{font-size:max(16px, var(--fs-body)) !important;}
