/* pamosa.app. Brand colours from the logo guidelines; the app's tint is Pamosa Green in light, Lime in dark. */
:root {
  --green: #127a3f;
  --lime: #9ee05a;
  --deep: #0b3d22;
  --ink: #0f1712;
  --paper: #f3f5f0;
  --plan: #0064d1;
  --notes: #ffcc00;
  --memories: #ff9f0a;

  --ground: var(--paper);
  --surface: #ffffff;
  --text: var(--ink);
  --text-soft: rgba(15, 23, 18, 0.66);
  --line: rgba(15, 23, 18, 0.1);
  --tint: var(--green);
  --on-tint: #ffffff;
  --danger: #c4321f;
  --radius: 20px;
  --radius-sm: 12px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #08130d;
    --surface: #102219;
    --text: #f3f5f0;
    --text-soft: rgba(243, 245, 240, 0.68);
    --line: rgba(243, 245, 240, 0.12);
    --tint: var(--lime);
    --on-tint: #0f1712;
    --danger: #ff7a66;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--tint);
  text-underline-offset: 3px;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.wrap {
  margin: 0 auto;
  max-width: 1080px;
  padding: 0 24px;
}

.narrow {
  max-width: 720px;
}

/* Header and footer */
.top {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding-bottom: 20px;
  padding-top: 20px;
}

.top .brand img {
  height: 34px;
  width: auto;
}

.brand .on-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .brand .on-light {
    display: none;
  }
  .brand .on-dark {
    display: block;
  }
}

.top nav {
  display: flex;
  gap: 20px;
}

.top nav a {
  color: var(--text-soft);
  font-size: 15px;
  text-decoration: none;
}

.top nav a:hover,
.top nav a[aria-current="page"] {
  color: var(--text);
}

.foot {
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 14px;
  margin-top: 96px;
  padding-bottom: 48px;
  padding-top: 28px;
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.foot a {
  color: var(--text-soft);
  text-decoration: none;
}

.foot a:hover {
  color: var(--text);
}

/* Type */
h1,
h2,
h3 {
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(40px, 6.4vw, 68px);
  font-weight: 700;
}

h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 650;
}

h3 {
  font-size: 20px;
  font-weight: 650;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.lead {
  color: var(--text-soft);
  font-size: clamp(18px, 2.2vw, 21px);
  max-width: 34em;
}

.eyebrow {
  color: var(--tint);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* Hero */
.hero {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: 1.1fr 1fr;
  padding-bottom: 72px;
  padding-top: 56px;
}

.hero .lead {
  margin-top: 20px;
}

@media (max-width: 860px) {
  .hero {
    gap: 40px;
    grid-template-columns: 1fr;
    padding-top: 24px;
  }
}

/* The five parts of the app, as the logo's bento: one box, room for everything. */
.bento {
  display: grid;
  gap: 10px;
  grid-template-areas:
    "money money plan"
    "notes memories plan"
    "vault vault vault";
  grid-template-columns: 1fr 1fr 1fr;
}

.tile {
  border-radius: var(--radius);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: flex-end;
  min-height: 132px;
  padding: 18px;
}

.tile b {
  font-size: 19px;
  letter-spacing: -0.01em;
}

.tile span {
  font-size: 14px;
  line-height: 1.4;
  opacity: 0.86;
}

.tile.money {
  background: var(--green);
  grid-area: money;
}

.tile.plan {
  background: var(--plan);
  grid-area: plan;
}

.tile.notes {
  background: var(--notes);
  color: var(--ink);
  grid-area: notes;
}

.tile.memories {
  background: var(--memories);
  color: var(--ink);
  grid-area: memories;
}

.tile.vault {
  background: var(--deep);
  grid-area: vault;
  min-height: 96px;
}

.tile.vault b {
  color: var(--lime);
}

@media (max-width: 480px) {
  .bento {
    grid-template-areas:
      "money money"
      "plan notes"
      "plan memories"
      "vault vault";
    grid-template-columns: 1fr 1fr;
  }
}

/* Forms */
.form {
  display: grid;
  gap: 12px;
  margin-top: 32px;
  max-width: 480px;
}

.row {
  display: flex;
  gap: 10px;
}

@media (max-width: 480px) {
  .row {
    flex-direction: column;
  }
}

input[type="email"],
input[type="text"],
input[inputmode="numeric"] {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  flex: 1;
  font: inherit;
  min-height: 52px;
  min-width: 0;
  padding: 0 16px;
}

input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--tint) 45%, transparent);
  outline-offset: 2px;
}

