/* Cloudship Digital: inner pages and the lower homepage sections.
   Loaded after styles.css (tokens, nav, buttons, pill, hero, story). */

:root { --surface: #fffdf9; --tint: #dae8eb; --soft: rgba(25, 55, 57, 0.45); }

/* ---------- Mobile menu (no JS: <details>) ---------- */

.nav__menu { display: none; position: relative; }
.nav__menu summary {
  list-style: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  cursor: pointer;
}
.nav__menu summary::-webkit-details-marker { display: none; }
.nav__menu summary svg { width: 20px; height: 20px; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; fill: none; }
.nav__menu-panel {
  position: absolute;
  right: 0;
  top: 54px;
  min-width: 220px;
  padding: 12px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.nav__menu-panel a { padding: 12px 14px; border-radius: 12px; font-weight: 500; }
.nav__menu-panel a:hover { background: var(--tint); }
.nav__right { display: flex; align-items: center; gap: 10px; }
.nav__links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Page hero ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 88px var(--gutter) 120px;
  background: linear-gradient(180deg, var(--tint) 0%, var(--bg) 85%);
  text-align: center;
}
.page-hero__cloud { position: absolute; pointer-events: none; }
.page-hero__cloud--left  { left: calc(50% - 830px); top: 30px; width: 420px; }
.page-hero__cloud--top   { left: calc(50% - 250px); top: 10px; width: 220px; filter: blur(2px); opacity: 0.8; }
.page-hero__cloud--right { left: calc(50% + 470px); top: 230px; width: 300px; }
.page-hero__bird { position: absolute; width: 50px; }
.page-hero__bird--1 { left: calc(50% + 260px); top: 110px; }
.page-hero__bird--2 { left: calc(50% + 330px); top: 80px; width: 58px; }
.page-hero__inner {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 6.4vw, 80px);
  line-height: 1.05;
  letter-spacing: -1px;
}
.page-hero h1 em { font-style: italic; }
.page-hero__lede { max-width: 680px; font-size: 19px; line-height: 30px; color: var(--ink-muted); }
.page-hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding-top: 6px; }
.breadcrumb { font-size: 14px; line-height: 21px; color: var(--ink-muted); }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Sections ---------- */

.section { padding: 112px var(--gutter); }
.section--tint { background: var(--tint); }
.section--tight-top { padding-top: 40px; }
.container { max-width: var(--container); margin: 0 auto; display: flex; flex-direction: column; gap: 56px; }
.container--narrow { max-width: 820px; }
.container--article { max-width: 720px; gap: 22px; }

.section-head { display: flex; flex-direction: column; gap: 18px; max-width: 820px; }
.section-head--center { align-items: center; text-align: center; margin: 0 auto; }
.eyebrow-dot { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin: 0;
}
.h2 em, .h3 em { font-style: italic; }
.h2 .soft { color: var(--soft); }
.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  line-height: 40px;
  margin: 0;
}
.lede { font-size: 19px; line-height: 30px; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }

/* ---------- Grids + cards ---------- */

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border-radius: 24px;
  background: var(--tint);
}
.card--light { background: var(--surface); border: 1px solid var(--border); }
.card h3 { margin: 0; font-weight: 600; font-size: 20px; line-height: 28px; }
.card p { font-size: 16px; line-height: 26px; color: var(--ink-muted); }
.card .text-link { margin-top: auto; }
.icon-tile {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--bg);
}
.icon-tile--gold { background: var(--accent); border-radius: 50%; }
.icon-tile svg, .icon svg { width: 24px; height: 24px; }
svg.i { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split--copy-wide { grid-template-columns: 1.05fr 1fr; }
.split__media { border-radius: 32px; overflow: hidden; border: 1px solid var(--border); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__copy { display: flex; flex-direction: column; gap: 28px; }

.features { display: flex; flex-direction: column; gap: 14px; padding: 0; margin: 0; list-style: none; }
.features li { display: flex; gap: 12px; font-size: 16px; line-height: 26px; }
.features li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23193739' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chip {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-weight: 500;
  font-size: 15px;
  line-height: 20px;
}
.chip--on { background: var(--accent); border-color: var(--accent); }

/* Stats bar (inner pages) */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 36px 56px;
  border-radius: 32px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.stats-row--3 { grid-template-columns: repeat(3, 1fr); }

/* Steps */
.step-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  font-weight: 600;
}
.step-when { font-weight: 600; font-size: 12px; line-height: 16px; letter-spacing: 1.6px; text-transform: uppercase; }

/* Projects */
.project { display: flex; flex-direction: column; gap: 16px; }
.project__img {
  aspect-ratio: 588 / 380;
  border-radius: 24px;
  overflow: hidden;
  background: var(--tint);
  border: 1px solid var(--border);
}
.project__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.project__meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.project__name { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 34px; }

/* Pricing plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 36px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.plan--featured { background: var(--tint); border-color: transparent; box-shadow: var(--shadow-card); }
.plan__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan__name { font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 40px; }
.plan__tag { padding: 6px 12px; border-radius: 999px; background: var(--accent); font-weight: 600; font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; }
.plan__price { display: flex; align-items: baseline; gap: 6px; }
.plan__amount { font-family: var(--font-display); font-weight: 700; font-size: 72px; line-height: 1; }
.plan .btn { width: 100%; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 820px; margin: 0 auto; }
.faq details {
  padding: 22px 28px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  font-size: 17px;
  line-height: 24px;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 24px; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; font-size: 16px; line-height: 26px; color: var(--ink-muted); }

/* Testimonials */
.quote-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.quote-card__stars { color: var(--accent); letter-spacing: 2px; }
.quote-card blockquote { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 30px; }

