/* Beyond Care v146 — the locked scrapbook design system for the public site.

   This is the single source of truth for the look that the homepage, Courses,
   For Organisations and Pricing pages carry: a tan collage board with
   dried-flower sprigs at the edges, torn-paper sheets with tape corners,
   Vidaloka headlines with a red hand-drawn rule, Caveat eyebrows, Georgia
   body copy and the red "Get started" button in a torn-paper header.

   Any new public page links this file after the Google Fonts request
   (Caveat, Inter, Vidaloka), puts `class="sb"` on <body>, and composes its
   content from the pieces below. The four mockup-driven pages keep their own
   inline stage rules; their tokens and components are mirrored here so every
   page reads as one book. Loaded on: verify, verify-email, forgot-password,
   accessibility, course-one. */

:root{
  --paper:#f5ecdc;
  --board:#d8c2a3;
  --ink:#151210;
  --muted:#433b34;
  --red:#d7181f;
  --red-deep:#bf141a;
  --rule:rgba(51,39,30,.16);
  --serif:'Vidaloka',Georgia,'Times New Roman',serif;
  --body:Georgia,'Times New Roman',serif;
  --sans:'Inter',Arial,sans-serif;
  --hand:'Caveat','Segoe Print',cursive;
  --shadow:drop-shadow(0 5px 8px rgba(70,48,25,.17));
  --shadow-lift:drop-shadow(0 9px 13px rgba(70,48,25,.22));
}

