/* Permeet · early sign-up (lead) page
   Brand: PERMEET_BRAND_BOOK_26, direction 3 (light blue). Same tokens and fonts as the full page in ../אתר.
   Fonts: Avigul FM (Hebrew display), Abraham (body), IBM Plex Sans Condensed (Latin). */

@font-face{font-family:'Avigul FM';src:url(../fonts/avigul-light.woff2) format('woff2');font-weight:300;font-display:swap}
@font-face{font-family:'Avigul FM';src:url(../fonts/avigul-regular.woff2) format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'Avigul FM';src:url(../fonts/avigul-bold.woff2) format('woff2');font-weight:700;font-display:swap}
@font-face{font-family:'Abraham';src:url(../fonts/abraham-regular.woff2) format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'Abraham';src:url(../fonts/abraham-medium.woff2) format('woff2');font-weight:500;font-display:swap}
@font-face{font-family:'Abraham';src:url(../fonts/abraham-bold.woff2) format('woff2');font-weight:700;font-display:swap}
@font-face{font-family:'IBM Plex Sans Condensed';src:url(../fonts/plexcond-regular.woff2) format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'IBM Plex Sans Condensed';src:url(../fonts/plexcond-semibold.woff2) format('woff2');font-weight:600;font-display:swap}
/* Digits in display lines come from Plex Condensed: Avigul's 4 is hard to read at large sizes. */
@font-face{font-family:'Display Digits';src:url(../fonts/plexcond-regular.woff2) format('woff2');font-weight:300 500;unicode-range:U+0030-0039;font-display:swap}
@font-face{font-family:'Display Digits';src:url(../fonts/plexcond-semibold.woff2) format('woff2');font-weight:600 800;unicode-range:U+0030-0039;font-display:swap}

:root{
  --paper:#F2F2F0; /* brand paper #ECECEA, lightened 30% so text doesn't sit on hard grey/white edges */
  --card:#F7F7F6;
  --graphite:#5B6164; --ink:#353734; --black:#1B1E1F;
  --blue:#579FD7; --blue-lg:#3E83BE; --blue-ink:#2B679C;
  --sky:#ACD2EA;
  --line:rgba(53,55,52,.16); --field:#C4C6C7; --danger:#A1261E;
  --display:'Display Digits','Avigul FM','IBM Plex Sans Condensed',sans-serif;
  --body:'Abraham','IBM Plex Sans Condensed','Segoe UI',sans-serif;
  --gutter:clamp(20px,7.8vw,112px);
  --grain:url(../img/paper-grain.png);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;min-height:100vh;display:flex;flex-direction:column;background:var(--paper) var(--grain);background-size:200px 200px;color:var(--ink);font-family:var(--body);font-size:17px;line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:hidden}
main{flex:1}
h1,h2,p,fieldset,legend,ul{margin:0}
p,li{text-wrap:pretty}
img{display:block;max-width:100%}
a{color:inherit;text-underline-offset:4px;text-decoration-thickness:1px}
a:hover{color:var(--blue-ink)}
:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
[hidden]{display:none !important}

.wrap{width:100%;max-width:1440px;margin-inline:auto;padding-inline:var(--gutter)}

/* header */
.site-header{position:relative;z-index:2;border-bottom:1px solid rgba(53,55,52,.14)}
.site-header .wrap{height:88px;display:flex;align-items:center;justify-content:space-between}
.logo{height:36px;width:auto}
.header-link{font-size:14px;font-weight:500}

/* hero: the story on one side, the form on the other */
.hero{position:relative;overflow:hidden;isolation:isolate}
.hero .wrap{position:relative;padding-top:72px;padding-bottom:112px;display:grid;grid-template-columns:minmax(0,1fr) 456px;column-gap:112px;align-items:start}

.story{position:relative;display:flex;flex-direction:column;max-width:680px}
/* The white ə behind the text. Anchored to the text column, not to the screen, and sized per screen range
   so that every line sits wholly on white: the letter's hole and opening fall beside the text, never under it. */
