/* Sweet Action Labs site: homepage and app pages (design handoff 2026-10).
   The lab owns the frame (paper, navy, Archivo, logo, closing panel); each
   app page sets its tint, interface font and button shape on <body>. */
:root {
  --paper: #f7f7f4;
  --ink: #0b2350;
  --muted: #4b5d80;
  --rule: #c3cde0;
  --panel-text: #a9b6cf;
  --panel-rule: #2a4373;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: 48px;
  --section: 140px;
  /* Lab defaults; app pages override. */
  --tint: #e3e6ee;
  --soft: #eef0f5;
  --ui: 'Archivo', sans-serif;
  --body: 17px;
  --body-l: 19px;
  --btn-h: 56px;
  --btn-r: 999px;
  --btn-size: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: 'Archivo', sans-serif; font-stretch: 125%;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: .7; }
img { display: block; max-width: 100%; }
.page { max-width: 1440px; margin: 0 auto; overflow: hidden; }
.mono {
  font-family: 'JetBrains Mono', monospace; font-stretch: 100%;
  font-size: 13px; letter-spacing: .08em;
}
.ui { font-family: var(--ui); font-stretch: 100%; }

/* Header */
.site-header {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 28px var(--gutter); font-size: 14px; font-weight: 500;
}
.site-header nav { display: flex; gap: 28px; flex-wrap: wrap; }
.site-header nav.end { justify-content: flex-end; }
.site-header .current { border-bottom: 1.5px solid var(--ink); padding-bottom: 4px; }
.site-header nav a:not(.pill) { padding-bottom: 4px; }
.site-header .logo img { height: 40px; width: auto; }
.pill { padding: 10px 20px; border: 1.5px solid var(--ink); border-radius: 999px; white-space: nowrap; }

/* Buttons in the app's shape */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--btn-h); padding: 0 28px; border-radius: var(--btn-r);
  font-family: var(--ui); font-stretch: 100%; font-weight: 700; font-size: var(--btn-size);
  border: 1.5px solid var(--ink);
}
.btn.fill { background: var(--ink); color: var(--paper); }
.btn.paper { background: var(--paper); color: var(--ink); border-color: var(--paper); padding: 0 32px; }
span.btn { cursor: default; }
span.btn:hover { opacity: 1; }

/* Grid helpers: label in columns 1-3, content in 4-12 */
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.grid12 > .label { grid-column: 1 / 4; }
.grid12 > .content { grid-column: 4 / 13; }
h1, h2 { margin: 0; font-weight: 800; letter-spacing: -.03em; line-height: 1; text-wrap: balance; }

/* ---------- Homepage ---------- */
.home-hero {
  padding: 96px var(--gutter) 72px; display: grid; gap: 48px; align-items: end;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
}
.home-hero h1 { font-size: clamp(56px, 8vw, 112px); line-height: .95; letter-spacing: -.035em; }
.home-hero .intro {
  display: flex; flex-direction: column; gap: 20px; font-stretch: 100%;
  font-size: 17px; line-height: 1.55; color: var(--muted);
}
.home-hero .intro .mono { font-size: 12px; letter-spacing: .1em; color: var(--ink); }

