/* AngelLink — shared styles */

:root {
  --cream: #F7F3EE;
  --teal: #1E5C5A;
  --teal-light: #2D7D79;
  --gold: #C8973A;
  --gold-pale: #F5E6CC;
  --charcoal: #2A2A2A;
  --white: #FFFFFF;

  --serif: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;

  --maxw: 1180px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--teal-light); text-decoration: none; }
a:hover { color: var(--teal); }

/* ---------- Layout ---------- */

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

section {
  padding: clamp(64px, 9vw, 120px) 0;
}

section + section { border-top: 1px solid rgba(30, 92, 90, 0.08); }

.section-white { background: var(--white); }
.section-cream { background: var(--cream); }
.section-pale  { background: var(--gold-pale); }
.section-teal  { background: var(--teal); color: var(--cream); }
.section-teal a { color: var(--gold-pale); }

/* ---------- Type ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin: 0 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--teal);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

.section-teal h1, .section-teal h2, .section-teal h3 { color: var(--cream); }

h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
}
h2 {
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.1;
}
h3 {
  font-size: clamp(22px, 2.4vw, 26px);
  line-height: 1.25;
}

em, .italic {
  font-style: italic;
  font-family: var(--serif);
}

p { margin: 0 0 1em; text-wrap: pretty; max-width: 62ch; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--charcoal); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.btn-gold {
  background: var(--gold);
  color: #fff;
}
.btn-gold:hover { background: #b9852e; color: #fff; }

.btn-teal {
  background: var(--teal);
  color: var(--cream);
}
.btn-teal:hover { background: var(--teal-light); color: var(--cream); }

.btn-ghost {
  background: transparent;
  color: var(--teal);
  border-color: rgba(30, 92, 90, 0.25);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

.btn .arrow {
  display: inline-block;
  transition: transform 180ms ease;
}
.btn:hover .arrow { transform: translateX(3px); }

.text-link {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--teal);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
}
.text-link:hover { color: var(--teal-light); border-color: var(--teal-light); }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 238, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(30, 92, 90, 0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
  gap: 24px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--charcoal);
  font-weight: 400;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--teal); }
.nav-links a.active { color: var(--teal); font-weight: 500; }
.nav-links .btn { padding: 10px 20px; font-size: 14px; }

@media (max-width: 720px) {
  .nav-links { gap: 18px; }
  .nav-links .nav-text { display: none; }
}

/* ---------- Logo ---------- */

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  text-decoration: none;
}
.logo .wordmark {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--teal);
  font-weight: 500;
  letter-spacing: -0.005em;
  position: relative;
  display: inline-block;
}
.logo .arc {
  position: absolute;
  top: -8px;
  left: -2px;
  width: 24px;
  height: 12px;
  overflow: visible;
  pointer-events: none;
}
.logo .tagline {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-top: 4px;
  font-style: italic;
}
.logo-footer .wordmark { color: var(--cream); }
.logo-footer .arc path { stroke: var(--gold); }

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(64px, 9vw, 110px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 36px;
  flex-wrap: wrap;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Image placeholder ---------- */

.imgph {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(30, 92, 90, 0.85) 0%, rgba(45, 125, 121, 0.6) 45%, rgba(200, 151, 58, 0.55) 100%),
    var(--teal);
  color: var(--cream);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.imgph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0,
    transparent 14px,
    rgba(255, 255, 255, 0.045) 14px,
    rgba(255, 255, 255, 0.045) 15px
  );
  pointer-events: none;
}
.imgph-caption {
  position: relative;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.32);
  color: var(--cream);
  padding: 10px 12px;
  border-radius: 3px;
  max-width: 360px;
  backdrop-filter: blur(6px);
}
.imgph-caption::before {
  content: "img · ";
  color: var(--gold-pale);
}
/* ---------- Inline video (replaces image placeholders) ---------- */

.imgvid {
  position: relative;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  background: var(--teal);
}
.imgvid video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.imgvid.aspect-16x10 { aspect-ratio: 16 / 10; }
.imgvid.aspect-1x1   { aspect-ratio: 1 / 1; }
.imgvid.aspect-3x2   { aspect-ratio: 3 / 2; }

.imgph.aspect-16x10 { aspect-ratio: 16 / 10; }
.imgph.aspect-1x1   { aspect-ratio: 1 / 1; }
.imgph.aspect-3x2   { aspect-ratio: 3 / 2; }

/* Pull quote */

.pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.35;
  color: var(--teal);
  border-left: 2px solid var(--gold);
  padding: 8px 0 8px 28px;
  max-width: 36ch;
  margin: 40px 0 0;
  text-wrap: balance;
}

/* ---------- Cards ---------- */

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.cards-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 860px) {
  .cards-3 { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid rgba(30, 92, 90, 0.1);
  border-radius: 6px;
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 200ms ease, transform 200ms ease;
}
.card:hover { border-color: rgba(30, 92, 90, 0.25); }

.card-tag {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--charcoal); font-size: 15.5px; line-height: 1.6; }

.card-pale { background: var(--gold-pale); border-color: rgba(200, 151, 58, 0.25); }

/* ---------- Section header (eyebrow + headline pair) ---------- */

.section-header {
  max-width: 720px;
  margin-bottom: 8px;
}
.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-header.center .eyebrow { justify-content: center; }
.section-header h2 { margin-bottom: 0; }
.section-header .lede { margin-top: 18px; max-width: 56ch; }
.section-header.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Two-column layout ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
}

