/* HandyCode design preview — standalone, no framework.
   Structure ported from openplan3d.com, re-skinned with HandyCode brand. */

:root {
  /* HandyCode brand */
  --teal: #0a7ea4;
  --teal-hover: #085f7a;
  --teal-tint: #e9f4f8;
  --teal-light: #6db8d4;
  --charcoal: #11181c;

  /* Dark hero surface (charcoal with a teal cast) */
  --ink: #0f1e24;
  --ink-accent: #14262e;
  --ink-hover: #0a1519;
  --on-ink-body: #a9c2cd;
  --on-ink-eyebrow: #7fb6cf;

  /* Light body surfaces */
  --text-strong: #12232b;
  --text-body: #56616a;
  --text-muted: #8a929b;
  --surface: #ffffff;
  --surface-alt: #f6f9fb;
  --border: #e4e9ee;
  --border-soft: #eceff3;
  --grid-dark: rgba(255, 255, 255, 0.045);

  --content-max: 1200px;
  --edge: max(24px, calc((100% - var(--content-max)) / 2));

  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 22px;
  --radius-3xl: 28px;

  --shadow-lg: 0 10px 15px -3px rgba(17, 24, 28, 0.08), 0 4px 6px -4px rgba(17, 24, 28, 0.08);
  --shadow-xl: 0 20px 25px -5px rgba(17, 24, 28, 0.1), 0 8px 10px -6px rgba(17, 24, 28, 0.08);
  --shadow-2xl: 0 25px 50px -12px rgba(17, 24, 28, 0.25);
}

* { box-sizing: border-box; border: 0; margin: 0; padding: 0; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  line-height: 1.5;
  color: var(--text-body);
  background: var(--surface);
  -webkit-tap-highlight-color: transparent;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; cursor: pointer; }
ul, ol { list-style: none; }

/* ---------- Shared ---------- */

.edge { padding-inline: var(--edge); }

.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.eyebrow--on-ink { color: var(--on-ink-eyebrow); }

.h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-strong);
}
.h2--on-ink { color: #fff; }

.lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-body);
  max-width: 560px;
}

.section { padding-block: 80px; }
@media (min-width: 768px) { .section { padding-block: 104px; } }

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding-inline: 24px;
  border-radius: var(--radius-lg);
  font-size: 15.5px;
  font-weight: 600;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-hover); }
