/* Twentry's site: the app's navy, teal and the logo's gold; system fonts;
   no scripts. Made with scripts/site/build_site.py. */
:root {
  --navy-950: #070d18;
  --navy-900: #0c1626;
  --navy-800: #13223a;
  --navy-700: #1c2f4d;
  --teal: #1f7a68;
  --teal-bright: #3fbf9f;
  --gold: #e3c27e;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --ink: #0e1726;
  --ink-muted: #4f5b6d;
  --line: #e3e7ed;
  --on-dark: #eef2f7;
  --on-dark-muted: #a9b8cc;
  --focus: #0b5cad;
  --radius: 22px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a111d;
    --surface: #111c2e;
    --ink: #e9eef5;
    --ink-muted: #a3b1c4;
    --line: #1f2d44;
    --teal: #3fbf9f;
    --focus: #e3c27e;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; letter-spacing: -0.022em; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; font-weight: 700; color: var(--teal); margin: 0 0 12px; }

/* Keyboard use: a visible focus everywhere, and a way past the bar. */
a:focus-visible, summary:focus-visible, .button:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px;
}
/* On the navy parts the ring is gold. */
.bar a:focus-visible, .hero a:focus-visible, .privacy-band a:focus-visible, .page-head a:focus-visible,
footer.end a:focus-visible { outline-color: var(--gold); }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 20; padding: 10px 16px; border-radius: 10px;
  background: #fff; color: var(--navy-950); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* The bar on every page. */
