/* Inply AI — quiet luxury. Desktop-first readable, calm British. */
:root {
  --ink: #0F2744;
  --cream: #F7F3EB;
  --stone: #E8E2D6;
  --green: #2F6B4F;
  --green-hover: #275A42;
  --green-mist: rgba(47, 107, 79, 0.1);
  --ink-soft: rgba(15, 39, 68, 0.06);
  --ink-mid: rgba(15, 39, 68, 0.12);
  --cream-deep: #EFE9DE;
  --stone-warm: #E2DBCD;
  --line: #C9C2B4;
  --line-soft: rgba(15, 39, 68, 0.09);
  --muted: #5A6472;
  --white: #FFFFFF;
  --shadow-card: 0 1px 2px rgba(15, 39, 68, 0.04), 0 8px 24px rgba(15, 39, 68, 0.06);
  --shadow-card-hover: 0 2px 4px rgba(15, 39, 68, 0.05), 0 12px 32px rgba(15, 39, 68, 0.08);
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --measure: 60rem;
  --pad-x: clamp(1.25rem, 4vw, 2rem);
  --section-y: clamp(3.25rem, 6vw, 4.75rem);
  --font-display: "Fraunces", "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  background: var(--cream);
  color: var(--ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(47, 107, 79, 0.22);
  color: var(--ink);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--green);
  text-underline-offset: 0.18em;
}

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

a:focus-visible,
.btn:focus-visible,
.nav a:focus-visible,
.skip:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: var(--pad-x);
  top: 0.75rem;
  z-index: 100;
  padding: 0.55rem 0.9rem;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 0.15s ease;
}

.skip:focus {
  transform: translateY(0);
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ——— Header ——— */
.site-header {
  background: var(--ink);
  color: var(--cream);
  padding: 1.05rem 0;
  border-bottom: 1px solid rgba(247, 243, 235, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.1);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.75rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  color: var(--cream);
  text-decoration: none;
  line-height: 1.2;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

.brand:hover {
  color: var(--cream);
  opacity: 0.92;
}

.brand em {
  font-style: normal;
  font-weight: 500;
  font-size: 0.92em;
  opacity: 0.72;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.15rem 1.5rem;
  align-items: center;
  font-size: 0.98rem;
  font-weight: 500;
}

.nav a {
  color: var(--cream);
  text-decoration: none;
  opacity: 0.78;
  padding: 0.2rem 0;
  white-space: nowrap;
  border-bottom: 1.5px solid transparent;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.nav a:hover {
  opacity: 1;
  color: var(--cream);
  border-bottom-color: rgba(247, 243, 235, 0.45);
}

.nav a[aria-current="page"] {
  opacity: 1;
  border-bottom-color: rgba(247, 243, 235, 0.85);
}

/* ——— Hero ——— */
.hero-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 88% 18%, rgba(47, 107, 79, 0.07), transparent 55%),
    radial-gradient(ellipse 55% 50% at 8% 90%, rgba(15, 39, 68, 0.05), transparent 50%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
}

.hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 39, 68, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 39, 68, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 85%);
  pointer-events: none;
}

.hero {
  position: relative;
  display: grid;
  gap: 2rem;
  padding: clamp(3.25rem, 7vw, 5.25rem) 0 clamp(2.75rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem 3rem;
  }
}

.hero-copy {
  min-width: 0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 1.1rem;
}

.hero-kicker::before {
  content: "";
  width: 1.5rem;
  height: 1.5px;
  background: var(--green);
  opacity: 0.7;
}

.hero h1 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 1.2rem;
  font-weight: 600;
  max-width: 18em;
}

.lede {
  font-size: clamp(1.1rem, 2vw, 1.22rem);
  line-height: 1.58;
  margin: 0 0 2rem;
  max-width: 36rem;
  color: var(--ink);
  opacity: 0.92;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: var(--white) !important;
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.3;
  border: 1.5px solid transparent;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 39, 68, 0.08), 0 4px 12px rgba(47, 107, 79, 0.18);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--green-hover);
  color: var(--white) !important;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink) !important;
  border-color: var(--ink-mid);
  box-shadow: none;
  backdrop-filter: blur(4px);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--ink) !important;
  border-color: var(--ink);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 11rem;
  pointer-events: none;
}

