
.app { min-height: 100%; display: flex; flex-direction: column; }
.cozy-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }


.page-transition { animation: slideIn 0.5s ease; }
@keyframes slideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}


main.mod {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0;
  flex: 1 0 auto;
}
main.mod > section {
  flex: 1 1 100%;
  min-width: 300px;
  padding: 48px 0;
}
main.mod > section.fb-half {
  flex: 1 1 calc(50% - 0px);
}
main.mod > section.fb-half .cozy-wrap { max-width: 590px; }
main.mod > section.fb-half:nth-of-type(even) .cozy-wrap { margin-left: 0; }
main.mod > section.fb-half:nth-of-type(odd) .cozy-wrap { margin-right: 0; }
.mod-content > h2 + p { color: var(--c-muted); max-width: 720px; }


section.curve-top {
  border-top-left-radius: 50% 60px;
  border-top-right-radius: 50% 60px;
  margin-top: -40px;
  padding-top: 72px;
  position: relative;
}


main.mod > section.cozy-room {
  position: relative;
  min-height: calc(100vh - 146px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--c-navy);
  background-image:
    radial-gradient(ellipse 900px 260px at 85% 18%, rgba(239, 125, 26, 0.34), transparent 70%),
    radial-gradient(ellipse 700px 200px at 10% 88%, rgba(247, 183, 51, 0.22), transparent 70%),
    linear-gradient(160deg, #0b1a40 0%, #071230 100%);
  background-attachment: fixed;
  color: #e6edf3;
  padding: 32px 0 40px;
}
.cozy-room::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(7, 18, 48, 0.1), rgba(7, 18, 48, 0.55));
  pointer-events: none;
}
.cozy-room .mod-inner { position: relative; z-index: 1; }
.cozy-room-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-areas: "head pic" "body pic";
  column-gap: 48px;
  align-items: start;
}
.cozy-room-head { grid-area: head; align-self: end; }
.cozy-room-pic { grid-area: pic; align-self: center; }
.cozy-room-body { grid-area: body; }
.cozy-room .kicker {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 14px;
  color: var(--c-gold);
  margin-bottom: 12px;
}
main.mod > section.cozy-room h1 {
  hyphens: manual;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-weight: 500;
  font-size: 40px;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--c-white);
}
.cozy-room .cursor {
  display: inline-block;
  width: 0.6ch;
  height: 0.95em;
  vertical-align: -0.1em;
  background: var(--c-gold);
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.cozy-room-pic img {
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.cozy-room-body > p { color: var(--c-steel); margin-top: 16px; }
.cozy-room .price-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 18px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
}
.cozy-room .price-line strong { font-size: 34px; color: var(--c-gold); }
.cozy-room .price-line span { color: var(--c-steel); font-size: 15px; }
.cozy-room .term {
  background: #0d1530;
  border: 1px solid #2a3866;
  border-radius: 10px;
  padding: 18px 20px;
  max-width: 560px;
  margin-top: 24px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 14px;
  line-height: 1.75;
  color: #d7def2;
}
.cozy-room .term-dots { display: flex; gap: 6px; margin-bottom: 10px; }
.cozy-room .term-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a3866; }
.cozy-room .term-dots i:first-child { background: var(--c-orange); }
.cozy-room .term-dots i:nth-child(2) { background: var(--c-gold); }
.cozy-room .term dl { display: grid; grid-template-columns: max-content 1fr; column-gap: 14px; }
.cozy-room .term dt { color: var(--c-sky); }
.cozy-room .term dd { margin: 0; color: var(--c-white); }
.cozy-room .term .prompt { color: var(--c-gold); }


.cozy-figures {
  background: var(--c-deep);
  color: var(--c-white);
}
main.mod > section.cozy-figures { padding: 28px 0; background: var(--c-deep); }
.cozy-figures ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 48px;
}
.cozy-figures li { text-align: center; margin: 0; }
.cozy-figures b {
  display: block;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 32px;
  font-weight: 500;
  color: var(--c-gold);
}
.cozy-figures span { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--c-steel); }


.cozy-pagehead {
  background: var(--c-navy);
  color: var(--c-white);
}
main.mod > section.cozy-pagehead { background: var(--c-navy); padding: 36px 0 44px; }
.cozy-pagehead h1 { font-size: 40px; color: var(--c-white); }
.cozy-pagehead p { color: var(--c-steel); margin-top: 10px; max-width: 720px; }
.cozy-crumbs { font-size: 14px; margin-bottom: 12px; }
.cozy-crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cozy-crumbs li { margin: 0; color: var(--c-steel); }
.cozy-crumbs li + li::before { content: '›'; margin-right: 6px; color: var(--c-gold); }
.cozy-crumbs a { color: var(--c-gold); }
main.mod > section.cozy-crumbs-band { padding: 16px 0 0; background: var(--c-white); }
.cozy-crumbs-band .cozy-crumbs li { color: var(--c-muted); }
.cozy-crumbs-band .cozy-crumbs a { color: var(--c-rust); }


.cozy-fine-print article { max-width: 780px; }
.cozy-fine-print h2 { font-size: 24px; margin-top: 28px; }
.cozy-fine-print h2:first-child { margin-top: 0; }
.cozy-fine-print ul { margin-bottom: 12px; }
.cozy-fine-print .stamp { font-size: 14px; color: var(--c-muted); margin-top: 24px; }