.bar { background: var(--navy-950); color: var(--on-dark); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.bar .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; min-width: 0; flex-wrap: wrap; }
.bar .brand { display: flex; align-items: center; gap: 10px; color: var(--on-dark); text-decoration: none; font-weight: 700; font-size: 18px; }
.bar .brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14); }
.bar nav { margin-left: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; }
.bar nav a { color: var(--on-dark-muted); text-decoration: none; padding: 6px 0; }
.bar nav a:hover, .bar nav a[aria-current] { color: #fff; }

/* Hero. */
.hero {
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(63, 191, 159, 0.22), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(227, 194, 126, 0.12), transparent 60%),
    linear-gradient(180deg, var(--navy-950), var(--navy-800));
  color: var(--on-dark);
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 40px; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.04; margin: 0 0 22px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--teal-bright); }
.hero .lead { font-size: 20px; color: var(--on-dark); margin: 0 0 14px; max-width: 32em; }
.hero .trust { font-size: 16px; color: var(--on-dark-muted); margin: 0 0 30px; max-width: 34em; }
.hero .copy { animation: rise 0.7s ease-out both; }
.get { display: flex; align-items: center; gap: 14px 16px; flex-wrap: wrap; }
.button {
  display: inline-block; padding: 16px 22px; border-radius: 12px; background: var(--teal-bright); color: var(--navy-950);
  font-weight: 700; font-size: 16px; line-height: 1; text-decoration: none;
}
.button:hover { background: #5fd3b5; }
.get .store { display: inline-block; line-height: 0; border-radius: 10px; }
.get .store img { height: 54px; width: auto; }
.store.soon { display: inline-block; line-height: 1; padding: 15px 20px; border-radius: 12px; font-weight: 700; font-size: 16px; color: var(--ink); border: 1.5px solid currentColor; }
.store.soon.on-dark { color: #fff; border-color: rgba(255, 255, 255, 0.55); }

/* Phones: the app's own screens in a frame. */
.device { position: relative; width: 270px; border-radius: 46px; padding: 9px; background: #05080f; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), inset 0 0 0 2px #2a3446; }
.device img { border-radius: 38px; width: 100%; }
.hero-shots { animation: rise 0.9s 0.1s ease-out both; }
.phones { position: relative; height: 600px; }
.phones .device { position: absolute; }
.phones .front { left: 6%; top: 0; z-index: 2; }
.phones .back { right: 4%; top: 64px; transform: scale(0.9) rotate(5deg); transform-origin: top right; z-index: 1; }

/* Sections. */
section.block { padding: 100px 0; }
section.block + section.block { padding-top: 30px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.flip > .visual { order: -1; }
/* Columns may be narrower than a long line of the journal, which scrolls. */
.split > * { min-width: 0; }
.split h2, .center h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; margin: 0 0 18px; font-weight: 800; }
.split h3 { font-size: 22px; margin: 28px 0 8px; }
.split p { color: var(--ink-muted); font-size: 18px; margin: 0 0 16px; max-width: 36em; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; }
.ticks li { position: relative; padding-left: 32px; margin: 0 0 12px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--teal); -webkit-mask: radial-gradient(circle, #000 60%, transparent 61%); mask: radial-gradient(circle, #000 60%, transparent 61%); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 9px; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.split .note { font-size: 16px; }

/* How it works. */
.center { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.center p { color: var(--ink-muted); font-size: 18px; margin: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.steps .num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; margin-bottom: 16px; }
.steps h3 { font-size: 20px; margin: 0 0 8px; }
.steps p { margin: 0; color: var(--ink-muted); font-size: 16px; }
@media (prefers-color-scheme: dark) { .steps .num { color: var(--navy-950); } }

/* Reports. */
.shot-figure .device { margin: 0 auto; width: 280px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 20px; padding: 0; list-style: none; }
.tags li { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }

/* The journal's text over the app's editor. */
.journal-stage { position: relative; min-height: 600px; }
.journal-stage .device { position: absolute; right: 0; top: 0; width: 260px; z-index: 1; }
.journal {
  position: absolute; left: 0; top: 210px; width: 82%; z-index: 2;
  background: var(--navy-900); color: #c9d6e6; border-radius: 18px; padding: 22px 24px 26px;
  font: 14px/1.7 ui-monospace, "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace; overflow-x: auto;
  box-shadow: 0 30px 70px rgba(7, 13, 24, 0.35); border: 1px solid #22324d;
}
.journal .dots { display: flex; gap: 7px; margin-bottom: 14px; }
.journal .dots i { width: 11px; height: 11px; border-radius: 50%; background: #2c3c57; }
.journal .file { color: #8195b3; font-size: 12px; margin-left: auto; }
.journal .d { color: var(--gold); }
.journal .p { color: #fff; font-weight: 600; }
.journal .a { color: #8fd8c4; }
.journal .n { color: #f2b8a2; }
.journal .c { color: #8195b3; }
.journal pre { margin: 0; font: inherit; white-space: pre; }

/* Tiles. */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.tile .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(31, 122, 104, 0.12); color: var(--teal); margin-bottom: 16px; }
.tile .icon svg { width: 24px; height: 24px; }
.tile h3 { font-size: 19px; margin: 0 0 6px; }
.tile p { margin: 0; color: var(--ink-muted); font-size: 16px; }

/* Privacy. */
.privacy-band { background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); color: var(--on-dark); padding: 100px 0; }
.privacy-band .center h2 { color: #fff; }
.privacy-band .center p { color: var(--on-dark-muted); }
.privacy-band .tile { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.1); }
.privacy-band .tile .icon { background: rgba(63, 191, 159, 0.14); color: var(--teal-bright); }
.privacy-band .tile h3 { color: #fff; }
.privacy-band .tile p { color: var(--on-dark-muted); }
.privacy-band .more { text-align: center; margin: 34px 0 0; }
.privacy-band a { color: var(--gold); }

/* Questions. */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; margin: 0 0 12px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--ink-muted); }
.faq .more { text-align: center; margin: 22px 0 0; }

/* The last call. */
.cta { text-align: center; padding: 30px 0 100px; }
.cta img.icon { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 22px; box-shadow: 0 20px 50px rgba(12, 22, 38, 0.25); }
.cta h2 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 22px; font-weight: 800; }
.cta p { color: var(--ink-muted); margin: 22px 0 0; font-size: 17px; }
.cta .get { justify-content: center; }

/* Pages of text. */
.page-head { background: linear-gradient(180deg, var(--navy-950), var(--navy-800)); color: var(--on-dark); padding: 64px 0 56px; }
.page-head h1 { font-size: clamp(34px, 5vw, 50px); margin: 0; line-height: 1.08; font-weight: 800; }
.page-head p { color: var(--on-dark-muted); margin: 12px 0 0; font-size: 16px; max-width: 42em; }
.page-head a { color: var(--gold); }
.narrow { max-width: 760px; }
.doc { max-width: 760px; padding: 56px 20px 40px; }
.doc h2 { font-size: 23px; margin: 40px 0 8px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--ink); max-width: 68ch; }
.doc ol { padding-left: 1.4em; }
.doc ol li { margin: 0 0 10px; padding-left: 4px; }
.doc .mail { font-weight: 600; }
.doc table { border-collapse: collapse; margin: 10px 0 18px; width: 100%; }
.doc th, .doc td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin: 0 0 8px; }
.toc ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 28px; }
.toc li { margin: 0 0 6px; break-inside: avoid; }
.faq-link { margin-top: 40px; color: var(--ink-muted) !important; }

/* Footer. */
footer.end { background: var(--navy-950); color: var(--on-dark-muted); padding: 56px 0 44px; font-size: 15px; }
footer.end .cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
footer.end .brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 17px; margin-bottom: 12px; }
footer.end .brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14); }
footer.end p { margin: 0 0 10px; max-width: 46em; }
footer.end nav { display: grid; gap: 8px; justify-content: end; text-align: right; }
footer.end a { color: var(--on-dark); text-decoration: none; padding: 2px 0; }
footer.end a:hover { color: #fff; text-decoration: underline; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto !important; } }

@media (max-width: 960px) {
  .grid.four { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; }
  .phones { height: 560px; max-width: 520px; margin: 0 auto; }
  .split, .split.flip { grid-template-columns: 1fr; gap: 40px; }
  .split.flip > .visual { order: 0; }
  section.block { padding: 72px 0; }
  .steps { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  footer.end .cols { grid-template-columns: 1fr; }
  footer.end nav { justify-content: start; text-align: left; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .bar nav { gap: 6px 16px; font-size: 14px; }
  .bar nav .wide { display: none; }
  .bar .brand span { display: none; }
  .bar .brand img { width: 34px; height: 34px; }
  .hero h1 { font-size: 38px; }
  .hero .lead { font-size: 18px; }
  .phones { height: 470px; }
  .device { width: 220px; border-radius: 38px; padding: 7px; }
  .device img { border-radius: 31px; }
  .phones .front { left: 0; }
  .phones .back { right: 0; }
  .split p { font-size: 17px; }
  .journal-stage { min-height: 560px; }
  .journal-stage .device { width: 200px; }
  .journal { width: 100%; top: 230px; font-size: 12px; padding: 16px 16px 20px; }
  .shot-figure .device { width: 240px; }
  .grid, .grid.four { grid-template-columns: 1fr; }
  .toc ul { columns: 1; }
}
@media (max-width: 360px) {
  .phones { height: 420px; }
  .device { width: 190px; }
  .phones .back { display: none; }
  .phones .front { left: 50%; transform: translateX(-50%); }
}
