/* ==========================================================================
   365Freedom LLC — redesign draft stylesheet
   No external fonts, no frameworks, no build step. Vanilla CSS only.
   ========================================================================== */

:root {
  --blue: #2f6a4f;
  --blue-dark: #184535;
  --blue-light: #dde8e0;
  --text: #21302a;
  --text-soft: #46584f;
  --bg: #f6f1e6;
  --card: #fbf8f0;
  --border: #e4ddcc;

  --maxw: 1100px;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(24, 69, 53, 0.06);

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", "Iowan Old Style", serif;
}

/* ---- reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.2; color: var(--text); text-wrap: balance; }
p { text-wrap: pretty; }
h1 { font-size: 2.5rem; margin: 0 0 0.5em; }
h2 { font-size: 1.9rem; margin: 0 0 0.6em; }
h3 { font-size: 1.25rem; margin: 0 0 0.4em; }
p { margin: 0 0 1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--card); }
.section-blue { background: var(--blue-light); }
.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--text-soft); max-width: 720px; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 10px;
}
.muted { color: var(--text-soft); }
.small { font-size: 0.9rem; }

/* ---- buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { background: var(--blue-light); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.center .btn-row { justify-content: center; }

/* ---- header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}
.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand .brand-mark { color: var(--blue); }
.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: inline-block;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 8px;
}
.site-nav a:hover { background: var(--blue-light); color: var(--blue); }
.site-nav a[aria-current="page"] { color: var(--blue); font-weight: 700; }
.site-nav a.nav-cta {
  background: var(--blue);
  color: #fff;
  padding: 9px 20px;
  border-radius: 999px;
}
.site-nav a.nav-cta:hover { background: var(--blue-dark); }

/* Services group — every tab stays inline; "Services" floats centered above the pair */
.nav-svc { position: relative; display: flex; align-items: flex-end; }
.nav-svc-label {
  position: absolute;
  bottom: 100%;
  left: 0; right: 0;
  text-align: center;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  line-height: 1;
  padding-bottom: 3px;
  pointer-events: none;
}
.nav-svc-inner {
  display: flex;
  gap: 2px;
  background: var(--blue-light);
  border-radius: 8px;
  padding: 0 2px;
}
.nav-svc-inner a:hover { background: transparent; color: var(--blue); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- hero ---- */
.hero {
  background: linear-gradient(180deg, var(--blue-light) 0%, #fff 100%);
  padding: 84px 0 72px;
}
.hero h1 { font-size: 2.9rem; max-width: 16ch; }
.hero .lead { margin-bottom: 26px; }

/* ---- grids ---- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- cards ---- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { margin-top: 6px; }
/* Reserve two title lines so single-line titles (e.g. "No middle layer") keep body copy aligned across the row */
.grid-4 .card h3 { min-height: 3rem; }
a.card { text-decoration: none; color: inherit; transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
a.card:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-icon {
  width: 46px;
  height: 46px;
  color: var(--blue);
  margin-bottom: 8px;
}
.card-icon svg { width: 100%; height: 100%; }

/* section headers */
.section-head { max-width: 720px; margin-bottom: 40px; }
.center .section-head { margin-left: auto; margin-right: auto; }

/* ---- service tiers / pricing ---- */
.tier {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.tier-name { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; margin-bottom: 4px; }
.tier-price { font-size: 1.5rem; font-weight: 700; color: var(--blue); font-family: var(--sans); margin-bottom: 12px; }
.tier-price small { display: block; font-size: 0.8rem; font-weight: 500; color: var(--text-soft); }
.tier p { color: var(--text-soft); margin-bottom: 0; }
.price-note {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--text-soft);
  border-top: 1px dashed var(--border);
  padding-top: 12px;
}
.service-block { margin-bottom: 56px; }
.service-block:last-child { margin-bottom: 0; }
.service-block h3 { font-size: 1.5rem; }

/* add-ons list */
.addon-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.addon-list li { padding-left: 28px; position: relative; }
.addon-list li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 12px; height: 12px; border-radius: 3px;
  background: var(--blue); opacity: 0.85;
}
.addon-list strong { display: block; }

/* ---- process steps ---- */
.steps { counter-reset: step; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step-num {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-family: var(--serif);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
}
.step h3 { margin-bottom: 2px; }
.step p { margin-bottom: 0; color: var(--text-soft); }

/* ---- FAQ ---- */
.faq { max-width: 820px; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 4px 22px;
  margin-bottom: 14px;
}
.faq summary {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 1.5rem; font-family: var(--sans); }
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { padding-bottom: 18px; margin: 0; color: var(--text-soft); }

/* ---- portfolio app cards ---- */
.app-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.app-icon-ph {
  width: 84px; height: 84px;
  border-radius: 18px;
  background: var(--blue-light);
  border: 2px dashed #9cc2e6;
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 700;
  font-family: var(--sans);
  letter-spacing: 0.04em;
  padding: 6px;
  margin-bottom: 16px;
}
.app-card h3 { margin-bottom: 6px; }
.app-tag { font-size: 0.85rem; color: var(--blue); font-weight: 600; margin-bottom: 10px; }
.app-diff { color: var(--text-soft); }
.badge {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-top: auto;
}
.badge-live { background: var(--text); color: #fff; text-decoration: none; }
.badge-live:hover { opacity: 0.9; }
.app-store-slot { margin-top: 14px; }

/* ---- real app icon (replaces the dashed placeholder) ---- */
.app-icon {
  width: 84px; height: 84px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.app-card .app-shot {
  border-radius: 12px;
  border: 1px solid var(--border);
  margin: 4px 0 16px;
  background: var(--card);
}
.app-card .btn-row { margin-top: auto; }
.app-links { margin-top: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---- app detail: hero split ---- */
.app-hero { padding: 56px 0 40px; background: linear-gradient(180deg, var(--blue-light) 0%, #fff 100%); }
.app-hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.app-hero-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.app-hero-head .app-icon { width: 64px; height: 64px; margin: 0; }
.app-hero-head h1 { margin: 0; font-size: 2.4rem; }
.app-hero .app-tagline { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--blue); margin: 0 0 14px; }
.app-hero-media { display: flex; justify-content: center; }
.phone-shot {
  max-width: 300px;
  width: 100%;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(24, 69, 53, 0.14);
}
.crumb { font-size: 0.9rem; margin-bottom: 18px; }
.crumb a { text-decoration: none; }

/* ---- store badge (text placeholder until live) ---- */
.store-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--text); color: #fff;
  border-radius: 10px; padding: 10px 18px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
}
.store-badge.soon { background: var(--card); color: var(--text-soft); border: 1px dashed var(--border); }

/* ---- feature tiles on a detail page ---- */
.feature { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: relative; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--text-soft); margin-bottom: 0; }
.feature .premium-tag {
  display: inline-block; background: var(--blue-light); color: var(--blue);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; margin-left: 8px; vertical-align: middle;
}
.feature .fine { display: block; margin-top: 10px; font-size: 0.82rem; color: var(--text-soft); }

/* ---- free-tier checklist ---- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.checklist li { padding-left: 28px; position: relative; }
.checklist li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  color: var(--blue); font-weight: 700;
}

/* ---- screenshot gallery ---- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.gallery figcaption { text-align: center; font-size: 0.9rem; color: var(--text-soft); margin-top: 8px; }

/* ---- manifesto / privacy callout ---- */
.manifesto { background: var(--blue-light); border-radius: var(--radius); padding: 34px; max-width: 820px; }
.manifesto h2 { margin-top: 0; }
.manifesto p { color: var(--text); margin-bottom: 0; }

/* ---- fine-print note under features ---- */
.gps-note { font-size: 0.85rem; color: var(--text-soft); max-width: 820px; margin-top: 18px; }

@media (max-width: 860px) {
  .app-hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .app-hero-media { order: -1; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .checklist { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .gallery { grid-template-columns: 1fr 1fr; }
}

/* ---- testimonial ---- */
.testimonial {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.testimonial blockquote {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--text);
  margin: 0 0 16px;
}
.testimonial cite { color: var(--text-soft); font-style: normal; font-size: 0.95rem; }

/* ---- CTA band ---- */
.cta-band { background: var(--blue); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dbe7f4; max-width: 620px; margin-left: auto; margin-right: auto; }

/* ---- contact form ---- */
.form-wrap { max-width: 640px; }
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--text-soft); }
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--text);
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(24, 69, 53, 0.12);
}
.form-note { margin-top: 22px; color: var(--text-soft); font-size: 0.95rem; }

/* ---- placeholder markers (so the owner can spot unfinished content) ---- */
.placeholder {
  border: 2px dashed #c25d80;
  background: #f8ebf0;
  color: #9b3f60;
  border-radius: 8px;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
}
.placeholder-block {
  border: 2px dashed #c25d80;
  background: #f8ebf0;
  color: #9b3f60;
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  font-weight: 600;
}
.img-ph {
  border: 2px dashed #9cc2e6;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---- legal pages ---- */
.legal { max-width: 800px; }
.legal h2 { margin-top: 1.5em; }

/* ---- footer ---- */
.site-footer { background: #0a2a49; color: #cfe0f0; padding: 56px 0 26px; }
.site-footer a { color: #cfe0f0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-brand { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: #fff; margin-bottom: 6px; }
.footer-meta { color: #a9c3db; font-size: 0.95rem; margin: 0; }
.footer-h { font-family: var(--sans); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: #8fb0cf; margin: 0 0 12px; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
  color: #a9c3db;
}
.footer-bottom p { margin: 0; }
.cookie-note { color: #cfe0f0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  h1 { font-size: 2.1rem; }
  .hero h1 { font-size: 2.3rem; }
  h2 { font-size: 1.6rem; }
  .section { padding: 56px 0; }

  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .site-nav.open { max-height: 480px; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; }
  .site-nav a, .site-nav a.nav-cta { border-radius: 8px; padding: 12px 14px; }
  .site-nav a.nav-cta { text-align: center; margin-top: 6px; }

  /* Services group collapses to a labeled subgroup in the mobile menu */
  .site-nav .nav-svc { flex-direction: column; align-items: stretch; }
  .site-nav .nav-svc-label {
    position: static;
    text-align: left;
    padding: 10px 14px 2px;
    color: var(--text-soft);
  }
  .site-nav .nav-svc-inner { flex-direction: column; background: transparent; border-radius: 0; padding: 0; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .addon-list { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
