/*
 * deweybrowser.com: the whole site's look, from the parent dashboard's own
 * (slate background, white rounded cards, indigo buttons) and the logo's sage.
 * Phone first; wider screens get more room. No inline styles anywhere: the
 * content security policy refuses them (a <meta> tag in each page: lib/frame.mjs).
 */

:root {
  --bg: #f1f5f9;
  --card: #ffffff;
  --ink: #0f172a;
  --text: #334155;
  --muted: #475569;
  --line: #e2e8f0;
  --indigo: #4f46e5;
  --indigo-ink: #3730a3;
  --indigo-soft: #eef2ff;
  --link: #4338ca;
  --link-hover: #312e81;
  --sage: #3f5f46;
  --sage-soft: #e7ede8;
  --amber: #92400e;
  --pad: 22px;
  --section: 56px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 768px) {
  :root {
    --pad: 48px;
    --section: 96px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--link);
}

a:hover {
  color: var(--link-hover);
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 2px;
  border-radius: 6px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 28px;
  line-height: 1.15;
}

h3 {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
}

@media (min-width: 768px) {
  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 36px;
  }
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 8px 14px;
  background: var(--card);
  border-radius: 8px;
  z-index: 10;
}

.skip:focus {
  left: 8px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.wrap-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--indigo);
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: var(--indigo-ink);
  color: #ffffff;
}

.button-outline {
  background: var(--card);
  color: var(--ink);
  border: 1px solid #cbd5e1;
  font-weight: 500;
}

.button-outline:hover {
  background: #f8fafc;
  color: var(--ink);
}

.button-soon {
  background: var(--card);
  color: var(--ink);
  border: 1px dashed #94a3b8;
  font-weight: 500;
}

.button-soon small {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- The top bar and the footer ---- */

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
}

.brand img {
  border-radius: 9px;
}

.brand:hover {
  color: var(--ink);
}

.brand-small {
  font-size: 17px;
}

.brand-small img {
  border-radius: 7px;
}

.main-nav {
  display: none;
  gap: 24px;
  font-size: 15px;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (min-width: 900px) {
  .main-nav {
    display: flex;
  }
}

.header-signin {
  margin-left: auto;
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: var(--section);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  padding-top: 48px;
  padding-bottom: 56px;
}

.footer-brand {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}

.footer-nav {
  flex: 1 1 160px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
}

.footer-nav h2 {
  font-size: 15px;
  font-weight: 600;
}

/* The closed set's frame: no top bar, a short footer. */

.plain-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.plain-footer {
  border-top: 1px solid var(--line);
  margin-top: 64px;
}

.plain-footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 28px;
  padding-bottom: 40px;
  font-size: 15px;
}

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

.section {
  padding-top: var(--section);
}

.band {
  background: var(--card);
  margin-top: var(--section);
  padding-top: var(--section);
  padding-bottom: var(--section);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
  margin-bottom: 32px;
}

.lead {
  font-size: 17px;
  color: var(--text);
}

@media (min-width: 768px) {
  .lead {
    font-size: 20px;
  }
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage);
}

.small {
  font-size: 14px;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.child-note {
  margin-top: 24px;
}

/* ---- The home page ---- */

.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
  padding-top: 36px;
}

@media (min-width: 768px) {
  .hero {
    padding-top: 80px;
  }
}

.hero-text {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-art {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  justify-content: center;
  gap: 14px;
}

@media (min-width: 768px) {
  .hero-art {
    gap: 28px;
  }
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  flex: 1 1 280px;
  min-width: 0;
  background: var(--card);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.band .card {
  background: var(--bg);
}

.card-wide {
  flex-basis: 340px;
  padding: 28px;
}

.card-label {
  font-size: 14px;
  font-weight: 600;
}

.card-label-child {
  color: var(--amber);
}

.card-label-parent {
  color: var(--indigo-ink);
}

.card-big {
  font-size: 22px;
  font-weight: 700;
}

.icon-tile {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--sage-soft);
  color: var(--sage);
  display: grid;
  place-items: center;
}

.num {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--indigo);
  color: #ffffff;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 32px;
}

