/* Good Fence's site: Garden Gate, the service's look (docs/goodfence-style-guide.md) on a public page. Every colour,
   face and radius comes from brand.css, which goodfence-service/brand/build.sh writes from the service's tokens;
   this file only uses them. Phone first. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper) var(--paper-texture) 0 0 / 300px repeat; color: var(--ink);
  font: 17px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; width: 100%; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
/* Titles are Fraunces, regular weight, never bold. */
h1, h2, .section-title, .band h2, .card h3, .steps h3 { font-family: var(--font-title); font-weight: 400; font-variation-settings: "opsz" 72; }
p { margin: 0 0 14px; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--sheet); padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

/* The header: the mark and name, the pages, Sign in. */
.site-header {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: .5px solid var(--line);
}
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-title); font-weight: 400; font-size: 20px; font-variation-settings: "opsz" 36; }
.brand svg, .footer-brand svg { border-radius: 7px; }
.brand svg, .footer-brand svg { flex: none; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 15px; padding: 8px 10px; border-radius: 999px; }
.site-nav a:hover { background: var(--sunk); }
.site-nav a.sign-in { background: var(--sunk); font-weight: 600; padding: 8px 14px; }
.wide-only { display: none; }
@media (min-width: 700px) { .wide-only { display: inline-block; } }

/* The footer. */
.site-footer {
  display: flex; flex-direction: column; gap: 14px;
  padding: 32px max(16px, env(safe-area-inset-right)) calc(32px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  border-top: .5px solid var(--line); color: var(--ink-soft); font-size: 14px;
  max-width: 1080px; width: 100%; margin: 48px auto 0;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer nav a { color: var(--ink-soft); text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); text-decoration: underline; }
@media (min-width: 700px) { .site-footer { flex-direction: row; align-items: center; justify-content: space-between; } }

/* Shared pieces. */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 15px; margin: 0 0 8px; }
.lead { font-size: 19px; color: var(--ink-soft); max-width: 40em; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px;
  border-radius: var(--radius-control); font-weight: 700; font-size: 17px; text-decoration: none; border: 0;
}
.button.primary { background: var(--accent-fill); color: var(--on-accent); box-shadow: var(--shadow-button); }
.button.primary:hover { filter: brightness(1.08); }
.button.secondary { background: var(--sunk); color: var(--accent); }
.button[aria-disabled="true"] { background: var(--sunk); color: var(--ink-soft); pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.actions .button { flex: 1 1 200px; max-width: 280px; }
.actions + .small { margin-top: 12px; }
.small { font-size: 14px; }
.muted { color: var(--ink-soft); }
code, .link-box { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .92em; }
.link-box { display: inline-block; background: var(--sheet); border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow-card); overflow-wrap: anywhere; }

section { padding: 56px 0 0; }
section > .wrap > h2, .section-title { font-size: 30px; line-height: 1.15; margin: 0 0 10px; }
@media (min-width: 700px) { section > .wrap > h2, .section-title { font-size: 38px; } }

/* The home page's hero. */
.hero { padding: 44px 0 0; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 120%; z-index: -1;
  background: radial-gradient(40% 50% at 30% 40%, var(--glow-1), transparent 70%), radial-gradient(35% 45% at 75% 30%, var(--glow-2), transparent 70%);
}
.hero .wrap { display: grid; gap: 36px; align-items: center; }
.hero h1 { font-size: 42px; line-height: 1.06; letter-spacing: -.015em; margin: 0 0 16px; }
.hero h1 em { font-style: normal; color: var(--accent); }
@media (min-width: 900px) {
  .hero { padding-top: 80px; }
  .hero .wrap { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .hero h1 { font-size: 60px; }
}

/* Pictures drawn after the service's own (src/web/pictures.ts): a chat, the switches, activity rows. */
.stage { background: var(--sheet); border-radius: var(--radius-card); padding: 18px; box-shadow: var(--shadow-card); display: grid; gap: 10px; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 20px; font-size: 16px; line-height: 1.35; }
.bubble.me { justify-self: end; background: var(--accent-fill); color: var(--on-accent); border-bottom-right-radius: 6px; }
.bubble.app { justify-self: start; background: var(--sunk); border-bottom-left-radius: 6px; }
.who { display: block; font-size: 12px; font-weight: 600; color: var(--ink-soft); margin-bottom: 2px; }
.fence-line { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 13px; font-weight: 600; margin: 4px 0; }
.fence-line::before, .fence-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.mini { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--paper); }
.mini.off { opacity: .55; }
.mini .what { flex: 1; font-size: 15px; font-weight: 500; line-height: 1.25; }
.mini .what small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-soft); }
.mini .time { font-size: 13px; color: var(--ink-soft); }
.fake-switch { flex: none; width: 46px; height: 28px; border-radius: 999px; background: var(--sunk); position: relative; }
.fake-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--knob); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.fake-switch.on { background: var(--accent-fill); }
.fake-switch.on::after { left: 20px; }

