/* ===========================================================
   NotedSuite — site styles
   Calm, low-noise, ADHD-friendly. One message at a time.
   =========================================================== */

:root {
  /* Colors (sampled to match the dusk-lake hero) */
  --bg:        #0e1326;   /* page background, deep navy */
  --bg-soft:   #141a32;   /* alternating section tint */
  --text:      #f2f4fb;   /* primary light text */
  --text-dim:  #aeb6cf;   /* secondary text, still readable */
  --accent:    #ff8a6b;   /* warm sunset coral for buttons */
  --accent-2:  #ffd2a8;   /* soft highlight */
  --card:      rgba(20, 26, 50, 0.55);  /* frosted glass */
  --card-line: rgba(255, 255, 255, 0.14);

  /* Spacing & shape */
  --radius: 18px;
  --maxw: 880px;          /* narrow column = easy reading */
  --gap: clamp(2.5rem, 6vw, 5rem);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;       /* card sits near the bottom */
  justify-content: center;
  padding: 0 1.25rem 8vh;
  position: relative;
  /* Layers, top to bottom:
       1) dark overlay — raise these alphas to make the PHOTO more transparent/subtle
       2) assets/hero.jpg — your photo (drop the file in /assets named hero.jpg)
       3) gradient fallback — shows if the photo is missing
     To make the image even more transparent, increase 0.55 / 0.80 toward 1. */
  background-image:
    linear-gradient(180deg, rgba(10,14,30,0.55) 0%, rgba(10,14,30,0.80) 100%),
    url("assets/hero.jpg"),
    linear-gradient(160deg, #1b2350 0%, #3a2a55 35%, #8a4a63 60%, #c9665a 80%, #2a1d38 100%);
  background-size: cover;
  background-position: center;
}

.hero-card {
  width: 100%;
  max-width: var(--maxw);
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.hero-card h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.5px;
}

.hero-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  max-width: 26ch;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #1a0f0a;
}
.btn-primary:hover { background: var(--accent-2); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--card-line);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }

/* ---------- APP SECTIONS ---------- */
.apps {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--gap) 1.25rem;
}

.apps-intro {
  text-align: center;
  margin-bottom: var(--gap);
}
.apps-intro h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.apps-intro p {
  color: var(--text-dim);
  margin: 0 auto;
  max-width: 50ch;
}

/* --- Icon grid: clickable app icons that link to each app's subdomain --- */
.app-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.hero-text { flex: 1 1 220px; }

.app-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease;
}
.app-tile:hover { transform: translateY(-4px); }

.app-tile img {
  width: 84px;
  height: 84px;
  border-radius: 20px;            /* macOS-style rounded square */
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}

.app-tile span {
  font-size: 0.95rem;
  font-weight: 600;
}

/* --- Reusable app block (legacy row layout, kept for reference). --- */
.app {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  background: var(--bg-soft);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
}

.app-icon {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  background: linear-gradient(160deg, #2b3360, #4a3a66);
  color: var(--text);
}
.app-icon img { width: 100%; height: 100%; border-radius: 16px; object-fit: cover; }

.app-body { flex: 1 1 auto; min-width: 0; }
.app-body h3 { margin: 0 0 0.25rem; font-size: 1.25rem; font-weight: 600; }
.app-body p  { margin: 0; color: var(--text-dim); }

.app .btn { flex: 0 0 auto; }

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--card-line);
  padding: 2.5rem 1.25rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.95rem;
}
footer a { color: var(--text-dim); text-decoration: none; margin: 0 0.6rem; }
footer a:hover { color: var(--text); text-decoration: underline; }
footer .copyright { margin-top: 1rem; opacity: 0.7; }

/* ---------- SIMPLE CONTENT PAGES (privacy / support) ---------- */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 1.25rem;
}
.page a.back { color: var(--accent-2); text-decoration: none; font-size: 0.95rem; }
.page h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); margin: 1rem 0 0.25rem; }
.page .updated { color: var(--text-dim); margin: 0 0 2rem; font-size: 0.9rem; }
.page h2 { font-size: 1.25rem; margin: 2rem 0 0.5rem; }
.page p, .page li { color: var(--text-dim); }
.page a { color: var(--accent-2); }

/* ---------- MOBILE ---------- */
@media (max-width: 640px) {
  .hero { align-items: flex-end; padding-bottom: 5vh; }
  .hero-card { flex-direction: column; align-items: flex-start; text-align: left; }
  .hero-card p { max-width: none; }
  /* Keep app icons in one row on mobile so 3+ apps fit */
  .app-grid { width: 100%; justify-content: space-around; flex-wrap: nowrap; gap: 0.75rem; }
  .app-tile img { width: 64px; height: 64px; border-radius: 15px; }
  .app-tile span { font-size: 0.78rem; }
  .app { flex-direction: column; text-align: center; }
  .app-body { min-width: 0; }
}