.story-mark{position:absolute;z-index:-1;right:-196px;top:-667px;width:1946px;max-width:none;height:auto;opacity:.9;pointer-events:none}
@media (max-width:1399px){.story-mark{right:-187px;top:-644px;width:1865px}}
@media (max-width:1180px){.story-mark{right:-128px;top:-399px;width:1622px}}
@media (max-width:900px){.story-mark{right:-129px;top:-306px;width:1379px}}
@media (max-width:600px){.story-mark{right:-141px;top:-333px;width:1419px}}
.h1{font-family:var(--display);font-weight:700;font-size:clamp(60px,8vw,120px);line-height:.95;color:var(--graphite)}
.soft{font-weight:300;color:var(--blue-lg)}
.lead{margin-top:36px;font-family:var(--display);font-weight:400;font-size:clamp(22px,2.1vw,30px);line-height:1.3;color:var(--blue-lg);text-wrap:balance}
.statement{margin-top:40px;padding-top:24px;border-top:1px solid rgba(53,55,52,.24);font-family:var(--display);font-weight:700;font-size:clamp(24px,2.1vw,30px);line-height:1.2;color:var(--ink)}
.body{margin-top:16px;font-size:18px;line-height:1.75}

/* "The clinical session has no substitute. For everything else – [logo]" */
.claim{margin-top:44px;padding-top:28px;border-top:1px solid rgba(53,55,52,.24);display:flex;flex-direction:column;align-items:flex-start;gap:.14em;font-family:var(--display);font-weight:700;font-size:clamp(30px,3.1vw,44px);line-height:1.05;color:var(--graphite)}
.claim-rest{display:flex;align-items:baseline;flex-wrap:wrap;column-gap:.3em}
.claim-rest img{height:.74em;width:auto}

/* light-blue field behind the form, bleeding to the page edge */
.sky-panel{position:absolute;z-index:0;left:0;top:0;bottom:0;width:calc(max(0px,(100% - 1440px)/2) + var(--gutter) + 456px + 56px);background:var(--sky) var(--grain);background-size:200px 200px;overflow:hidden}
.panel-motif{position:absolute;left:calc(50vw - 860px);top:24px;width:1720px;max-width:none;opacity:.35}

/* the session and the desk: the clinical encounter, and everything else */
.pair{position:relative;margin:36px 0 0}
.pair-imgs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;border-radius:0 24px 0 24px;overflow:hidden;background:#fff}
.pair-imgs img{width:100%;height:auto;aspect-ratio:1204/912;object-fit:cover}
.pair-mark{position:absolute;left:28px;bottom:-60px;width:120px}
.soon{margin-top:18px;display:flex;align-items:center;gap:12px;font-size:18px;font-weight:500;color:var(--blue-ink)}
.soon::before{content:"";flex:none;width:32px;height:1px;background:var(--blue)}

/* phones only: a jump to the form, which sits below the text */
.jump{display:none}

.signoff{margin-top:44px;font-family:var(--display);font-weight:700;font-size:clamp(30px,3.1vw,44px);line-height:1;color:var(--ink)}

