/* Homepage layout and motion. Component appearance lives in components.css;
   the shared blue canvas comes from site-theme.css. */
.home{
  --home-ink:#15161E;--home-muted:#5B5E70;--home-line:#E6E8EF;
  --home-surface:#F5F6FA;--home-surface-2:#EEF2FF;--home-tick:#2B59FF;
  --home-ease:cubic-bezier(.2,.8,.2,1);
  margin:0;background:#193BB5;color:var(--home-ink);
}
.home main{overflow-x:clip}
.home h1,.home h2,.home h3{font-weight:800;color:var(--home-ink)}

/* Header: sticks, and gains a hairline once the page moves. */
.home-top{position:sticky;top:0;z-index:20;max-width:none;padding:18px max(5%,calc((100% - 1296px)/2));background:rgba(255,255,255,.86);backdrop-filter:saturate(1.4) blur(14px);-webkit-backdrop-filter:saturate(1.4) blur(14px);transition:box-shadow .25s,padding .25s}
.home-top[data-scrolled]{box-shadow:0 1px 0 var(--home-line),0 8px 24px rgba(21,22,30,.05);padding-top:12px;padding-bottom:12px}
.home-top .brand{font-size:24px;letter-spacing:-.03em}
.home-top .brand img{transition:transform .35s var(--home-ease)}
.home-top nav{gap:22px}
.pb-button .arrow{display:inline-block;transition:transform .2s var(--home-ease)}
.pb-button:hover .arrow{transform:translateX(4px)}
.home-link{font-size:15px;font-weight:700;color:var(--home-ink);text-decoration:underline;text-decoration-color:transparent;text-underline-offset:5px;transition:text-decoration-color .2s}
.home-link:hover{text-decoration-color:currentColor}

/* Hero: the copy on the left, the pet standing on the page itself. */
.home-hero{max-width:1296px;margin:0 auto;padding:20px 5% 44px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);gap:clamp(24px,4vw,64px);align-items:center;min-height:min(660px,calc(100svh - 190px));box-sizing:content-box}
.home-hero h1{font-size:clamp(56px,6.6vw,98px);line-height:.95;letter-spacing:-.058em;margin:0 0 22px}
.hero-line{margin:0 0 14px;font-size:clamp(22px,2vw,27px);font-weight:700;letter-spacing:-.02em;color:var(--pb-red)}
.hero-sub{max-width:31em;margin:0;font-size:18px;line-height:1.5;color:var(--home-muted)}

