/* The Kept. website. Same colours and typeface as the app (see src/app/globals.css). */
:root {
  color-scheme: light;
  --page: #eceef1;
  --background: #eef0f3;
  --foreground: #0a0b0d;
  --surface: #ffffff;
  --border: #d3d7de;
  --muted: #5b6472;
  --brand: #166534;
  --brand-deep: #14532d;
  --brand-foreground: #ffffff;
  --brand-soft: #dcfce7;
  --brand-accent: #f59e0b;
  --radius: 16px;
  --gutter: 24px;
}

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

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--foreground);
  font-family: "Tinos", "Times New Roman", Georgia, serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

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

h1,
h2,
h3,
.section-intro {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.full-stop {
  color: var(--brand-accent);
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.button-light {
  background: var(--surface);
  color: var(--brand);
}

.button-light:hover {
  background: var(--brand-soft);
}

.button-brand {
  background: var(--brand);
  color: var(--brand-foreground);
}

.button-brand:hover {
  background: var(--brand-deep);
}

.button-outline {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--brand-foreground);
}

.button-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.button:focus-visible,
.text-link:focus-visible,
.footer-links a:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 3px;
}

/* Header and hero, on the brand green */

.hero {
  background: var(--brand);
  color: var(--brand-foreground);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-decoration: none;
}

.brand-logo {
  height: 34px;
  width: auto;
}

.brand-byline {
  font-size: 13px;
  color: var(--brand-soft);
}

.hero-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 88px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-accent);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25);
}

.hero-title {
  margin-top: 24px;
  font-size: 60px;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.hero-lede {
  margin-top: 20px;
  max-width: 34em;
  font-size: 19px;
  color: var(--brand-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 32px;
}

.text-link {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 4px;
}

.text-link:hover {
  text-decoration-color: currentColor;
}

/* The example conversation, styled like the app's inbox */

.preview {
  margin: 0;
  width: 100%;
  max-width: 440px;
  justify-self: center;
}

.preview-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--foreground);
  font-size: 15px;
  line-height: 1.45;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.preview-head,
.preview-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
}

.preview-head {
  border-bottom: 1px solid var(--border);
}

.preview-foot {
  justify-content: space-between;
  border-top: 1px solid var(--border);
}

.preview-foot-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.missed-call {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  color: var(--brand-accent);
}

.missed-call .icon {
  width: 17px;
  height: 17px;
}

.preview-strong {
  font-weight: 700;
}

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

.messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.message-business {
  align-items: flex-end;
}

.bubble {
  max-width: 85%;
  padding: 9px 15px;
  border-radius: 18px;
  background: var(--background);
}

.message-business .bubble {
  background: var(--brand);
  color: var(--brand-foreground);
}

.message-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.confirm-chip {
  flex-shrink: 0;
  padding: 6px 13px;
  border-radius: 8px;
  background: var(--brand);
  color: var(--brand-foreground);
  font-weight: 700;
  font-size: 14px;
}

.calendar {
  color: var(--brand);
}

.preview-caption {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  color: var(--brand-soft);
}

/* Sections */

.section {
  padding: 96px 0;
}

.section-grey {
  background: var(--page);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.section-title {
  margin-top: 10px;
  font-size: 40px;
  line-height: 1.15;
}

.section-intro {
  margin-top: 14px;
  font-size: 18px;
  color: var(--muted);
}

/* How it works: each step beside the part of Kept where it happens */

.steps {
  display: flex;
  flex-direction: column;
  gap: 88px;
}

.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.step-number {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand);
}

.step-number::after {
  content: "";
  width: 40px;
  height: 2px;
  background: currentColor;
}

.step-title {
  margin-top: 16px;
  font-size: 32px;
  line-height: 1.2;
}

.step-text {
  margin-top: 14px;
  max-width: 30em;
  font-size: 18px;
  color: var(--muted);
}

.step-visual {
  margin: 0;
  width: 100%;
  max-width: 520px;
}

/* Pieces of the Kept app, drawn with the app's own styles */

.app-panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(10, 11, 13, 0.05), 0 18px 40px -18px rgba(10, 11, 13, 0.22);
  font-size: 14px;
  line-height: 1.45;
}

.app-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.app-panel-title {
  font-size: 16px;
  font-weight: 700;
}

.app-panel-meta {
  font-size: 13px;
  color: var(--muted);
}

.app-strong {
  font-weight: 700;
  color: var(--foreground);
}

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

.app-normal {
  font-weight: 400;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 2px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--background);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.app-badge-attention {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
}

.app-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.app-table th {
  padding: 8px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--background);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.app-table td {
  padding: 11px 18px;
}

.app-table tbody tr + tr td {
  border-top: 1px solid var(--border);
}

.app-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-list li {
  padding: 12px 18px;
}

.app-list li + li {
  border-top: 1px solid var(--border);
}

.app-list-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.app-list-preview {
  margin-top: 2px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  color: var(--muted);
}

.app-list-time {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.res-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 14px 18px;
}

.res-row + .res-row {
  border-top: 1px solid var(--border);
}

/* Wide enough that the buttons drop below it on phones, as in the app. */
.res-info {
  flex: 1 1 200px;
  min-width: 0;
}

