/* Interior pages share the homepage's atmosphere, typography and quiet structure. */

.interior-page {
  --calphii-ink: #edf5ef;
  --calphii-muted: #aab7b1;
  --calphii-dim: #74827c;
  --calphii-deep: #091113;
  --calphii-panel: rgba(14, 25, 27, .76);
  --calphii-line: rgba(225, 244, 235, .14);
  position: relative;
  min-height: 100vh;
  overflow: clip;
  color: var(--calphii-ink);
  background: var(--calphii-deep);
  font-family: "Montserrat", sans-serif;
  line-height: 1.65;
}
.interior-page h1, .interior-page h2, .interior-page h3, .interior-page .brand {
  font-family: "Zain", sans-serif;
  font-weight: 500;
  letter-spacing: 0;
}

.page-atmosphere {
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  height: min(760px, 88vh);
  overflow: hidden;
  pointer-events: none;
  background: #0b1517;
}
.page-atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(4, 9, 10, .74), rgba(4, 9, 10, .47) 48%, rgba(4, 9, 10, .67)),
    linear-gradient(180deg, rgba(4, 9, 10, .2), #091113 94%);
}
.page-scene {
  position: absolute;
  inset: 0;
  background: url('https://focus.calphii.com/assets/img/scenes/rainy-apartment-vibes.png') center 43% / cover no-repeat;
  opacity: .22;
  filter: saturate(.72) contrast(1.05);
  transform: scale(1.025);
}
.page-glow {
  position: absolute;
  z-index: 3;
  width: 30rem;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .12;
}
.page-glow-a { top: -15rem; right: -7rem; background: #9bc6aa; }
.page-glow-b { top: 24rem; left: -20rem; background: #47796b; opacity: .08; }
.page-grain {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: .12;
  background-image: radial-gradient(rgba(255,255,255,.24) .45px, transparent .55px);
  background-size: 5px 5px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.interior-page .topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  margin: 0;
  padding: 0;
  color: #f4f8f5;
  background: rgba(7, 14, 15, .7);
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  border-radius: 0;
  box-shadow: 0 9px 22px rgba(0, 0, 0, .12);
  backdrop-filter: blur(18px) saturate(1.15);
}
.interior-page .topbar-inner {
  width: min(1320px, calc(100% - 2rem));
  margin: 0 auto;
  padding: .9rem 0;
}
.interior-page .brand { color: #f3f7f4; font-size: 1.55rem; }
.interior-page .nav { color: rgba(244,248,245,.72); }
.interior-page .nav a:hover { color: #fff; }
.interior-page .topbar .btn-ghost {
  color: #edf5ef;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.17);
  border-radius: 6px;
}

.page-main { position: relative; z-index: 1; width: 100%; max-width: none; margin: 0; padding: 0; }
.page-frame {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3.25rem, 7vw, 6rem) 0 clamp(6rem, 12vw, 10rem);
}

.interior-page .breadcrumbs {
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
  color: rgba(225, 239, 231, .52);
  font-size: .69rem;
  letter-spacing: .04em;
}
.interior-page .breadcrumbs a { color: rgba(225, 239, 231, .72); text-decoration: none; }
.interior-page .breadcrumbs a:hover { color: #fff; }

.interior-page .content-hero {
  position: relative;
  max-width: 760px;
  min-height: clamp(300px, 43vw, 480px);
  margin: 0;
  padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(4.5rem, 8vw, 7rem);
  background: none;
  border: 0;
}
.interior-page .content-hero::before {
  content: "";
  display: block;
  width: 2.6rem;
  height: 1px;
  margin-bottom: 1.4rem;
  background: rgba(214, 232, 220, .62);
}
.interior-page .content-hero .kicker, .interior-page .content-hero .eyebrow {
  margin: 0 0 .75rem;
  color: #c7d4ce;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.interior-page .content-hero h1 {
  max-width: 12ch;
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(3.6rem, 6.2vw, 6.7rem);
  line-height: .85;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0,0,0,.4);
}
.interior-page .content-hero > p:not(.kicker):not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: rgba(238,246,241,.82);
  font-size: .98rem;
  line-height: 1.75;
}
.interior-page .content-hero .btn { margin-top: 1.6rem; }
.interior-page .btn { border-radius: 6px; padding: .68rem 1rem; font-size: .82rem; }
.interior-page .btn-primary { color: #102017; background: #e9f2ea; border-color: #e9f2ea; }
.interior-page .btn-primary:hover { color: #102017; background: #fff; border-color: #fff; }

.interior-page .content-section {
  margin: 0;
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  color: var(--calphii-muted);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--calphii-line);
  border-radius: 0;
  box-shadow: none;
}
.interior-page .content-section h2, .interior-page .section-title {
  max-width: 18ch;
  margin: 0 0 1rem;
  color: #f2f7f3;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: .95;
}
.interior-page .content-section h3 {
  margin: 2.25rem 0 .6rem;
  color: #e7eee9;
  font-size: 1.55rem;
  line-height: 1;
}
.interior-page .content-section p {
  max-width: 720px;
  margin: 0 0 1rem;
  color: var(--calphii-muted);
  font-size: .92rem;
  line-height: 1.85;
}
.interior-page .content-section p + p { margin-top: 1.15rem; }
.interior-page .content-section a { color: #d4e5db; text-decoration: underline; text-underline-offset: .2em; }
.interior-page .content-section a:hover { color: #fff; }
.interior-page .content-section.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 8vw, 8rem);
}
.interior-page .content-section.split article + article { border: 0; }

.interior-page .list {
  display: grid;
  gap: 0;
  max-width: 760px;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--calphii-line);
}
.interior-page .list li {
  position: relative;
  padding: .95rem .25rem .95rem 1.2rem;
  color: var(--calphii-muted);
  font-size: .86rem;
  line-height: 1.7;
  border-bottom: 1px solid var(--calphii-line);
}
.interior-page .list li::before {
  content: "";
  position: absolute;
  top: 1.58rem;
  left: .1rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #91b5a1;
  box-shadow: 0 0 10px rgba(135, 186, 157, .5);
}
.interior-page .list strong { color: #e2ebe6; font-weight: 500; }

.interior-page blockquote {
  max-width: 780px;
  margin: clamp(2.5rem, 6vw, 4.5rem) 0;
  padding: 1.4rem 1.5rem;
  color: #dce7e1;
  background: linear-gradient(110deg, rgba(118, 158, 138, .1), rgba(118, 158, 138, .025));
  border: 1px solid var(--calphii-line);
  border-left: 2px solid #83a693;
  border-radius: 5px;
}
.interior-page blockquote p { margin: 0 !important; color: inherit !important; }

.interior-page .link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--calphii-line);
}
.interior-page .link-card {
  position: relative;
  min-height: 180px;
  padding: 1.6rem 3.2rem 1.6rem 0;
  color: inherit;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--calphii-line);
  border-radius: 0;
  box-shadow: none;
  transition: background .2s ease;
}
.interior-page .link-card:nth-child(even) { padding-left: 1.6rem; border-left: 1px solid var(--calphii-line); }
.interior-page .link-card::after {
  content: "↗";
  position: absolute;
  top: 1.65rem;
  right: 1rem;
  color: #708078;
  transition: color .2s ease, transform .2s ease;
}
.interior-page .link-card:hover { background: linear-gradient(90deg, rgba(213, 234, 221, .04), transparent); }
.interior-page .link-card:hover::after { color: #dce9e2; transform: translate(2px, -2px); }
.interior-page .link-card h3 {
  max-width: 19ch;
  margin: 0 0 .55rem;
  color: #e7eee9;
  font-size: clamp(1.55rem, 2.7vw, 2.15rem);
  line-height: 1;
}
.interior-page .link-card p { max-width: 46ch; margin: 0; color: #91a099; font-size: .8rem; line-height: 1.7; }

.interior-page .feature-sections { border-top: 1px solid var(--calphii-line); }
.interior-page .feature-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, .75fr);
  gap: clamp(2.5rem, 8vw, 8rem);
  align-items: start;
  padding: clamp(4.5rem, 8vw, 7rem) 0;
}
.interior-page .feature-detail > div { display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem; }
.interior-page .feature-detail .feature-number { grid-row: 1 / 5; margin: .38rem 0 0; color: #65756e; font-size: .66rem; letter-spacing: .14em; }
.interior-page .feature-detail h2, .interior-page .feature-detail > div > p:not(.feature-number) { grid-column: 2; }
.interior-page .feature-detail .pill-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: .2rem 0 0;
  border-top: 1px solid var(--calphii-line);
}
.interior-page .feature-detail .pill-list li {
  padding: .78rem 0;
  color: #aab9b2;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--calphii-line);
  border-radius: 0;
  font-size: .72rem;
}
.interior-page .related-links { margin-top: 1.35rem !important; color: var(--calphii-dim) !important; font-size: .74rem !important; }

