/* Paper Eclipse — App Maple Point */
:root {
  --parchment: #f3ebe0;
  --parchment-deep: #e8dccb;
  --beige: #d4c4ae;
  --terracotta: #c4785a;
  --terracotta-deep: #a35c42;
  --indigo: #4a5568;
  --indigo-muted: #6b7a8f;
  --ink: #1a1814;
  --ink-soft: #3d3830;
  --paper-shadow: rgba(26, 24, 20, 0.12);
  --fold: rgba(26, 24, 20, 0.06);
  --font-display: "Literata", "Georgia", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --space: clamp(1rem, 2.5vw, 2rem);
  --measure: 68rem;
  --radius: 2px;
  --ease-panel: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--parchment);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(196, 120, 90, 0.08), transparent 50%),
    radial-gradient(ellipse at 90% 10%, rgba(74, 85, 104, 0.07), transparent 45%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--terracotta-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--ink);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.wrap {
  width: min(100% - 2 * var(--space), var(--measure));
  margin-inline: auto;
}

.wrap--narrow {
  width: min(100% - 2 * var(--space), 42rem);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--parchment) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--fold);
}

.site-header__inner {
  width: min(100% - 2 * var(--space), var(--measure));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand__mark {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, var(--parchment) 0 28%, transparent 29%),
    radial-gradient(circle at 50% 50%, var(--ink) 0 48%, var(--terracotta) 50% 70%, var(--indigo-muted) 72% 100%);
  box-shadow: 0 0 0 1px var(--beige);
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--beige);
  padding: 0.45rem 0.7rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle__bars {
  width: 1rem;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 4px 0 var(--ink), 0 -4px 0 var(--ink);
}

.site-nav__list {
  display: flex;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--parchment-deep);
    border-bottom: 1px solid var(--beige);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease-panel);
  }
  .site-nav.is-open { max-height: 20rem; }
  .site-nav__list {
    flex-direction: column;
    padding: 1rem var(--space) 1.25rem;
    gap: 0.85rem;
  }
}

/* Buttons — paper panel slide */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  color: var(--parchment);
  background: transparent;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s var(--ease-panel);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  z-index: -2;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--terracotta);
  z-index: -1;
  transform: translateX(-101%);
  transition: transform 0.4s var(--ease-panel);
}

.btn:hover {
  color: var(--parchment);
}

.btn:hover::after {
  transform: translateX(0);
}

.btn--panel {
  color: var(--parchment);
}

.btn--ghost {
  color: var(--ink);
  border: 1px solid var(--beige);
  background: color-mix(in srgb, var(--parchment) 70%, white);
}

.btn--ghost::before,
.btn--ghost::after {
  display: none;
}

.btn--ghost:hover {
  background: var(--parchment-deep);
  color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero — full-bleed editorial (varied composition) */
.hero-eclipse {
  position: relative;
  min-height: min(92vh, 52rem);
  display: grid;
  align-items: end;
  color: var(--parchment);
  overflow: hidden;
}

.hero-eclipse__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-eclipse__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

.hero-eclipse__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(26, 24, 20, 0.82) 0%, rgba(26, 24, 20, 0.55) 42%, rgba(74, 85, 104, 0.35) 100%),
    radial-gradient(circle at 78% 28%, rgba(196, 120, 90, 0.25), transparent 40%);
  z-index: 1;
}

.hero-eclipse__screen {
  position: absolute;
  top: 8%;
  right: 6%;
  width: min(28vw, 16rem);
  height: 55%;
  border: 1px solid rgba(243, 235, 224, 0.2);
  background: linear-gradient(160deg, rgba(243, 235, 224, 0.08), rgba(26, 24, 20, 0.15));
  backdrop-filter: blur(2px);
  z-index: 2;
  animation: screen-breathe 7s ease-in-out infinite;
  pointer-events: none;
}

.hero-eclipse__screen--left {
  left: 4%;
  right: auto;
  top: 22%;
  width: min(18vw, 10rem);
  height: 40%;
  animation-delay: -2.5s;
  opacity: 0.7;
}

@keyframes screen-breathe {
  0%, 100% { transform: translateY(0); opacity: 0.85; }
  50% { transform: translateY(8px); opacity: 1; }
}

.hero-eclipse__content {
  position: relative;
  z-index: 3;
  width: min(100% - 2 * var(--space), var(--measure));
  margin: 0 auto;
  padding: 4rem 0 3.5rem;
}

.hero-eclipse__brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  max-width: 12ch;
  animation: rise-in 0.9s var(--ease-panel) both;
}

.hero-eclipse__line {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 32ch;
  margin: 0 0 1.75rem;
  color: color-mix(in srgb, var(--parchment) 90%, var(--beige));
  animation: rise-in 0.9s 0.15s var(--ease-panel) both;
}

.hero-eclipse .btn {
  animation: rise-in 0.9s 0.3s var(--ease-panel) both;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sections */
.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section--fold {
  background: linear-gradient(180deg, transparent, var(--fold) 8%, var(--fold) 92%, transparent);
}

.section--panel {
  background: var(--parchment-deep);
  box-shadow: inset 0 1px 0 var(--beige), inset 0 -1px 0 var(--beige);
}

.section__intro {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.section__kicker {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo-muted);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
}

/* Offer strip — not cards-as-decoration; interactive list */
.offer-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--beige);
}