.panels { display: flex; gap: 12px; height: 620px; padding: 0 var(--gutter); }
.panel {
  flex: 1; min-width: 0; position: relative; overflow: hidden;
  border-radius: 14px; background: var(--tint); color: var(--ink);
  display: flex; flex-direction: column; justify-content: space-between; padding: 32px;
  transition: flex .55s var(--ease);
}
.panel:hover { opacity: 1; }
.panel .top { display: flex; justify-content: space-between; gap: 16px; }
.panel .tag { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel .art { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.panel .art img { width: 160px; height: 160px; border-radius: 36px; box-shadow: 0 0 0 1.5px var(--ink); }
.panel .line { font-family: var(--ui); font-size: 18px; max-width: 320px; text-align: center; line-height: 1.4; font-stretch: 100%; }
.panel .bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.panel .wordmark {
  font-family: var(--wm-font); font-weight: var(--wm-weight); letter-spacing: var(--wm-track);
  font-size: var(--wm-small); line-height: .9; white-space: nowrap; font-stretch: 100%;
  transition: font-size .45s var(--ease);
}
.panel .arrow { font-size: 28px; }
.panel .reveal { opacity: 0; transition: opacity .3s; }
/* The first panel is open until the pointer picks another. */
.panel.first { flex: 3.2; }
.panel.first .reveal { opacity: 1; }
.panel.first .wordmark { font-size: var(--wm-large); }
.panels:hover .panel, .panels:focus-within .panel { flex: 1; }
.panels:hover .panel .reveal, .panels:focus-within .panel .reveal { opacity: 0; }
.panels:hover .panel .wordmark, .panels:focus-within .panel .wordmark { font-size: var(--wm-small); }
.panels .panel:hover, .panels .panel:focus-visible { flex: 3.2; }
.panels .panel:hover .reveal, .panels .panel:focus-visible .reveal { opacity: 1; }
.panels .panel:hover .wordmark, .panels .panel:focus-visible .wordmark { font-size: var(--wm-large); }

.about { padding: 160px var(--gutter); }
.about .label { font-size: 12px; letter-spacing: .1em; }
.about p { margin: 0; font-weight: 500; font-size: 36px; line-height: 1.25; letter-spacing: -.02em; text-wrap: pretty; }
.about p.closer { margin-top: 24px; font-weight: 800; }
.principles {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  margin-top: 64px; padding-top: 24px; border-top: 1.5px solid var(--ink); font-stretch: 100%;
}
.principles div { display: flex; flex-direction: column; gap: 10px; }
.principles .n { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); }
.principles .t { font-weight: 700; font-size: 20px; font-stretch: 125%; }
.principles .d { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* ---------- App pages ---------- */
.hero {
  margin: 0 var(--gutter); border-radius: 14px; background: var(--tint);
  padding: 40px 48px 56px; display: flex; flex-direction: column; gap: 40px;
}
.hero .eyebrow { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hero .cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: center; }
.hero .copy { display: flex; flex-direction: column; gap: 32px; }
.hero .brand { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero .brand img { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 0 0 1.5px var(--ink); }
.hero .wordmark {
  font-family: var(--wm-font); font-weight: var(--wm-weight); font-size: var(--wm-size);
  letter-spacing: var(--wm-track); line-height: .9; font-stretch: 100%;
}
.hero h1 { font-size: 60px; }
.hero .lede { margin: 0; max-width: 640px; font-size: var(--body-l); line-height: 1.55; text-wrap: pretty; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .fine { font-size: 13px; letter-spacing: .04em; }
.hero .phone-wrap { justify-self: end; }

.phone {
  width: 300px; height: 600px; border-radius: 40px; border: 6px solid var(--ink);
  overflow: hidden; position: relative;
}
.phone > img, .phone > video { width: 100%; height: 100%; object-fit: contain; }

.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  margin: 0 var(--gutter); padding: 48px 0 0;
}
.stats div { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1.5px solid var(--ink); }
.stats .v { font-weight: 800; font-size: 64px; line-height: 1; letter-spacing: -.03em; }
.stats .l { font-size: var(--body); line-height: 1.4; color: var(--muted); }

.section { padding: var(--section) var(--gutter) 0; }
.section .content { display: flex; flex-direction: column; gap: 20px; }
.section h2 { font-size: 56px; }
.section .intro { margin: 0; max-width: 760px; font-size: var(--body-l); line-height: 1.55; color: var(--muted); }
.features {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 40px 32px; margin-top: 40px;
}
.features div { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1.5px solid var(--ink); }
.features .n { font-size: 12px; letter-spacing: 0; color: var(--muted); }
.features .t { font-weight: 700; font-size: 22px; line-height: 1.2; }
.features .d { font-size: var(--body); line-height: 1.55; color: var(--muted); }

.privacy {
  margin: var(--section) var(--gutter) 0; border-radius: 14px; background: var(--soft);
  padding: 64px 48px;
}
.privacy .content { display: flex; flex-direction: column; gap: 32px; }
.privacy h2 { font-size: 48px; line-height: 1.05; }
.privacy p { margin: 0; max-width: 760px; font-size: var(--body-l); line-height: 1.6; }
.checklist { columns: 2 320px; column-gap: 40px; margin: 0; padding: 0; list-style: none; }
.checklist li {
  break-inside: avoid; margin-bottom: 16px; display: flex; gap: 14px; align-items: flex-start;
  font-size: var(--body); line-height: 1.5;
}
.checklist li::before {
  content: "✓"; flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}

.explain .content { gap: 24px; }
.explain p { margin: 0; max-width: 800px; font-size: var(--body-l); line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.explain p b { color: var(--ink); }
.price {
  display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; padding: 24px 0; margin-top: 16px;
  border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
}
.price .v { font-weight: 800; font-size: 56px; letter-spacing: -.03em; }
.price .ui { font-size: var(--body); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps div { display: flex; flex-direction: column; gap: 12px; }
.steps .n {
  width: 40px; height: 40px; border-radius: 50%; background: var(--tint);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px;
}
.steps .ui { font-size: var(--body); line-height: 1.5; }

.faq .content { gap: 0; border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  gap: 24px; padding: 24px 0; min-height: var(--btn-h);
  font-weight: 700; font-size: 22px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; font-weight: 400; font-size: 28px; }
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { opacity: .7; }
.faq details p { margin: 0 0 28px; max-width: 760px; font-size: var(--body); line-height: 1.6; color: var(--muted); }

/* Closing panel (shared) */
.closing {
  margin: var(--section) var(--gutter) var(--gutter); border-radius: 14px; background: var(--ink);
  color: var(--paper); padding: 80px 64px 40px;
}
.home .closing { margin-top: 0; }
.closing .row { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; flex-wrap: wrap; }
.closing .say { display: flex; flex-direction: column; gap: 24px; }
.closing .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.closing h2 { font-size: 88px; line-height: .95; letter-spacing: -.035em; }
.home .closing h2 { font-size: 96px; }
.closing .say p { margin: 0; font-size: 20px; line-height: 1.5; color: var(--panel-text); }
.closing .mail { padding: 20px 32px; border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 700; font-size: 18px; }
.closing .foot {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: 120px; padding-top: 24px; border-top: 1px solid var(--panel-rule);
  font-size: 12px; color: var(--panel-text);
}
.closing .foot nav { display: flex; gap: 32px; flex-wrap: wrap; }

/* ---------- Legal pages ---------- */
/* overflow: hidden would make .page the sticky contents list's scroll box, and it would never stick. */
.legal .page { overflow: clip; }
.legal-title {
  margin: 0 var(--gutter); border-radius: 14px; background: var(--tint);
  padding: 40px 48px; display: flex; flex-direction: column; gap: 28px;
}
.legal-title .top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.legal-title .brand { display: flex; align-items: center; gap: 16px; }
.legal-title .brand img { width: 48px; height: 48px; border-radius: 11px; box-shadow: 0 0 0 1.5px var(--ink); }
.legal-title .wordmark {
  font-family: var(--wm-font); font-weight: var(--wm-weight); font-size: var(--wm-size);
  letter-spacing: var(--wm-track); line-height: 1; font-stretch: 100%;
}
.legal-tabs {
  display: flex; gap: 6px; padding: 4px; border: 1.5px solid var(--ink); border-radius: 999px;
  font-size: 14px; font-weight: 600;
}
.legal-tabs a { display: flex; align-items: center; min-height: var(--tab-h); padding: 0 18px; border-radius: 999px; }
.legal-tabs a[aria-current] { background: var(--ink); color: var(--paper); }
.legal-tabs a[aria-current]:hover { opacity: 1; }
.legal-title h1 { font-size: clamp(44px, 6vw, 72px); }
.legal-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px;
  margin: 0; padding-top: 20px; border-top: 1.5px solid var(--ink);
}
.legal-meta div { display: flex; flex-direction: column; gap: 6px; }
.legal-meta dt { font-size: 12px; }
.legal-meta dd { margin: 0; font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }

.legal-body { padding: 72px var(--gutter) 0; }
.legal-toc {
  grid-column: 1 / 4; align-self: start; position: sticky; top: 24px;
  display: flex; flex-direction: column; gap: 2px; font-size: 14px;
}
.legal-toc .mono { font-size: 12px; margin-bottom: 12px; }
.legal-toc a {
  display: flex; align-items: center; min-height: 32px; padding-left: 12px;
  border-left: 1.5px solid var(--rule); color: var(--muted);
}
.legal-text { grid-column: 4 / 13; max-width: 780px; font-size: var(--body); line-height: 1.65; }
.legal-text h2 {
  margin: 56px 0 16px; padding-top: 20px; border-top: 1.5px solid var(--ink);
  font-family: 'Archivo', sans-serif; font-stretch: 125%; font-size: 30px; line-height: 1.1;
  letter-spacing: -.02em; scroll-margin-top: 24px;
}
.legal-text h2:first-child { margin-top: 0; }
.legal-text h3 {
  margin: 32px 0 10px; font-family: 'Archivo', sans-serif; font-stretch: 125%;
  font-weight: 700; font-size: 20px; line-height: 1.25;
}
.legal-text h4 { margin: 22px 0 6px; font-size: 17px; font-weight: 700; }
.legal-text p { margin: 0 0 16px; text-wrap: pretty; }
.legal-text a { text-decoration: underline; text-underline-offset: 3px; }
.legal-text ul { margin: 0 0 16px; padding: 0; list-style: none; }
.legal-text li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; margin: 0 0 10px; }
.legal-text li::before { content: ""; width: 7px; height: 7px; margin-top: .65em; border-radius: 50%; background: var(--ink); }
.legal-text .tag {
  display: table; margin: 8px 0 10px; padding: 4px 12px; border-radius: 999px;
  background: var(--soft); border: 1px solid var(--ink);
  font-family: 'JetBrains Mono', monospace; font-size: 12px; line-height: 1.5;
}
.legal-table { margin: 8px 0 24px; overflow-x: auto; }
.legal-table table {
  width: 100%; min-width: 480px; border-collapse: collapse; table-layout: fixed;
  border-top: 1.5px solid var(--ink); font-size: 15px; line-height: 1.5;
}
.legal-table th, .legal-table td {
  padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top;
}
.legal-table th:first-child { width: 35%; }
.legal-table tbody th { font-weight: 400; }

.legal-closing { margin-top: 96px; padding: 56px 64px 36px; }
.legal-closing .row { align-items: center; gap: 32px; }
.legal-closing h2 { font-size: 44px; }
.legal-closing .mail { font-size: 16px; padding: 18px 28px; }
.legal-closing .foot { margin-top: 72px; }

/* ---------- Narrow screens: stack, keep the order ---------- */
@media (max-width: 900px) {
  :root { --gutter: 20px; --section: 96px; }
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav.start { grid-column: 1 / -1; grid-row: 2; }
  .site-header .logo { grid-row: 1; }
  .site-header nav.end { grid-row: 1; }
  .grid12 > .label, .grid12 > .content { grid-column: 1 / -1; }
  .panels { flex-direction: column; height: auto; }
  .panels .panel, .panels:hover .panel, .panel.first { flex: none; min-height: 420px; }
  .panels .panel .reveal, .panels:hover .panel .reveal { opacity: 1; }
  /* The desktop open size overflows a phone-width panel. */
  .panels .panel .wordmark, .panels:hover .panel .wordmark { font-size: calc(var(--wm-small) * 1.6); }
  .about { padding: 96px var(--gutter); }
  .about p { font-size: 26px; }
  .principles, .steps { grid-template-columns: 1fr; }
  .hero { padding: 28px 20px 40px; }
  .hero .cols { grid-template-columns: 1fr; gap: 40px; }
  .hero .phone-wrap { justify-self: center; }
  .hero h1 { font-size: 40px; }
  .hero .wordmark { font-size: min(var(--wm-size), 64px); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats .v { font-size: 44px; }
  .section h2, .privacy h2 { font-size: 36px; }
  .privacy { padding: 40px 20px; }
  .closing { padding: 56px 24px 32px; }
  .closing h2, .home .closing h2 { font-size: 52px; }
  /* The address cannot wrap, so it shrinks with the screen to stay inside the panel. */
  .closing .mail { font-size: min(16px, 3.5vw); padding: 14px 18px; }
  .closing .foot { margin-top: 72px; }
  .legal-title { padding: 28px 20px; }
  .legal-tabs { width: 100%; }
  .legal-tabs a { flex: 1; justify-content: center; padding: 0 10px; font-stretch: 100%; white-space: nowrap; }
  .legal-toc { grid-column: 1 / -1; position: static; }
  .legal-text { grid-column: 1 / -1; }
  .legal-closing h2 { font-size: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .panel, .panel .wordmark, .panel .reveal { transition: none; }
}