.hero-visual img,
.hero-visual svg {
  width: min(100%, 18rem);
  height: auto;
  margin: 0 auto;
}

@media (max-width: 859px) {
  .hero-visual {
    order: -1;
    min-height: 7.5rem;
    opacity: 0.9;
  }
  .hero-visual img,
  .hero-visual svg {
    width: min(100%, 14rem);
  }
}

.hero-rule {
  display: none;
}

@media (min-width: 860px) {
  .hero-rule {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent);
    opacity: 0.7;
  }
}

/* ——— Sections ——— */
.section {
  padding: var(--section-y) 0;
  position: relative;
}

.section--stone {
  background:
    radial-gradient(ellipse 70% 40% at 100% 0%, rgba(15, 39, 68, 0.035), transparent 55%),
    linear-gradient(180deg, var(--stone) 0%, var(--stone-warm) 100%);
}

.section--cream {
  background:
    radial-gradient(ellipse 60% 45% at 0% 100%, rgba(47, 107, 79, 0.04), transparent 50%),
    linear-gradient(180deg, var(--cream) 0%, #F3EEE4 100%);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 0.65rem;
}

.section h2 {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: clamp(1.45rem, 2.6vw, 1.75rem);
  letter-spacing: -0.015em;
  margin: 0 0 1.35rem;
  font-weight: 600;
  line-height: 1.25;
}

.section h2::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 2px;
  background: linear-gradient(90deg, var(--green), rgba(47, 107, 79, 0.2));
  margin-top: 0.85rem;
  border-radius: 1px;
}

.section p {
  margin: 0 0 1rem;
  max-width: 40rem;
}

.section p:last-child {
  margin-bottom: 0;
}

/* Feature / keep lists as polished cards */
.list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.list li {
  position: relative;
  max-width: 40rem;
  padding: 1.1rem 1.25rem 1.1rem 1.35rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--green);
  box-shadow: 0 1px 2px rgba(15, 39, 68, 0.03);
}

.section--cream .list li {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
  border-left-color: var(--green);
}

.list strong {
  font-weight: 650;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05em;
}

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

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }
}

.steps li {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.4rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  counter-increment: step;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.steps li:hover {
  /* motion/elevation gated in (hover: hover) and (pointer: fine) below */
}

.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--green-mist);
}

.steps .step-body {
  min-width: 0;
  font-size: 1.02rem;
  line-height: 1.55;
}

.steps strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.section--cream .steps li {
  background: var(--white);
  border-color: var(--line);
}

/* Three pots */
.pots {
  margin-top: 2.25rem;
  padding: 1.65rem 1.7rem;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.85), rgba(247,243,235,0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.pots::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ink), var(--green));
  opacity: 0.75;
}

.section--cream .pots {
  background: linear-gradient(145deg, var(--white), var(--stone));
  border-color: var(--line-soft);
}

.pots h3 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.pots p {
  margin: 0;
  font-size: 1.02rem;
}

.pots ol {
  margin: 0.85rem 0 1rem;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.55rem;
  font-size: 1.02rem;
}

.pots li {
  padding-left: 0.2rem;
}

.pots li::marker {
  color: var(--green);
  font-weight: 600;
}

/* Contact */
.contact-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.75rem 1.85rem;
  box-shadow: var(--shadow-card);
  max-width: 36rem;
  position: relative;
}

.contact-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25rem;
  bottom: 1.25rem;
  width: 3px;
  background: linear-gradient(180deg, var(--green), var(--ink));
  border-radius: 0 2px 2px 0;
  opacity: 0.85;
}

.section--stone .contact-card {
  border-color: rgba(15, 39, 68, 0.08);
}

