/* Package pages (/packages/*). Builds on styles.css: brand tokens, buttons, header, footer. */

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Hero ---------- */
.pkg-hero {
  position: relative; overflow: hidden; padding: 40px 0 72px;
  background:
    radial-gradient(circle at 92% 12%, var(--orange-pale) 0 180px, transparent 181px),
    radial-gradient(circle at 4% 96%, rgba(0,179,166,.12) 0 120px, transparent 121px),
    var(--base);
}
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 26px; }
.crumbs a { color: var(--ink); font-weight: 600; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.pkg-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.pkg-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); margin-bottom: 18px; }
.pkg-hero .lead { max-width: 32em; }
.pkg-badges { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pkg-badges li { background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: .92rem; }
.pkg-badges li strong { color: var(--orange-deep); }

/* Browser mock showing the pages you get */
.mock {
  background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 10px 10px 0 var(--ink); overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 2px solid var(--ink); background: var(--base); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #D9CCC0; }
.mock-bar span:first-child { background: var(--orange); }
.mock-bar em { margin-left: 10px; font-style: normal; font-size: .8rem; color: var(--muted); background: var(--white); border-radius: 999px; padding: 3px 12px; flex: 1; }
.mock-body { padding: 18px; display: grid; gap: 10px; }
.mock-hero { height: 70px; border-radius: 10px; background: linear-gradient(120deg, var(--orange) 0 55%, var(--orange-pale) 55%); }
.mock-pages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.mock-page { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 10px; font-weight: 700; font-size: .9rem; background: var(--base); }
.mock-page::before { content: ""; width: 18px; height: 22px; border-radius: 3px; border: 2px solid var(--ink); background: linear-gradient(var(--ink), var(--ink)) 3px 5px / 8px 2px no-repeat, linear-gradient(#bbb, #bbb) 3px 10px / 8px 2px no-repeat; flex: none; }
.mock-note { font-size: .82rem; color: var(--muted); margin: 2px 0 0; text-align: center; }

/* ---------- Layout: content + sticky order card ---------- */
.pkg-main { padding: 64px 0 88px; }
.pkg-grid { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
.pkg-section { margin-bottom: 56px; }
.pkg-section:last-child { margin-bottom: 0; }
.pkg-section h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 8px; }
.pkg-section > p.sub { color: var(--muted); margin-bottom: 24px; max-width: 40em; }

.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.feat { display: flex; gap: 14px; background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px; }
.feat-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--white); }
.feat h3 { font-size: 1.05rem; margin: 0 0 4px; }
.feat p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.feat-plus { grid-column: 1 / -1; background: var(--orange-pale); border-color: var(--orange-pale); }
.feat-plus .feat-icon { background: var(--orange-deep); }

.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fit { border-radius: var(--radius); padding: 22px; }
.fit h3 { font-size: 1.1rem; margin-bottom: 10px; }
.fit ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.fit-yes { background: var(--white); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--teal); }
.fit-other { background: var(--base); border: 2px dashed #D9CCC0; }
.fit-other a { font-weight: 700; }

.steps-list { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 12px; }
.steps-list li { counter-increment: s; position: relative; padding: 16px 18px 16px 66px; background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); }
.steps-list li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--white); font-family: var(--font-head); font-weight: 900; }
.steps-list strong { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.steps-list span { color: var(--ink-soft); font-size: .95rem; }
.steps-list em { font-style: normal; color: var(--orange-deep); font-weight: 700; }

/* Add-on picker */
.addons { display: grid; gap: 12px; }
.addon {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center;
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.addon.on { border-color: var(--ink); box-shadow: 5px 5px 0 var(--orange); }
.addon h3 { font-size: 1.05rem; margin: 0; }
.addon p { grid-column: 1 / 2; margin: 0; color: var(--ink-soft); font-size: .93rem; }
.addon-price { font-family: var(--font-head); font-weight: 800; white-space: nowrap; }
.addon-price small { font-family: var(--font-body); font-weight: 500; color: var(--muted); font-size: .8rem; }
.addon-ctrl { grid-column: 2; grid-row: 2; justify-self: end; }
.toggle { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; font-size: .92rem; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle .box { padding: 8px 16px; border-radius: 999px; border: 2px solid var(--ink); background: var(--white); transition: background-color .15s ease, color .15s ease; }
.toggle input:checked + .box { background: var(--ink); color: var(--white); }
.toggle input:checked + .box::before { content: "✓ "; }
.toggle input:focus-visible + .box { outline: 3px solid var(--teal); outline-offset: 2px; }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--white); }
.stepper button { width: 38px; height: 38px; border: 0; background: transparent; font-size: 1.3rem; font-weight: 800; cursor: pointer; color: var(--ink); }
.stepper button:hover { background: var(--orange-pale); }
.stepper button:disabled { color: #C9BDB2; cursor: default; background: transparent; }
.stepper input { width: 42px; height: 38px; border: 0; border-left: 2px solid var(--ink); border-right: 2px solid var(--ink); text-align: center; font: inherit; font-weight: 800; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Good to know + FAQ */
.know { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.know div { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px; }
.know h3 { font-size: 1rem; margin-bottom: 6px; }
.know p { margin: 0; color: var(--ink-soft); font-size: .93rem; }
.pkg-faq details { border-top: 1px solid var(--line); }
.pkg-faq details:last-child { border-bottom: 1px solid var(--line); }
.pkg-faq summary { list-style: none; cursor: pointer; padding: 16px 36px 16px 0; position: relative; font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; }
.pkg-faq summary::-webkit-details-marker { display: none; }
.pkg-faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 900; color: var(--orange-deep); transition: transform .2s; }
.pkg-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.pkg-faq details p { margin: 0 0 16px; color: var(--ink-soft); }

/* Sticky order card */
.order { position: sticky; top: 96px; }
.order-card { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 10px 10px 0 var(--ink); padding: 26px; }
.order-card h2 { font-size: 1.35rem; margin-bottom: 4px; }
.order-card .order-for { color: var(--muted); margin: 0 0 16px; font-size: .95rem; }
.order-price { font-family: var(--font-head); font-weight: 900; font-size: 2.6rem; line-height: 1; margin: 0 0 4px; }
.order-price small { font-size: 1rem; font-weight: 700; color: var(--muted); }
.order-incl { color: var(--muted); font-size: .9rem; margin: 0 0 18px; }
.order-lines { list-style: none; padding: 14px 0; margin: 0 0 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 8px; font-size: .95rem; }
.order-lines li { display: flex; justify-content: space-between; gap: 12px; }
.order-lines li span:last-child { font-weight: 700; white-space: nowrap; }
.order-lines .muted-line { color: var(--muted); font-size: .88rem; }
.order-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.order-total span { font-weight: 700; }
.order-total strong { font-family: var(--font-head); font-size: 1.7rem; font-weight: 900; }
.order-then { color: var(--muted); font-size: .88rem; margin: 0 0 18px; text-align: right; }
.order-card .btn { width: 100%; }
.order-secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 0; font-size: .85rem; color: var(--muted); }
.order-links { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: .9rem; display: grid; gap: 6px; }
.order-links a { font-weight: 700; color: var(--ink); }

/* Compare + final CTA */
.compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.compare a { display: block; text-decoration: none; color: var(--ink); background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px; transition: border-color .15s ease, transform .15s ease; }
.compare a:hover { border-color: var(--ink); transform: translateY(-2px); }
.compare strong { display: block; font-family: var(--font-head); font-size: 1.1rem; }
.compare span { color: var(--muted); font-size: .92rem; }
.pkg-cta { background: var(--ink); color: var(--white); padding: 64px 0; }
.pkg-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.pkg-cta h2 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 6px; }
.pkg-cta p { color: #CFC8C2; margin: 0; }
.pkg-cta .btn-light { box-shadow: 5px 5px 0 var(--orange); }

/* Mobile order bar */
.mobile-bar { display: none; }

@media (max-width: 1020px) {
  .pkg-grid { grid-template-columns: 1fr; }
  .order { position: static; }
  .know { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .pkg-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .feat-grid, .fit-grid { grid-template-columns: 1fr; }
  .mobile-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--white); border-top: 2px solid var(--ink); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  }
  .mobile-bar strong { font-family: var(--font-head); font-size: 1.3rem; }
  .mobile-bar small { display: block; color: var(--muted); font-size: .78rem; }
  .mobile-bar .btn { padding: 12px 18px; }
  body { padding-bottom: 76px; }
}
@media (max-width: 560px) {
  .pkg-hero { padding: 28px 0 56px; }
  .order-card { padding: 22px 18px; box-shadow: 6px 6px 0 var(--ink); }
  .mock { box-shadow: 6px 6px 0 var(--ink); }
  .addon { grid-template-columns: 1fr; }
  .addon p { grid-column: 1; }
  .addon-ctrl { grid-column: 1; grid-row: auto; justify-self: start; }
}
