/* GridLife's public website (gridlife.page): the look for all three pages,
   index.html, privacy.html and support.html.

   Plain CSS, no build step: what's in this file is exactly what the browser gets.
   The colours at the top are copied from the app (app-v1/src/styles.css), so the
   website and the app are the same product. If a colour changes in the app,
   change it here too. Colours mark a card's type; they never carry the words. */

/* ---------- colours (the app's Neutral colourway) ---------- */
:root {
  color-scheme: light;
  --bg: #F6F6F4; --surface: #FFFFFF; --sunk: #EFEFEC; --text: #1F2328; --muted: #5C6066;
  --line: #E3E3E0; --primary: #1F2328; --on-primary: #FFFFFF; --mark: #1F4D3A;
  /* The card types' colours, as in the app. */
  --events: #2D83F2; --demos: #E0A032; --places: #4A9388; --dates: #5568AF; --todo: #E07B39;
  --pins: #9B4F96;
  /* The soft shadow under the board picture. */
  --shadow: 0 40px 80px -40px rgba(31, 35, 40, 0.28), 0 2px 6px rgba(31, 35, 40, 0.04);
}
/* Dark mode, the same as the app's. It follows the computer's or phone's own
   setting. (The app also lets you pick Light or Dark, which puts data-theme on
   the page; the website has no switch, but the same two cases are kept here so
   these lines match the app's. Change both copies together.) */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #16181B; --surface: #1F2226; --sunk: #1A1D20; --text: #ECECEA; --muted: #A6A9AD;
  --line: #30343A; --primary: #ECECEA; --on-primary: #16181B; --mark: #ECECEA;
  --pins: #C98BC4; --dates: #8F9BDB;
  --shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.2);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #16181B; --surface: #1F2226; --sunk: #1A1D20; --text: #ECECEA; --muted: #A6A9AD;
    --line: #30343A; --primary: #ECECEA; --on-primary: #16181B; --mark: #ECECEA;
    --pins: #C98BC4; --dates: #8F9BDB;
    --shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.2);
  }
}

/* ---------- the basics ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Jumping to a section (#features) leaves room for the top bar, which stays at the top. */
section[id] { scroll-margin-top: 80px; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; font-size: 16px; line-height: 1.55;
  background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased;
  /* The footer sits at the bottom of the window even on a short page (support). */
  min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 400; letter-spacing: -0.015em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }
img { display: block; max-width: 100%; height: auto; }
/* Anything marked hidden stays hidden, even a button (get-gridlife.js uses this). */
[hidden] { display: none !important; }

/* The page's width: up to 72rem, with at least 16px either side on a phone. */
.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }

/* The small line over each heading ("WHAT IT IS"), drawn like the app's menu headings. */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 14px; }

/* ---------- buttons ---------- */
/* Round-ended, like the app's. .button-main is the dark one; .button-quiet the outlined one. */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.button:hover { border-color: var(--muted); }
.button-main { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.button-main:hover { border-color: var(--primary); opacity: 0.88; }
.button-small { min-height: 38px; padding: 0 16px; font-size: 14px; }

/* "Coming soon to the Second Life Marketplace": shown in place of the closing
   Get GridLife button until there's a listing (get-gridlife.js). Calm, not a
   greyed-out button: the same pill shape, a dashed edge, nothing to press. */
.coming-soon { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 22px;
  border-radius: 999px; border: 1px dashed var(--muted); color: var(--text); font-size: 15px; font-weight: 500; }
.coming-soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--places); }

/* ---------- top bar ---------- */
/* The mark and name on the left; the three links and Get GridLife on the right.
   It stays at the top as the page scrolls. */
.topbar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.topbar .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-name { font-family: Fraunces, Georgia, serif; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.logo-mark { fill: var(--mark); }
.topnav { display: flex; gap: 28px; }
.topnav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); }
.topnav a:hover { color: var(--text); }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 9vw, 112px) 0 0; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.04; letter-spacing: -0.025em;
  color: var(--mark); max-width: 17ch; }