/* The colored squares, as rows in iOS Settings. */
.icon { flex: none; width: 30px; height: 30px; border-radius: 8px; display: inline-grid; place-items: center; color: var(--on-tone); }
.icon svg { width: 18px; height: 18px; }
.icon.blue { background: var(--tone-blue); } .icon.red { background: var(--tone-red); } .icon.green { background: var(--tone-green); }
.icon.orange { background: var(--tone-orange); } .icon.purple { background: var(--tone-purple); } .icon.indigo { background: var(--tone-indigo); }
.icon.teal { background: var(--tone-teal); } .icon.yellow { background: var(--tone-orange); } .icon.gray { background: var(--tone-gray); }
.icon.pink { background: var(--tone-red); }

/* Cards in a grid. */
.cards { display: grid; gap: 14px; margin-top: 24px; }
@media (min-width: 700px) { .cards.three { grid-template-columns: repeat(3, 1fr); } .cards.two { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--sheet); border-radius: var(--radius-card); padding: 22px; box-shadow: var(--shadow-card); }
.card h3 { font-size: 21px; margin: 12px 0 8px; line-height: 1.2; }
.card p { color: var(--ink-soft); margin: 0; }
.card p + p { margin-top: 10px; }
.card .icon { width: 40px; height: 40px; border-radius: 11px; }
.card .icon svg { width: 22px; height: 22px; }

/* A grouped list, as iOS Settings draws one. */
.group { background: var(--sheet); border-radius: var(--radius-group); overflow: hidden; box-shadow: var(--shadow-card); margin-top: 20px; }
.row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; }
.row + .row { position: relative; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 60px; right: 0; border-top: .5px solid var(--line); }
.row .text { flex: 1; }
.row .title { display: block; font-weight: 600; }
.row .sub { display: block; color: var(--ink-soft); font-size: 15px; line-height: 1.4; margin-top: 2px; }
.row .tag { font-size: 12px; font-weight: 600; color: var(--ink-soft); background: var(--sunk); border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; }
.groups { display: grid; gap: 0 20px; }
@media (min-width: 900px) { .groups { grid-template-columns: 1fr 1fr; } }
.group-label { font-size: 13px; text-transform: uppercase; letter-spacing: .02em; color: var(--ink-soft); margin: 28px 16px -12px; }

/* Numbered steps. */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
@media (min-width: 900px) { .steps.four { grid-template-columns: repeat(4, 1fr); } }
.steps > li { counter-increment: step; background: var(--sheet); border-radius: var(--radius-card); padding: 22px; box-shadow: var(--shadow-card); }
.steps > li::before {
  content: counter(step); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-fill); color: var(--on-accent); font-weight: 700; font-size: 16px; margin-bottom: 12px;
}
.steps h3 { font-size: 19px; margin: 0 0 6px; }
.steps p { color: var(--ink-soft); margin: 0; }
ol.plain { padding-left: 22px; margin: 8px 0 0; }
ol.plain li { margin: 6px 0; }