.contact-card p {
  margin: 0 0 0.75rem;
  padding-left: 0.65rem;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.contact-card .place {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.contact-card a {
  font-weight: 600;
}

/* Footer */
.site-footer {
  padding: 2.25rem 0 2.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, var(--cream-deep), var(--cream));
  line-height: 1.55;
}

.site-footer a {
  color: var(--green);
  font-weight: 500;
}

.site-footer .tag {
  margin-top: 0.55rem;
  font-style: italic;
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--ink);
  opacity: 0.65;
}

/* ——— iOS Safari + dual-layout polish ——— */
html {
  overflow-x: clip;
}

body {
  overflow-x: clip;
  -webkit-tap-highlight-color: rgba(47, 107, 79, 0.18);
}

.site-header {
  padding-top: calc(1.05rem + env(safe-area-inset-top));
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.site-footer {
  padding-bottom: calc(2.75rem + env(safe-area-inset-bottom));
}

.wrap {
  padding-left: max(var(--pad-x), env(safe-area-inset-left));
  padding-right: max(var(--pad-x), env(safe-area-inset-right));
}

/* Tap targets ≥44px (Apple HIG) — buttons & nav */
.btn {
  min-height: 44px;
  padding: 0.85rem 1.4rem;
}

.nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0;
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Hover is enhancement only — focus/active for touch */
@media (hover: hover) and (pointer: fine) {
  .steps li:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
  }
  .btn:hover {
    background: var(--green-hover);
    color: var(--white) !important;
    box-shadow: 0 2px 4px rgba(15, 39, 68, 0.1), 0 6px 16px rgba(47, 107, 79, 0.22);
    transform: translateY(-1px);
  }
  .btn-ghost:hover {
    background: var(--white);
    color: var(--ink) !important;
    border-color: var(--ink);
    box-shadow: var(--shadow-card);
    transform: translateY(-1px);
  }
}

/* Neutralize hover transforms on coarse pointers */
@media (hover: none), (pointer: coarse) {
  .steps li:hover,
  .btn:hover,
  .btn-ghost:hover {
    transform: none;
  }
  .btn:active {
    background: var(--green-hover);
  }
  .btn-ghost:active {
    background: var(--white);
    border-color: var(--ink);
  }
}

/* ~390px iPhone — no cramped hero, no horizontal scroll, readable type */
@media (max-width: 480px) {
  :root {
    --pad-x: 1.15rem;
    --section-y: 2.75rem;
  }

  body {
    font-size: 1.0625rem;
  }

  .site-header {
    padding-top: calc(0.85rem + env(safe-area-inset-top));
    padding-bottom: 0.85rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem 0;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 0 1.15rem;
    row-gap: 0;
    font-size: 0.95rem;
  }

  .nav a {
    white-space: nowrap;
  }

  .hero {
    padding: 2.5rem 0 2.25rem;
    gap: 1.25rem;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 7.5vw, 2.05rem);
    max-width: none;
    letter-spacing: -0.018em;
  }

  .lede {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
  }

  .hero-visual {
    min-height: 5.5rem;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .list li,
  .contact-card,
  .pots {
    max-width: none;
  }

  .contact-card {
    padding: 1.4rem 1.25rem 1.4rem 1.35rem;
  }

  .pots {
    padding: 1.35rem 1.25rem;
  }
}

/* Tablet / small laptop */
@media (min-width: 481px) and (max-width: 859px) {
  .hero h1 {
    max-width: none;
  }

  .nav {
    flex-wrap: wrap;
  }
}

/* Desktop 1280-ish — wide, calm, labels fully visible */
@media (min-width: 860px) {
  .hero h1 {
    max-width: 16em;
  }

  .nav {
    flex-wrap: nowrap;
    gap: 0.15rem 1.65rem;
    font-size: 1rem;
  }

  .header-inner {
    flex-wrap: nowrap;
  }
}

@supports (padding: max(0px)) {
  .wrap {
    padding-left: max(var(--pad-x), env(safe-area-inset-left, 0px));
    padding-right: max(var(--pad-x), env(safe-area-inset-right, 0px));
  }
}