.hero-line { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 34rem; margin-top: 24px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* The board picture, in a soft frame like a browser window: a top strip with
   three small dots, then the picture. */
.board-shot { margin: clamp(48px, 7vw, 80px) 0 0; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.board-shot-bar { display: flex; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.board-shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.board-shot img { width: 100%; }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.1; max-width: 20ch; }
.section-line { font-size: 18px; color: var(--muted); max-width: 36rem; margin-top: 18px; }
/* A point: the bold part, then the rest, quieter. */
.point strong { font-weight: 600; color: var(--text); }
.point span { color: var(--muted); }

/* What is GridLife? The five card types, each with a strip along its top in the
   type's colour, the way cards look in the app. */
.types { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 48px 0 0; padding: 0; list-style: none; }
.type { background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--type); border-radius: 14px; padding: 18px 18px 20px; }
.type h3 { font-size: 22px; margin-bottom: 6px; }
.type p { color: var(--muted); font-size: 15px; }
.type-events { --type: var(--events); }
.type-places { --type: var(--places); }
.type-demos { --type: var(--demos); }
.type-anything { --type: var(--pins); }
.type-dates { --type: var(--dates); }

/* What it is / What it isn't: the heading on the left, the points on the right,
   one under the other with a hairline between. */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.points { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.points li { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
/* What it isn't has seven, so on a wide screen they sit in two columns. */
.points-two { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; border-top: 0; }
.points-two li:nth-child(-n+2) { border-top: 1px solid var(--line); }

/* Trust: on the white band, five promises, each with its name in the serif. */
.band { background: var(--surface); }
.section.band + .section { border-top: 0; }
.promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 40px 48px; margin: 56px 0 0; padding: 0; list-style: none; }
.promises h3 { font-size: 21px; margin-bottom: 6px; }
.promises p { color: var(--muted); }

/* Where it comes from: a table of sources, one row each: the name, what it
   gives, and where from. On a phone each row stacks. */
.sources { margin: 48px 0 0; border-top: 1px solid var(--text); }
.source { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr); gap: 24px;
  align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.source dt { font-family: Fraunces, Georgia, serif; font-size: 22px; }
.source dd { margin: 0; }
.source .from { color: var(--muted); text-align: right; }

/* The closing call: centred, the one place the page centres. */
.get { text-align: center; }
.get h2 { margin: 0 auto; max-width: none; font-size: clamp(2.4rem, 5vw, 3.8rem); color: var(--mark); }
.get .button, .get .coming-soon { margin-top: 36px; }
.get-small { color: var(--muted); margin-top: 18px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; color: var(--muted); }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer .brand { margin-right: 0; color: var(--text); }
.footer .brand-name { font-size: 19px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.footer-tagline { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; margin-left: auto; }
.footer-copy { width: 100%; }

/* ---------- text pages (privacy, support) ---------- */
/* One narrow column of reading text. */
.text-page { max-width: 40rem; padding-top: clamp(40px, 7vw, 80px); padding-bottom: clamp(64px, 9vw, 112px); }
.text-page h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1.08; color: var(--mark); margin: 8px 0 16px; }
.text-page h2 { font-size: 1.45rem; margin: 2.4rem 0 0.6rem; }
.text-page p, .text-page ul { margin: 0 0 12px; }
.text-page ul { padding-left: 20px; }
.text-page li { margin: 6px 0; }
.text-page .lede { font-size: 18px; color: var(--muted); }
.text-page .note { margin-top: 2.4rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.text-page code { font-family: inherit; font-weight: 600; overflow-wrap: anywhere; }
.back { font-size: 14px; color: var(--muted); }

/* Support: the three ways to reach Envy, one under the other. */
.text-page .ways { margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ways li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.ways a { font-family: Fraunces, Georgia, serif; font-size: 22px; text-decoration-thickness: 1px; }
.ways p { color: var(--muted); margin: 4px 0 0; }

/* ---------- smaller screens ---------- */
/* A laptop or tablet: the five card types in three columns, then two. */
@media (max-width: 1000px) {
  .types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .points-two { grid-template-columns: minmax(0, 1fr); }
  .points-two li:nth-child(2) { border-top: 0; }
  .types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .source { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .source .from { text-align: left; }
  .footer-tagline { margin-left: 0; }
}
/* A phone: the top bar's three links move to a second row under the name and
   button, so nothing is squeezed. */
@media (max-width: 600px) {
  .topbar .wrap { flex-wrap: wrap; gap: 0 16px; min-height: 0; padding-top: 10px; }
  .topnav { order: 3; width: 100%; gap: 24px; padding: 6px 0 12px; }
  .topnav a { font-size: 14px; }
  .types { grid-template-columns: minmax(0, 1fr); }
  .hero-buttons .button { flex: 1 1 auto; }
  .board-shot { border-radius: 10px; }
  .board-shot-bar { padding: 9px 10px; }
  .board-shot-bar span { width: 8px; height: 8px; }
  /* "Coming soon to the Second Life Marketplace" kept on one line. */
  .coming-soon { font-size: 14px; padding: 0 16px; gap: 8px; }
}
/* Anyone who has asked their device for less motion: no smooth scrolling. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