/* Blog cards */
.post-card {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}
.post-card img { width: 100%; aspect-ratio: 384 / 220; object-fit: cover; object-position: top; }
.post-card__body { display: flex; flex-direction: column; gap: 12px; padding: 24px 26px 28px; flex: 1; }
.post-card__meta { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-muted); }
.post-card__cat { padding: 4px 10px; border-radius: 999px; background: var(--tint); color: var(--ink); font-weight: 600; font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; }
.post-card h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 32px; }
.post-card p { font-size: 14px; line-height: 21px; color: var(--ink-muted); }
.post-card .text-link { margin-top: auto; }

.feature-card { display: grid; grid-template-columns: 1.1fr 1fr; border-radius: 32px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.feature-card img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; object-position: top; }
.feature-card__body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; padding: 56px; }

/* Forms */
.form-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 48px;
  border-radius: 32px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 15px; }
.field input, .field textarea, .field select {
  font: inherit;
  font-weight: 400;
  font-size: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 14px; color: var(--ink-muted); }
.contact-list { display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-radius: 20px; background: var(--tint); }
.contact-item .icon-tile { width: 48px; height: 48px; border-radius: 50%; }
.contact-item small { display: block; font-weight: 600; font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink-muted); }
.contact-item strong { font-weight: 600; font-size: 17px; }

/* Overview bar (case study) */
.overview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 28px 48px; border-radius: 24px; border: 1px solid var(--border); background: var(--surface); }
.overview small { display: block; font-weight: 600; font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink-muted); }
.overview strong { font-weight: 600; font-size: 17px; }
.wide-img { border-radius: 28px; overflow: hidden; border: 1px solid var(--border); }
.wide-img img { width: 100%; }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 110px var(--gutter) 170px;
  background: linear-gradient(180deg, var(--tint) 0%, var(--bg) 85%);
  text-align: center;
}
.cta-band__inner { position: relative; max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cta-band h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 6vw, 80px); line-height: 1.05; letter-spacing: -1px; margin: 0; }
.cta-band h2 em { font-style: italic; }
.cta-band p { max-width: 640px; font-size: 19px; line-height: 30px; color: var(--ink-muted); }
.cta-band__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding-top: 8px; }
.cta-band__cloud { position: absolute; pointer-events: none; }
.cta-band__cloud--left { left: calc(50% - 800px); top: 40px; width: 360px; }
.cta-band__cloud--right { left: calc(50% + 460px); top: 50px; width: 200px; filter: blur(2px); opacity: 0.8; }
.cta-band__front { position: absolute; left: 50%; bottom: -60px; width: 1600px; max-width: none; transform: translateX(-50%); opacity: 0.9; pointer-events: none; }
.cta-band__bird { position: absolute; width: 50px; }

/* ---------- Footer ---------- */

.footer { padding: 88px var(--gutter) 40px; background: var(--ink); color: var(--bg); }
.footer__inner { max-width: var(--container); margin: 0 auto; display: flex; flex-direction: column; gap: 56px; }
.footer__top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 48px; }
.footer__brand p:first-child { font-family: var(--font-display); font-weight: 700; font-size: 88px; line-height: 1; }
.footer__brand p + p { margin-top: 16px; font-size: 16px; line-height: 26px; color: rgba(248, 245, 238, 0.7); }
.footer__col { display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 21px; }
.footer__col h2 { margin: 0 0 4px; color: var(--accent); font-weight: 600; font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; }
.footer__col a, .footer__col span { color: rgba(248, 245, 238, 0.7); overflow-wrap: anywhere; }
.footer__col a:hover { color: var(--bg); text-decoration: underline; text-underline-offset: 3px; }
.footer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(248, 245, 238, 0.2); font-size: 14px; color: rgba(248, 245, 238, 0.7); }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: repeat(2, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .grid--3, .plans { grid-template-columns: 1fr; }
  .split, .split--copy-wide, .feature-card { grid-template-columns: 1fr; gap: 40px; }
  .feature-card { gap: 0; }
  .stats-row, .overview { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav__menu { display: block; }
}

@media (max-width: 640px) {
  .page-hero { padding: 48px var(--gutter) 72px; }
  .page-hero__lede, .lede, .cta-band p { font-size: 17px; line-height: 27px; }
  .page-hero__cloud--right, .page-hero__bird { display: none; }
  .section { padding: 64px var(--gutter); }
  .section--tight-top { padding-top: 16px; }
  .container { gap: 36px; }
  .grid--2, .grid--4, .form-row { grid-template-columns: 1fr; }
  .card, .plan, .quote-card { padding: 24px; }
  .feature-card__body, .form-card { padding: 28px 24px; }
  .stats-row { padding: 24px 16px; gap: 16px 8px; }
  .overview { padding: 24px; }
  .plan__amount { font-size: 60px; }
  .cta-band { padding: 72px var(--gutter) 120px; }
  .footer { padding-top: 56px; }
  .footer__brand p:first-child { font-size: 64px; }
  .nav__right .btn { padding: 12px 16px; }
}