*{box-sizing:border-box}
html,body{margin:0;min-height:100%}
body.sb{
  background:var(--board) url('./assets/courses/v140/collage-bg.webp') center top/1672px auto repeat-y;
  color:var(--ink);
  font-family:var(--serif);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
body.sb a{color:inherit}
body.sb :is(button,a){-webkit-tap-highlight-color:transparent}
body.sb :focus-visible{outline:2px solid var(--red);outline-offset:3px}
body.sb ::selection{background:rgba(215,24,31,.18)}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.shell{width:min(calc(100% - 12vw),1470px);margin:0 auto}
.shell.narrow{width:min(calc(100% - 12vw),1100px)}

/* ---------- torn-paper header ---------- */
.header{position:relative;z-index:20;background:#f4ecdf}
.header::after{content:'';position:absolute;left:0;right:0;top:100%;height:18px;background:url('./assets/organisations/v141/paper-edge.webp') center bottom/100% 100% no-repeat;pointer-events:none}
.header .shell{min-height:58px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px}
.logo{justify-self:start;font:400 30px/1 var(--serif);letter-spacing:-.025em;text-decoration:none;position:relative;color:var(--ink)}
.logo::after{content:'';position:absolute;left:52%;bottom:-8px;width:42px;height:2px;background:var(--red);transform:rotate(-3deg)}
.nav{display:flex;gap:38px;font:400 14px/1 var(--serif)}
.nav a{text-decoration:none;padding:21px 0;position:relative;white-space:nowrap}
.nav a:hover{color:var(--red)}
.nav a.active{color:var(--red)}
.nav a.active::after{content:'';position:absolute;left:0;right:0;bottom:15px;height:1.5px;background:var(--red)}
.actions{justify-self:end;display:flex;align-items:center;gap:20px;font-size:14px}
.search{width:22px;height:22px;border:0;background:transparent;position:relative;cursor:pointer;padding:0}
.search::before{content:'';position:absolute;width:13px;height:13px;border:1.55px solid var(--ink);border-radius:50%;left:1px;top:1px}
.search::after{content:'';position:absolute;width:7px;height:1.55px;background:var(--ink);left:13px;top:14px;transform:rotate(46deg);transform-origin:left center}
.divider{width:1px;height:28px;background:rgba(42,34,28,.16)}
.login{text-decoration:none;white-space:nowrap}
.login:hover{color:var(--red)}
.get-started{height:40px;padding:0 20px;display:inline-flex;align-items:center;gap:16px;background:var(--red);color:#fff;border-radius:3px;text-decoration:none;font:400 14px/1 var(--serif);white-space:nowrap}
.get-started:hover{background:var(--red-deep)}

/* ---------- collage board ---------- */
main.board{position:relative;padding:16px 0 40px}
.sprig{position:absolute;top:40px;width:96px;height:426px;pointer-events:none;mix-blend-mode:multiply;-webkit-mask-image:radial-gradient(closest-side,#000 62%,transparent);mask-image:radial-gradient(closest-side,#000 62%,transparent)}
.sprig img{display:block;width:100%;height:100%}
.sprig.left{left:0}
.sprig.right{right:0;width:92px}
.sprig.lower{top:760px;transform:scaleX(-1)}

/* red pencil swooshes on the board */
.swoosh{position:absolute;z-index:4;pointer-events:none;fill:none;stroke:var(--red);stroke-width:2.4;stroke-linecap:round;opacity:.9}
.swoosh.left{left:0;top:690px;width:170px;height:110px}
.swoosh.right{right:0;top:830px;width:70px;height:120px}

/* ---------- paper, tape, clips ---------- */
.paper{position:relative;background:url('./assets/courses/v140/card-paper-a.webp') center/100% 100% no-repeat;filter:var(--shadow)}
.paper.b{background-image:url('./assets/courses/v140/card-paper-b.webp')}
.paper.c{background-image:url('./assets/courses/v140/card-paper-c.webp')}
.tape{position:absolute;width:86px;height:26px;background:linear-gradient(180deg,rgba(214,184,138,.8),rgba(196,163,113,.72));clip-path:polygon(0 8%,6% 0,14% 10%,22% 2%,100% 0,95% 18%,100% 34%,94% 52%,100% 70%,96% 86%,100% 100%,10% 96%,0 100%,5% 78%,0 60%,6% 40%,0 22%);z-index:2;pointer-events:none}
.tape.one{top:-11px;left:12%;transform:rotate(-6deg)}
.tape.two{top:-9px;right:16%;transform:rotate(11deg)}
.tape.corner-tl{top:-11px;left:-14px;transform:rotate(-24deg)}
.tape.corner-br{bottom:-8px;right:-14px;transform:rotate(-28deg)}
.tape.centre{top:-10px;left:42%;transform:rotate(-4deg)}
.clip{position:absolute;top:-16px;right:30px;width:14px;height:40px;border:2px solid #6c665f;border-radius:8px;transform:rotate(8deg);z-index:2;pointer-events:none}
.clip::after{content:'';position:absolute;left:2px;right:2px;top:6px;bottom:-2px;border:2px solid #6c665f;border-top:0;border-radius:0 0 6px 6px}

/* ---------- typography ---------- */
.eyebrow{display:inline-block;width:max-content;max-width:100%;margin:0 0 34px;font:500 20px/1 var(--hand);letter-spacing:.1em;text-transform:uppercase;position:relative;color:#2a2520}
.eyebrow::after{content:'';position:absolute;left:-2px;bottom:-9px;width:104%;height:2px;background:var(--red);transform:rotate(-1deg)}
.title{margin:0;font:400 clamp(46px,4.05vw,68px)/1.03 var(--serif);letter-spacing:-.045em}
.title span{display:block}
.title .red,.title em{display:block;color:var(--red);font-style:italic;position:relative;width:max-content;max-width:100%}
.title :is(.red,em)::after{content:'';position:absolute;left:2%;right:22%;bottom:-6px;height:3px;border-radius:3px;background:var(--red);transform:rotate(-1.2deg)}
.intro{margin:28px 0 0;max-width:560px;font:400 17px/1.58 var(--body);color:var(--muted)}
.intro + .intro{margin-top:16px}
.section-title{margin:0;font:400 clamp(40px,3.25vw,54px)/1.04 var(--serif);letter-spacing:-.04em}
.section-title span{display:block}
.section-title em{display:block;width:max-content;max-width:100%;position:relative;margin-top:2px;color:var(--red)}
.section-title em::after{content:'';position:absolute;left:1%;right:4%;bottom:-5px;height:3px;border-radius:3px;background:var(--red);transform:rotate(-.8deg)}
.copy p:not(.eyebrow){margin:24px 0 0;max-width:560px;font:400 18px/1.55 var(--body);color:var(--muted)}

/* ---------- buttons and links ---------- */
.btn{display:inline-flex;align-items:center;gap:20px;height:48px;padding:0 38px;border:0;border-radius:2px;text-decoration:none;font:400 16px/1 var(--serif);white-space:nowrap;cursor:pointer;transition:background .18s ease,box-shadow .18s ease}
.btn-primary{background:var(--red);color:#fff;box-shadow:0 3px 8px rgba(120,20,20,.18)}
.btn-primary:hover{background:var(--red-deep)}
.btn-primary:disabled{opacity:.6;cursor:progress}
.btn-secondary{border:1.5px solid #2b2520;color:#1d1916;background:rgba(250,245,236,.5)}
.btn-secondary:hover{background:rgba(250,245,236,.95)}
.hero-actions{display:flex;flex-wrap:wrap;gap:16px;margin-top:24px}
.text-link{display:inline-flex;align-items:center;gap:12px;margin-top:22px;color:var(--red);text-decoration:none;font:400 17px/1.2 var(--serif);border-bottom:1.5px solid rgba(215,24,31,.45);padding-bottom:3px}
.text-link:hover{border-bottom-color:var(--red)}

/* ---------- hero: taped copy sheet + artwork ---------- */
.hero{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);align-items:center;gap:8px}
.hero.even{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}
.hero.even .hero-copy{margin-right:0}
.hero.top{align-items:start}
.hero-copy{position:relative;z-index:2;padding:48px 60px 44px 80px;margin-right:-24px;transform:rotate(-.3deg)}
.hero-copy > .tape{top:-10px;left:42%;transform:rotate(-4deg)}
.hero-art{position:relative;margin:0 0 0 4px;transform:rotate(.6deg) scale(1.03);transform-origin:left center}
.hero-art img{display:block;width:100%;height:auto;mix-blend-mode:multiply;-webkit-mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent),linear-gradient(transparent,#000 4%,#000 95%,transparent);-webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent),linear-gradient(transparent,#000 4%,#000 95%,transparent);mask-composite:intersect}
.hero-art.sheet{padding:26px 28px 30px;transform:rotate(1.1deg);margin-left:10px}
.hero-art.sheet img{-webkit-mask-image:none;mask-image:none}
.hero-art.sheet > .tape.one{top:-12px;left:8%;transform:rotate(-8deg)}
.hero-art.sheet > .tape.two{bottom:-9px;right:10%;transform:rotate(12deg)}
.hero-art.plain{filter:none;transform:rotate(.8deg)}

/* a handwritten note pinned with a paper clip */
.note{position:absolute;right:0;top:4px;width:210px;padding:24px 22px 26px;transform:rotate(3deg);font:500 27px/1.05 var(--hand);color:#2c2621;z-index:3}
.note::after{content:'';display:block;width:84px;height:2px;margin:9px 0 0 8px;background:var(--red);transform:rotate(-4deg)}

/* ---------- feature tiles ---------- */
.tiles{position:relative;z-index:3;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:16px}
.tiles.three{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.tile{position:relative;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:16px;min-height:150px;padding:22px 26px 22px 28px;transition:transform .2s ease}
.tile.stack{grid-template-columns:1fr;align-content:start;padding:30px 32px 32px}
.tile:nth-child(odd){transform:rotate(-.35deg)}
.tile:nth-child(even){transform:rotate(.35deg)}
.tile:hover{transform:translateY(-3px) rotate(-.25deg)}
.tile:nth-child(4n+1) > .tape{top:-11px;left:-14px;transform:rotate(-24deg)}
.tile:nth-child(4n+2) > .tape{top:-10px;right:36px;transform:rotate(9deg)}
.tile:nth-child(4n+3) > .tape{bottom:-8px;right:-14px;transform:rotate(-28deg)}
.tile:nth-child(4n+4) > .tape{top:-11px;left:40%;transform:rotate(-5deg)}
.tile img{display:block;width:118px;height:88px;object-fit:contain;mix-blend-mode:multiply}
.tile h2,.tile h3{margin:0 0 8px;font:400 21px/1.1 var(--serif);letter-spacing:-.02em}
.tile :is(h2,h3)::after{content:'';display:block;width:56px;height:2px;margin-top:7px;background:var(--red);transform:rotate(-2deg)}
.tile p{margin:0;font:400 15px/1.4 var(--body);color:#3b342e}
.tile .num{display:block;margin-bottom:6px;color:var(--red);font:400 26px/1 var(--serif);letter-spacing:-.02em}

/* ---------- panel: a flat sheet for forms and records (no tilt) ---------- */
.panel{position:relative;z-index:3;padding:44px 56px 48px}
.panel.ledger{background-image:url('./assets/courses/v140/card-paper-b.webp')}
.panel h2{margin:0 0 10px;font:400 30px/1.1 var(--serif);letter-spacing:-.03em}
.panel h2::after{content:'';display:block;width:64px;height:2px;margin-top:10px;background:var(--red);transform:rotate(-2deg)}
.panel > p{margin:14px 0 0;font:400 16px/1.55 var(--body);color:var(--muted)}
.panel-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start;margin-top:22px}

/* ---------- form controls on paper ---------- */
.field{display:grid;gap:8px;margin-top:22px}
.field label{font:500 14px/1.4 var(--sans);color:#2a2520;letter-spacing:.01em}
.field .hint{font:400 13px/1.5 var(--body);color:#5e554d}
.field :is(input,select,textarea),.form-line input{
  width:100%;min-height:52px;padding:0 16px;
  border:1px solid rgba(55,43,33,.28);border-radius:2px;
  background:rgba(255,252,245,.62);color:var(--ink);
  font:400 16px/1.3 var(--sans);
  transition:border-color .16s ease,box-shadow .16s ease;
}
.field textarea{min-height:140px;padding:14px 16px;line-height:1.5;resize:vertical}
.field :is(input,select,textarea):focus,.form-line input:focus{outline:none;border-color:var(--red);box-shadow:0 0 0 3px rgba(215,24,31,.14)}
.field input::placeholder,.form-line input::placeholder{color:#8a7f73}
.form-line{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}
.form-line input{flex:1 1 260px}
.form-line .btn{flex:0 0 auto}
.form-actions{display:flex;flex-wrap:wrap;gap:16px;align-items:center;margin-top:22px}
.form-actions .btn{min-width:200px;justify-content:space-between}

/* status notes — hand-written, in red or green ink */
.status{display:none;margin-top:20px;padding:12px 16px 12px 18px;border-left:3px solid var(--red);background:rgba(255,252,245,.55);font:400 15px/1.5 var(--body);color:var(--ink)}
.status.show,.status.good,.status.bad{display:block}
.status.good{border-left-color:#1e6b45;color:#1e5a3b}
.status.bad{border-left-color:var(--red);color:#8d1217}

/* ---------- certificate record ---------- */
.record{display:none;margin-top:26px;padding-top:24px;border-top:1px solid var(--rule)}
.record.show{display:block}
.record .valid{display:inline-block;padding:6px 14px 4px;border:2px solid #1e6b45;border-radius:4px;color:#1e6b45;font:600 18px/1 var(--hand);letter-spacing:.14em;text-transform:uppercase;transform:rotate(-3deg)}
.record .valid.invalid{border-color:var(--red);color:var(--red)}
.record .name{margin:18px 0 4px;font:400 36px/1.05 var(--serif);letter-spacing:-.03em}
.record .course{margin:0 0 18px;font:400 20px/1.3 var(--body);color:var(--muted)}
.record .grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px}
.record .item{border-top:1px solid var(--rule);padding:12px 0 13px}
.record .item span{display:block;font:500 12px/1.3 var(--sans);letter-spacing:.1em;text-transform:uppercase;color:#5e554d}
.record .item strong{display:block;margin-top:4px;font:400 17px/1.35 var(--body);color:var(--ink)}

/* numbered steps on a sheet */
.steps{list-style:none;margin:18px 0 0;padding:0;counter-reset:step}
.steps li{position:relative;padding:13px 0 13px 46px;border-top:1px solid var(--rule);font:400 16px/1.5 var(--body);color:var(--ink)}
.steps li:last-child{border-bottom:1px solid var(--rule)}
.steps li strong{display:block;font:400 19px/1.2 var(--serif);letter-spacing:-.02em;margin-bottom:2px}
.steps li::before{counter-increment:step;content:counter(step);position:absolute;left:0;top:14px;width:30px;height:30px;border:1.5px solid var(--red);border-radius:50%;display:grid;place-items:center;color:var(--red);font:400 16px/1 var(--serif)}

/* ---------- closing section ---------- */
.close{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:30px;margin-top:22px;padding:44px 64px 56px 86px}
.close-visual{position:relative;min-height:250px;display:flex;align-items:center;justify-content:flex-start;padding-left:4%}
.close-visual img{width:min(270px,58%);height:auto;mix-blend-mode:multiply}

/* ---------- footer strip ---------- */
.footer{position:relative;z-index:3;margin-top:34px;display:flex;align-items:center;justify-content:space-between;gap:28px;padding:26px 48px;font:400 14px/1.4 var(--body);color:#4b443d}
.footer .brand{font:400 22px/1 var(--serif);color:var(--ink);margin-bottom:6px}
.footer nav{display:flex;gap:24px;flex-wrap:wrap;font-family:var(--serif)}
.footer a{text-decoration:none}
.footer a:hover{color:var(--red)}

/* ---------- responsive ---------- */
@media(max-width:1320px){
  .nav{gap:26px}
  .tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tiles.three{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
}
@media(max-width:1100px){
  .sprig,.swoosh{display:none}
  .hero,.hero.even{grid-template-columns:1fr;gap:20px}
  .hero-copy{margin-right:0;transform:none}
  .hero-art,.hero-art.sheet{transform:none;margin-left:0}
  .note{position:relative;right:auto;top:auto;margin:10px 0 0 auto;width:190px;font-size:24px}
  .close{grid-template-columns:1fr;padding:48px 44px}
  .close-visual{min-height:220px}
  .tiles.three{grid-template-columns:1fr;gap:22px}
  .panel-row{grid-template-columns:1fr}
}
@media(max-width:980px){
  .header .shell{grid-template-columns:1fr auto}
  .nav,.divider{display:none}
}
@media(max-width:700px){
  .shell,.shell.narrow{width:calc(100% - 24px)}
  .actions .search,.actions .login{display:none}
  .logo{font-size:26px}
  main.board{padding-top:30px}
  .hero-copy{padding:36px 28px 40px}
  .hero-art.sheet{padding:18px 18px 22px}
  .eyebrow{font-size:18px;letter-spacing:.06em}
  .title{font-size:44px}
  .title :is(.red,em){width:auto}
  .intro{font-size:16px}
  .tiles{grid-template-columns:1fr}
  .tile{min-height:0;padding:24px 22px}
  .tile.stack{padding:26px 22px}
  .tile img{width:96px;height:72px}
  .panel{padding:36px 24px 34px}
  .panel h2{font-size:26px}
  .record .name{font-size:30px}
  .record .grid{grid-template-columns:1fr}
  .form-actions .btn{width:100%}
  .close{padding:40px 28px}
  .section-title{font-size:38px}
  .section-title em{width:auto}
  .section-title em::after{right:10%}
  .copy p:not(.eyebrow){font-size:16px}
  .footer{flex-direction:column;align-items:flex-start;padding:26px 28px}
}
/* v149 — phones. Grid tracks may shrink below their content, and the large
   headlines step down so a long italic line fits the sheet instead of pushing
   the page sideways. */
@media(max-width:700px){
  html,body{overflow-x:clip}
  .note{max-width:calc(100% - 12px)}
  .hero,.hero.even,.close,.panel-row{grid-template-columns:minmax(0,1fr)}
  .hero > *,.close > *{min-width:0}
  .title{font-size:clamp(34px,10.6vw,44px)}
  .section-title{font-size:clamp(30px,9.4vw,38px)}
  .title :is(.red,em),.section-title em{max-width:100%}
  .hero-actions{flex-wrap:wrap;gap:12px}
  .hero-actions .btn{flex:1 1 220px;min-width:0;max-width:100%;justify-content:center;gap:14px;padding-left:18px;padding-right:18px;white-space:normal;text-align:center}
}
@media(max-width:380px){
  .hero-copy{padding:32px 22px 36px}
  .panel{padding:32px 20px 30px}
}
@media(prefers-reduced-motion:reduce){
  .tile,.btn{transition:none}
  .tile:hover{transform:none}
}
