/* One Page Co — onepagetx.com
   White primary, black and grey text, teal #5EB8B0 accents.
   Headlines: Fraunces. Body: Instrument Sans. */
:root {
  --white: #ffffff;
  --bg: #ffffff;
  --bg-alt: #F5F6F7;
  --ink: #1A1A1A;
  --sub: #5C5C5C;
  --muted: #6B6B6B;
  --teal: #5EB8B0;
  --teal-hover: #4AA59D;
  --teal-link: #2F8A83;
  --line: #E4E6E8;
  --card: #ffffff;
  --wrap: 1160px;
  --header-h: 76px;
  --ease: 160ms ease;
}

@font-face {
  font-family: Fraunces;
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--sub);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-hover); }
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--teal);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
}

/* Type */
.eyebrow {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-link);
}
h1, h2, h3 {
  font-family: Fraunces, "Times New Roman", serif;
  font-weight: 560;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 40, "WONK" 0;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 0.45em;
}
h1 { font-size: clamp(2.35rem, 4.4vw, 3.7rem); text-wrap: balance; }
h2 { font-size: clamp(1.85rem, 3vw, 2.6rem); text-wrap: balance; }
h3 { font-size: 1.28rem; letter-spacing: -0.02em; }
.lede {
  margin: 0;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--sub);
  max-width: 36em;
}
.section-lead {
  margin: 0 0 2.2rem;
  max-width: 34em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.9rem 1.3rem;
  border: 1px solid transparent;
  transition: background var(--ease), border-color var(--ease), color var(--ease), transform var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: var(--ink);
}
.btn-primary:hover {
  background: var(--teal-hover);
  color: var(--ink);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: #D0D3D6;
}
.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal-link);
}
.btn-lg { padding: 1.05rem 1.5rem; font-size: 1rem; }
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--teal-link);
  text-decoration: none;
}
.btn-text:hover { color: var(--teal-hover); }
.btn-text .arrow { transition: transform var(--ease); }
.btn-text:hover .arrow { transform: translateX(3px); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 14px 28px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  margin-right: auto;
  flex-shrink: 0;
  white-space: nowrap;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  flex-shrink: 0;
}
.nav .btn { flex-shrink: 0; }

/* Teal hamburger: three bars, no white, no box. */
.menu { position: relative; flex-shrink: 0; }
.menu-toggle {
  list-style: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  width: 40px;
  height: 36px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--teal);
}
.menu-toggle::-webkit-details-marker,
.menu-toggle::marker { display: none; content: none; }
.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 99px;
  background: var(--teal);
  position: relative;
}
.menu-bars::before,
.menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-bars::before { top: -7px; }
.menu-bars::after { top: 7px; }
.menu-toggle:hover .menu-bars,
.menu-toggle:hover .menu-bars::before,
.menu-toggle:hover .menu-bars::after { background: var(--teal-hover); }
.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 200px;
  padding: 8px 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.10);
  z-index: 60;
}
.menu-panel a {
  display: block;
  padding: 10px 18px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.menu-panel a:hover { color: var(--teal-link); background: var(--bg-alt); }

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 88px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 92% 0%, rgba(94, 184, 176, 0.14), transparent 58%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr);
  gap: 56px 64px;
  align-items: center;
}
.hero-shot { margin: 0; }
.browser {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.10);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #F0F1F2;
  border-bottom: 1px solid var(--line);
}
.browser-bar .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #C5C9CC;
}
.browser-bar .dot:nth-child(2) { background: #D0D3D6; }
.browser-bar .dot:nth-child(3) { background: var(--teal); }
.browser-bar .url {
  margin-left: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.browser img {
  width: 100%;
  aspect-ratio: 1280 / 769;
  object-fit: cover;
  object-position: top center;
}
.hero-shot figcaption {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Sections */
section { padding: 88px 0; }
section.alt { background: var(--bg-alt); }
#services, #work, #how, #faq, #hire { scroll-margin-top: 88px; }

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0 0 18px; font-size: 0.98rem; }
.card .price {
  margin-top: auto;
  margin-bottom: 14px;
  font-family: Fraunces, "Times New Roman", serif;
  font-weight: 560;
  font-variation-settings: "SOFT" 40, "WONK" 0;
  font-size: 1.7rem;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
}
.card .price span {
  display: block;
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

/* Work */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.work-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}
.work-card .thumb {
  aspect-ratio: 1280 / 769;
  overflow: hidden;
  background: var(--bg-alt);
}
.work-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.work-card .meta { padding: 16px 18px 20px; }
.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--teal);
  border-radius: 999px;
  padding: 4px 8px;
  margin-bottom: 8px;
}
.work-card h3 { font-size: 1.2rem; margin: 0 0 4px; }
.work-card p { margin: 0; font-size: 0.92rem; }

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px 26px;
}
.step .num {
  display: block;
  font-family: Fraunces, "Times New Roman", serif;
  font-weight: 560;
  font-variation-settings: "SOFT" 40, "WONK" 0;
  font-size: 2rem;
  color: var(--teal-link);
  letter-spacing: -0.04em;
  margin-bottom: 10px;
  line-height: 1;
}
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; }


/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 40rem;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  min-height: 56px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker,
.faq-item summary::marker { display: none; content: none; }
.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  background:
    linear-gradient(var(--teal), var(--teal)) center / 12px 2px no-repeat,
    linear-gradient(var(--teal), var(--teal)) center / 2px 12px no-repeat;
  transition: transform var(--ease);
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
  background:
    linear-gradient(var(--teal-hover), var(--teal-hover)) center / 12px 2px no-repeat,
    linear-gradient(var(--teal-hover), var(--teal-hover)) center / 2px 12px no-repeat;
}
.faq-item summary:hover { color: var(--teal-link); }
.faq-item summary:hover::after {
  background:
    linear-gradient(var(--teal-hover), var(--teal-hover)) center / 12px 2px no-repeat,
    linear-gradient(var(--teal-hover), var(--teal-hover)) center / 2px 12px no-repeat;
}
.faq-item p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--sub);
  max-width: 38em;
}

/* CTA */
.hire {
  padding: 88px 0;
  background:
    radial-gradient(ellipse 80% 80% at 50% 120%, rgba(94, 184, 176, 0.16), transparent 60%),
    var(--bg);
  text-align: center;
}
.hire h2 { max-width: 16em; margin-left: auto; margin-right: auto; }
.hire .lede { margin: 0 auto; }
.hire .ctas { justify-content: center; }

/* Footer */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 36px 0 40px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  margin-right: auto;
}
.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  font-size: 0.92rem;
}
.footer-meta a { color: var(--sub); text-decoration: none; }
.footer-meta a:hover { color: var(--teal-link); }
.note { color: var(--muted); }

@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { gap: 40px; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 48px 0 64px; }
  .work-grid, .steps { grid-template-columns: 1fr; }
  .nav { min-height: 0; }
  section, .hire { padding: 64px 0; }
  .wrap { width: min(var(--wrap), calc(100% - 40px)); }
}
@media (max-width: 520px) {
  .service-grid { grid-template-columns: 1fr; }
  .nav { gap: 8px; }
  .nav .btn-hire { padding: 0.7rem 0.8rem; font-size: 0.82rem; }
  .wrap { width: min(var(--wrap), calc(100% - 32px)); }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .footer-brand { margin-right: 0; }
  .ctas { flex-direction: column; align-items: stretch; max-width: 20rem; }
  .ctas .btn { width: 100%; }
  .faq-item summary { padding: 16px 16px; font-size: 1rem; }
  .faq-item p { padding: 0 16px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
  }
}