/* sign-up card */
.signup{position:sticky;top:32px;scroll-margin-top:16px}
.card{background:var(--card);border-radius:16px;box-shadow:0 1px 2px rgba(27,30,31,.08),0 18px 40px rgba(27,30,31,.14);padding:36px 36px 32px}
.card-title{font-family:var(--display);font-weight:700;font-size:32px;line-height:1.08;color:var(--graphite);text-wrap:balance}
.form{display:flex;flex-direction:column;gap:20px}
.field{display:flex;flex-direction:column;gap:8px}
.field>label,.field legend{font-size:14px;font-weight:500;padding:0}
fieldset.field{border:0;padding:0;min-width:0;margin:0}
.input{height:52px;width:100%;padding:0 16px;border:1px solid var(--field);border-radius:10px;background:#fff;color:var(--black);font:inherit;font-size:17px}
.input.ltr{direction:ltr;text-align:right}
.input[aria-invalid=true]{border-color:var(--danger)}

.field-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.select{appearance:none;-webkit-appearance:none;cursor:pointer;padding-inline:14px 38px;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23353734' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:left 14px center}
.select:invalid{color:#6B7074}
.select option{color:var(--black)}

.consent{display:grid;grid-template-columns:18px minmax(0,1fr);gap:12px;align-items:start;font-size:13.5px;line-height:1.6;color:var(--graphite);cursor:pointer}
.consent input{margin:3px 0 0;width:18px;height:18px;accent-color:var(--blue-ink);cursor:pointer}

.error{font-size:13.5px;color:var(--danger);line-height:1.4}
.btn{margin-top:4px;height:58px;padding:0 30px;border:0;border-radius:999px;background:var(--ink);color:#fff;font:inherit;font-size:18px;font-weight:500;display:inline-flex;align-items:center;justify-content:center;gap:12px;cursor:pointer}
.btn:hover{background:var(--black)}
.btn:disabled{opacity:.6;cursor:default}
.btn svg{flex:none}

.sent{min-height:560px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:18px}
.sent h2{font-family:var(--display);font-weight:700;font-size:48px;line-height:1.02;color:var(--graphite)}
.sent h2:focus{outline:none}
.sent p{font-size:17px;line-height:1.7}

/* footer */
.site-footer{border-top:1px solid rgba(53,55,52,.14)}
.site-footer .wrap{padding-block:24px;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:13.5px;color:var(--graphite)}

/* privacy page */
.legal .wrap{padding-top:88px;padding-bottom:112px;display:grid;grid-template-columns:300px minmax(0,760px);column-gap:112px;row-gap:40px;align-items:start}
.legal-side{display:flex;flex-direction:column;gap:20px}
.legal-side h1{font-family:var(--display);font-weight:700;font-size:clamp(40px,4vw,56px);line-height:1.05;color:var(--graphite)}
.legal-side p{font-size:15px;color:var(--graphite)}
.legal-body{display:flex;flex-direction:column;gap:44px;font-size:17px;line-height:1.75}
.legal-intro{font-family:var(--display);font-weight:400;font-size:26px;line-height:1.35;color:var(--blue-lg)}
.legal-body section{display:flex;flex-direction:column;gap:12px}
.legal-body h2{font-family:var(--display);font-weight:700;font-size:30px;line-height:1.15;color:var(--graphite)}
.legal-body ul{padding-inline-start:22px;display:flex;flex-direction:column;gap:6px}

/* scroll reveal: fade in with a slight rise */
.reveal{opacity:0;transform:translateY(24px);transition:opacity .8s cubic-bezier(.2,.7,.2,1) var(--reveal-delay,0ms),transform .8s cubic-bezier(.2,.7,.2,1) var(--reveal-delay,0ms)}
.reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none}}
@media print{.reveal{opacity:1 !important;transform:none !important}}

/* ---------- responsive ---------- */
@media (max-width:1180px){
  .hero .wrap{grid-template-columns:minmax(0,1fr) 420px;column-gap:56px}
  .sky-panel{width:calc(var(--gutter) + 420px + 28px)}
  .pair-mark{width:88px;left:20px;bottom:-44px}
  .legal .wrap{grid-template-columns:240px minmax(0,1fr);column-gap:64px}
}
@media (max-width:900px){
  .site-header .wrap{height:60px}
  .logo{height:26px}
  .sky-panel{display:none}
  .jump{margin-top:22px;align-self:flex-start;height:50px;padding:0 22px;border-radius:999px;background:var(--ink);color:#fff;display:inline-flex;align-items:center;gap:10px;font-size:16px;font-weight:500;text-decoration:none}
  .jump:hover{background:var(--black);color:#fff}
  .signup.card{margin:0 calc(-1 * var(--gutter)) -56px;padding:32px var(--gutter) 48px;border-radius:14px 14px 0 0;box-shadow:none;background:var(--sky) var(--grain);background-size:200px 200px}
  .pair{margin-top:28px}
  .pair-imgs{gap:6px;border-radius:0 16px 0 16px}
  .pair-mark{width:52px;left:14px;bottom:-24px}
  .soon{font-size:16px;margin-top:14px}
  .soon::before{width:24px}
  .hero .wrap{grid-template-columns:minmax(0,1fr);row-gap:40px;padding-top:36px;padding-bottom:56px}
  .signup{position:static}
  .lead{margin-top:20px}
  .statement{margin-top:28px;padding-top:20px}
  .body{font-size:17px;line-height:1.7}
  .claim{margin-top:32px;padding-top:22px}
  .signoff{margin-top:28px}
  .card{padding:24px 20px;border-radius:14px}
  .card-title{font-size:27px}
  .form{gap:16px}
  .input{height:50px}
  .btn{height:56px;font-size:17px}
  .sent{min-height:0;padding:24px 0}
  .sent h2{font-size:40px}
  .legal .wrap{grid-template-columns:minmax(0,1fr);padding-top:48px;padding-bottom:72px}
  .legal-intro{font-size:22px}
  .legal-body h2{font-size:26px}
}
@media (max-width:400px){
  .field-row{gap:8px}
  .select{padding-inline:12px 32px;background-position:left 12px center;font-size:16px}
}
