:root{
  --ink:#1B2621; --green:#1F4A3B; --green-2:#2E6650; --sage:#EEF3EF; --line:#D5DDD7; --muted:#55625B;
  --mustard:#E0A526; --rose:#C2456E; --slate:#3D5A80; --paper:#FFFFFF; --error:#A3203F;
  --head:"Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --body:"Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font:400 1.0625rem/1.65 var(--body)}
a{color:var(--green)}
a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid var(--mustard);outline-offset:2px}
h1,h2,h3{font-family:var(--head);line-height:1.12;margin:0;letter-spacing:-.01em}
.wrap{width:min(1080px,100% - 2.5rem);margin-inline:auto}
.narrow{width:min(560px,100% - 2.5rem);margin-inline:auto}
header.top{border-bottom:1px solid var(--line)}
header.top .wrap{display:flex;align-items:center;justify-content:space-between;min-height:64px;gap:1rem}
.logo{font-family:var(--head);font-weight:700;font-size:1.3rem;color:var(--green);text-decoration:none;display:flex;align-items:center;gap:.5rem}
.logo i{display:inline-flex;gap:2px;align-items:flex-end}
.logo i b{display:block;width:5px;border-radius:1px}
#nav-account{display:flex;gap:1rem;align-items:center;font-size:.95rem}
.linkbtn{background:none;border:0;color:var(--green);font:inherit;text-decoration:underline;cursor:pointer;padding:0}
.btn{display:inline-block;background:var(--green);color:#fff;font:700 1.05rem/1 var(--body);padding:.95rem 1.4rem;border-radius:8px;border:2px solid var(--green);text-decoration:none;cursor:pointer}
.btn:hover{background:var(--green-2)}
.btn.ghost{background:#fff;color:var(--green)}
.btn.small{font-size:.95rem;padding:.6rem 1rem}
.btn[disabled]{opacity:.55;cursor:default}

/* hero with the bookshelf */
.hero{padding:clamp(3rem,7vw,5.5rem) 0 clamp(2.5rem,6vw,4.5rem)}
.hero .wrap{display:grid;grid-template-columns:1.05fr .95fr;gap:3rem;align-items:end}
.hero h1{font-size:clamp(2.4rem,5.2vw,4rem);font-weight:800;max-width:14ch}
.hero p{font-size:clamp(1.1rem,1.6vw,1.25rem);color:var(--muted);max-width:46ch;margin:1.2rem 0 1.8rem}
.hero .note{font-size:.95rem;color:var(--muted);margin-top:1rem}
.shelf{position:relative;padding:0 .5rem;display:flex;align-items:flex-end;gap:6px;height:330px}
.shelf::after{content:"";position:absolute;left:-1rem;right:-1rem;bottom:-14px;height:14px;background:#7A5A3A;border-radius:2px;box-shadow:0 6px 0 #5E4329}
.spine{flex:0 0 auto;width:62px;border-radius:4px 4px 2px 2px;color:#fff;display:flex;align-items:center;justify-content:center;font-family:var(--head);font-weight:700;font-size:1.05rem;writing-mode:vertical-rl;transform:rotate(180deg);padding:14px 0;letter-spacing:.02em}
.spine:nth-child(1){height:220px;background:var(--slate)}
.spine:nth-child(2){height:250px;background:var(--rose)}
.spine:nth-child(3){height:235px;background:var(--mustard);color:#2B2208}
.spine:nth-child(4){height:265px;background:var(--green)}
.cover{margin-left:18px;width:170px;height:240px;border-radius:3px 8px 8px 3px;background:#fff;border:2px solid var(--green);box-shadow:-6px 0 0 var(--green);transform:rotate(-6deg);transform-origin:bottom left;display:flex;flex-direction:column;justify-content:space-between;padding:20px 18px}
.cover strong{font-family:var(--head);font-size:1.5rem;line-height:1.05;color:var(--green)}
.cover span{font-size:.85rem;color:var(--muted)}
@media (prefers-reduced-motion:no-preference){
  .cover{animation:standUp .9s .3s cubic-bezier(.2,.8,.2,1) both}
  @keyframes standUp{from{transform:rotate(-24deg);opacity:0}to{transform:rotate(-6deg);opacity:1}}
}
@media (max-width:820px){.hero .wrap{grid-template-columns:1fr}.shelf{height:280px;justify-content:center}.spine{width:52px}.cover{width:140px;height:200px}}

section.block{padding:clamp(3rem,6vw,4.5rem) 0;border-top:1px solid var(--line)}
section.block h2{font-size:clamp(1.8rem,3.4vw,2.5rem);font-weight:700;max-width:22ch}
.steps{list-style:none;margin:2rem 0 0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:2rem;counter-reset:s}
.steps li{counter-increment:s;padding-top:1rem;border-top:4px solid var(--c,var(--green))}
.steps li:nth-child(1){--c:var(--slate)}.steps li:nth-child(2){--c:var(--rose)}.steps li:nth-child(3){--c:var(--mustard)}.steps li:nth-child(4){--c:var(--green)}
.steps li::before{content:"Step " counter(s);display:block;font-size:.9rem;color:var(--muted);margin-bottom:.3rem}
.steps h3{font-size:1.35rem;margin-bottom:.5rem}
.steps p{margin:0;color:var(--muted)}
@media (max-width:860px){.steps{grid-template-columns:1fr 1fr}}@media (max-width:520px){.steps{grid-template-columns:1fr}}
.points{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem;margin-top:2rem}
.points h3{font-size:1.2rem;margin-bottom:.4rem}
.points p{margin:0;color:var(--muted)}
@media (max-width:760px){.points{grid-template-columns:1fr}}
.cta{background:var(--sage)}
.cta .wrap{display:flex;flex-wrap:wrap;gap:1.5rem 3rem;align-items:center;justify-content:space-between}
.cta p{margin:.6rem 0 0;color:var(--muted);max-width:52ch}
footer{padding:2rem 0 3rem;font-size:.92rem;color:var(--muted)}
footer .wrap{display:flex;flex-wrap:wrap;gap:.6rem 1.6rem;align-items:center}
footer .fine{flex-basis:100%;font-size:.85rem}

/* forms and app */
.panel{padding:2.5rem 0 4rem}
.panel h1{font-size:clamp(1.9rem,4vw,2.6rem);margin-bottom:.6rem}
.panel .lead{color:var(--muted);margin:0 0 1.8rem}
label{display:block;font-weight:700;margin:1rem 0 .35rem}
input[type=email],input[type=password],input[type=text]{width:100%;font:inherit;padding:.8rem .9rem;border:1.5px solid var(--line);border-radius:8px;background:#fff;color:var(--ink)}
.google{display:flex;align-items:center;justify-content:center;gap:.6rem;width:100%;background:#fff;color:var(--ink);border:1.5px solid var(--line);border-radius:8px;padding:.85rem;font:700 1rem var(--body);cursor:pointer}
.google:hover{border-color:var(--green)}
.or{display:flex;align-items:center;gap:1rem;color:var(--muted);margin:1.6rem 0;font-size:.95rem}
.or::before,.or::after{content:"";flex:1;height:1px;background:var(--line)}
.tabs{display:flex;gap:.4rem;margin-bottom:.4rem}
.tabs button{flex:1;padding:.6rem;border:1.5px solid var(--line);background:#fff;border-radius:8px;font:700 .95rem var(--body);color:var(--muted);cursor:pointer}
.tabs button[aria-selected="true"]{border-color:var(--green);color:var(--green);background:var(--sage)}
.msg{margin-top:1rem;padding:.8rem 1rem;border-radius:8px;background:var(--sage);display:none}
.msg.show{display:block}.msg.err{background:#FBE9EE;color:var(--error)}
.hint{font-size:.92rem;color:var(--muted);margin-top:.4rem}
.full{width:100%;margin-top:1rem}
.books{list-style:none;padding:0;margin:1.5rem 0 0}
.books li{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 0;border-bottom:1px solid var(--line)}
.books .t{font-weight:700}.books .s{color:var(--muted);font-size:.92rem}
.empty{padding:1.5rem;background:var(--sage);border-radius:10px;margin-top:1.5rem}
.legal h2{font-size:1.35rem;margin:2rem 0 .5rem}
.legal p,.legal li{max-width:70ch}
.setup{background:#FFF6DD;border:1.5px solid var(--mustard);border-radius:8px;padding:1rem;margin-bottom:1.5rem}