.cozy-endnotes {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
}
.cozy-endnotes .brand-half {
  background: linear-gradient(135deg, var(--c-gold), var(--c-orange));
  color: var(--c-navy);
  padding: 48px max(20px, calc((100vw - 1180px) / 2 + 20px)) 48px 48px;
  padding-left: max(20px, calc((100vw - 1180px) / 2 + 20px));
}
.cozy-endnotes .links-half {
  background: var(--c-deep);
  color: #cbd5e1;
  padding: 48px max(20px, calc((100vw - 1180px) / 2 + 20px)) 40px 48px;
}
.cozy-endnotes .brand-half a { color: var(--c-navy); font-weight: 600; }
.cozy-endnotes .brand-half .cozy-brand-name { font-size: 26px; font-weight: 700; color: var(--c-navy); }
.cozy-endnotes .brand-half img { height: 44px; width: auto; }
.cozy-endnotes .brand-half p { font-size: 15px; margin-top: 12px; }
.cozy-endnotes .brand-half .note {
  border-top: 1px solid rgba(11, 26, 64, 0.25);
  padding-top: 12px;
  margin-top: 18px;
  font-size: 14px;
}
.cozy-endnotes .cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cozy-endnotes h2 {
  font-size: 13px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-gold);
  margin-bottom: 12px;
}
.cozy-endnotes .cols ul { list-style: none; padding: 0; }
.cozy-endnotes .cols li { margin-bottom: 4px; }
.cozy-endnotes .links-half a { color: #cbd5e1; text-decoration: none; display: inline-block; padding: 6px 0; }
.cozy-endnotes .links-half a:hover { color: var(--c-gold); text-decoration: underline; }
.cozy-endnotes .footer-bottom {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #22305a;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
}
.cozy-endnotes .footer-bottom button {
  background: none;
  border: 0;
  color: var(--c-gold);
  text-decoration: underline;
  cursor: pointer;
  padding: 10px 0;
  min-height: 44px;
}


@media (max-width: 1024px) {
  h1 { font-size: 38px; }
  main.mod > section.cozy-room h1 { font-size: 32px; }
  .cozy-room-grid { column-gap: 28px; }
  .cozy-endnotes { grid-template-columns: 1fr; }
  .cozy-endnotes .brand-half,
  .cozy-endnotes .links-half { padding: 36px 20px; }
  main.mod > section.fb-half { flex-basis: 100%; }
  main.mod > section.fb-half .cozy-wrap { max-width: 1180px; margin: 0 auto; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  p { font-size: 16px; }
  h1 { font-size: 30px; }
  h2 { font-size: 25px; }
  h3 { font-size: 19px; }
  main.mod { flex-direction: column; }
  main.mod > section { padding: 32px 0; min-width: 0; }
  section.curve-top { border-top-left-radius: 50% 28px; border-top-right-radius: 50% 28px; margin-top: -20px; padding-top: 44px; }
  main.mod > section.cozy-room { min-height: 0; padding: 20px 0 32px; background-attachment: scroll; }
  .cozy-room-grid { grid-template-columns: 1fr; grid-template-areas: "head" "pic" "body"; }
  main.mod > section.cozy-room h1 { font-size: 25px; }
  .cozy-room .kicker { font-size: 13px; margin-bottom: 8px; }
  .cozy-room-pic { margin-top: 14px; }
  .cozy-room-pic img { max-width: 100%; }
  .cozy-room .price-line strong { font-size: 28px; }
  .cozy-room .term { font-size: 13px; padding: 14px; }
  .cozy-figures ul { gap: 20px 32px; }
  .cozy-figures b { font-size: 26px; }
  .cozy-pagehead h1 { font-size: 28px; }
  .cozy-endnotes .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .cozy-endnotes .cols { grid-template-columns: 1fr; }
  .cozy-pagehead h1 { font-size: 26px; }
}


.mod { position: relative; }
.mod-header { min-height: 64px; }
.mod-main { width: 100%; }
.mod-section { scroll-margin-top: 140px; }
.mod-footer { margin-top: auto; }
.cozy-foreword h2,
.cozy-catalogue h2,
.cozy-order h2,
.cozy-contents h2 { max-width: 760px; }
.cozy-foreword p { max-width: 760px; }
.cozy-order .mw-prose { font-size: 18px; }
.cozy-guide .steps-3 li::before { background: var(--c-orange); color: var(--c-navy); }
.cozy-contents { border-bottom: 4px solid var(--c-gold); }
.cozy-reference h2 { margin-bottom: 8px; }
.cozy-closing { text-align: center; }
.cozy-closing .cta-row { justify-content: center; }
.cozy-dispatch p,
.cozy-slip p { max-width: 760px; }
.cozy-ledger ol { max-width: 760px; }
.cozy-terms table { max-width: 760px; background: var(--c-white); }
.cozy-terms th { width: 34%; }
.cozy-enquiry p { max-width: 520px; }
.cozy-answers ul { max-width: 760px; }
.cozy-chapters ol { max-width: 640px; }

.cozy-fine-print td, .cozy-fine-print th { overflow-wrap: anywhere; }