.res-actions {
  display: flex;
  gap: 8px;
}

.app-button {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 700;
}

.app-button-primary {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--brand-foreground);
}

/* Who it's for */

.audience {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

.industries {
  border-top: 1px solid var(--border);
}

.industry {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.industry-title {
  font-size: 24px;
  line-height: 1.25;
}

.industry-text {
  margin-top: 6px;
  color: var(--muted);
}

.industry-example {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.industry-example .bubble {
  max-width: 100%;
  font-size: 15px;
  line-height: 1.45;
}

/* Early access */

.signup {
  padding: 56px;
  border-radius: 24px;
  background: var(--brand);
  color: var(--brand-foreground);
  text-align: center;
}

.signup .section-title {
  margin-top: 0;
}

.signup .section-intro {
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
  color: var(--brand-soft);
}

.signup-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 820px;
  margin: 28px auto 0;
  text-align: left;
}

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

.field label {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-foreground);
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--surface);
  color: var(--foreground);
  font: inherit;
  font-size: 16px;
}

.field input:focus-visible,
.field select:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 2px;
}

/* A box people never see; bots fill it in. */
.field-hidden {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.signup-form .button {
  grid-column: 1 / -1;
  justify-self: center;
  min-width: 240px;
  margin-top: 8px;
}

.signup-status {
  grid-column: 1 / -1;
  min-height: 1.6em;
  margin: 0;
  text-align: center;
  font-weight: 700;
}

.signup-note {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
  font-size: 14px;
  color: var(--brand-soft);
}

.signup-note a,
.signup-status a {
  color: inherit;
}

/* Footer */

.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-size: 15px;
  color: var(--muted);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-logo {
  height: 26px;
  width: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  text-decoration: none;
  color: var(--foreground);
}

.footer-links a:hover {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Privacy policy and terms */

.page-header {
  background: var(--brand);
}

.page-header .site-header {
  padding-top: 20px;
  padding-bottom: 20px;
}

.document {
  max-width: 760px;
  padding-top: 64px;
  padding-bottom: 96px;
}

.document h1 {
  font-size: 44px;
  line-height: 1.15;
}

.document .updated {
  margin-top: 10px;
  color: var(--muted);
}

.document h2 {
  margin-top: 44px;
  font-size: 26px;
  line-height: 1.25;
}

.document p,
.document ul {
  margin-top: 14px;
}

.document ul {
  padding-left: 22px;
}

.document li + li {
  margin-top: 6px;
}

.document a {
  color: var(--brand);
  text-underline-offset: 3px;
}

/* Wider screens */

@media (min-width: 900px) {
  .step {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
  }

  .step .step-visual {
    justify-self: end;
  }

  .step-reverse .step-copy {
    order: 2;
  }

  .step-reverse .step-visual {
    justify-self: start;
  }

  .audience {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 80px;
    align-items: start;
  }

  /* The heading stays in view beside the longer list of industries. */
  .audience-head {
    position: sticky;
    top: 40px;
  }

  .industry {
    grid-template-columns: minmax(0, 1fr) minmax(0, 250px);
    gap: 32px;
    align-items: center;
  }
}

@media (min-width: 960px) {
  .hero-body {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    padding-top: 56px;
    padding-bottom: 112px;
  }

  .preview {
    justify-self: end;
  }
}

/* Phones */

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 16px;
  }

  .brand-logo {
    height: 28px;
  }

  .brand-byline {
    font-size: 12px;
  }

  /* The hero's own button is right below. */
  .header-cta {
    display: none;
  }

  .hero-body {
    gap: 40px;
    padding-top: 24px;
    padding-bottom: 64px;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-lede {
    font-size: 17px;
  }

  .hero-actions .button-light {
    width: 100%;
  }

  .section {
    padding: 64px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .section-title {
    font-size: 30px;
  }

  .section-intro {
    font-size: 17px;
  }

  .steps {
    gap: 56px;
  }

  .step {
    gap: 24px;
  }

  .step-title {
    font-size: 26px;
  }

  .step-text {
    font-size: 17px;
  }

  .app-panel-head,
  .app-list li,
  .res-row {
    padding-left: 14px;
    padding-right: 14px;
  }

  .app-table th,
  .app-table td {
    padding-left: 14px;
    padding-right: 14px;
  }

  /* Like the app, phones skip the Source column. */
  .hide-narrow {
    display: none;
  }

  .industry {
    padding: 24px 0;
  }

  .industry-title {
    font-size: 22px;
  }

  .signup {
    padding: 36px 20px;
    border-radius: 20px;
  }

  .signup .button {
    width: 100%;
  }

  .signup-form {
    grid-template-columns: 1fr;
  }

  .signup-form .button {
    min-width: 0;
  }

  .preview-card {
    font-size: 14px;
  }

  .preview-head,
  .preview-foot {
    padding: 12px 14px;
  }

  .messages {
    padding: 14px;
  }

  .document {
    padding-top: 40px;
    padding-bottom: 64px;
  }

  .document h1 {
    font-size: 34px;
  }

  .document h2 {
    font-size: 23px;
  }
}

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