/* ==========================================================================
   TerraJolie – site styles
   Colours and spacing live in the :root tokens below. Change them there.
   ========================================================================== */

/* Fredoka – the font used in the books (self-hosted, no Google requests) */
@font-face{font-family:'Fredoka';font-style:normal;font-display:swap;font-weight:400;src:url(../fonts/fredoka-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Fredoka';font-style:normal;font-display:swap;font-weight:400;src:url(../fonts/fredoka-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Fredoka';font-style:normal;font-display:swap;font-weight:500;src:url(../fonts/fredoka-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Fredoka';font-style:normal;font-display:swap;font-weight:500;src:url(../fonts/fredoka-latin-ext-500-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Fredoka';font-style:normal;font-display:swap;font-weight:600;src:url(../fonts/fredoka-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Fredoka';font-style:normal;font-display:swap;font-weight:600;src:url(../fonts/fredoka-latin-ext-600-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Fredoka';font-style:normal;font-display:swap;font-weight:700;src:url(../fonts/fredoka-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Fredoka';font-style:normal;font-display:swap;font-weight:700;src:url(../fonts/fredoka-latin-ext-700-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

:root{
  /* Brand palette */
  --paper:#FBFAF7;      /* page background */
  --sand:#F3EEE4;       /* quiet sections, cards */
  --clay:#E6DCC8;       /* borders, chips */
  --sky-mist:#DCEEFB;   /* illustration panels */
  --sky:#BEE3FE;        /* book sky – illustrations only */
  --blue:#2F78C4;       /* logo blue – accents */
  --forest:#2E6B47;     /* logo green – buttons, links */
  --forest-dark:#24573A;
  --forest-tint:#E4EFE7;
  --grass:#5CA84D;      /* book grass – grass line, ticks */
  --sun:#E8B23A;
  --ink:#1D2939;        /* headings, text */
  --text:#3A4556;       /* body text */
  --muted:#5B6577;      /* captions (5.6:1 on paper) */
  --line:#E7E1D6;
  --white:#FFFFFF;
  --danger:#B42318;

  --font:'Fredoka',ui-rounded,'SF Pro Rounded','Nunito',system-ui,-apple-system,'Segoe UI',sans-serif;
  --radius-s:12px; --radius-m:18px; --radius-l:28px;
  --shadow-s:0 1px 2px rgba(29,41,57,.05),0 4px 14px rgba(29,41,57,.06);
  --shadow-m:0 1px 2px rgba(29,41,57,.04),0 12px 32px rgba(29,41,57,.08);
  --wrap:1180px;
  --gutter:20px;
  --ease:cubic-bezier(.2,.7,.2,1);
}
@media (min-width:768px){:root{--gutter:32px}}

/* Reset-ish */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}
body{margin:0;background:var(--paper);color:var(--text);font-family:var(--font);font-size:17px;line-height:1.6;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
img{max-width:100%;height:auto;display:block}
h1,h2,h3{color:var(--ink);margin:0;line-height:1.1;font-weight:600;letter-spacing:-.01em}
p{margin:0}
a{color:var(--forest);text-underline-offset:3px;text-decoration-thickness:1px}
a:hover{color:var(--forest-dark)}
:focus-visible{outline:3px solid var(--blue);outline-offset:3px;border-radius:6px}
button{font:inherit;color:inherit}
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Hide the page while a non-English language is applied (max ~1s) */
html.tj-i18n-pending body{visibility:hidden}

.skip-link{position:absolute;left:12px;top:-60px;background:var(--ink);color:var(--paper);padding:10px 16px;border-radius:10px;z-index:100;text-decoration:none;font-weight:600}
.skip-link:focus{top:12px;color:var(--paper)}

.wrap{max-width:var(--wrap);margin:0 auto;padding-left:var(--gutter);padding-right:var(--gutter)}
.wrap--narrow{max-width:760px}
.eyebrow{font-size:14px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.eyebrow--green{color:var(--forest)}

/* Header */
.site-header{position:sticky;top:0;z-index:20;background:rgba(251,250,247,.86);-webkit-backdrop-filter:saturate(1.4) blur(12px);backdrop-filter:saturate(1.4) blur(12px);border-bottom:1px solid transparent;transition:border-color .3s var(--ease)}
.site-header.is-scrolled{border-bottom-color:var(--line)}
.site-header__inner{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:68px}
.brand{display:block;flex:none;line-height:0}
.brand img{width:132px}
@media (min-width:768px){.site-header__inner{min-height:84px}.brand img{width:172px}}
.site-nav{display:none;gap:4px;align-items:center}
@media (min-width:880px){.site-nav{display:flex}}
.site-nav a[aria-current="page"]{background:var(--sand)}
.nav-toggle{display:grid;place-items:center;width:42px;height:42px;flex:none;border:1px solid var(--line);border-radius:50%;background:var(--white);color:var(--ink);cursor:pointer}
@media (min-width:880px){.nav-toggle{display:none}}
@media (max-width:879px){
  .site-header.is-open .site-nav{display:flex;flex-direction:column;align-items:stretch;position:absolute;left:0;right:0;top:100%;padding:8px 16px 16px;background:var(--paper);border-bottom:1px solid var(--line);box-shadow:0 12px 24px rgba(29,41,57,.08)}
  .site-header.is-open .site-nav a{padding:14px 12px;font-size:18px}
  .header-end{gap:8px}
}
@media (max-width:420px){.brand img{width:112px}.lang-switch button{min-width:34px;padding:0 6px}}
.site-nav a{color:var(--ink);text-decoration:none;font-weight:500;padding:12px 14px;border-radius:999px;transition:background-color .2s}
.site-nav a:hover{background:var(--sand)}
.header-end{display:flex;align-items:center;gap:12px}

/* Language switcher – segmented control */
.lang-switch{display:flex;gap:2px;padding:3px;border-radius:999px;background:var(--sand)}
.lang-switch button{border:0;background:transparent;color:var(--muted);font-size:14px;font-weight:600;min-width:44px;height:38px;padding:0 8px;border-radius:999px;cursor:pointer;transition:background-color .2s,color .2s,box-shadow .2s}
.lang-switch button:hover{color:var(--ink)}
.lang-switch button[aria-pressed="true"]{background:var(--white);color:var(--ink);box-shadow:0 1px 3px rgba(29,41,57,.14)}
@media (max-width:360px){.lang-switch button{min-width:30px;padding:0 2px}.brand img{width:100px}}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:0 26px;border-radius:999px;border:1px solid transparent;font-family:inherit;font-size:17px;font-weight:600;line-height:1.2;text-decoration:none;cursor:pointer;transition:transform .2s var(--ease),box-shadow .2s var(--ease),background-color .2s,color .2s,border-color .2s;-webkit-tap-highlight-color:transparent}
.btn:active{transform:translateY(1px)}
.btn svg{flex:none}
.btn--primary{background:var(--forest);color:var(--white);box-shadow:0 6px 18px rgba(46,107,71,.22)}
.btn--primary:hover{background:var(--forest-dark);color:var(--white);box-shadow:0 8px 22px rgba(46,107,71,.28);transform:translateY(-1px)}
.btn--dark{background:var(--ink);color:var(--paper)}
.btn--dark:hover{background:#111a26;color:var(--paper);transform:translateY(-1px)}
.btn--ghost{background:transparent;color:var(--ink);border-color:var(--clay)}
.btn--ghost:hover{border-color:var(--ink);color:var(--ink)}
.btn--link{background:transparent;color:var(--ink);padding:0 8px}
.btn--link:hover{color:var(--forest)}
.btn--block{width:100%}
.btn--sm{min-height:44px;padding:0 18px;font-size:15px}
.btn[disabled]{opacity:.65;cursor:progress}

/* Cards and panels */
.card{background:var(--white);border-radius:var(--radius-l);box-shadow:var(--shadow-m)}
.panel-sky{position:relative;background:var(--sky-mist);border-radius:var(--radius-l);overflow:hidden}
.grass-line{position:absolute;left:0;right:0;bottom:0;height:10px;background:var(--grass)}

/* Sections */
.section{padding:56px 0}
@media (min-width:768px){.section{padding:88px 0}}
.section-head{display:flex;flex-direction:column;gap:12px;margin-bottom:32px}
.section-head h2{font-size:clamp(32px,4.4vw,48px)}

/* ---------- Home ---------- */
.hero{padding:24px 0 56px}
@media (min-width:768px){.hero{padding:48px 0 88px}}
.hero__grid{display:grid;gap:40px;align-items:center}
@media (min-width:900px){.hero__grid{grid-template-columns:1.05fr 1fr;gap:64px}}
.hero__copy{display:flex;flex-direction:column;gap:22px}
.hero h1{font-size:clamp(42px,6.4vw,72px);line-height:1.02;letter-spacing:-.02em}
.hero__lead{font-size:clamp(18px,1.7vw,20px);color:var(--text);max-width:30em}
.hero__actions{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;padding-top:6px}
.hero__art{padding:40px 40px 0;display:flex;justify-content:center}
@media (min-width:768px){.hero__art{padding:56px 64px 0}}

.hero__cloud{position:absolute;width:64px;opacity:.95}

.gift-band{background:var(--sand);border-radius:var(--radius-l);padding:32px 24px;display:flex;flex-wrap:wrap;gap:24px;align-items:center;justify-content:space-between}
@media (min-width:768px){.gift-band{padding:44px 48px}}
.gift-band__copy{flex:1 1 420px;display:flex;flex-direction:column;gap:10px}
.gift-band h2{font-size:clamp(26px,3vw,34px)}
.gift-band__icon{flex:none;width:64px;height:64px;border-radius:50%;background:var(--white);display:grid;place-items:center;box-shadow:var(--shadow-s)}

.books{display:flex;flex-direction:column;gap:24px}
.book{padding:24px;display:grid;gap:28px;align-items:center}
@media (min-width:820px){.book{grid-template-columns:360px 1fr;gap:48px;padding:40px}}
.book__cover{width:100%;max-width:360px;justify-self:center;border-radius:var(--radius-m);padding:24px;background:var(--sky-mist);position:relative;overflow:hidden}
.book__cover img{border-radius:4px;box-shadow:0 14px 28px rgba(29,41,57,.16);width:100%}
.book__cover--placeholder{aspect-ratio:3/4;display:grid;place-items:center;text-align:center;background:var(--sand)}
.book__cover--placeholder .ph{display:flex;flex-direction:column;align-items:center;gap:12px;padding:16px}
.book__cover--placeholder .ph strong{font-size:24px;color:var(--ink);line-height:1.15}
.book__cover--placeholder .ph span{font-size:14px;color:var(--muted)}
.book__body{display:flex;flex-direction:column;gap:18px}
.book__meta{font-size:15px;color:var(--muted)}
.book h3{font-size:clamp(28px,3vw,36px)}
.book__desc{color:var(--text)}
.ticks{list-style:none;margin:0;padding:0;display:grid;gap:10px 24px}
@media (min-width:560px){.ticks{grid-template-columns:repeat(2,minmax(0,1fr))}}
.ticks li{display:flex;gap:10px;align-items:flex-start;font-size:16px;color:var(--ink)}
.ticks svg{flex:none;margin-top:4px}
.buy{display:flex;flex-direction:column;gap:12px;padding-top:4px}
.buy__row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.buy__others{font-size:15px;color:var(--muted);display:flex;flex-wrap:wrap;gap:4px 14px;align-items:center}
.buy__others a{color:var(--ink);padding:6px 0}
.chips{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.chip{padding:8px 14px;border-radius:999px;background:var(--sand);font-size:15px;color:var(--ink)}
.chips__label{font-size:15px;font-weight:600;color:var(--muted);margin-right:6px}

.about{display:grid;gap:36px;align-items:center}
@media (min-width:820px){.about{grid-template-columns:320px 1fr;gap:64px}}
.about__art{aspect-ratio:1/1;border-radius:50%;background:var(--sky);overflow:hidden;display:flex;align-items:flex-end;justify-content:center;max-width:280px;position:relative}
.about__art img{width:58%}
.about__art .grass-line{height:14px}
.about__photo{margin:0;max-width:340px;width:100%;justify-self:center;border-radius:28px;overflow:hidden;box-shadow:0 18px 40px -22px rgba(29,41,57,.45);aspect-ratio:4/5;background:var(--sky)}
.about__photo img{display:block;width:100%;height:100%;object-fit:cover}
.about__copy{display:flex;flex-direction:column;gap:16px}
.about__copy h2{font-size:clamp(30px,3.4vw,40px)}
.about__copy p{max-width:34em}

/* Footer */
.site-footer{border-top:1px solid var(--line);margin-top:24px}
.site-footer__inner{display:flex;flex-wrap:wrap;gap:20px 32px;justify-content:space-between;align-items:center;padding-top:36px;padding-bottom:44px;font-size:15px;color:var(--muted)}
.site-footer img{width:120px}
.site-footer nav{display:flex;flex-wrap:wrap;gap:4px 22px;align-items:center}
.site-footer a{color:var(--muted);padding:8px 0;display:inline-block}
.site-footer a:hover{color:var(--ink)}

/* ---------- Free gifts ---------- */
.page-free .site-header{position:static}
.free{max-width:560px;margin:0 auto;padding:0 16px 24px}
.free__art{margin:8px 4px 0;height:180px;border-radius:24px;background:var(--sky);display:flex;align-items:flex-end;overflow:hidden}
.free__art img{width:100%}
@media (min-width:560px){.free__art{height:230px}}
.free__intro{padding:28px 8px 4px;display:flex;flex-direction:column;gap:12px}
.free__intro h1{font-size:clamp(30px,7.4vw,40px);line-height:1.1}
.free__intro p{font-size:18px;color:var(--text)}
.gifts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:20px 4px 4px}
.gift{background:var(--white);border-radius:var(--radius-m);padding:14px;box-shadow:var(--shadow-s);display:flex;flex-direction:column;gap:10px}
.gift__art{height:84px;border-radius:12px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.gift__art--cert{background:#FBF3DE;border:1.5px dashed #C9C2B4}
.gift__art--cert img{height:60px;width:auto}
.gift__art--mono{gap:6px;background:transparent;border-radius:0}
.gift__art--mono img{flex:1;min-width:0;height:100%;object-fit:contain}
.gift strong{font-size:16px;color:var(--ink);line-height:1.25;font-weight:600}
.gift small{font-size:14px;color:var(--muted);line-height:1.35;margin-top:-6px}

.form-card{margin:20px 0 0;padding:24px 20px;display:flex;flex-direction:column;gap:18px}
@media (min-width:560px){.form-card{padding:32px}}
.field{display:flex;flex-direction:column;gap:6px;min-width:0}
.field label,.field .label{font-size:15px;font-weight:600;color:var(--ink)}
.field .optional{font-weight:400;color:var(--muted)}
.input,.select{width:100%;height:54px;border-radius:14px;border:1px solid #D6CFC2;background:var(--paper);padding:0 16px;font-family:inherit;font-size:17px;color:var(--ink);transition:border-color .2s,box-shadow .2s,background-color .2s;-webkit-appearance:none;appearance:none}
.select{padding-right:40px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231D2939' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;text-overflow:ellipsis}
.input:hover,.select:hover{border-color:#BDB4A4}
.input:focus,.select:focus{outline:none;border-color:var(--forest);background:var(--white);box-shadow:0 0 0 4px rgba(46,107,71,.14)}
.field.has-error .input,.field.has-error .select{border-color:var(--danger);box-shadow:0 0 0 4px rgba(180,35,24,.10)}
.field__error{display:none;font-size:14px;color:var(--danger);font-weight:500}
.field.has-error .field__error{display:block}
.field__note{display:flex;gap:8px;align-items:flex-start;font-size:14px;line-height:1.45;color:var(--muted)}
.field__note svg{flex:none;margin-top:2px}
.row-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media (max-width:359px){.row-2{grid-template-columns:1fr}}
.consent{display:flex;gap:12px;align-items:flex-start;padding:14px;border-radius:14px;background:#F7F4EE;cursor:pointer;font-size:15px;line-height:1.5;color:var(--text)}
.consent input{flex:none;width:24px;height:24px;margin:0;accent-color:var(--forest);cursor:pointer}
.form-foot{font-size:14px;line-height:1.5;color:var(--muted);text-align:center}
.hp{position:absolute!important;left:-10000px!important;width:1px;height:1px;overflow:hidden}
.spinner{width:18px;height:18px;border-radius:50%;border:2.5px solid rgba(255,255,255,.4);border-top-color:#fff;animation:spin .8s linear infinite;display:none}
.is-sending .spinner{display:inline-block}
@keyframes spin{to{transform:rotate(360deg)}}
.small-footer{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 20px;padding:36px 16px 32px;font-size:14px}
.small-footer a{color:var(--muted);padding:8px 0}

/* ---------- Thank-you ---------- */
.done-badge{width:56px;height:56px;border-radius:50%;background:var(--forest-tint);display:grid;place-items:center}
.cert-card{margin-top:24px;padding:20px;display:flex;flex-direction:column;gap:16px}
@media (min-width:560px){.cert-card{padding:28px}}
.cert-stage{border-radius:16px;background:var(--sand);padding:20px;display:flex;justify-content:center}
.cert-preview{width:210px;aspect-ratio:210/297;background:var(--white);border-radius:6px;box-shadow:0 10px 24px rgba(29,41,57,.14);padding:9px;container-type:inline-size}
.cert-preview__inner{height:100%;border:1.5px solid var(--ink);border-radius:10px;padding:4px;position:relative;background:#FBF3DE}
.cert-preview__dash{height:100%;border:1.2px dashed var(--ink);border-radius:7px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center;padding:10px 8px;position:relative}
.cert-preview__star{position:absolute;width:12px}
.cert-preview__star.tl{top:6px;left:6px}.cert-preview__star.tr{top:6px;right:6px}.cert-preview__star.bl{bottom:6px;left:6px}.cert-preview__star.br{bottom:6px;right:6px}
.cert-preview__medal{width:34px}
.cert-preview__title{font-weight:600;font-size:21px;color:var(--ink);line-height:1;margin-top:2px}
.cert-preview__sub{font-weight:600;font-size:10px;color:var(--ink)}
.cert-preview__line{font-size:7.5px;color:var(--text);line-height:1.3}
.cert-preview__name{font-weight:600;font-size:17px;color:var(--ink);border-bottom:1px solid var(--ink);padding:0 10px 1px;min-width:60%;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.cert-preview__name.is-empty{color:#B8B0A2}
.cert-preview__date{font-size:7.5px;color:var(--text)}
.cert-preview__mono{width:92%;margin-top:4px}
.cert-card h2{font-size:22px}
.cert-meta{font-size:14px;color:var(--muted)}
.cert-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.list-card{margin-top:16px;padding:6px 20px}
.dl-item{display:flex;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid #F0EBE2}
.dl-item:last-child{border-bottom:0}
.dl-item__thumb{width:52px;height:52px;border-radius:12px;background:var(--sky-mist);flex:none;display:grid;place-items:center}
.dl-item__thumb.alt{background:var(--sand)}
.dl-item__thumb.has-img{width:64px;height:57px;border-radius:10px;overflow:hidden;background:#fff;box-shadow:0 0 0 1px #E8E2D6}
.dl-item__thumb.has-img img{width:100%;height:100%;object-fit:cover;display:block}
.dl-item__text{flex:1;min-width:0}
.dl-item__text strong{display:block;font-size:16px;color:var(--ink);font-weight:600;line-height:1.3}
.dl-item__text span{font-size:14px;color:var(--muted)}
.dl-btn{width:48px;height:48px;border-radius:50%;background:var(--forest-tint);color:var(--forest);display:grid;place-items:center;flex:none;transition:background-color .2s,transform .2s var(--ease)}
.dl-btn:hover{background:#d3e6d9;color:var(--forest-dark);transform:translateY(-1px)}
.note{margin-top:16px;padding:16px 18px;border-radius:18px;background:var(--sky-mist);display:flex;gap:12px;align-items:flex-start;font-size:15px;line-height:1.5;color:var(--ink)}
.note svg{flex:none;margin-top:2px}
.note--sand{background:var(--sand)}
.tip{margin-top:14px;font-size:14px;color:var(--muted);text-align:center}
[hidden]{display:none!important}

/* ---------- Legal / simple pages ---------- */
.legal{padding-top:40px;padding-bottom:64px}
.legal h1{font-size:clamp(34px,5vw,48px);margin-bottom:8px}
.legal .updated{color:var(--muted);font-size:15px;margin-bottom:32px}
.legal h2{font-size:22px;margin:36px 0 10px}
.legal p,.legal li{color:var(--text);max-width:42em}
.legal p+p{margin-top:12px}
.legal ul{padding-left:22px;margin:10px 0}
.legal li{margin:6px 0}
.legal address{font-style:normal}
.legal .box{background:var(--sand);border-radius:var(--radius-m);padding:20px 22px;margin:16px 0}
.simple{padding-top:64px;padding-bottom:80px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:16px}
.simple h1{font-size:clamp(32px,5vw,44px)}
.simple p{max-width:30em}

/* Gentle reveal on scroll (only when JS is running) */
.js .reveal{opacity:0;transform:translateY(14px);transition:opacity .7s var(--ease),transform .7s var(--ease)}
.js .reveal.is-visible{opacity:1;transform:none}

/* Coming-soon badge on a book cover */
.book__badge{position:absolute;top:14px;left:14px;z-index:2;background:var(--ink);color:var(--paper);font-size:14px;font-weight:600;padding:7px 14px;border-radius:999px;box-shadow:0 4px 12px rgba(29,41,57,.2)}

/* Instagram links */
.insta{display:inline-flex;align-items:center;gap:8px}
.insta svg{flex:none}
.about__social{display:flex;flex-wrap:wrap;gap:10px;margin-top:4px}
.about__social .about__insta{margin-top:0}
.about__insta{display:inline-flex;align-items:center;gap:10px;align-self:flex-start;margin-top:4px;min-height:48px;padding:0 20px 0 14px;border-radius:999px;border:1px solid var(--clay);color:var(--ink);text-decoration:none;font-weight:600;transition:border-color .2s,transform .2s var(--ease)}
.about__insta:hover{border-color:var(--ink);color:var(--ink);transform:translateY(-1px)}
.share-insta{margin-top:16px;display:flex;align-items:center;gap:14px;padding:16px 18px;border-radius:18px;background:var(--sand);color:var(--ink);text-decoration:none;font-size:15px;line-height:1.45;transition:background-color .2s}
.share-insta:hover{background:#ECE5D7;color:var(--ink)}
.share-insta strong{display:block;font-weight:600}
.share-insta .ig-badge{flex:none;width:44px;height:44px;border-radius:12px;background:var(--white);display:grid;place-items:center;box-shadow:var(--shadow-s)}
.share-insta .ig-badge{color:var(--forest)}

/* Hero: the four books fanned out like a hand of cards, World in front */
.hero__art{padding:0;display:block}
.fan{position:relative;height:clamp(330px,92vw,470px)}
@media (min-width:900px){.fan{height:580px}}
.fan__book{position:absolute;bottom:24%;left:50%;width:30%;max-width:208px;border-radius:5px;box-shadow:0 22px 44px rgba(29,41,57,.22),0 4px 10px rgba(29,41,57,.08);transform-origin:50% 150%;transition:transform .6s var(--ease)}
.fan__book--1{z-index:1;transform:translateX(-50%) translateX(-56%) translateY(5%) rotate(-16deg)}
.fan__book--2{z-index:4;width:34%;max-width:240px;transform:translateX(-50%) translateX(-17%) translateY(-2%) rotate(-5deg)}
.fan__book--3{z-index:3;transform:translateX(-50%) translateX(22%) translateY(0) rotate(6deg)}
.fan__book--4{z-index:2;transform:translateX(-50%) translateX(58%) translateY(5%) rotate(16deg)}
@media (hover:hover){
  .hero__art:hover .fan__book--1{transform:translateX(-50%) translateX(-66%) translateY(3%) rotate(-20deg)}
  .hero__art:hover .fan__book--2{transform:translateX(-50%) translateX(-18%) translateY(-5%) rotate(-6deg)}
  .hero__art:hover .fan__book--3{transform:translateX(-50%) translateX(25%) translateY(-2%) rotate(7deg)}
  .hero__art:hover .fan__book--4{transform:translateX(-50%) translateX(68%) translateY(3%) rotate(20deg)}
}
.js .fan__book{animation:fanIn .9s var(--ease) both .1s}
@keyframes fanIn{from{transform:translateX(-50%) rotate(0)}}


/* Books: one at a time, with arrows, dots and swipe */
.carousel{position:relative}
.carousel__track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;border-radius:var(--radius-l);background:var(--white);box-shadow:var(--shadow-m);overscroll-behavior-x:contain}
.carousel__track::-webkit-scrollbar{display:none}
.carousel__track:focus-visible{outline:3px solid var(--blue);outline-offset:4px}
.carousel__slide{flex:0 0 100%;min-width:0;scroll-snap-align:start;box-shadow:none;border-radius:0}
.carousel__btn{position:absolute;z-index:3;top:50%;transform:translateY(-50%);width:52px;height:52px;border-radius:50%;border:1px solid var(--line);background:var(--white);color:var(--ink);display:grid;place-items:center;cursor:pointer;box-shadow:var(--shadow-s);transition:transform .2s var(--ease),box-shadow .2s,background-color .2s}
.carousel__btn:hover{background:var(--sand);box-shadow:var(--shadow-m)}
.carousel__btn--prev{left:-26px}
.carousel__btn--next{right:-26px}
@media (max-width:1240px){.carousel__btn--prev{left:-14px}.carousel__btn--next{right:-14px}}
@media (max-width:819px){
  .carousel__btn{top:170px;width:46px;height:46px}
  .carousel__btn--prev{left:-6px}.carousel__btn--next{right:-6px}
}
.carousel__dots{display:flex;justify-content:center;gap:4px;margin-top:18px}
.carousel__dot{width:28px;height:28px;border:0;background:transparent;padding:0;cursor:pointer;display:grid;place-items:center}
.carousel__dot::before{content:"";width:9px;height:9px;border-radius:999px;background:var(--clay);transition:width .3s var(--ease),background-color .3s}
.carousel__dot[aria-current="true"]::before{width:26px;background:var(--forest)}
.gift-band__copy a{color:var(--forest);font-weight:600}

/* Five languages in the switcher */
.lang-switch button{min-width:40px;padding:0 6px}
@media (max-width:420px){.lang-switch button{min-width:34px;height:36px;padding:0 3px;font-size:13px}.brand img{width:116px}}
@media (max-width:360px){.lang-switch button{min-width:30px;padding:0 2px}.brand img{width:100px}}

/* Global Citizen Golden Certificate (/golden) */
.golden__hero{display:flex;justify-content:center;margin:12px 0 -6px}
.golden__hero img{width:92px;height:auto;filter:drop-shadow(0 10px 18px rgba(176,125,26,.35))}
.golden__loading{text-align:center;color:var(--muted);padding:40px 0}
.golden .free__intro{text-align:center;align-items:center}
.eyebrow--gold{color:#9A6B00}
.btn--gold{background:linear-gradient(135deg,#E6B33B,#C8961E);color:#fff;box-shadow:0 10px 22px -12px rgba(150,105,10,.7)}
.btn--gold:hover{color:#fff;filter:brightness(1.05)}
.golden-card{border:2px solid #F1D58A}
.child-list{display:flex;flex-direction:column;gap:12px}
.child-row__input{display:flex;gap:8px;align-items:center}
.child-row__remove{flex:none;width:44px;height:44px;border-radius:50%;border:1px solid #D6CFC2;background:#fff;font-size:22px;line-height:1;color:var(--muted);cursor:pointer}
.child-row__remove:hover{border-color:var(--ink);color:var(--ink)}
.golden-add{align-self:flex-start;padding-left:0}
.golden-error{display:block;min-height:0}
.golden-error:empty{display:none}
.golden-post{margin-top:16px}
.golden-post h2{font-size:22px}
.golden-post__lead{color:var(--text);margin-top:-8px}
.golden-post form{display:flex;flex-direction:column;gap:18px}
.textarea{height:auto;min-height:96px;padding:14px 16px;line-height:1.45;resize:vertical}
.golden-status{margin-top:0;background:#FFF4D6}
.golden-steps{list-style:none;margin:20px 0 0;padding:20px;display:flex;flex-direction:column;gap:14px}
.golden-steps li{display:flex;gap:12px;align-items:flex-start;font-size:16px;line-height:1.5;color:var(--text)}
.golden-steps .num{flex:none;width:28px;height:28px;border-radius:50%;background:linear-gradient(135deg,#E6B33B,#C8961E);color:#fff;font-weight:600;display:grid;place-items:center;font-size:14px}
.admin-table{width:100%;border-collapse:collapse;font-size:15px}
.admin-table th,.admin-table td{padding:8px 10px;border-bottom:1px solid #F0EBE2;text-align:left}
.admin-table td.n{text-align:right;font-variant-numeric:tabular-nums}
.theme-pick{border:0;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.theme-pick legend{font-size:15px;font-weight:600;color:var(--ink);margin-bottom:8px;padding:0}
.theme-opt{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 10px 14px;border:2px solid #E8E2D6;border-radius:18px;background:#fff;cursor:pointer;text-align:center;transition:border-color .2s,box-shadow .2s}
.theme-opt img{width:100%;max-width:150px;height:auto;border-radius:6px;box-shadow:0 6px 16px -8px rgba(29,41,57,.4);margin-bottom:6px}
.theme-opt strong{font-size:15px;color:var(--ink)}
.theme-opt small{font-size:13px;line-height:1.35;color:var(--muted)}
.theme-opt input{position:absolute;opacity:0;pointer-events:none}
.theme-opt:has(input:checked){border-color:#C8961E;box-shadow:0 0 0 4px rgba(200,150,30,.18)}
.theme-opt:has(input:focus-visible){outline:3px solid var(--ink);outline-offset:2px}
.row-addr{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,1fr);gap:12px;align-items:start}
.row-addr--city{grid-template-columns:minmax(0,1fr) minmax(0,2fr)}
@media (max-width:359px){.row-addr,.row-addr--city{grid-template-columns:1fr}}

/* Picture scroll in the book cards */
.book__cover:has(.gal){padding:16px 16px 8px}
.gal{position:relative}
.gal__track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;overscroll-behavior-x:contain;aspect-ratio:1/1;border-radius:6px}
.gal__track::-webkit-scrollbar{display:none}
.gal__track:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.gal__slide{flex:0 0 100%;min-width:0;height:100%;scroll-snap-align:center;display:flex;align-items:center;justify-content:center;border:0;background:none;padding:6px 14px 16px;cursor:zoom-in}
.book__cover .gal__slide img{width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;border-radius:6px;box-shadow:0 10px 22px rgba(29,41,57,.14)}
.book__cover .gal__slide--cover img{border-radius:4px;box-shadow:0 14px 28px rgba(29,41,57,.18)}
.gal__bar{display:flex;align-items:center;justify-content:center;gap:2px}
.gal__btn{width:34px;height:34px;border-radius:50%;border:1px solid var(--line);background:var(--white);color:var(--ink);display:grid;place-items:center;cursor:pointer;flex:none;transition:background-color .2s}
.gal__btn:hover{background:var(--sand)}
.gal__dots{display:flex;flex-wrap:wrap;justify-content:center;padding:0 4px}
.gal__dot{width:20px;height:28px;border:0;background:transparent;padding:0;cursor:pointer;display:grid;place-items:center}
.gal__dot::before{content:"";width:7px;height:7px;border-radius:999px;background:var(--clay);transition:width .3s var(--ease),background-color .3s}
.gal__dot[aria-current="true"]::before{width:16px;background:var(--forest)}
.book__details{font-size:15px;font-weight:600;color:var(--forest);margin-top:-8px}
html.no-scroll{overflow:hidden}
.lightbox{border:0;padding:0;margin:0;width:100vw;height:100vh;max-width:none;max-height:none;background:transparent;display:none;align-items:center;justify-content:center}
.lightbox[open]{display:flex}
.lightbox::backdrop{background:rgba(20,28,40,.86)}
.lightbox__fig{margin:0;display:flex;flex-direction:column;align-items:center;gap:12px;padding:56px 64px}
.lightbox__fig img{max-width:min(100%,1100px);max-height:calc(100vh - 150px);width:auto;height:auto;border-radius:8px;box-shadow:0 20px 50px rgba(0,0,0,.35);background:#fff}
.lightbox__count{color:#fff;font-size:15px;font-weight:600;min-height:1.2em}
.lightbox__close,.lightbox__nav{position:fixed;width:48px;height:48px;border-radius:50%;border:0;background:rgba(255,255,255,.95);color:var(--ink);display:grid;place-items:center;cursor:pointer;box-shadow:0 6px 18px rgba(0,0,0,.25)}
.lightbox__close{top:16px;right:16px}
.lightbox__nav{top:50%;transform:translateY(-50%)}
.lightbox__nav--prev{left:16px}.lightbox__nav--next{right:16px}
.lightbox--single .lightbox__nav{display:none}
@media (max-width:640px){.lightbox__fig{padding:64px 10px 90px}.lightbox__nav{top:auto;bottom:20px;transform:none}.lightbox__nav--prev{left:calc(50% - 60px)}.lightbox__nav--next{right:calc(50% - 60px)}}

/* Hero picture scroll: the fan of books, then the series picture */
.hero__art{position:relative}
.hero-scroll__track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;overscroll-behavior-x:contain}
.hero-scroll__track::-webkit-scrollbar{display:none}
.hero-scroll__track:focus-visible{outline:3px solid var(--blue);outline-offset:-3px}
.hero-scroll__slide{flex:0 0 100%;min-width:0;scroll-snap-align:start;overflow:hidden}
.hero-scroll__slide--pic{display:flex;align-items:center;justify-content:center;padding:0 clamp(14px,4%,36px) 40px;height:clamp(330px,92vw,470px)}
@media (min-width:900px){.hero-scroll__slide--pic{height:580px}}
.hero-scroll__slide--pic img{width:100%;height:auto;max-height:100%;object-fit:contain;border-radius:14px;box-shadow:0 18px 40px rgba(29,41,57,.18)}
.hero-scroll__bar{position:absolute;left:0;right:0;bottom:22px;z-index:5;display:flex;align-items:center;justify-content:center;gap:2px}
.hero-scroll__bar .gal__btn{background:rgba(255,255,255,.92)}

/* Certificates page */
.certs-how{margin-top:20px;padding:22px 20px}
.certs-how h2,.certs-form-title{font-size:24px}
.certs-steps{margin:8px 0 0;padding:6px 0 0}
.certs-path{display:flex;align-items:center;justify-content:center;gap:12px;margin:22px 0 6px}
.certs-path__books{display:grid;grid-template-columns:repeat(2,52px);gap:8px}
.certs-path__book{position:relative;display:block}
.certs-path__book img{width:52px;height:auto;border-radius:3px;box-shadow:0 4px 10px rgba(29,41,57,.18)}
.certs-path__tick{position:absolute;right:-6px;bottom:-6px;width:20px;height:20px;border-radius:50%;background:var(--forest);color:#fff;font-size:12px;font-weight:700;display:grid;place-items:center;box-shadow:0 0 0 2px #fff}
.certs-path__golden{width:118px;height:auto;border-radius:4px;box-shadow:0 10px 24px rgba(200,150,30,.35)}
.certs-golden{margin-top:14px;font-size:16px;line-height:1.55;color:var(--text);text-align:center}
.certs-golden strong{display:block;color:var(--ink);font-size:17px}
.certs-form-title{margin:34px 4px 0}
.page-certs .gifts{padding-top:12px}

/* Try us out */
.try-pick{border:0;margin:0 0 6px;padding:0}
.try-pick legend{font-weight:600;color:var(--ink);font-size:17px;margin-bottom:10px}
.try-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.try-loading{color:var(--muted)}
.try-choice{position:relative;display:flex;flex-direction:column;gap:4px;padding:8px 8px 10px;border:2px solid var(--line);border-radius:var(--radius-m);background:var(--white);cursor:pointer;transition:border-color .2s,box-shadow .2s}
.try-choice input{position:absolute;opacity:0;pointer-events:none}
.try-choice img{width:100%;height:auto;border-radius:8px;aspect-ratio:180/161;object-fit:cover;background:var(--sky-mist)}
.try-choice strong{font-size:14px;line-height:1.25;color:var(--ink)}
.try-choice small{font-size:12px;color:var(--muted);line-height:1.3}
.try-choice:has(input:checked){border-color:var(--forest);box-shadow:0 0 0 3px rgba(46,107,71,.18)}
.try-choice:has(input:focus-visible){outline:3px solid var(--blue);outline-offset:2px}
.try-choice:has(input:checked)::after{content:"✓";position:absolute;top:6px;right:6px;width:24px;height:24px;border-radius:50%;background:var(--forest);color:#fff;font-weight:700;font-size:13px;display:grid;place-items:center}
.try-pick.has-error .try-choice{border-color:var(--danger)}
.try-pick .field__error{margin-top:8px}
.try-pick.has-error .field__error{display:block}
.try-error{margin:4px 0 10px}
.try-result{margin-top:20px;padding:24px 20px;text-align:center;display:flex;flex-direction:column;gap:12px;align-items:stretch}
.try-result[hidden]{display:none}
.try-result__img{width:min(100%,320px);height:auto;margin:0 auto;border-radius:12px;box-shadow:var(--shadow-s)}
.try-result h2{font-size:26px}
.try-next{margin-top:14px;padding-top:16px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:10px;align-items:center}
.try-next__cert a{color:var(--forest);font-weight:600}
@media (max-width:420px){.try-choices{gap:6px}.try-choice{padding:6px}.try-choice strong{font-size:13px}}

/* Home: Try us out + certificates */
.duo{display:grid;gap:18px}
@media (min-width:760px){.duo{grid-template-columns:1fr 1fr;gap:24px}}
.duo__card{background:var(--sand);border-radius:var(--radius-l);padding:26px 24px;display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.duo__card--cert{background:#FFF4D6}
.duo__card h2{font-size:clamp(24px,2.4vw,30px)}
.duo__card p{color:var(--text);flex:1}
.duo__art{display:flex;gap:8px;height:84px;align-items:flex-end}
.duo__art img{height:100%;width:auto;border-radius:10px;box-shadow:var(--shadow-s);background:#fff}
.duo__art--cert img{border-radius:4px}
.duo__art--cert .duo__medal{box-shadow:none;background:none;height:76px}