.btn-appstore {
  background: var(--charcoal);
  color: #fff;
}
.btn-appstore:hover { background: #000; }
.btn-appstore .fab { font-size: 19px; }
.btn-appstore .aa-small { font-size: 10.5px; font-weight: 500; display: block; line-height: 1.1; opacity: 0.85; text-align: left; }
.btn-appstore .aa-big { font-size: 16.5px; font-weight: 650; display: block; line-height: 1.15; text-align: left; }
.btn-outline {
  border: 1px solid var(--border);
  color: var(--text-strong);
  background: var(--surface);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-outline-ink {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}
.btn-outline-ink:hover { border-color: rgba(255, 255, 255, 0.6); }
.btn-sm { height: 40px; padding-inline: 18px; font-size: 14.5px; border-radius: 10px; }

/* Trust check row */
.check-row { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--text-muted); }
.check-row li { display: flex; align-items: center; gap: 8px; }
.check-row .fa-check { color: #16a34a; font-size: 12px; }
.check-row--on-ink { color: var(--on-ink-body); }
.check-row--on-ink .fa-check { color: #4ade80; }

/* ---------- Navbar ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px var(--edge);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border-soft);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  object-fit: cover;
}
.brand-name { font-size: 17px; font-weight: 700; color: var(--text-strong); letter-spacing: -0.2px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; color: #3a424a; }
.nav-links a:hover { color: var(--teal); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-hamburger { display: none; color: var(--text-strong); font-size: 20px; padding: 4px; }
.nav-mobile { display: none; flex-direction: column; gap: 2px; padding: 4px var(--edge) 18px; background: var(--surface); border-bottom: 0.5px solid var(--border-soft); }
.nav-mobile a { padding: 10px 0; font-size: 16px; color: #3a424a; }
.nav-mobile .btn { width: fit-content; margin-top: 8px; }
.nav-mobile.is-open { display: flex; }
@media (max-width: 880px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-hamburger { display: block; }
}

/* Preview banner */
.preview-bar {
  background: #fdf3d7;
  color: #7a5c14;
  font-size: 13px;
  text-align: center;
  padding: 7px var(--edge);
}
.preview-bar a { color: #5c440c; text-decoration: underline; }

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

.hero {
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    radial-gradient(900px 420px at 78% -10%, rgba(10, 126, 164, 0.35), transparent 65%),
    linear-gradient(160deg, var(--ink-accent), var(--ink) 55%, var(--ink-hover));
  background-size: 44px 44px, 44px 44px, auto, auto;
  color: #fff;
  padding-block: 88px 96px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
}
.hero-grid {
  display: grid;
  gap: 56px;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 64px; } }

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--on-ink-eyebrow);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.05);
}
.hero-pill .fa-circle-check { color: #4ade80; }

.hero h1 {
  font-size: clamp(34px, 5.2vw, 54px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--teal-light); }

.hero .lead { color: var(--on-ink-body); max-width: 520px; margin-bottom: 30px; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }

.hero-proof {
  margin-top: 30px;
  font-size: 13.5px;
  color: var(--on-ink-body);
  max-width: 520px;
  line-height: 1.55;
}
.hero-proof a { color: var(--teal-light); text-decoration: underline; }

/* Phone mock (openplan3d wraps the app in browser chrome; ours is a phone) */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: min(300px, 82vw);
  border-radius: 44px;
  padding: 12px;
  background: #1b2a31;
  box-shadow: var(--shadow-2xl), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone-screen {
  border-radius: 34px;
  overflow: hidden;
  background: #0b1216;
  aspect-ratio: 9 / 19.2;
  position: relative;
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-notch {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 26px;
  border-radius: 999px;
  background: #1b2a31;
}
.phone-caption {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--on-ink-body);
}
.phone-caption strong { color: #fff; font-weight: 600; }

/* ---------- Feature cards ---------- */

.features { background: var(--surface); }
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px)  { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 28px 26px 30px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { border-color: var(--teal-light); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-tint);
  color: var(--teal);
  font-size: 19px;
  margin-bottom: 18px;
}
.card h3 { font-size: 18.5px; font-weight: 650; color: var(--text-strong); margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { font-size: 14.5px; line-height: 1.6; color: var(--text-body); }
.card .note { display: block; margin-top: 10px; font-size: 12.5px; color: var(--text-muted); }

/* ---------- Showcase (split rows) ---------- */

.showcase { background: var(--surface-alt); }
.showcase-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  padding-block: 44px;
}
@media (min-width: 900px) {
  .showcase-row { grid-template-columns: 1fr 1fr; gap: 72px; }
  .showcase-row + .showcase-row { border-top: 1px solid var(--border); }
}
.showcase-row ul.plain { margin-top: 18px; display: grid; gap: 10px; }
.showcase-row ul.plain li { display: flex; gap: 10px; font-size: 15px; color: var(--text-body); }
.showcase-row ul.plain .fa-check { color: var(--teal); margin-top: 4px; font-size: 13px; }
.shot {
  border-radius: var(--radius-3xl);
  background: linear-gradient(160deg, var(--ink-accent), var(--ink));
  padding: 26px;
  box-shadow: var(--shadow-xl);
}
.shot img { border-radius: 20px; margin-inline: auto; max-height: 520px; object-fit: contain; }
@media (max-width: 899px) { .shot.flip { order: -1; } }

/* ---------- Comparison table ---------- */

.compare { background: var(--surface); }
.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-2xl); }
table.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; background: var(--surface); }
.compare-table caption {
  caption-side: top;
  text-align: left;
  padding: 22px 26px 0;
  font-weight: 650;
  color: var(--text-strong);
  font-size: 15px;
}
.compare-table th, .compare-table td { padding: 15px 20px; text-align: left; vertical-align: top; border-top: 1px solid var(--border-soft); }
.compare-table thead th {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-top: 0;
  padding-top: 20px;
}
.compare-table td:first-child, .compare-table th:first-child { padding-left: 26px; }
.compare-table td.v { font-weight: 650; color: var(--text-strong); white-space: nowrap; }
.compare-table tr.hl { background: var(--teal-tint); }
.compare-table tr.hl td { border-top-color: #cfe6ef; }
.compare-table tr.hl td.v { color: var(--teal-hover); }
.compare-table td { color: var(--text-body); line-height: 1.5; }
.compare-table td a { color: var(--teal); text-decoration: underline; }
.compare-table td .yes { color: #16a34a; }
.compare-note { margin-top: 14px; font-size: 12.5px; color: var(--text-muted); line-height: 1.55; }

/* ---------- Reassurance band ---------- */

.reassure {
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(10, 126, 164, 0.28), transparent 70%),
    var(--ink);
  color: #fff;
  text-align: center;
  padding-block: 92px;
}
.reassure .lock { font-size: 26px; color: var(--teal-light); margin-bottom: 16px; }
.reassure p.lead { color: var(--on-ink-body); margin: 16px auto 26px; max-width: 640px; }
.reassure .caveat { font-size: 13px; color: rgba(169, 194, 205, 0.75); max-width: 620px; margin: 0 auto 28px; }

/* ---------- Use cases ---------- */

.usecases { background: var(--surface-alt); }
.usecase-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px)  { .usecase-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .usecase-grid { grid-template-columns: repeat(3, 1fr); } }
.usecase {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px 22px 24px;
  transition: border-color 0.15s ease;
}
.usecase:hover { border-color: var(--teal-light); }
.usecase .tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 10px;
}
.usecase h3 { font-size: 16.5px; font-weight: 650; color: var(--text-strong); margin-bottom: 6px; }
.usecase p { font-size: 14px; color: var(--text-body); line-height: 1.55; }

