/* v2 look (Phase B homepage + Phase C sale page, owner-approved mock-ups 2026-10-21).
   Hero above the fold is inlined in template-parts/hero-section.php. Flat fills, no
   shadows at rest; surfaces are separated by tone (white cards on the cream page). */
:root { --ak2-ease: cubic-bezier(.22,1,.36,1); }

.ak2-rise { animation: ak2-rise .7s var(--ak2-ease) both; }
@keyframes ak2-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.ak2-nowrap { white-space: nowrap; }

/* buttons: the global link colour rule (css/critical.css) beats a single class, hence !important on colour */
.ak2-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; padding: 15px 26px; font: 700 16px var(--f-sans); text-decoration: none; cursor: pointer; transition: transform .15s var(--ak2-ease), background .15s; }
.ak2-btn-y { background: #FFC43D; color: #141414 !important; }
.ak2-btn-y:hover { background: #F2A900; transform: translateY(-2px); }
.ak2-btn-o { background: #fff; color: #141414 !important; border: 2px solid #141414; padding: 13px 22px; }
.ak2-btn-o:hover { background: #FFF8E7; }
.ak2-btn-k { background: #141414; color: #fff !important; }
.ak2-btn-k:hover { background: #333; }
.ak2-btn:active { transform: scale(.97); }
.ak2-btn:focus-visible { outline: 3px solid #2E86DE; outline-offset: 3px; }

/* category tiles, overlapping the hero */
.ak2-cats { position: relative; z-index: 3; max-width: 1176px; margin: -64px auto 0; background: #fff; border-radius: 24px; display: grid; grid-template-columns: repeat(5, 1fr) 120px; }
.ak2-cat { padding: 18px 12px 16px; text-align: center; border-radius: 20px; text-decoration: none; transition: background .2s; }
.ak2-cat:hover { background: #FFF8E7; }
.ak2-cat img { height: 92px; width: auto; max-width: 100%; margin: 0 auto 10px; object-fit: contain; display: block; transition: transform .25s var(--ak2-ease); }
.ak2-cat:hover img { transform: translateY(-4px) scale(1.04); }
.ak2-cat span { font: 600 14px var(--f-sans); color: #141414; }
.ak2-cat-all { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font: 600 14px var(--f-sans); }
.ak2-cat-all i { width: 44px; height: 44px; border-radius: 50%; background: #FFC43D; display: grid; place-items: center; font-style: normal; font-size: 18px; }

/* sections */
.ak2-sec { max-width: 1240px; margin: 0 auto; padding: 56px 32px 0; }
.ak2-sec-hd { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: end; justify-content: space-between; margin-bottom: 22px; }
.ak2-sec-hd h1, .ak2-sec-hd h2 { font: 800 clamp(26px,3vw,32px)/1.1 var(--f-display); margin: 0; display: flex; align-items: center; gap: 12px; color: #141414; }
.ak2-sec-hd h1::before, .ak2-sec-hd h2::before { content: ''; width: 28px; height: 10px; border-radius: 5px; background: #FFC43D; flex: none; }
.ak2-sec-hd a { font-weight: 600; white-space: nowrap; }

/* product cards */
.ak2-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ak2-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ak2-card { background: #fff; border-radius: 22px; padding: 16px; display: flex; flex-direction: column; transition: transform .2s var(--ak2-ease); }
.ak2-card:hover { transform: translateY(-6px); }
.ak2-card-img { position: relative; display: block; aspect-ratio: 4/3; border-radius: 16px; background: #FFF8E7; margin-bottom: 14px; }
.ak2-card-img img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; transition: transform .3s var(--ak2-ease); }
.ak2-card:hover .ak2-card-img img { transform: scale(1.05); }
.ak2-badge, .ak2-off { position: absolute; z-index: 1; top: 10px; left: 10px; background: #141414; color: #fff; font: 700 14px var(--f-sans); border-radius: 999px; padding: 5px 11px; }
.ak2-off { background: #C1121F; font-size: 14px; padding: 6px 12px; }
.ak2-card h3 { font: 600 16px/1.35 var(--f-sans); margin: 0 0 6px; min-height: 43px; }
.ak2-card h3 a { text-decoration: none; }
.ak2-price { font: 800 18px var(--f-display); margin: 0 0 4px; }
.ak2-price del { font: 500 14px var(--f-sans); color: #4A4A4A; margin-right: 6px; }
.ak2-price ins { text-decoration: none; }
.ak2-note { font-size: 16px; color: #4A4A4A; margin: 0 0 14px; min-height: 20px; }
.ak2-buy { margin-top: auto; width: 100%; }
.ak2-prices { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.ak2-prices del { color: #4A4A4A; font-size: 14px; }
.ak2-prices ins { text-decoration: none; font: 800 24px var(--f-display); }
.ak2-save { align-self: flex-start; margin: 6px 0 14px; background: #E8F6EE; color: #13683A; font-weight: 700; font-size: 14px; padding: 4px 10px; border-radius: 8px; }

/* trust band */
.ak2-band { max-width: 1176px; margin: 56px auto 0; background: #141414; color: #fff; border-radius: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.1fr); align-items: center; overflow: hidden; }
.ak2-tr { display: flex; gap: 14px; align-items: center; padding: 28px 20px 28px 26px; }
.ak2-tr svg { flex: none; width: 40px; height: 40px; color: #FFC43D; }
.ak2-tr b { display: block; font-size: 14px; white-space: nowrap; }
.ak2-tr small { color: #D6D6D6; font-size: 14px; }
.ak2-band-pic { position: relative; height: 100%; min-height: 190px; }
.ak2-band-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.ak2-band-pic::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #141414 0%, rgba(20,20,20,.6) 38%, rgba(20,20,20,0) 62%); }
.ak2-band-pic span { position: absolute; z-index: 2; left: 22px; top: 50%; transform: translateY(-50%) rotate(-4deg); font: italic 700 24px/1.1 var(--f-display); color: #FFC43D; }

/* Shorts strip */
.ak2-strip { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 16px) / 6); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.ak2-short { scroll-snap-align: start; text-decoration: none; color: #141414; }
.ak2-short-img { position: relative; aspect-ratio: 9/16; border-radius: 18px; overflow: hidden; background: #ddd; transition: transform .2s var(--ak2-ease); }
.ak2-short:hover .ak2-short-img { transform: translateY(-4px); }
.ak2-short-img img, .ak2-short-img video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ak2-play { position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%; background: rgba(20,20,20,.75); }
.ak2-play::after { content: ''; position: absolute; left: 14px; top: 11px; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.ak2-short p { font: 500 16px/1.45 'Hind Siliguri', var(--f-sans); margin: 8px 2px 0; }
.autokid-home > .ak2-sec:last-of-type { padding-bottom: 8px; }

/* cart and checkout: free-delivery progress */
.ak2-freebar { background: #fff; border-radius: 16px; padding: 14px 18px; margin: 0 0 20px; }
.ak2-freebar p { margin: 0 0 8px; font-size: 16px; }
.ak2-track { height: 10px; background: #EEE8DA; border-radius: 6px; overflow: hidden; }
.ak2-track div { height: 100%; background: #1F9D55; border-radius: 6px; }

/* cart: "New in store" (WooCommerce product-new block) in the same card look as the homepage.
   "body .wc-block-grid" because WooCommerce's block CSS loads after this file and won the tie (cards 72 px, no photo);
   !important where WooCommerce (font-size 0.75em) and style.css (dark button background) use stronger selectors. */
body .wc-block-grid.wp-block-product-new .wc-block-grid__products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; }
body .wc-block-grid.wp-block-product-new .wc-block-grid__product { background: #fff; border: 0; border-radius: 22px; padding: 16px; margin: 0; max-width: none; flex: none; font-size: 16px !important; list-style: none; text-align: left; display: flex; flex-direction: column; transition: transform .2s var(--ak2-ease); }
body .wc-block-grid.wp-block-product-new .wc-block-grid__product:hover { transform: translateY(-6px); }
body .wc-block-grid.wp-block-product-new .wc-block-grid__product-image { display: block; aspect-ratio: 4/3; background: #FFF8E7; border-radius: 16px; margin: 0 0 14px; position: relative; }
body .wc-block-grid.wp-block-product-new .wc-block-grid__product-image img { position: absolute; inset: 14px; width: calc(100% - 28px) !important; height: calc(100% - 28px) !important; object-fit: contain; }
body .wc-block-grid.wp-block-product-new .wc-block-grid__product-onsale { position: absolute; z-index: 1; top: 10px; left: 10px; right: auto; background: #C1121F; color: #fff; border: 0; border-radius: 999px; padding: 5px 11px; font: 700 14px var(--f-sans); }
body .wc-block-grid.wp-block-product-new .wc-block-grid__product-title { font: 600 16px/1.35 var(--f-sans); color: #141414; text-decoration: none; margin: 0 0 6px; }
body .wc-block-grid.wp-block-product-new .wc-block-grid__product-link { text-decoration: none; }
body .wc-block-grid.wp-block-product-new .wc-block-grid__product-price { font: 800 18px var(--f-display); margin: 0 0 14px; }
body .wc-block-grid.wp-block-product-new .wc-block-grid__product-price del { font: 500 14px var(--f-sans); color: #4A4A4A; }
body .wc-block-grid.wp-block-product-new .wc-block-grid__product-add-to-cart { margin-top: auto; }
body .wc-block-grid.wp-block-product-new .wp-block-button__link { display: flex; justify-content: center; width: 100%; background: #FFC43D !important; color: #141414 !important; border-radius: 999px; padding: 14px 20px; font: 700 14px var(--f-sans); border: 0; }
body .wc-block-grid.wp-block-product-new .wp-block-button__link:hover { background: #F2A900 !important; }
@media (max-width: 960px) {
  body .wc-block-grid.wp-block-product-new .wc-block-grid__products { grid-template-columns: 1fr 1fr; gap: 12px; }
  body .wc-block-grid.wp-block-product-new .wc-block-grid__product { padding: 10px; border-radius: 18px; }
  body .wc-block-grid.wp-block-product-new .wc-block-grid__product-title { font-size: 14px; }
  body.woocommerce-cart .entry-content > .wp-block-woocommerce-cart.alignwide { margin-left: 0; margin-right: 0; } /* alignwide's -20px pulled the cart off-centre on phones */
}

/* sale page */
.ak2-page { padding-bottom: 56px; }
.ak2-sale { position: relative; max-width: 1240px; margin: 18px auto 0; border-radius: 28px; overflow: hidden; background: #FFC43D; min-height: 500px; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; }
.ak2-sale::before { content: ''; position: absolute; inset: 0; background: #141414; clip-path: polygon(68% 0, 100% 0, 100% 100%, 42% 100%); }
.ak2-flag { position: absolute; width: 150px; height: 150px; opacity: .9; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Crect width='30' height='30' fill='%23fff'/%3E%3Crect width='15' height='15' fill='%23141414'/%3E%3Crect x='15' y='15' width='15' height='15' fill='%23141414'/%3E%3C/svg%3E") 0 0/30px 30px; }
.ak2-flag-a { left: -78px; bottom: -92px; transform: rotate(-18deg); }
.ak2-flag-b { right: -40px; top: -56px; transform: rotate(14deg); opacity: .85; }
.ak2-sale-copy { position: relative; z-index: 2; padding: 52px 0 52px 56px; }
.ak2-sale h1 { font: 800 clamp(56px, 7.6vw, 104px)/.92 var(--f-display); letter-spacing: -.03em; margin: 0 0 20px; color: #141414; }
.ak2-pill { display: inline-block; background: #141414; color: #fff; border-radius: 16px; padding: 12px 22px; transform: rotate(-3deg); font: 700 24px var(--f-sans); margin: 0; }
.ak2-pill b { color: #FFC43D; font: 800 40px/1 var(--f-display); margin-left: 8px; }
.ak2-sale-sub { font-size: 18px; font-weight: 500; margin: 22px 0; max-width: 420px; color: #141414; }
.ak2-sale-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.ak2-timer { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ak2-timer p { width: 100%; margin: 0 0 2px; font-size: 14px; font-weight: 600; }
.ak2-t { background: #fff; border-radius: 14px; min-width: 62px; padding: 8px 6px 6px; text-align: center; }
.ak2-t b { display: block; font: 800 24px/1 var(--f-display); }
.ak2-t span { font-size: 14px; font-weight: 600; color: #4A4A4A; }
.ak2-sale-pic { position: relative; z-index: 2; padding: 30px 34px 30px 0; }
.ak2-sale-pic img { width: 100%; height: auto; display: block; animation: ak2-drive 1s var(--ak2-ease) both; }
@keyframes ak2-drive { from { transform: translateX(14%); } to { transform: none; } }
.ak2-bubble { position: absolute; z-index: 3; right: 34px; top: 30px; background: #fff; border-radius: 50%; width: 128px; height: 96px; display: grid; place-items: center; text-align: center; font: italic 700 18px/1.05 var(--f-display); transform: rotate(6deg); }
.ak2-free { max-width: 1176px; margin: 22px auto 0; background: #fff; border-radius: 20px; padding: 18px 24px; display: flex; align-items: center; gap: 18px; }
.ak2-free svg { width: 36px; height: 36px; color: #1F9D55; flex: none; }
.ak2-free p { margin: 0; font-size: 16px; }
.ak2-more { position: relative; max-width: 1176px; margin: 52px auto 0; background: #FFC43D; border-radius: 28px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; align-items: end; min-height: 300px; }
.ak2-more::after { content: ''; position: absolute; right: -80px; bottom: -120px; width: 520px; height: 520px; border-radius: 50%; background: #fff; opacity: .55; }
.ak2-more-copy { padding: 44px 0 44px 56px; position: relative; z-index: 2; align-self: center; }
.ak2-more h2 { font: 800 clamp(26px,3vw,32px)/1.02 var(--f-display); margin: 0 0 12px; }
.ak2-more p { margin: 0 0 22px; font-size: 16px; max-width: 380px; }
.ak2-more img { position: relative; z-index: 2; width: min(470px, 100%); height: auto; margin: 0 auto; display: block; }

@media (max-width: 960px) {
  .ak2-cats { margin: -62px 26px 0; grid-template-columns: repeat(3, 1fr); }
  .ak2-cat { padding: 14px 8px; }
  .ak2-cat img { height: 64px; }
  .ak2-cat span, .ak2-cat-all { font-size: 14px; }
  .ak2-sec { padding: 40px 16px 0; }
  .ak2-sec-hd h1, .ak2-sec-hd h2 { font-size: 24px; }
  .ak2-grid, .ak2-grid-3 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ak2-card { padding: 10px; border-radius: 18px; }
  .ak2-card h3 { font-size: 14px; min-height: 38px; }
  .ak2-price { font-size: 16px; }
  .ak2-note { font-size: 16px; min-height: 40px; }
  .ak2-buy { padding: 12px 8px; font-size: 14px; }
  .ak2-band { margin: 40px 16px 0; grid-template-columns: 1fr; }
  .ak2-tr { padding: 16px 22px; }
  .ak2-tr + .ak2-tr { padding-top: 4px; }
  .ak2-band-pic { min-height: 220px; }
  .ak2-band-pic::before { background: linear-gradient(90deg, rgba(20,20,20,.75) 0%, rgba(20,20,20,0) 60%); }
  .ak2-strip { grid-auto-columns: 42%; }
  .ak2-sale { grid-template-columns: 1fr; border-radius: 22px; margin: 12px 16px 0; }
  .ak2-sale::before { clip-path: polygon(0 66%, 100% 52%, 100% 100%, 0 100%); }
  .ak2-sale-copy { padding: 30px 20px 6px; text-align: center; }
  .ak2-sale h1 { font-size: 64px; }
  .ak2-pill { font-size: 18px; } .ak2-pill b { font-size: 32px; }
  .ak2-sale-sub { margin: 16px auto 18px; font-size: 14px; }
  .ak2-sale-cta, .ak2-timer { justify-content: center; }
  .ak2-sale-pic { padding: 6px 18px 22px; }
  .ak2-bubble { right: 16px; top: 0; width: 100px; height: 76px; font-size: 14px; }
  .ak2-free { margin: 16px 16px 0; flex-direction: column; align-items: flex-start; }
  .ak2-grid-3 { grid-template-columns: 1fr; }
  .ak2-more { margin: 40px 16px 0; grid-template-columns: 1fr; }
  .ak2-more-copy { padding: 32px 22px 0; text-align: center; }
  .ak2-more p { margin: 0 auto 18px; }
  .ak2-flag { width: 110px; height: 110px; background-size: 22px 22px; }
}
@media (max-width: 600px) {
  .ak2-grid-3 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ak2-rise, .ak2-sale-pic img { animation: none; }
  .ak2-card:hover, .ak2-card:hover .ak2-card-img img, .ak2-cat:hover img, .ak2-short:hover .ak2-short-img, .ak2-btn-y:hover { transform: none; }
}

/* homepage "Why parents choose Autokid" and "Parents ask" (kit 16, owner 2026-10-21) */
.ak2-why-in, .ak2-ask-in { display: grid; grid-template-columns: .9fr 2fr; gap: 20px; }
.ak2-why-in { align-items: stretch; }
.ak2-ask-in { align-items: start; }
.ak2-why-lead { background: #FFC43D; border-radius: 28px; padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.ak2-why-lead h2, .ak2-ask-lead h2 { font: 800 clamp(26px,3vw,32px)/1.08 var(--f-display); margin: 0; letter-spacing: -.02em; }
.ak2-why-lead h2 { color: #141414; }
.ak2-why-lead p { margin: 0; font-size: 16px; line-height: 1.55; color: #141414; }
.ak2-why-lead .ak2-btn { align-self: flex-start; }
.ak2-why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ak2-why-card { background: #fff; border-radius: 24px; padding: 12px 12px 20px; transition: transform .2s var(--ak2-ease); }
.ak2-why-card:hover { transform: translateY(-4px); }
.ak2-why-pic { aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; margin-bottom: 14px; background: #eee; }
.ak2-why-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ak2-why-card h3 { font: 700 18px/1.3 var(--f-sans); font-family: var(--f-sans) !important; letter-spacing: 0; margin: 0 8px 6px; color: #141414; }
.ak2-why-card p { margin: 0 8px; font-size: 16px; line-height: 1.5; color: #141414; }
.ak2-ask { padding-bottom: 88px; }
.ak2-ask-lead { background: #141414; color: #fff; border-radius: 28px; padding: 40px 36px; position: sticky; top: 16px; }
.ak2-ask-lead h2 { color: #fff !important; margin-bottom: 14px; }
.ak2-ask-lead p { margin: 0 0 22px; color: #E4E4E4; font-size: 16px; line-height: 1.55; }
.ak2-ask-btns { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.ak2-ask-wa { color: #fff !important; font-weight: 600; text-decoration: underline; text-decoration-color: #FFC43D; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.ak2-ask-list { display: grid; gap: 12px; }
.ak2-ask-list details { background: #fff; border-radius: 20px; padding: 0 24px; }
.ak2-ask-list summary { cursor: pointer; list-style: none; padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; font: 700 18px/1.35 var(--f-sans); color: #141414; }
.ak2-ask-list summary::-webkit-details-marker { display: none; }
.ak2-ask-list summary::after { content: '+'; font: 800 24px/1 var(--f-display); flex: none; }
.ak2-ask-list details[open] summary::after { content: '–'; }
.ak2-ask-list summary small { display: block; font: 500 14px/1.45 var(--f-sans); color: #4A4A4A; margin-top: 4px; }
.ak2-ask-list p { margin: 0 0 14px; font-size: 16px; line-height: 1.6; max-width: 72ch; color: #141414; }
.ak2-ask-list p.ak2-bn { color: #4A4A4A; margin-bottom: 20px; }
@media (max-width: 960px) {
  .ak2-why-in, .ak2-ask-in, .ak2-why-grid { grid-template-columns: 1fr; gap: 12px; }
  .ak2-why-lead, .ak2-ask-lead { padding: 26px 20px; border-radius: 22px; position: static; }
  .ak2-why-lead h2, .ak2-ask-lead h2 { font-size: 32px; }
  .ak2-ask-list details { padding: 0 18px; }
  .ak2-ask-list summary { font-size: 16px; }
  .ak2-ask { padding-bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) { .ak2-why-card:hover { transform: none; } }

.ak2-empty-lead { max-width: 1240px; margin: 0 auto; font-size: 18px; line-height: 1.55; }
.ak2-empty .ak2-sec:first-child { padding-bottom: 0; }
.ak2-empty .ak2-card h3 a, .ak2-empty .ak2-sec-hd a { text-decoration: none; }
.ak2-empty .ak2-sec:first-child { padding-top: 16px; }
@media (max-width: 960px) { .ak2-empty { margin: 0 -32px; } }
.ak2-empty .ak2-btn { text-decoration: none; }
