/* wayfound — shared styles
   Plain CSS, no build step, no external requests.
   Light/dark via prefers-color-scheme. */

/* ---- Raw palette ---- */
:root {
  --sky-1: #B8D4DB;
  --sky-2: #F2E8D6;
  --night-1: #1B2740;
  --night-2: #3A3A55;
  --fox: #D97D4A;
  --fox-2: #E08550;
  --cream: #FFF5D9;
  --sage: #5C8C85;
  --ink: #3D454F;
}

/* ---- Semantic tokens: light (default) ---- */
:root {
  --bg: linear-gradient(160deg, var(--sky-1) 0%, var(--sky-2) 100%);
  --bg-fixed: var(--sky-2);
  --text: var(--ink);
  --text-soft: rgba(61, 69, 79, 0.66);
  --text-faint: rgba(61, 69, 79, 0.45);
  --surface: rgba(255, 255, 255, 0.55);
  --surface-strong: rgba(255, 253, 245, 0.82);
  --hairline: rgba(61, 69, 79, 0.1);
  --accent: var(--fox);
  --accent-2: var(--fox-2);
  --accent-ink: #fff;
  --gem: var(--sage);
  --shadow-soft: 0 10px 30px -12px rgba(61, 69, 79, 0.28);
  --shadow-card: 0 14px 40px -18px rgba(61, 69, 79, 0.32);
  --shadow-btn: 0 8px 18px -8px rgba(217, 125, 74, 0.6);
  --radius: 20px;
  --radius-lg: 28px;
}

/* ---- Semantic tokens: dark ---- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: linear-gradient(165deg, var(--night-1) 0%, var(--night-2) 100%);
    --bg-fixed: var(--night-1);
    --text: var(--cream);
    --text-soft: rgba(255, 245, 217, 0.66);
    --text-faint: rgba(255, 245, 217, 0.4);
    --surface: rgba(255, 255, 255, 0.05);
    --surface-strong: rgba(255, 255, 255, 0.07);
    --hairline: rgba(255, 245, 217, 0.12);
    --accent: var(--fox-2);
    --accent-2: var(--fox);
    --accent-ink: #1B2740;
    --gem: #7FB0A8;
    --shadow-soft: 0 12px 34px -14px rgba(0, 0, 0, 0.55);
    --shadow-card: 0 18px 44px -20px rgba(0, 0, 0, 0.6);
    --shadow-btn: 0 8px 20px -8px rgba(224, 133, 80, 0.5);
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg) fixed;
  background-color: var(--bg-fixed);
  color: var(--text);
  font-family: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN",
    "Quicksand", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-2);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* ---- Layout ---- */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap--narrow {
  max-width: 660px;
}

main {
  flex: 1 0 auto;
}

/* ---- Top wordmark (sub-pages) ---- */
.topbar {
  padding: 32px 0 8px;
}

.topmark {
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.topmark:hover {
  color: var(--accent);
  text-decoration: none;
}

.topmark .dot {
  color: var(--gem);
}

/* ---- Hero ---- */
.hero {
  text-align: center;
  padding: 72px 0 40px;
}

.appicon {
  width: 116px;
  height: 116px;
  margin: 0 auto 30px;
  border-radius: 26px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, var(--sky-1) 0%, var(--sky-2) 100%);
  box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

/* simple sculpted shapes standing in for the real art */
.appicon::before {
  content: "";
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--cream);
  top: 20px;
  right: 22px;
  box-shadow: 0 3px 10px -4px rgba(61, 69, 79, 0.25);
}

.appicon::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  bottom: 16px;
  left: 24px;
  background: var(--fox);
  border-radius: 10px;
  transform: rotate(45deg);
  box-shadow: 0 4px 12px -4px rgba(217, 125, 74, 0.6);
}

.appicon__note {
  position: absolute;
  inset: auto 0 4px;
  text-align: center;
  font-family: ui-monospace, "SF Mono", "Menlo", monospace;
  font-size: 9px;
  letter-spacing: 0.04em;
  color: rgba(61, 69, 79, 0.55);
}

.wordmark {
  font-size: clamp(48px, 10vw, 76px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
}

.wordmark .dot {
  color: var(--gem);
}

.tagline {
  font-size: clamp(17px, 2.4vw, 20px);
  font-weight: 500;
  color: var(--text-soft);
  margin: 20px auto 0;
  max-width: 40ch;
}

.lede {
  font-size: 19px;
  color: var(--text-soft);
  margin: 18px auto 0;
  max-width: 42ch;
}

/* ---- Buttons / badges ---- */
.badge-row {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.storebadge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 16px;
  background: var(--surface-strong);
  border: 1.5px dashed var(--hairline);
  box-shadow: var(--shadow-soft);
  color: var(--text-soft);
  min-height: 44px;
}

.storebadge__mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent);
  flex: none;
}

.storebadge__label {
  text-align: left;
  line-height: 1.25;
}

.storebadge__label small {
  display: block;
  font-family: ui-monospace, "SF Mono", "Menlo", monospace;
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--text-faint);
}

.storebadge__label b {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

/* ---- Feature cards ---- */
.features {
  padding: 40px 0 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-soft);
  font-size: 16.5px;
}

/* ---- Quiet section ---- */
.quiet {
  padding: 64px 0 40px;
  text-align: center;
}

.quiet h2 {
  font-size: 26px;
  color: var(--gem);
  margin-bottom: 18px;
}

.quiet p {
  color: var(--text-soft);
  max-width: 56ch;
  margin: 0 auto;
  font-size: 17.5px;
}

/* ---- Article (privacy / support) ---- */
.article {
  padding: 40px 0 24px;
}

.article h1 {
  font-size: clamp(34px, 6vw, 46px);
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}

.eyebrow {
  font-family: ui-monospace, "SF Mono", "Menlo", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.article__lead {
  font-size: 20px;
  color: var(--text);
  margin: 22px 0 0;
}

.article p + p {
  margin-top: 20px;
}

.prose p {
  color: var(--text-soft);
  font-size: 18px;
}

.effective {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  font-size: 15px;
  color: var(--text-faint);
}

/* ---- FAQ ---- */
.faq {
  margin: 34px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qa {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-soft);
}

.qa h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.qa p {
  color: var(--text-soft);
  font-size: 17px;
}

.contact {
  margin-top: 34px;
  padding: 24px 26px;
  border-radius: var(--radius);
  background: var(--surface-strong);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-soft);
}

.contact p {
  color: var(--text-soft);
  font-size: 17px;
}

.contact a {
  font-weight: 700;
}

/* ---- Footer ---- */
.foot {
  flex: none;
  text-align: center;
  padding: 56px 0 40px;
  color: var(--text-faint);
  font-size: 15px;
}

.foot nav {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.foot .sep {
  color: var(--text-faint);
  opacity: 0.6;
}

.foot a {
  color: var(--text-soft);
}

.foot a:hover {
  color: var(--accent);
}

/* ---- Responsive ---- */
@media (max-width: 760px) {
  .features {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 52px 0 32px;
  }

  .quiet {
    padding: 48px 0 32px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  a,
  .storebadge {
    transition: color 0.2s ease, transform 0.2s ease;
  }
  .storebadge:hover {
    transform: translateY(-1px);
  }
}


/* ---- Official App Store badge (black in light mode, white in dark) ---- */
.storebadge-official { display: inline-block; line-height: 0; }
.asbadge { height: 54px; width: auto; }
.asbadge--white { display: none; }
@media (prefers-color-scheme: dark) {
  .asbadge--black { display: none; }
  .asbadge--white { display: inline; }
}
