/* FutureReadyWithGiri — inner pages (shop, product, cart, checkout, account, policies).
   Uses the brand tokens from style.css. */

/* Sections reused from the homepage need their own spacing on inner pages */
.page .about { padding-top: 102px; }
.page .what { padding-bottom: 102px; }

/* Page hero */
.page-hero { position: relative; background: var(--navy); color: var(--white); padding: 40px 0 56px; overflow: clip; }
.page-hero::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: min(416px, 30vw);
  background: radial-gradient(circle, rgba(255, 255, 255, .2) 1px, transparent 1.6px) 0 8px / 16px 16px;
  pointer-events: none;
}
.page-hero .wrap { position: relative; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .65); }
.crumbs a:hover { color: var(--green); }
.crumbs [aria-current] { color: var(--white); }
.page-hero h1 { margin-top: 20px; max-width: 860px; color: var(--white); font-size: 46px; line-height: 1.1; }
.page-hero p { margin-top: 14px; max-width: 680px; color: rgba(255, 255, 255, .88); }

.lead { font-size: 20px; line-height: 1.7; color: var(--navy); }
.stack > * + * { margin-top: 18px; }
.center { text-align: center; }
.mt-s { margin-top: 24px; }
.mt-m { margin-top: 40px; }
.mt-l { margin-top: 72px; }

.note { padding: 14px 18px; border-left: 4px solid var(--yellow); background: #fffbea; font-size: 15px; line-height: 1.6; color: var(--navy); }
.tick { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--blue-soft); color: var(--blue); }
.tick svg { width: 14px; height: 14px; stroke-width: 2.6; }

/* CTA band */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 44px 56px; background: var(--navy); }
.cta-band h2 { color: var(--white); font-size: 30px; line-height: 1.3; letter-spacing: 0; }
.cta-band p { margin-top: 6px; color: rgba(255, 255, 255, .85); }
.cta-band__btns { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.tile { display: flex; flex-direction: column; padding: 28px; background: var(--white); border: 1px solid var(--line); }
.tile__head { display: flex; align-items: center; gap: 14px; }
.tile h3 { font-size: 20px; line-height: 1.3; }
.tile p { margin-top: 12px; font-size: 16px; line-height: 1.6; }
.tile .btn { margin-top: auto; align-self: flex-start; }
.tile p + .btn { margin-top: 20px; }

/* Shop grid */
.books-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.books-grid .book { width: auto; }
@media (min-width: 901px) { .books-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1241px) { .steps5--3 { grid-template-columns: repeat(3, 1fr); } }

/* Product */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: stretch; }
.product__media {
  position: relative; display: grid; place-items: center; min-height: 540px;
  background: radial-gradient(circle, rgba(18, 41, 75, .14) 1px, transparent 1.6px) 4px 4px / 16px 16px, #eff2f9;
  border: 1px solid var(--line);
}
.product__media .cover { transform: scale(1.5); }
.product__buy { display: flex; flex-direction: column; }
.product__buy h1 { margin-top: 12px; font-size: 40px; line-height: 1.12; }
.product__tag { margin-top: 10px; font-size: 17px; line-height: 1.4; font-weight: 600; color: var(--blue); }
.product__desc { margin-top: 14px; }
.product__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.product__price b { font-size: 30px; line-height: 1.2; color: var(--navy); }
.product__price span { font-size: 14px; color: var(--muted); }
.buy-form { margin-top: 20px; display: grid; gap: 18px; }
.buy-form .field > legend, .buy-form .field > label { font-size: 14px; }
.qty { width: 96px; min-height: 50px; padding: 0 12px; border: 1px solid #d9deea; background: var(--white); color: var(--navy); font-size: 16px; }
.buy-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.assure { list-style: none; margin: auto 0 0; padding: 24px 0 0; display: grid; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--navy); }
.assure li { display: flex; align-items: center; gap: 12px; }

.spec { margin: 24px 0 0; border: 1px solid var(--line); background: var(--white); }
.spec div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; padding: 14px 22px; }
.spec div + div { border-top: 1px solid var(--line); }
.spec dt { font-size: 14px; font-weight: 600; color: var(--navy); }
.spec dd { margin: 0; font-size: 16px; }
.checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; align-items: flex-start; gap: 14px; color: var(--navy); }
.checks .tick { margin-top: 2px; }
.page .steps5 { margin-top: 24px; }