.interior-page .final-cta.panel {
  margin: clamp(5rem, 10vw, 9rem) 0 0;
  padding: clamp(5rem, 10vw, 8rem) 1rem;
  text-align: center;
  background: radial-gradient(circle at 50% 115%, rgba(93, 143, 116, .19), transparent 48%), rgba(13, 25, 27, .5);
  border: 1px solid var(--calphii-line);
  border-radius: 7px;
  box-shadow: none;
}
.interior-page .final-cta.panel h2 { margin: 0 0 .35rem; color: #f4f7f5; font-size: clamp(3.5rem, 7vw, 6rem); line-height: .88; }
.interior-page .final-cta.panel p { color: #9caaa4; }
.interior-page .final-cta.panel .btn { margin-top: .8rem; }

/* Reading pages keep Calphii's atmosphere but give the words room to breathe. */
.interior-page[data-page-kind="guide"] .page-frame { width: min(1060px, calc(100% - 2rem)); }
.interior-page[data-page-kind="guide"] .content-hero { max-width: 820px; }
.interior-page[data-page-kind="guide"] .content-hero h1 { max-width: 14ch; }
.interior-page[data-page-kind="guide"] .content-section { width: min(100%, 790px); }
.interior-page[data-page-kind="guide"] .content-section h2 { margin-top: 3.6rem; }
.interior-page[data-page-kind="guide"] .content-section > h2:first-child { margin-top: 0; }

@media (max-width: 900px) {
  .interior-page .content-hero h1 { font-size: clamp(3.8rem, 10vw, 6rem); }
  .interior-page .feature-detail { grid-template-columns: 1fr; gap: 2.4rem; }
}
@media (max-width: 640px) {
  .interior-page .topbar-inner { flex-wrap: wrap; padding: .75rem 0; }
  .interior-page .topbar .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: .1rem;
    font-size: .76rem;
  }
  .interior-page .page-frame { width: min(100% - 2rem, 1180px); padding-top: 2.5rem; }
  .interior-page .breadcrumbs { margin-bottom: 2rem; }
  .interior-page .content-hero { min-height: 330px; padding-top: 2rem; }
  .interior-page .content-hero h1 { max-width: 12ch; font-size: 3.75rem; }
  .interior-page .content-section.split, .interior-page .link-grid { grid-template-columns: 1fr; }
  .interior-page .link-card, .interior-page .link-card:nth-child(even) { min-height: 0; padding: 1.4rem 2.6rem 1.4rem 0; border-left: 0; }
  .interior-page .feature-detail > div { grid-template-columns: 2rem 1fr; }
  .interior-page .feature-detail { padding: 4rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  .interior-page .link-card, .interior-page .link-card::after { transition: none; }
  .page-scene { transform: none; }
}

