/* Two Steps Beyond — shared styles
   Brand colors come from the logo; do not change them. */

:root {
  --navy: #1b1363;
  --orange: #f05a23;
  --blue: #0070bb;
  --orange-text: #c2410c; /* deeper orange for small text, for readable contrast */

  --ink: #1f1d33;
  --muted: #595672;
  --bg: #fffdf9;
  --sand: #f7f2ea;
  --line: #e9e2d6;
  --orange-soft: #fdece4;
  --blue-soft: #e6f1fa;
  --navy-deep: #140e4a;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(27, 19, 99, .06), 0 8px 24px rgba(27, 19, 99, .08);
  --shadow-lg: 0 2px 4px rgba(27, 19, 99, .06), 0 24px 48px rgba(27, 19, 99, .14);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1120px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

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

a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); font-weight: 750; letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p, ul, ol { margin: 0 0 1.1em; }
p { text-wrap: pretty; }
li + li { margin-top: .35em; }
strong { color: var(--navy); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(255, 253, 249, .9);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem 2rem; flex-wrap: wrap;
  padding-block: .7rem;
}
.brand img { width: 150px; }
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .25rem;
}
.site-nav li + li { margin: 0; }
.site-nav a {
  display: block;
  padding: .45rem .85rem;
  border-radius: 999px;
  color: var(--navy);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
}
.site-nav a:hover { background: var(--sand); }
.site-nav a[aria-current="page"] { background: var(--navy); color: #fff; }

@media (max-width: 720px) {
  .site-header { position: static; }
  .site-header .wrap { justify-content: center; }
  .site-nav ul { justify-content: center; }
  .site-nav a { padding: .4rem .7rem; font-size: .9rem; }
}

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

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .8rem 1.25rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); color: #fff; }
.btn-ghost { border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--orange-soft); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Official App Store and Google Play badges (local copies in /images) */
.store-row { align-items: center; }
.store-badge { display: inline-block; line-height: 0; border-radius: 8px; transition: transform .15s ease; }
.store-badge:hover { transform: translateY(-1px); }
.store-badge img { height: 48px; width: auto; }

/* ---------- Sections ---------- */

section { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.section-sand { background: var(--sand); }
.section-navy { background: var(--navy); color: #e9e7fb; }
.section-navy h2, .section-navy h3, .section-navy strong { color: #fff; }
.section-navy a:not(.btn) { color: #fff; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange-text);
  margin-bottom: .75rem;
}
.section-navy .eyebrow { color: #ff9a74; }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--muted); }
.section-navy .lead { color: #d6d3f5; }
.section-head { max-width: 680px; margin-bottom: 2.5rem; }

/* ---------- Home hero ---------- */

.hero { padding-block: clamp(3rem, 2rem + 5vw, 6.5rem); overflow: hidden; }
.hero .wrap {
  display: grid; gap: 3rem; align-items: center;
  grid-template-columns: 1.15fr .85fr;
}
.hero h1 span { color: var(--orange); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .icon-cluster { max-width: 280px; } }

.icon-cluster {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
  max-width: 420px; margin-inline: auto;
}
.icon-cluster::before {
  content: ""; position: absolute; inset: -12% -10%;
  background:
    radial-gradient(closest-side, rgba(240, 90, 35, .18), transparent 70%) 0 0 / 70% 70% no-repeat,
    radial-gradient(closest-side, rgba(0, 112, 187, .16), transparent 70%) 100% 100% / 70% 70% no-repeat;
  z-index: -1;
}
.icon-cluster img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 24%;
  box-shadow: var(--shadow-lg);
  background: #fff;
}
.icon-cluster .big { grid-column: span 2; grid-row: span 2; }
.icon-cluster img:nth-child(2) { transform: rotate(6deg); }
.icon-cluster img:nth-child(3) { transform: rotate(-5deg); }
.icon-cluster img:nth-child(4) { transform: rotate(4deg); }
.icon-cluster img:nth-child(5) { transform: rotate(-3deg); }

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

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1040px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); }
.card .more { margin-top: auto; font-weight: 650; text-decoration: none; }
.card .more::after { content: " →"; }

.app-card .app-icon { width: 76px; border-radius: 22%; margin-bottom: 1.1rem; box-shadow: var(--shadow); }
.app-card .platforms { font-size: .85rem; font-weight: 600; color: var(--orange-text); margin-bottom: .6rem; }
a.card { text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: inherit; }

.badge {
  display: inline-block; align-self: flex-start;
  font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .2rem .6rem; border-radius: 999px;
  background: var(--orange-soft); color: #a8360d;
  margin-bottom: .6rem;
}

/* ---------- Split feature ---------- */

.split { display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: center; grid-template-columns: 1fr 1fr; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split, .split.reverse { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

.logo-panel {
  background: #fff; border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow-lg);
}

.logo-row { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.logo-row .card { flex: 1 1 260px; align-items: center; justify-content: center; min-height: 140px; }
.logo-row img { max-height: 80px; width: auto; }

/* ---------- Page header (inner pages) ---------- */

.page-head {
  background: var(--sand);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}
.page-head h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem); margin-bottom: .3em; }
.page-head .lead { margin: 0; max-width: 680px; }
.crumbs { font-size: .9rem; margin-bottom: .75rem; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* ---------- App page hero ---------- */

.app-hero { background: var(--sand); border-bottom: 1px solid var(--line); padding-block: clamp(2.5rem, 2rem + 4vw, 5rem); overflow: hidden; }
.app-hero .wrap { display: grid; gap: 3rem; align-items: center; grid-template-columns: 1.1fr .9fr; }
.app-hero .app-icon { width: 96px; border-radius: 22%; box-shadow: var(--shadow-lg); margin-bottom: 1.25rem; }
.app-hero h1 { margin-bottom: .2em; }
.app-hero .tagline { font-family: var(--font-display); font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem); color: var(--orange); font-weight: 650; margin-bottom: 1rem; }
.app-hero .shot { max-height: 560px; width: auto; margin-inline: auto; filter: drop-shadow(0 24px 40px rgba(27, 19, 99, .22)); }
.app-hero .shot-wide { max-height: none; width: 100%; }
.phone-shot { border-radius: 28px; border: 8px solid #111; max-height: 560px; width: auto; margin-inline: auto; box-shadow: var(--shadow-lg); }
@media (max-width: 860px) { .app-hero .wrap { grid-template-columns: 1fr; } }

/* ---------- Prose / content ---------- */

.prose { max-width: 720px; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; }
.prose ul { padding-left: 1.25rem; }
.prose li::marker { color: var(--orange); }

.checklist { list-style: none; padding: 0; display: grid; gap: .9rem; }
.checklist li { margin: 0; padding-left: 2rem; position: relative; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .35em;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--orange-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23f05a23' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}

.feature-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.35rem 1.5rem; }
.feature h3 { font-size: 1.05rem; margin-bottom: .3em; }
.feature p { margin: 0; color: var(--muted); font-size: .97rem; }

.pill-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.pill-list li { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .9rem; font-size: .95rem; font-weight: 550; color: var(--navy); }

/* Quotes */
.quotes { columns: 2 320px; column-gap: 1.5rem; }
.quote {
  break-inside: avoid;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.6rem; margin: 0 0 1.5rem;
  box-shadow: var(--shadow);
}
.quote p { margin-bottom: .75rem; }
.quote p::before { content: "“"; font-family: Georgia, serif; font-size: 2.4rem; line-height: 0; color: var(--orange); vertical-align: -.4em; margin-right: .1em; }
.quote footer { font-size: .9rem; font-weight: 650; color: var(--navy); }
.quote-short { display: flex; flex-wrap: wrap; gap: .75rem; list-style: none; padding: 0; }
.quote-short li { margin: 0; background: var(--blue-soft); border-radius: var(--radius-sm); padding: .8rem 1rem; font-size: .95rem; flex: 1 1 240px; }
.quote-short cite { display: block; font-style: normal; font-weight: 700; color: var(--navy); font-size: .85rem; margin-top: .25rem; }

/* Video embeds (privacy-enhanced YouTube player) */
.video { margin: 0; }
.video iframe {
  display: block; width: 100%; aspect-ratio: 16 / 9; height: auto;
  border: 0; border-radius: var(--radius); background: var(--navy);
  box-shadow: var(--shadow-lg);
}
.video figcaption { margin-top: .75rem; font-size: .93rem; color: var(--muted); }
.video + .video { margin-top: 2rem; }

/* Video links */
.video-link {
  display: flex; gap: 1rem; align-items: center;
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 1.25rem 1.5rem; text-decoration: none;
  transition: transform .15s ease;
}
.video-link:hover { color: #fff; transform: translateY(-2px); }
.video-link .play {
  flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--orange);
  display: grid; place-items: center;
}
.video-link .play::after { content: ""; border-left: 16px solid #fff; border-block: 10px solid transparent; margin-left: 4px; }
.video-link strong { color: #fff; display: block; font-family: var(--font-display); font-size: 1.1rem; }
.video-link span { color: #d6d3f5; font-size: .95rem; }

/* Callout */
.callout {
  background: var(--blue-soft); border-radius: var(--radius); padding: 1.5rem 1.75rem;
  border-left: 5px solid var(--blue);
}
.callout > :last-child { margin-bottom: 0; }
.callout-orange { background: var(--orange-soft); border-left-color: var(--orange); }

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

.status-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.status-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.status-card header { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.status-card header img { width: 52px; border-radius: 22%; }
.status-card h3 { margin: 0; }
.status-card dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 0 0 1rem; font-size: .95rem; }
.status-card dt { color: var(--muted); }
.status-card dd { margin: 0; font-weight: 700; color: var(--navy); }
.status-card p { font-size: .93rem; color: var(--muted); margin: 0; }

.faq-group { margin-top: 3rem; scroll-margin-top: 6rem; }
.faq-group > h2 { display: flex; align-items: center; gap: .75rem; }
.faq-group > h2 img { width: 44px; border-radius: 22%; }
.faq { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-bottom: .75rem; scroll-margin-top: 6rem; }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.1rem 3.25rem 1.1rem 1.35rem;
  font-weight: 650; color: var(--navy); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 1.35rem; top: 50%;
  width: .6rem; height: .6rem; border-right: 2.5px solid var(--orange); border-bottom: 2.5px solid var(--orange);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 1.35rem 1.25rem; }
.faq .answer > :last-child { margin-bottom: 0; }
.faq .permalink { font-size: .85rem; }

.toc { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }
.toc li { margin: 0; }
.toc a { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem .45rem .45rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--navy); font-weight: 600; font-size: .95rem; }
.toc a:hover { border-color: var(--navy); }
.toc img { width: 28px; border-radius: 22%; }

/* ---------- People ---------- */

.avatar { width: 160px; border-radius: 50%; box-shadow: var(--shadow-lg); border: 6px solid #fff; }
.person-card { align-items: flex-start; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.75rem 1.75rem; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: .45em; width: 15px; height: 15px; border-radius: 50%; background: var(--orange); border: 3px solid var(--bg); }
.timeline h3 { margin-bottom: .2em; }
.timeline .when { font-size: .85rem; font-weight: 700; color: var(--orange-text); letter-spacing: .03em; }
.timeline p { margin-bottom: .6em; }

.project { padding-block: 2rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: 220px 1fr; gap: 2rem; }
.project:first-of-type { border-top: 0; }
.project .meta { font-size: .9rem; color: var(--muted); }
.project .meta img { max-width: 180px; margin-bottom: .75rem; }
.project .meta .when { display: block; font-weight: 700; color: var(--orange-text); }
@media (max-width: 720px) { .project { grid-template-columns: 1fr; gap: .75rem; } }

/* ---------- Legal ---------- */

.legal { max-width: 760px; }
.legal h2 { font-size: 1.45rem; margin-top: 2em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.6em; }
.legal ol { padding-left: 1.4rem; }

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

.site-footer { background: var(--sand); border-top: 1px solid var(--line); padding-block: 3.5rem 2rem; font-size: .95rem; }
.site-footer .cols { display: grid; gap: 2rem; grid-template-columns: 1.4fr repeat(3, 1fr); }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .about { grid-column: 1 / -1; } }
.site-footer img { width: 150px; margin-bottom: 1rem; }
.site-footer h2 { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: .4rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--blue); text-decoration: underline; }
.site-footer .about p { color: var(--muted); max-width: 34ch; }
.site-footer .fine { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* ---------- Utilities ---------- */

.center { text-align: center; }
.center .section-head, .section-head.center { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* ---------- Apps overview ---------- */

.app-listing .app-row { display: grid; grid-template-columns: auto 1fr; gap: 1.75rem; align-items: start; }
.app-listing .app-icon { width: 96px; border-radius: 22%; box-shadow: var(--shadow); }
.app-listing .platforms { font-size: .85rem; font-weight: 600; color: var(--orange-text); }
.app-listing h2 { font-size: 1.6rem; }
.app-listing h2 a { color: inherit; text-decoration: none; }
.app-listing h2 a:hover { color: var(--blue); }
.app-listing .btn-row { margin-top: 1rem; align-items: center; }
@media (max-width: 560px) { .app-listing .app-row { grid-template-columns: 1fr; gap: 1rem; } .app-listing .app-icon { width: 72px; } }

/* ---------- Coming-soon app cards (home) ---------- */

.soon-card { flex-direction: row; gap: 1.25rem; align-items: flex-start; }
.soon-card .app-icon { width: 64px; flex: none; margin: 0; }
.soon-card > div { display: flex; flex-direction: column; height: 100%; }
@media (max-width: 480px) { .soon-card { flex-direction: column; } }

/* ---------- Question stack (Log-a-Camp hero) ---------- */

.question-stack { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.question-stack li {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px 18px 18px 4px;
  padding: .8rem 1.1rem; box-shadow: var(--shadow);
  font-family: var(--font-display); font-weight: 600; color: var(--navy);
  max-width: 30rem;
}
.question-stack li:nth-child(even) { margin-left: 2.5rem; border-radius: 18px 18px 4px 18px; background: var(--orange-soft); border-color: transparent; }