/* Cart + checkout */
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; align-items: start; }
.panel { padding: 32px; background: var(--white); border: 1px solid var(--line); }
.panel + .panel { margin-top: 24px; }
.panel h2, .summary h2 { font-size: 24px; line-height: 1.25; letter-spacing: 0; }
.panel > p { margin-top: 6px; font-size: 15px; color: var(--muted); }
.panel .form { margin-top: 22px; }
.lines { background: var(--white); border: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: 20px; align-items: center; padding: 20px 24px; }
.line + .line { border-top: 1px solid var(--line); }
.thumb { width: 64px; height: 90px; background: linear-gradient(90deg, #a9acb3 0 5px, var(--c, var(--navy)) 5px); box-shadow: 0 6px 14px rgba(18, 41, 75, .22); }
.line h3 { font-size: 18px; line-height: 1.3; }
.line h3 a:hover { color: var(--blue); }
.line small { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.line__price { font-size: 17px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.link-btn { padding: 0; border: 0; background: none; font-size: 14px; color: var(--blue); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.empty { padding: 56px 24px; text-align: center; background: var(--white); border: 1px solid var(--line); }
.empty h2 { font-size: 26px; letter-spacing: 0; }
.empty p { margin-top: 8px; }
.empty .btn { margin-top: 22px; }
.summary { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; padding: 24px; background: var(--tint); border: 1px solid var(--line); }
.summary dl { margin: 12px 0 0; }
.summary dl div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; font-size: 16px; }
.summary dl div + div { border-top: 1px solid var(--line); }
.summary dt { color: var(--text); }
.summary dd { margin: 0; font-weight: 600; color: var(--navy); text-align: right; }
.summary .total dt, .summary .total dd { font-size: 19px; font-weight: 700; color: var(--navy); }
.summary .btn { width: 100%; margin-top: 14px; }
.summary__note { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.summary__items { list-style: none; margin: 16px 0 0; padding: 0; font-size: 15px; }
.summary__items li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; color: var(--navy); }
.summary__items li span:last-child { white-space: nowrap; font-weight: 600; }
.pay { display: flex; align-items: flex-start; gap: 14px; margin-top: 20px; padding: 18px 20px; border: 1px solid var(--blue); background: #f7faff; }
.pay input { margin: 5px 0 0; accent-color: var(--blue); }
.pay strong { display: block; color: var(--navy); }
.pay span { display: block; margin-top: 2px; font-size: 14.5px; line-height: 1.55; }
.agree { display: flex; align-items: flex-start; gap: 12px; margin-top: 12px; font-size: 15px; line-height: 1.55; }
.agree input { margin: 5px 0 0; accent-color: var(--blue); }
.agree a, .prose a, .panel p a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* Order received */
.done { max-width: 760px; margin-inline: auto; padding: 48px; background: var(--white); border: 1px solid var(--line); text-align: center; }
.done__ok { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: var(--green); color: var(--navy); }
.done__ok svg { width: 30px; height: 30px; stroke-width: 2.6; }
.done h2 { margin-top: 20px; font-size: 32px; line-height: 1.2; letter-spacing: 0; }
.done > p { margin-top: 10px; }
.done .spec { text-align: left; }
.done__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* Account */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.duo .panel { display: flex; flex-direction: column; margin-top: 0; }
.duo .form { grid-template-columns: 1fr; flex: 1; align-content: start; }
.duo .form__foot { margin-top: auto; }
.form__row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 15px; }

/* Policies */
.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; align-items: start; }
.legal__nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; border: 1px solid var(--line); background: var(--white); }
.legal__nav a { padding: 14px 18px; font-size: 15px; font-weight: 600; color: var(--navy); }
.legal__nav a + a { border-top: 1px solid var(--line); }
.legal__nav a[aria-current], .legal__nav a:hover { background: var(--tint); color: var(--blue); }
.prose { max-width: 760px; }
.prose h2 { margin-top: 40px; font-size: 24px; line-height: 1.3; letter-spacing: 0; }
.prose p, .prose ul { margin-top: 12px; }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose .note + h2 { margin-top: 32px; }

/* 404 */
.lost { text-align: center; padding: 120px 0; }
.lost b { display: block; font-size: 96px; line-height: 1; color: var(--blue); }
.lost h1 { margin-top: 16px; font-size: 40px; }
.lost p { margin-top: 12px; }
.lost .done__btns { margin-top: 28px; }

@media (max-width: 1100px) {
  .product { gap: 40px; }
  .cart, .checkout { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; }
  .legal { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
  .cta-band { padding: 36px 32px; }
}

@media (max-width: 900px) {
  .page .about, .page .what { padding-top: 72px; padding-bottom: 72px; }
  .page-hero { padding: 28px 0 40px; }
  .page-hero::before { width: 100%; opacity: .5; }
  .page-hero h1 { font-size: clamp(30px, 8.4vw, 40px); margin-top: 16px; }
  .lead { font-size: 18px; }
  .mt-l { margin-top: 56px; }
  .cta-band { flex-direction: column; align-items: flex-start; gap: 22px; padding: 30px 24px; }
  .cta-band h2 { font-size: 24px; }
  .tiles, .books-grid, .product, .cart, .checkout, .duo, .legal { grid-template-columns: minmax(0, 1fr); }
  .books-grid .book { width: auto; }
  .books-grid .book__top { height: 290px; }
  .product { gap: 28px; }
  .product__media { min-height: 400px; }
  .product__media .cover { transform: scale(1.2); }
  .product__buy h1 { font-size: clamp(28px, 7.6vw, 36px); }
  .assure { padding-top: 22px; }
  .spec div { grid-template-columns: 1fr; gap: 2px; padding: 12px 18px; }
  .summary { position: static; max-height: none; }
  .panel { padding: 24px 20px; }
  .line { grid-template-columns: 64px minmax(0, 1fr); gap: 14px 16px; padding: 18px; }
  .line > :nth-child(3) { grid-column: 2; }
  .line > :nth-child(4) { grid-column: 2; }
  .done { padding: 32px 20px; }
  .done h2 { font-size: 26px; }
  .legal { gap: 28px; }
  .legal__nav { position: static; display: flex; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); border-inline: 0; }
  .legal__nav::-webkit-scrollbar { display: none; }
  .legal__nav a { white-space: nowrap; }
  .legal__nav a + a { border-top: 0; border-left: 1px solid var(--line); }
  .lost { padding: 72px 0; }
  .lost b { font-size: 72px; }
  .lost h1 { font-size: 30px; }
}

@media (max-width: 380px) {
  .buy-row { grid-template-columns: 1fr; }
}