/* ---------- FAQ ---------- */

.faq { background: var(--surface); }
.faq-list { max-width: 760px; margin-inline: auto; display: grid; gap: 12px; }
.faq details {
  background: var(--surface-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 0;
}
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 650;
  color: var(--text-strong);
  font-size: 15.5px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .fa-chevron-down { color: var(--text-muted); font-size: 13px; transition: transform 0.2s ease; flex-shrink: 0; }
.faq details[open] summary .fa-chevron-down { transform: rotate(180deg); }
.faq .faq-body { padding: 0 22px 20px; font-size: 14.5px; line-height: 1.65; color: var(--text-body); }
.faq .faq-body a { color: var(--teal); text-decoration: underline; }

/* ---------- Final CTA ---------- */

.final-cta {
  background: linear-gradient(160deg, var(--ink-accent), var(--ink));
  color: #fff;
  text-align: center;
  padding-block: 96px;
}
.final-cta .h2 { color: #fff; margin-bottom: 14px; }
.final-cta p { color: var(--on-ink-body); margin-bottom: 30px; }
.final-cta .btn { margin-bottom: 28px; }
.final-cta .check-row { justify-content: center; }

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

.footer { background: var(--charcoal); color: #b7bdc2; border-top: 0.5px solid #2a3238; }
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 40px;
  padding: 56px var(--edge) 40px;
}
.footer-brand { max-width: 320px; display: flex; flex-direction: column; gap: 12px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { font-size: 13.5px; line-height: 1.6; color: #8f979e; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 56px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col .h { font-size: 12px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.footer-col a:hover { color: var(--teal-light); }
.footer-legal { padding: 0 var(--edge) 32px; font-size: 12.5px; color: #7d858c; }
.footer-legal a { color: #7d858c; text-decoration: underline; }
