/* Caringstead marketing site. Same tokens as the app (packages/ui/src/theme.css), calm layout. */
:root {
  --canvas: #faf7f2;
  --surface: #ffffff;
  --line: #e7e1d8;
  --ink: #1f2a2e;
  --ink-2: #5b6770;
  --primary: #0e6b66;
  --primary-hover: #0b5752;
  --tint: #e6f4f2;
  --radius: 12px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

a {
  color: var(--primary);
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

.narrow {
  max-width: 760px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--primary);
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgb(250 247 242 / 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.4rem;
  text-decoration: none;
  min-height: 48px;
}

.brand.small {
  font-size: 1.1rem;
}

.links {
  display: none;
  gap: 4px;
  margin-left: auto;
}

.links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  padding: 12px;
  border-radius: 8px;
}

.links a:hover {
  background: var(--tint);
}

.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.lang {
  font-weight: 700;
  text-decoration: none;
  padding: 12px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}

@media (min-width: 1000px) {
  .links {
    display: flex;
  }
  .actions {
    margin-left: 8px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid var(--primary);
}

.btn:hover {
  background: var(--primary-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
}

.btn-ghost:hover {
  background: var(--tint);
}

.actions .btn {
  min-height: 48px;
  padding: 0 16px;
}

/* Sections */
section {
  padding-block: 64px;
}

.band {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.lead {
  font-size: 1.25rem;
  color: var(--ink-2);
}

.hero {
  padding-block: 56px 72px;
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-shot {
  position: relative;
  padding-right: 60px;
}

.hero-shot .shot.phone {
  position: absolute;
  right: 0;
  bottom: -24px;
  width: 30%;
  max-width: 190px;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1.15fr;
  }
}

.shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px -12px rgb(31 42 46 / 0.18);
  background: var(--surface);
}

.shot.phone {
  border-radius: 22px;
  border: 6px solid var(--ink);
}

.grid {
  display: grid;
  gap: 20px;
}

.features {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.band .card {
  background: var(--canvas);
}

.card p {
  color: var(--ink-2);
  margin: 0;
}

.center {
  text-align: center;
}

.center .btn {
  margin-top: 8px;
}

.shots {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 12px;
  color: var(--ink-2);
  font-weight: 700;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
}

.note {
  margin-top: 24px;
  font-weight: 700;
}

.plans {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 16px;
}

.plan.featured {
  border: 2px solid var(--primary);
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
}

.price span {
  font-size: 1rem;
  color: var(--ink-2);
  font-weight: 400;
  margin-left: 4px;
}

.plan ul {
  padding-left: 1.2em;
  color: var(--ink-2);
}

.muted {
  color: var(--ink-2);
}

details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}

summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 8px 0;
}

details p {
  color: var(--ink-2);
}

.page {
  padding-block: 56px;
}

.badge {
  display: inline-block;
  background: #fef0c7;
  color: #b54708;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 12px;
}

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  padding-block: 32px;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  justify-content: space-between;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.foot-links a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}
