/* SafeShift website. Colours from docs/design/tokens.json. No web fonts, scripts or trackers. */
:root {
  --accent: #0f6b5c;
  --accent-dark: #0a4f44;
  --accent-tint: #e6f2ef;
  --background: #f6f7f5;
  --surface: #ffffff;
  --text: #14201b;
  --muted: #5b6560;
  --border: #d5dbd7;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

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

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

a {
  color: var(--accent-dark);
}

a:hover {
  color: var(--accent);
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.narrow {
  max-width: 720px;
}

header.site {
  padding: 20px 0;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 36px;
}

.brand strong {
  font-size: 20px;
}

.brand span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}

nav a {
  margin-left: 18px;
  font-weight: 600;
  text-decoration: none;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(32px, 6vw, 52px);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 19px;
}

p {
  margin: 0 0 14px;
}

.hero {
  padding-top: 48px;
  padding-bottom: 56px;
}

.hero .lead {
  font-size: clamp(18px, 2.6vw, 21px);
  color: var(--muted);
  max-width: 640px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--accent);
}

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

.button.primary:hover {
  background: var(--accent-dark);
  color: #ffffff;
}

.button.secondary {
  background: var(--surface);
  color: var(--accent-dark);
}

.beta-offer {
  margin: 20px 0 8px;
  padding: 12px 16px;
  max-width: 640px;
  background: var(--accent-tint);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
}

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

section {
  padding: 48px 0;
}

section.alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

section.alt .card {
  background: var(--background);
}

.card p {
  margin: 0;
  color: var(--muted);
}

.price {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0 16px;
}

.price .card strong {
  display: block;
  font-size: 30px;
  color: var(--text);
}

.price .card.best {
  border: 2px solid var(--accent);
  background: var(--accent-tint);
}

ul.ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

ul.ticks li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 8px;
}

ul.ticks li::before {
  content: '✓';
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: 700;
}

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
}

summary {
  font-weight: 600;
  cursor: pointer;
}

details p {
  margin: 10px 0 0;
}

footer.site {
  padding: 32px 0 48px;
  font-size: 14px;
  color: var(--muted);
}

footer.site .links a {
  margin-right: 18px;
}

/* Screenshots */
img.phone {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--background);
  box-shadow: 0 12px 32px rgba(20, 32, 27, 0.12);
}

.hero {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero-phone {
  max-width: 280px;
  justify-self: center;
}

@media (min-width: 800px) {
  .hero {
    grid-template-columns: 1fr 300px;
  }

  .hero-phone {
    max-width: none;
  }
}

/* A row that scrolls sideways on phones; a grid from tablet width. */
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(240px, 72vw);
  gap: 20px;
  margin: 24px -20px 0;
  padding: 4px 20px 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 20px;
}

.gallery figure {
  margin: 0;
  scroll-snap-align: start;
}

.gallery figcaption {
  margin-top: 14px;
  font-size: 15px;
  color: var(--muted);
}

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

@media (min-width: 800px) {
  .gallery {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 32px;
    margin: 32px 0 0;
    padding: 0;
    overflow: visible;
  }
}

.diary {
  display: grid;
  gap: 32px;
  align-items: center;
}

img.page {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  justify-self: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(20, 32, 27, 0.12);
}

@media (min-width: 800px) {
  .diary {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

/* Privacy policy */
.policy {
  padding: 24px 0 48px;
}

.policy h2 {
  font-size: 22px;
  margin-top: 36px;
}

.policy h3 {
  margin-top: 22px;
}

.policy .summary {
  background: var(--accent-tint);
  border-radius: var(--radius);
  padding: 20px;
  margin: 20px 0;
}

.policy table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 15px;
}

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

.policy .table-scroll {
  overflow-x: auto;
}

@media (max-width: 560px) {
  nav a {
    margin-left: 12px;
  }

  .brand span {
    display: none;
  }
}