.col-block h3 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.col-block p { font-size: 16px; }

/* ---------- Timeline (How It Works steps) ---------- */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 48px;
  position: relative;
}
.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: clamp(24px, 4vw, 48px);
  padding: 36px 0;
  border-top: 1px solid rgba(30, 92, 90, 0.12);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid rgba(30, 92, 90, 0.12); }
.step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 44px;
  color: var(--gold);
  line-height: 1;
}
.step-body h3 { margin: 0 0 8px; }
.step-body p { margin: 0; max-width: 60ch; }

/* ---------- White-label mock device ---------- */

.device-mock {
  background: var(--white);
  border: 1px solid rgba(30, 92, 90, 0.12);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 30px 60px -40px rgba(30, 92, 90, 0.35);
}
.device-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(30, 92, 90, 0.08);
}
.device-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(30, 92, 90, 0.18);
}
.device-url {
  margin-left: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--teal-light);
}
.device-screen {
  padding: 28px 6px 8px;
}
.device-brand {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--teal);
  margin-bottom: 4px;
}
.device-sub {
  font-size: 13px;
  color: var(--charcoal);
  opacity: 0.7;
  margin-bottom: 22px;
}
.device-msg {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  align-items: flex-start;
}
.device-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold-pale);
  font-family: var(--serif);
  font-size: 14px;
  color: var(--teal);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.device-bubble {
  background: var(--cream);
  border-radius: 4px 14px 14px 14px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.5;
  max-width: 80%;
}
.device-bubble.you {
  background: var(--teal);
  color: var(--cream);
  border-radius: 14px 4px 14px 14px;
  margin-left: auto;
}
.device-msg.right { flex-direction: row-reverse; }
.device-msg.right .device-avatar { background: var(--teal); color: var(--cream); }
.device-foot {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(30, 92, 90, 0.08);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--teal-light);
  opacity: 0.7;
}

/* ---------- CTA strip ---------- */

.cta-strip { text-align: center; }
.cta-strip h2 { margin-bottom: 18px; }
.cta-strip p { margin: 0 auto 32px; max-width: 50ch; }
.cta-strip .actions {
  display: flex;
  gap: 22px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.cta-strip .email {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--cream);
  opacity: 0.85;
}

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

footer {
  background: var(--teal);
  color: var(--cream);
  padding: 64px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--cream); opacity: 0.85; font-size: 15px; }
.footer-col a:hover { opacity: 1; color: var(--gold-pale); }
.footer-bottom {
  border-top: 1px solid rgba(247, 243, 238, 0.15);
  margin-top: 56px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-family: var(--mono);
  opacity: 0.7;
  color: var(--cream);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Form ---------- */

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 24px;
  max-width: 720px;
}
.form .field-full { grid-column: 1 / -1; }
@media (max-width: 720px) { .form { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
  font-weight: 500;
}
.field .opt {
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  color: var(--gold);
  font-weight: 400;
  margin-left: 6px;
  font-size: 12px;
}
.field input,
.field textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid rgba(30, 92, 90, 0.18);
  border-radius: 4px;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--charcoal);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(30, 92, 90, 0.12);
}
.field textarea { min-height: 160px; resize: vertical; }

.form-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.form-foot .note {
  font-size: 13px;
  color: var(--teal-light);
  opacity: 0.85;
}

.form-success {
  background: var(--gold-pale);
  border: 1px solid rgba(200, 151, 58, 0.4);
  padding: 28px;
  border-radius: 6px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--teal);
  display: none;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Origin / About ---------- */

.origin {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
@media (max-width: 860px) { .origin { grid-template-columns: 1fr; } }
.origin .imgph { aspect-ratio: 4/5; }

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }
.value-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 14px;
  line-height: 1;
}
.value h3 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--teal);
  margin: 0 0 10px;
}
.value p { margin: 0; font-size: 16px; }

/* ---------- Sectors (4 stacked rows) ---------- */

.sectors {
  margin-top: 56px;
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(30, 92, 90, 0.12);
}
.sector {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(20px, 4vw, 56px);
  padding: 32px 0;
  border-bottom: 1px solid rgba(30, 92, 90, 0.12);
  align-items: baseline;
}
.sector h3 {
  font-family: var(--serif);
  color: var(--teal);
  font-size: clamp(22px, 2.4vw, 28px);
  margin: 0;
}
.sector p { margin: 0; font-size: 16px; max-width: 60ch; }
@media (max-width: 720px) { .sector { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- Trust list (How It Works privacy) ---------- */

.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.trust-list li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 14px;
  align-items: start;
  font-size: 15.5px;
  line-height: 1.55;
}
.trust-list li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 9px;
  margin-left: 4px;
}

/* ---------- Pilot section ---------- */

.pilot {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 860px) { .pilot { grid-template-columns: 1fr; } }
.pilot .closing {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2vw, 24px);
  color: var(--teal);
  margin-top: 24px;
  text-wrap: balance;
}

/* ---------- Small footnote ---------- */

.footnote {
  font-style: italic;
  color: var(--teal-light);
  font-size: 14px;
  margin-top: 36px;
  text-align: center;
}

.origin .imgvid { aspect-ratio: 4/5; }

/* Contact layout: wider form column on desktop only; stacks on mobile via .two-col rules */
@media (min-width: 861px) {
  .two-col-contact { grid-template-columns: 1.4fr 1fr; }
}
.two-col > * { min-width: 0; }
.field input, .field textarea { width: 100%; max-width: 100%; box-sizing: border-box; }