/* Price, right under the hero. */
.home-price{max-width:1296px;margin:0 auto;padding:0 5% 24px;box-sizing:content-box}
.price-card{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:clamp(24px,4vw,64px);padding:34px clamp(28px,4vw,52px);border-radius:32px;background:var(--home-surface-2);position:relative;overflow:hidden}
.price-card::after{content:"";position:absolute;right:-60px;top:-60px;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle,rgba(43,89,255,.10),transparent 70%);pointer-events:none}
.price-figure{display:flex;align-items:baseline;gap:10px}
.price-amount{margin:0;font-size:clamp(64px,6.4vw,88px);line-height:.9;letter-spacing:-.06em}
.price-per{margin:0;font-size:18px;font-weight:700;color:var(--home-muted)}
.price-list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.price-list li{display:flex;align-items:center;gap:12px;font-size:18px;font-weight:700;line-height:1.3;letter-spacing:-.01em}
.tick{flex:none;width:26px;height:26px;border-radius:50%;background:var(--home-tick);box-shadow:0 2px 0 var(--pb-blue-lip);position:relative}
.tick::after{content:"";position:absolute;left:9px;top:5px;width:6px;height:11px;border:solid #fff;border-width:0 3px 3px 0;transform:rotate(45deg)}
.price-action{display:grid;grid-column:1/-1;justify-items:center;gap:12px;text-align:center}
.price-action p{margin:0;font-size:13px;line-height:1.5;color:var(--site-ink,#fff)}

/* Section heads */
.section-head{max-width:1296px;margin:0 auto 34px}
.section-head h2{font-size:clamp(42px,4.6vw,66px);line-height:1;letter-spacing:-.055em;margin:0}
.section-head p{max-width:60ch;margin:18px 0 0;font-size:19px;line-height:1.55;color:var(--home-muted)}

/* Step numbers shared by both step lists. */
.step-num{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--home-ink);color:#fff;font-size:15px;font-weight:800;margin:0 0 14px}

/* How it works */
.home-how{padding:80px 5% 90px}
.home-how .section-head{text-align:center}
.how-steps{max-width:1296px;margin:0 auto;padding:0;list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.how-step{background:var(--home-surface);border-radius:30px;padding:22px 26px 30px;transition:transform .3s var(--home-ease),box-shadow .3s var(--home-ease)}
.how-step h3{font-size:25px;letter-spacing:-.035em;margin:0 0 10px}
.how-step p{font-size:17px;line-height:1.5;margin:0;color:var(--home-muted);max-width:32ch}
.how-art{height:250px;margin:0 0 18px;display:grid;place-items:center;position:relative}
.how-art:not(.how-photos)>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;transition:transform .5s var(--home-ease)}
.how-photos .photo{position:absolute;height:auto;object-fit:cover;border-radius:16px;border:5px solid #fff;box-shadow:0 10px 24px rgba(21,22,30,.14);transition:transform .45s var(--home-ease)}
.photo-face{width:42%;aspect-ratio:1;left:4%;top:12%;transform:rotate(-8deg)}
.photo-side{width:56%;aspect-ratio:560/380;left:22%;top:34%;z-index:2;transform:rotate(2deg)}
.photo-three{width:40%;aspect-ratio:1;right:3%;top:6%;transform:rotate(8deg)}

/* Sample guidebook */
.home-sample{max-width:1296px;margin:0 auto;padding:10px 5% 90px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(30px,5vw,80px);align-items:center;box-sizing:content-box}
.sample-copy h2{font-size:clamp(42px,4.6vw,66px);line-height:1;letter-spacing:-.055em;margin:0}
.sample-copy p{max-width:40ch;margin:18px 0 28px;font-size:19px;line-height:1.55;color:var(--home-muted)}
.sample-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px 26px}
.sample-pages{position:relative;display:block;height:clamp(320px,34vw,470px);border-radius:32px;background:radial-gradient(circle at 50% 60%,var(--home-surface-2),#fff 70%)}
.sample-page{position:absolute;top:50%;left:50%;width:clamp(180px,19vw,262px);height:auto;border-radius:10px;box-shadow:0 2px 0 var(--home-line),0 22px 44px rgba(21,22,30,.16);transition:transform .5s var(--home-ease)}
.sample-page-1{transform:translate(-14%,-50%) rotate(9deg)}
.sample-page-2{transform:translate(-50%,-52%) rotate(1deg)}
.sample-page-3{transform:translate(-86%,-50%) rotate(-8deg)}

/* Ordering */
.home-ordering{background:var(--home-surface);padding:84px 5% 70px}
.order-steps{max-width:1296px;margin:0 auto;padding:0;list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.order-step{background:#fff;border-radius:28px;padding:18px 20px 26px;box-shadow:0 1px 0 var(--home-line)}
.order-step h3{font-size:21px;letter-spacing:-.03em;margin:0 0 8px}
.order-step p{font-size:16px;line-height:1.5;margin:0;color:var(--home-muted)}
.order-art{height:426px;margin:0 0 22px;border-radius:20px;background:linear-gradient(155deg,#F1F3F9,#E1E7FA);display:grid;place-items:center;overflow:hidden;position:relative}
.phone{margin:0;width:clamp(148px,13vw,180px);aspect-ratio:9/19.5;padding:7px;border-radius:32px;background:#15161E;box-shadow:0 16px 26px rgba(21,22,30,.2),inset 0 0 0 1px #555867;transition:transform .45s var(--home-ease)}
.phone-screen{height:100%;display:grid;align-items:center;border-radius:25px;overflow:hidden;background:#fff}
.phone-capture{position:relative;width:100%;aspect-ratio:750/1290}
.phone-screen img{display:block;width:100%;height:auto}
/* Red rings mark the exact control to tap. */
.spot{position:absolute;border:3px solid var(--pb-red);border-radius:12px;box-shadow:0 0 0 4px rgba(255,72,54,.18);pointer-events:none}
.spot-round{width:17%;aspect-ratio:1;border-radius:50%;transform:translate(-50%,-50%)}
.spot::after{content:"";position:absolute;inset:-3px;border-radius:inherit;border:3px solid var(--pb-red);opacity:0}
.file-card{width:86%;box-sizing:border-box;background:#fff;border-radius:20px;padding:16px;box-shadow:0 18px 36px rgba(21,22,30,.12);display:grid;gap:12px;transition:transform .45s var(--home-ease)}
.file-country{margin:0;display:inline-flex;align-items:center;gap:8px;justify-self:start;padding:7px 12px;border-radius:999px;background:var(--home-surface);font-size:13px;font-weight:800}
.file-dot{width:9px;height:9px;border-radius:50%;background:var(--pb-blue)}
.file-row{display:flex;align-items:center;gap:12px;padding:12px;border-radius:14px;background:var(--home-surface)}
.file-row b{display:block;font-size:12.5px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.file-row>span:last-child{min-width:0}
.file-row small{display:block;margin-top:2px;font-size:12px;font-weight:600;color:var(--home-muted)}
.file-icon{flex:none;width:38px;height:38px;border-radius:10px;background:#fff;display:grid;place-items:center}
.file-icon svg,.drag-hint svg{width:22px;height:22px;fill:none;stroke:var(--pb-blue);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.file-button{display:block;text-align:center;padding:12px;border-radius:12px;background:var(--pb-blue);color:#fff;font-size:14px;font-weight:800;box-shadow:0 3px 0 var(--pb-blue-lip)}
.spot-pill{border-radius:999px}
.ordering-note{max-width:1296px;margin:26px auto 0;font-size:12px;line-height:1.6;color:var(--home-muted)}

/* Closing band */
.home .site-footer{margin-top:48px}

/* Hover motion only where the pointer hovers and motion is welcome. */
@media(hover:hover) and (prefers-reduced-motion:no-preference){
  .how-step:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(21,22,30,.07)}
  .how-step:hover .how-art:not(.how-photos)>img{transform:scale(1.04) rotate(-1deg)}
  .how-step:hover .photo-face{transform:translate(-8px,-6px) rotate(-12deg)}
  .how-step:hover .photo-side{transform:translateY(6px) rotate(0deg)}
  .how-step:hover .photo-three{transform:translate(8px,-6px) rotate(12deg)}
  .order-step:hover .phone{transform:translateY(-5px)}
  .sample-pages:hover .sample-page-1{transform:translate(4%,-50%) rotate(13deg)}
  .sample-pages:hover .sample-page-2{transform:translate(-50%,-56%) rotate(0deg)}
  .sample-pages:hover .sample-page-3{transform:translate(-104%,-50%) rotate(-12deg)}
  .order-step:hover .file-card{transform:translateY(-6px) rotate(-1deg)}
  .home-top .brand:hover img{transform:rotate(-8deg) scale(1.06)}
}

/* Reveal on scroll (only when the motion script is running). */
html.motion [data-reveal]{opacity:0;transform:translateY(22px);transition:opacity .7s var(--home-ease),transform .7s var(--home-ease);transition-delay:calc(var(--i,0)*90ms)}
html.motion [data-reveal].is-in{opacity:1;transform:none}
html.motion .price-list li{opacity:0;transform:translateX(-10px);transition:opacity .5s var(--home-ease),transform .5s var(--home-ease);transition-delay:calc(220ms + var(--i,0)*110ms)}
html.motion .is-in .price-list li{opacity:1;transform:none}
html.motion .is-in .tick{animation:home-pop .5s var(--home-ease) both;animation-delay:inherit}
html.motion .order-step.is-in .spot::after{animation:home-ring 2.4s ease-out 1s infinite}
@keyframes home-pop{0%{transform:scale(.4)}60%{transform:scale(1.15)}100%{transform:scale(1)}}
@keyframes home-ring{0%{opacity:.7;transform:scale(1)}70%,100%{opacity:0;transform:scale(1.45)}}
@keyframes home-bob{0%,100%{translate:0 0}50%{translate:0 -10px}}


/* Brick costs: what the bricks themselves cost at the five sizes (by brick count). */
.brick-costs{display:grid;grid-template-columns:1fr;gap:18px clamp(24px,4vw,56px);align-items:center;margin-top:64px;padding:0;text-align:center}
.costs-copy h3{margin:0 0 8px;font-size:clamp(22px,2.2vw,28px);letter-spacing:-.035em;line-height:1.1}
.costs-copy p{margin:0;font-size:16px;line-height:1.5;color:var(--home-muted)}
.cost-cards{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:14px}
.cost-card{flex:0 0 calc((100% - 56px)/5);box-sizing:border-box;display:grid;gap:2px;align-content:start;justify-items:center;min-width:0;padding:18px clamp(8px,1.4vw,18px) 16px;border-radius:22px;background:var(--home-surface);transition:transform .3s var(--home-ease),box-shadow .3s var(--home-ease)}
.cost-card b{font-size:17px;letter-spacing:-.01em}
.cost-height,.cost-count{font-size:14px;color:var(--home-muted)}
.cost-count{display:flex;align-items:center;justify-content:center;min-height:3em;line-height:1.5}
.cost-price{margin-top:8px;font-size:clamp(18px,1.9vw,26px);font-weight:800;letter-spacing:-.035em;font-variant-numeric:tabular-nums;white-space:nowrap}
.cost-stack{display:flex;flex-direction:column-reverse;align-items:center;gap:4px;width:43px;height:84px;margin-bottom:12px}
.cost-stack i{position:relative;display:block;width:34px;height:12px;border-radius:3px;background:var(--pb-blue);box-shadow:inset 0 -3px 0 rgba(0,0,0,.18)}
.cost-stack i:nth-child(even){margin-left:9px}
.cost-stack i::before,.cost-stack i::after{content:"";position:absolute;top:-4px;width:8px;height:4px;border-radius:2px 2px 0 0;background:inherit}
.cost-stack i::before{left:5px}.cost-stack i::after{right:5px}
.cost-stack i:nth-child(2){background:var(--pb-yellow)}
.cost-stack i:nth-child(3){background:var(--pb-red)}
.cost-stack i:nth-child(4){background:#1F9D55}
.cost-stack i:nth-child(5){background:var(--pb-blue)}
.costs-note{grid-column:1/-1;margin:0;font-size:13px;line-height:1.5;color:var(--home-muted)}
@media(hover:hover){.cost-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(21,22,30,.08)}}
html.motion .brick-costs .cost-stack i{transform:translateY(-26px);opacity:0;transition:transform .5s cubic-bezier(.3,1.5,.5,1),opacity .25s}
html.motion .brick-costs.is-in .cost-stack i{transform:none;opacity:1;transition-delay:calc(.3s + var(--r) * .14s)}

.home-top nav .nav-faq{margin-right:4px}

@media(max-width:1100px){
  .order-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:1000px){
  .brick-costs{grid-template-columns:1fr}
  .cost-card{flex-basis:calc((100% - 28px)/3)}
  .home-faq{grid-template-columns:1fr}
  .faq-head{position:static}
  .home-hero{grid-template-columns:1fr;max-width:760px;min-height:0;padding-top:20px}
  .hero-copy{text-align:center}
  .hero-sub{margin-inline:auto}
  .how-steps{gap:14px}
  .how-step{padding:18px 20px 24px}
  .how-art{height:200px}
  .how-step h3{font-size:22px}
  .how-step p{font-size:16px}
  .home-sample{grid-template-columns:1fr}
  .sample-copy{text-align:center}
  .sample-copy p{margin-inline:auto}
  .sample-actions{justify-content:center}
}
/* Fixed card widths keep an incomplete final row centered at every breakpoint. */
@media(max-width:600px){
  .cost-cards{gap:10px}
  .cost-card{flex-basis:calc((100% - 10px)/2)}
}
@media(max-width:700px){
  .brick-costs{margin-top:48px}
  .home-faq{grid-template-columns:1fr;padding:56px 20px 40px;gap:22px}
  .faq-head{position:static}
  .faq-answer{padding-right:8px}
  .home-top nav .nav-faq{display:none}
  .home-top{padding:14px 20px}
  .home-top[data-scrolled]{padding-top:10px;padding-bottom:10px}
  .home-top .brand{font-size:21px}
  .home-top .brand img{width:34px}
  .home-top nav .small{display:none}
  .home-hero{padding:14px 20px 36px;gap:22px}
  .home-hero h1{font-size:clamp(50px,13.4vw,70px);margin-bottom:16px}
  .hero-line{font-size:21px;margin-bottom:10px}
  .hero-sub{font-size:16px}
  .home-price{padding:0 16px 12px}
  .price-card{grid-template-columns:1fr;gap:22px;padding:28px 24px;border-radius:28px}
  .price-action .pb-button{width:100%}
  .price-list li{font-size:17px}
  .home-how{padding:56px 20px 60px}
  .home-sample{grid-template-columns:1fr;padding:0 20px 56px;gap:22px}
  .sample-copy p{font-size:17px}
  .sample-actions .pb-button{width:100%}
  .sample-pages{height:330px}
  .sample-page{width:168px}
  .section-head{margin-bottom:24px}
  .section-head p{font-size:17px}
  .how-steps{grid-template-columns:1fr;gap:16px}
  .how-art{height:230px}
  .home-ordering{padding:56px 0 50px}
  .home-ordering .section-head,.home-ordering .ordering-note{padding:0 20px}
  .order-steps{display:grid;grid-template-columns:1fr;gap:20px;padding:4px 20px 18px}
  .order-art{height:370px}
  .phone{width:156px}
}
@media(prefers-reduced-motion:reduce){
  html.motion .brick-costs .cost-stack i{transform:none;opacity:1;transition:none}
  .faq-item::details-content{transition:none}
  html.motion [data-reveal],html.motion .price-list li{opacity:1;transform:none;transition:none}
  html.motion .is-in .tick,html.motion .order-step.is-in .spot::after{animation:none}
}
