/* Landing, setup, and privacy pages (phone-first, light). */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #fbf6ee;
  --card: #ffffff;
  --ink: #3d2a1e;
  --muted: #8a6a52;
  --line: #ecdcc6;
  --accent: #d2691e;
  --accent-ink: #ffffff;
  --purple: #7a4fa3;
}

body {
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

main { max-width: 640px; margin: 0 auto; padding: 24px 18px 120px; }

h1, h2, .brand { font-family: 'Fredoka', sans-serif; font-weight: 600; }
h1 { font-size: 34px; line-height: 1.15; margin-bottom: 10px; }
h2 { font-size: 22px; margin-bottom: 6px; }
p { margin-bottom: 10px; }
.muted { color: var(--muted); font-size: 15px; }
a { color: var(--purple); }

.brand { font-size: 24px; color: var(--accent); margin-bottom: 18px; display: block; text-decoration: none; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font: 600 17px/1.2 inherit;
  font-family: inherit;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  cursor: pointer;
}
.btn.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.small { padding: 8px 14px; font-size: 15px; }
.btn:disabled { opacity: 0.5; }

.hero-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 14px;
  margin: 14px 0;
  display: block;
  background: #2a1640;
  box-shadow: 0 6px 24px rgba(60, 30, 80, 0.25);
}

label { display: block; font-weight: 600; margin: 12px 0 4px; }
input[type="text"], input[type="url"], textarea, select {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 80px; resize: vertical; }

.check { display: flex; align-items: center; gap: 10px; font-weight: 400; margin: 8px 0; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }

.link-box {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #fff7ec;
  border: 1px dashed var(--accent);
  border-radius: 12px;
  padding: 12px;
  font: 600 18px/1.3 ui-monospace, Menlo, monospace;
  word-break: break-all;
}
.link-box span { flex: 1; }
.link-box .hidden-link { letter-spacing: 2px; color: var(--muted); }
.eye { flex: none; width: 38px; height: 38px; border: none; background: none; cursor: pointer; color: var(--muted); padding: 6px; }
.eye svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Like a password field: an eye to show the link, a crossed-out eye to hide it again. */
.eye .eye-shut, .eye[aria-pressed="true"] .eye-open { display: none; }
.eye[aria-pressed="true"] .eye-shut { display: block; }

.skins { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.skin {
  border: 3px solid transparent;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  text-align: center;
  font-weight: 600;
  padding-bottom: 6px;
}
.skin.selected { border-color: var(--accent); }
.skin .thumb { aspect-ratio: 16 / 9; background-size: cover; background-position: center; margin-bottom: 6px; }

.meals { display: grid; grid-template-columns: 56px 1fr; gap: 8px 10px; align-items: center; }
.meals span { font-weight: 600; color: var(--muted); }

.task-row { display: flex; gap: 8px; margin: 6px 0; }
.task-row input { flex: 1; }
.task-row button { flex: none; border: none; background: none; font-size: 22px; color: var(--muted); cursor: pointer; padding: 0 6px; }

.savebar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: rgba(251, 246, 238, 0.95);
  border-top: 1px solid var(--line);
  padding: 12px 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}
.status { color: var(--muted); font-size: 15px; }

.footer-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; margin-top: 24px; }
.footer-links button { background: none; border: none; color: var(--purple); text-decoration: underline; font: inherit; cursor: pointer; }

ol.steps { padding-left: 22px; }
ol.steps li { margin-bottom: 6px; }
.note { background: #f3ecfa; border-radius: 12px; padding: 12px 14px; font-size: 15px; margin-top: 12px; }

.pair-row { display: flex; gap: 8px; margin: 8px 0; }
.pair-row input {
  flex: 1;
  font: 600 22px/1.2 ui-monospace, Menlo, monospace;
  letter-spacing: 4px;
  text-transform: uppercase;
}
details summary { cursor: pointer; margin-top: 10px; }

.tips { list-style: none; }
.tips li { margin: 10px 0; font-size: 16px; }

/* admin */
main.admin { max-width: 960px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; text-align: center; }
.tile b { display: block; font: 600 36px/1.1 'Fredoka', sans-serif; color: var(--accent); }
.tile span { color: var(--muted); font-size: 14px; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td:first-child { white-space: normal; }
.feedback-item { border-bottom: 1px solid var(--line); padding: 10px 0; }
.feedback-item .msg { white-space: pre-wrap; margin-bottom: 4px; }

/* Look-alike of Google's "hasn't verified this app" screen, pointing at Continue. */
.verify .mock {
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 12px;
  padding: 14px 16px 10px;
  margin: 10px 0;
  font-family: Roboto, Arial, sans-serif;
}
.mock-title { font-size: 17px; color: #202124; margin-bottom: 10px; }
.mock-line { height: 7px; background: #e8eaed; border-radius: 4px; margin: 6px 0; }
.mock-line.short { width: 60%; }
.mock-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.mock-continue {
  color: #1a73e8;
  font-size: 14px;
  font-weight: 600;
  padding: 4px 10px;
  border: 3px solid var(--accent);
  border-radius: 999px;
}
.mock-back { background: #1a73e8; color: #fff; font-size: 14px; padding: 8px 14px; border-radius: 6px; opacity: 0.45; }
.mock-tap { color: var(--accent); font-weight: 700; font-size: 14px; margin-top: 4px; padding-left: 6px; }