.feature {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature p {
  font-size: 15px;
  color: var(--text);
}

.isnt {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 17px;
}

.isnt span {
  color: var(--text);
}

.cta {
  background: var(--sage-soft);
  border-radius: 32px;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

@media (min-width: 768px) {
  .cta {
    padding: 48px;
  }
}

.cta-text {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cta .button-outline,
.cta .button-soon {
  border-color: transparent;
}

/* The two phones in the hero: drawings, not screenshots. */

.mock-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.mock-figure figcaption {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.mock {
  width: 156px;
  height: 320px;
  border: 7px solid var(--ink);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 8px 8px;
  background: var(--bg);
  font-size: 10px;
}

@media (min-width: 768px) {
  .mock {
    width: 210px;
    height: 430px;
    border-width: 8px;
    border-radius: 32px;
    gap: 8px;
    padding: 22px 10px 10px;
    font-size: 11px;
  }
}

.mock-child {
  background: var(--card);
  padding: 18px 0 0;
}

.mock-title {
  margin: 0 4px;
  font-size: 15px;
  font-weight: 700;
}

.mock-box {
  background: var(--card);
  border-radius: 14px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mock-kid {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.mock-face {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #fde68a;
  flex-shrink: 0;
}

.mock-kid b {
  display: block;
  font-size: 12px;
}

.mock-kid span span {
  display: block;
  color: #166534;
}

.mock-stats {
  display: flex;
  gap: 6px;
}

.mock-stats .mock-box {
  flex: 1 1 0;
}

.mock-stats b {
  font-size: 16px;
}

.mock-line {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

.mock-line span + span {
  color: var(--muted);
}

.mock-blocked {
  color: #9a3412;
}

.mock-fill {
  flex: 1 1 0;
}

.mock-tabs {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid var(--line);
  padding-top: 6px;
  color: var(--muted);
}

.mock-tabs b {
  color: var(--indigo);
}

.mock-address {
  margin: 0 8px;
  height: 28px;
  border-radius: 999px;
  background: var(--bg);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  color: var(--text);
}

.mock-address img {
  border-radius: 4px;
}

.mock-page {
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mock-page b {
  font-size: 14px;
}

.mock-bar {
  height: 7px;
  border-radius: 4px;
  background: var(--line);
}

.mock-bar-short {
  width: 75%;
}

.mock-picture {
  height: 54px;
  border-radius: 10px;
  background: var(--sage-soft);
}

.mock-history {
  margin: 8px;
  background: var(--bg);
  border-radius: 14px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
}

.mock-history span {
  color: var(--muted);
}

/* ---- Text pages: help, the guide, the closed set ---- */

.page-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 40px;
  padding-bottom: 8px;
  max-width: 760px;
}

@media (min-width: 768px) {
  .page-head {
    padding-top: 64px;
  }
}

.prose {
  font-size: 17px;
}

.prose h1 {
  font-size: 34px;
  margin-top: 40px;
  margin-bottom: 16px;
}

.prose h2 {
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 12px;
}

.prose h3 {
  margin-top: 24px;
  margin-bottom: 8px;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 14px;
  color: var(--text);
}

.prose li {
  margin-bottom: 6px;
}

.prose strong {
  color: var(--ink);
}

.panel {
  background: var(--card);
  border-radius: 24px;
  padding: 20px 24px;
  margin: 24px 0;
}

.panel > :first-child {
  margin-top: 0;
}

.panel > :last-child {
  margin-bottom: 0;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.faq details {
  background: var(--card);
  border-radius: 20px;
  padding: 16px 20px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
}

.faq details[open] summary {
  margin-bottom: 10px;
}

.faq details p {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 10px;
}

.faq details p:last-child {
  margin-bottom: 0;
}

.columns {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
}

.columns > * {
  flex: 1 1 320px;
  min-width: 0;
}

/* The Family Link guide. */

.guide-steps {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guide-step {
  background: var(--card);
  border-radius: 24px;
  padding: 20px 24px;
  display: flex;
  gap: 16px;
}

.guide-step-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-step p {
  font-size: 16px;
  color: var(--text);
}

.where {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  padding: 2px 10px;
}

.where-parent {
  background: var(--indigo-soft);
  color: var(--indigo-ink);
}

.where-child {
  background: #fffbeb;
  color: var(--amber);
}

.taps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
}

.taps li {
  background: var(--bg);
  border-radius: 8px;
  padding: 2px 8px;
}

.taps li + li::before {
  content: "› ";
  color: var(--muted);
}

.guide-photo {
  margin: 4px 0 0;
  max-width: 280px;
}

.guide-photo img {
  border-radius: 16px;
  border: 1px solid var(--line);
}

/* ---- The iPhone page's pictures: drawn simply, not Apple's screens ---- */

.ios-steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.ios-step {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: center;
}

.ios-step > .mock-figure {
  flex: 1 1 240px;
}

.ios-step-text {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  gap: 14px;
}

.ios-step-text div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ios-step-text p {
  color: var(--text);
}

.ios-done {
  background: #15803d;
}

.ios {
  flex: 0 0 auto;
  width: 240px;
  height: 500px;
  border: 8px solid var(--ink);
  border-radius: 38px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  font-size: 12px;
  margin: 0 auto;
}

@media (min-width: 700px) {
  .ios {
    margin: 0;
  }
}

.ios-dim {
  background: #64748b;
  justify-content: flex-end;
}

.ios-center {
  background: #64748b;
  justify-content: center;
  align-items: center;
}

.ios-page {
  flex: 1 1 0;
  padding: 36px 12px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ios-back {
  color: var(--indigo);
}

.ios-title {
  font-size: 20px;
  font-weight: 700;
}

.ios-card {
  background: var(--card);
  border-radius: 16px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ios-card b {
  font-size: 13px;
}

.ios-card span {
  color: var(--muted);
}

.ios-hint {
  background: var(--indigo-soft);
  color: var(--indigo-ink);
}

.ios-hint span {
  color: var(--indigo-ink);
}

.ios-link {
  color: var(--link);
  font-weight: 600;
}

.ios-pill {
  align-self: flex-start;
  background: var(--indigo);
  color: #ffffff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
}

.ios-faded {
  opacity: 0.65;
}

.ios-safari {
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 8px 10px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ios-safari-back {
  color: #94a3b8;
  font-size: 18px;
}

.ios-address {
  flex: 1 1 0;
  height: 32px;
  border-radius: 999px;
  background: var(--bg);
  display: grid;
  place-items: center;
  color: var(--text);
  font-size: 11px;
}

.ios-more {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--bg);
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 1px;
}

.ios-sheet {
  background: #f2f2f7;
  border-radius: 16px 16px 0 0;
  padding: 12px 10px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ios-sheet-tall {
  height: 440px;
}

.ios-sheet-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ios-sheet-head img {
  border-radius: 7px;
}

.ios-sheet-head span {
  display: flex;
  flex-direction: column;
}

.ios-sheet-head small {
  color: var(--muted);
}

.ios-dots {
  display: flex;
  gap: 10px;
}

.ios-dots span {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #d4d4d8;
}

.ios-list {
  background: var(--card);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  font-size: 13px;
}

.ios-list span {
  padding: 9px 12px;
  border-bottom: 1px solid #e5e7eb;
}

.ios-list span:last-child {
  border-bottom: 0;
}

.ios-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.ios-bar .ring {
  padding: 2px 6px;
}

.ios-blue {
  color: #2563eb;
}

.ios-field {
  background: var(--card);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.ios-field img {
  border-radius: 10px;
}

.ios-field span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ios-field small {
  color: var(--muted);
}

.ios-switch-row {
  background: var(--card);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.ios-switch {
  width: 40px;
  height: 24px;
  border-radius: 999px;
  background: #15803d;
  position: relative;
}

.ios-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ffffff;
}

.ios-home {
  background: var(--sage);
  padding: 44px 16px 16px;
  justify-content: space-between;
}

.ios-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 12px;
  justify-items: center;
}

.ios-app {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.28);
}

.ios-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #ffffff;
  font-size: 10px;
}

.ios-icon img {
  border-radius: 11px;
  display: block;
}

.ios-icon .ring {
  display: inline-flex;
  border-radius: 11px;
}

.ios-dock {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  padding: 10px;
  display: flex;
  justify-content: space-around;
}

.ios-signin {
  padding: 44px 14px 14px;
  gap: 12px;
}

.ios-signin-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
}

.ios-signin-head img {
  border-radius: 12px;
}

.ios-outline {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 8px;
  text-align: center;
}

.ios-input {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 8px;
  color: var(--muted);
}

.ios-alert {
  width: 196px;
  background: #f2f2f7;
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.ios-alert-text {
  padding: 14px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ios-alert-buttons {
  display: flex;
  border-top: 1px solid #d4d4d8;
}

.ios-alert-buttons span {
  flex: 1 1 0;
  padding: 9px 0;
  color: #2563eb;
}

.ios-alert-buttons span + span {
  border-left: 1px solid #d4d4d8;
  font-weight: 700;
}

.ios-lock {
  background: #1e293b;
  color: #ffffff;
  padding: 52px 10px 60px;
  align-items: center;
  gap: 4px;
}

.ios-lock-date {
  color: #cbd5e1;
}

.ios-lock-time {
  font-size: 52px;
  font-weight: 300;
  line-height: 1;
}

.ios-notice {
  margin-top: auto;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  border-radius: 16px;
  padding: 10px;
  display: flex;
  gap: 8px;
}

.ios-notice img {
  border-radius: 7px;
}

.ios-notice span {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ios-notice small {
  color: var(--muted);
}

/* What to tap: a ring, never colour alone. */
.ring {
  box-shadow: 0 0 0 3px var(--indigo), 0 0 0 7px rgba(79, 70, 229, 0.22);
  border-radius: 10px;
}

.ring-light {
  box-shadow: 0 0 0 3px #ffffff, 0 0 0 7px rgba(255, 255, 255, 0.35);
}
