/* Edge Waypoint - main stylesheet */

:root {
  --ink: #0a0a0a;
  --ink-soft: #1f1f1f;
  --muted: #5a5a5a;
  --muted-soft: #777777;
  --line: #e6e3dc;
  --line-soft: #f0ede5;
  --bg: #ffffff;
  --bg-soft: #faf8f3;
  --bg-warm: #f5f1e8;
  --accent: #ffc01c;
  --accent-dark: #8a5a00;
  --accent-soft: #fff4d1;
  --max: 1100px;
  --max-narrow: 760px;
  --pad: clamp(1.25rem, 4vw, 2rem);
  --radius: 6px;
  --shadow: 0 1px 2px rgba(10,10,10,.04), 0 4px 12px rgba(10,10,10,.04);
}

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

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s; }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 { color: var(--ink); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .75rem; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.15rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: .35rem; }
strong { font-weight: 700; color: var(--ink); }

/* Layout */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.container-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-soft { background: var(--bg-soft); }
.section-warm { background: var(--bg-warm); }
.eyebrow { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-dark); margin: 0 0 .5rem; }

/* Skip link */
.skip { position: absolute; left: -10000px; top: auto; }
.skip:focus { position: static; display: inline-block; padding: .5rem 1rem; background: var(--ink); color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding: .9rem var(--pad); max-width: var(--max); margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.brand img { height: 28px; width: auto; }
.brand:hover { color: var(--ink); }
.primary-nav { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; }
.primary-nav a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--accent-dark); }
.nav-cta { background: var(--ink); color: #fff !important; padding: .55rem 1rem; border-radius: var(--radius); font-weight: 600; }
.nav-cta:hover { background: var(--accent-dark); color: #fff !important; }

/* Mobile nav: collapse links, keep CTA */
@media (max-width: 720px) {
  .primary-nav .nav-link { display: none; }
  .header-inner { gap: .75rem; }
}

/* Buttons */
.btn { display: inline-block; padding: .85rem 1.5rem; border-radius: var(--radius); font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid var(--ink); transition: all .15s; cursor: pointer; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }

/* Hero */
.hero { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem); background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 22ch; }
.hero .subhead { font-size: clamp(1.1rem, 2vw, 1.25rem); color: var(--muted); max-width: 56ch; margin: 1rem 0 0; line-height: 1.55; }

/* Cards / steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem 1.5rem; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: var(--ink); font-weight: 800; font-size: .9rem; margin-bottom: .9rem; }
.step h3 { margin-bottom: .5rem; }
.step p { color: var(--muted); margin: 0; font-size: .97rem; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 1.5rem 0 2rem; font-size: .97rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
caption { text-align: left; font-weight: 700; padding: .75rem 0; }
th, td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { background: var(--bg-soft); font-weight: 700; color: var(--ink); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
td:last-child, th:last-child { white-space: nowrap; }
@media (max-width: 640px) {
  td:last-child, th:last-child { white-space: normal; }
  th, td { padding: .7rem .65rem; font-size: .9rem; }
}

/* Tier blocks */
.tier { margin-bottom: 3rem; }
.tier h2 { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; }
.tier h2 .tier-num { color: var(--accent-dark); font-size: .85em; font-weight: 700; letter-spacing: .04em; }

/* Reasons grid */
.reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-top: 1.5rem; list-style: none; padding: 0; }
.reasons li { background: #fff; border: 1px solid var(--line); padding: 1.25rem 1.25rem 1.1rem; border-radius: var(--radius); margin: 0; }
.reasons strong { display: block; margin-bottom: .35rem; }
.reasons span { color: var(--muted); font-size: .95rem; }

/* About / founder */
.founder { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: start; margin: 1.5rem 0 2rem; }
.founder-photo { width: 220px; height: 220px; border-radius: var(--radius); background: var(--bg-warm); display: flex; align-items: center; justify-content: center; color: var(--muted-soft); font-size: .85rem; text-align: center; padding: 1rem; border: 1px dashed var(--line); }
@media (max-width: 600px) {
  .founder { grid-template-columns: 1fr; }
  .founder-photo { width: 160px; height: 160px; }
}

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 2rem; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; gap: 2rem; } }
.contact-info { background: var(--bg-soft); padding: 1.75rem; border-radius: var(--radius); border: 1px solid var(--line); height: fit-content; }
.contact-info dl { margin: 0; }
.contact-info dt { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 1rem; }
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { margin: .25rem 0 0; }
form .field { margin-bottom: 1.1rem; }
form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
form label .req { color: var(--accent-dark); }
form input, form select, form textarea {
  width: 100%; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: inherit; font-size: 1rem; background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
form input:focus, form select:focus, form textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft);
}
form textarea { resize: vertical; min-height: 110px; }
form .honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-message { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-weight: 500; }
.form-success { background: #e8f5e9; color: #1b5e20; border: 1px solid #a5d6a7; }
.form-error { background: #fdecea; color: #b71c1c; border: 1px solid #f5c2bd; }

/* Footer */
.site-footer { background: #0a0a0a; color: #d6d3cc; padding: 3rem 0 2rem; margin-top: 4rem; font-size: .92rem; }
.site-footer .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
@media (max-width: 720px) { .site-footer .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; margin-bottom: .75rem; font-size: .8rem; }
.site-footer .tagline { color: #f0ede5; font-weight: 500; max-width: 32ch; }
.site-footer a { color: #d6d3cc; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer .nap { font-size: .9rem; color: #aaa6a0; line-height: 1.7; margin-top: .75rem; }
.site-footer .legal { border-top: 1px solid #2a2a2a; margin-top: 2rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; color: #888; font-size: .85rem; }
.site-footer .legal a { color: #888; }

/* 404 */
.error-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4rem var(--pad); }
.error-page h1 { font-size: clamp(2rem, 5vw, 3rem); }
.error-page p { color: var(--muted); max-width: 50ch; margin: 0 auto 1.5rem; }

/* Utilities */
.text-muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