.code-input {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3em;
}

.button {
  align-items: center;
  background: var(--tint);
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--on-tint);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 650;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  text-decoration: none;
  transition: transform 120ms cubic-bezier(0.23, 1, 0.32, 1);
  white-space: nowrap;
}

.button:active {
  transform: scale(0.97);
}

.button[disabled] {
  cursor: default;
  opacity: 0.55;
}

.button.danger {
  background: var(--danger);
  color: #ffffff;
}

.button.quiet {
  background: transparent;
  color: var(--tint);
  padding: 0 4px;
}

.choices {
  color: var(--text-soft);
  display: flex;
  flex-wrap: wrap;
  font-size: 15px;
  gap: 8px 18px;
}

.choices label {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
}

.choices input {
  accent-color: var(--tint);
  height: 18px;
  margin: 0;
  width: 18px;
}

.note {
  color: var(--text-soft);
  font-size: 14px;
}

.status {
  font-size: 15px;
  min-height: 1.5em;
}

.status.ok {
  color: var(--tint);
  font-weight: 600;
}

.status.error {
  color: var(--danger);
}

/* People leave this empty; bots fill every field they find. */
.trap {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

/* Sections */
.section {
  padding-top: 88px;
}

.section > .lead {
  margin-top: 14px;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 36px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 8px;
  padding: 24px;
}

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

.dot {
  border-radius: 8px;
  height: 28px;
  margin-bottom: 6px;
  width: 28px;
}

.band {
  background: var(--deep);
  border-radius: 28px;
  color: #f3f5f0;
  margin-top: 88px;
  padding: 56px clamp(24px, 6vw, 64px);
}

.band h2 {
  color: #ffffff;
}

.band .lead {
  color: rgba(243, 245, 240, 0.78);
  margin-top: 14px;
}

.band ul {
  display: grid;
  gap: 14px 32px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}

@media (max-width: 640px) {
  .band ul {
    grid-template-columns: 1fr;
  }
}

.band li {
  border-top: 1px solid rgba(243, 245, 240, 0.16);
  padding-top: 14px;
}

.band li b {
  color: var(--lime);
  display: block;
  margin-bottom: 4px;
}

.band a {
  color: var(--lime);
}

.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: clamp(18px, 2.4vw, 22px);
  margin-top: 28px;
  padding: 22px 24px;
}

/* Long pages: privacy, terms, security, account deletion */
.doc {
  padding-top: 40px;
}

.doc h1 {
  font-size: clamp(36px, 5vw, 52px);
}

.doc .lead {
  margin-top: 16px;
}

.doc h2 {
  font-size: 26px;
  margin-top: 48px;
}

.doc h3 {
  margin-top: 28px;
}

.doc p,
.doc li {
  color: var(--text-soft);
}

.doc p {
  margin-top: 14px;
}

.doc ul,
.doc ol {
  margin: 14px 0 0;
  padding-left: 22px;
}

.doc li {
  margin-top: 6px;
}

.doc strong {
  color: var(--text);
}

.doc code {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.88em;
  padding: 1px 6px;
}

.updated {
  color: var(--text-soft);
  font-size: 14px;
  margin-top: 12px;
}

.table {
  border-collapse: collapse;
  font-size: 15px;
  margin-top: 18px;
  width: 100%;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px 10px 0;
  text-align: left;
  vertical-align: top;
}

.table th {
  color: var(--text);
  font-weight: 650;
}

.table td {
  color: var(--text-soft);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 28px;
  padding: 28px;
}

.panel h2 {
  font-size: 22px;
  margin-top: 0;
}

.steps [hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}