/* A wide band: the Mac, or the last call to action. */
.band { background: var(--sheet); border-radius: var(--radius-card); padding: 32px 22px; box-shadow: var(--shadow-card); display: grid; gap: 24px; align-items: center; }
.band h2 { font-size: 30px; line-height: 1.15; margin: 0 0 10px; }
.band p { color: var(--ink-soft); }
.band .eyebrow { color: var(--accent); }
@media (min-width: 900px) { .band { grid-template-columns: 1.2fr .8fr; padding: 44px; } .band h2 { font-size: 38px; } }
.band.center { text-align: center; grid-template-columns: 1fr; justify-items: center; }
.band.center .actions { justify-content: center; }
.app-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border-radius: 999px; padding: 6px 14px 6px 6px; font-weight: 500; font-size: 15px; }
.chip .icon { width: 28px; height: 28px; border-radius: 50%; }
.chip .icon svg { width: 16px; height: 16px; }

/* A page of text: Privacy, Terms, Support. */
main.document .wrap { max-width: 760px; }
main.document { padding-top: 40px; }
main.document h1 { font-size: 38px; line-height: 1.1; margin: 0 0 14px; }
.document-content h2 { font-size: 24px; margin: 36px 0 10px; }
.document-content h3 { font-size: 19px; margin: 24px 0 8px; }
.document-content ul { padding-left: 22px; margin: 0 0 14px; }
.document-content li { margin: 6px 0; }
.updated { color: var(--ink-soft); font-size: 15px; }
.summary { background: var(--sheet); border-radius: var(--radius-group); padding: 18px 20px; margin: 24px 0; box-shadow: var(--shadow-card); }
.summary strong { display: block; margin-bottom: 4px; }
.summary ul { margin: 0; padding-left: 22px; }
.summary li { margin: 6px 0; }
table.kept { width: 100%; border-collapse: collapse; font-size: 16px; margin: 8px 0 18px; }
table.kept th, table.kept td { text-align: left; vertical-align: top; padding: 10px 8px 10px 0; border-top: .5px solid var(--line); line-height: 1.4; }
table.kept th { font-weight: 600; width: 34%; }
@media (max-width: 600px) {
  table.kept, table.kept tbody, table.kept tr, table.kept th, table.kept td { display: block; width: auto; }
  table.kept th { padding: 12px 0 2px; }
  table.kept td { border-top: 0; padding: 0 0 12px; }
}
.sources { font-size: 15px; color: var(--ink-soft); }
.sources li { overflow-wrap: anywhere; }
.support-email { font-size: 22px; font-weight: 600; }

/* The Mac page. */
.mac-hero { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .mac-hero { grid-template-columns: 1fr 1fr; gap: 56px; } }
.menu-bar { background: var(--sheet); border-radius: 18px; box-shadow: var(--shadow-card); overflow: hidden; }
.menu-bar .strip { display: flex; justify-content: flex-end; align-items: center; gap: 14px; padding: 6px 14px; background: var(--sunk); font-size: 13px; font-weight: 600; }
.menu-bar .strip svg { width: 18px; height: 18px; }
.menu-bar .menu { padding: 12px; display: grid; gap: 8px; }
.notice { background: var(--accent-wash); border-radius: 18px; padding: 14px 16px; margin-top: 20px; }
.notice strong { display: block; }

/* 404. */
main.not-found { text-align: center; padding: 80px 16px 0; }
main.not-found h1 { font-size: 34px; margin: 18px 0 10px; }
main.not-found svg { width: 72px; height: 72px; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* The apps' and accounts' own marks (goodfence-service src/web/brands.ts), in their rounded squares. */
.icon.brand { background: #fff; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .14); }
.icon.brand-claude { background: #f4f1ea; }
.icon.brand-chatgpt { background: #000; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .2); }
.icon.brand-apple { background: #000; color: #fff; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .2); }
.group-after { margin: 10px 16px 0; }
.app-chips.center { justify-content: center; margin-top: 14px; }
hr.rule { border: 0; border-top: .5px solid var(--line); margin: 48px 0 32px; }