.offer-list__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--beige);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.3s var(--ease-panel), background 0.3s;
}

.offer-list__item:hover {
  padding-left: 0.5rem;
  background: color-mix(in srgb, var(--beige) 25%, transparent);
}

.offer-list__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
}

.offer-list__summary {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.offer-list__meta {
  font-size: 0.9rem;
  color: var(--terracotta-deep);
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .offer-list__item {
    grid-template-columns: 1fr;
  }
}

/* Evidence / quotes */
.quote-block {
  max-width: 36rem;
  margin: 0;
  padding: 0;
  border: none;
}

.quote-block p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
}

.quote-block footer {
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--indigo-muted);
}

/* Media band */
.media-band {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.media-band__image {
  position: relative;
  min-height: 18rem;
  overflow: hidden;
}

.media-band__image img {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: cover;
  filter: sepia(0.12) contrast(1.02);
}

.media-band__image::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px var(--fold);
  pointer-events: none;
}

@media (max-width: 800px) {
  .media-band { grid-template-columns: 1fr; }
}

/* Service / blog grids — interaction containers */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1.5rem;
}

.tile {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: color-mix(in srgb, var(--parchment) 80%, white);
  border: 1px solid var(--beige);
  overflow: hidden;
  transition: transform 0.35s var(--ease-panel), box-shadow 0.35s;
}

.tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px var(--paper-shadow);
}

.tile__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.tile__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-panel);
}

.tile:hover .tile__img img {
  transform: scale(1.04);
}

.tile__body {
  padding: 1.15rem 1.2rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tile__body h3 {
  margin-bottom: 0.4rem;
}

.tile__body p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  flex: 1;
}

.tile__meta {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--terracotta-deep);
  font-weight: 600;
}

/* Page hero (inner) */
.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
}

.page-hero--split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2rem;
  align-items: end;
}

.page-hero--split .page-hero__media {
  min-height: 16rem;
  overflow: hidden;
}

.page-hero--split .page-hero__media img {
  width: 100%;
  height: 100%;
  min-height: 16rem;
  object-fit: cover;
}

@media (max-width: 800px) {
  .page-hero--split { grid-template-columns: 1fr; }
}

/* Process steps */
.process-steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

.process-steps li {
  position: relative;
  padding-left: 3.5rem;
  counter-increment: step;
}

.process-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--terracotta);
  font-weight: 600;
}

/* Pricing table */
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.price-table th,
.price-table td {
  text-align: left;
  padding: 1rem 0.75rem;
  border-bottom: 1px solid var(--beige);
  vertical-align: top;
}

.price-table th {
  font-family: var(--font-display);
  font-weight: 600;
}

.price-table .amt {
  font-weight: 600;
  color: var(--terracotta-deep);
  white-space: nowrap;
}

/* Forms */
.form {
  display: grid;
  gap: 1.1rem;
  max-width: 32rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.form input,
.form select,
.form textarea {
  font: inherit;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--beige);
  background: color-mix(in srgb, var(--parchment) 70%, white);
  color: var(--ink);
  border-radius: var(--radius);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--indigo-muted);
  outline-offset: 1px;
}

.form__error {
  color: var(--terracotta-deep);
  font-size: 0.85rem;
  min-height: 1.2em;
}

.form__status {
  padding: 0.85rem 1rem;
  border: 1px solid var(--beige);
  background: var(--parchment-deep);
  font-size: 0.95rem;
}

.form__status[data-state="success"] {
  border-color: var(--indigo-muted);
}

.form__status[data-state="error"] {
  border-color: var(--terracotta);
  color: var(--terracotta-deep);
}

.form__status[hidden] {
  display: none;
}

/* Prose */
.prose {
  max-width: 42rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.legal h2 {
  margin-top: 2rem;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 3rem 0 2.5rem;
  background: var(--ink);
  color: var(--parchment);
}

.site-footer a {
  color: var(--beige);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--parchment);
}

.site-footer__inner {
  width: min(100% - 2 * var(--space), var(--measure));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 2rem;
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.site-footer__heading {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--beige);
  margin-bottom: 0.75rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.site-footer__note {
  font-size: 0.88rem;
  color: var(--beige);
}

.site-footer__copy {
  margin-top: 1.5rem;
  opacity: 0.7;
}

@media (max-width: 800px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: var(--space);
  pointer-events: none;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__inner {
  pointer-events: auto;
  width: min(100%, 40rem);
  margin-inline: auto;
  padding: 1.15rem 1.25rem;
  background: var(--parchment-deep);
  border: 1px solid var(--beige);
  box-shadow: 0 -8px 32px var(--paper-shadow);
  display: grid;
  gap: 0.85rem;
}

.cookie-banner__text {
  margin: 0;
  font-size: 0.92rem;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.cookie-banner__error {
  margin: 0;
  color: var(--terracotta-deep);
  font-size: 0.85rem;
}

/* 404 */
.err-page {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 3rem var(--space);
}

.err-page h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  margin-bottom: 0.2em;
}

/* Detail */
.detail-hero {
  margin-bottom: 2rem;
}

.detail-hero img {
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
}

.includes {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  border-top: 1px solid var(--beige);
}

.includes li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--beige);
  padding-left: 1.25rem;
  position: relative;
}

.includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--terracotta);
  border-radius: 50%;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tag {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--indigo-muted);
  border-bottom: 1px solid var(--beige);
  padding-bottom: 0.15rem;
}
