/* Sections of the home pages. styles.css holds everything they share with
   the other pages. */

:root {
  --color-accent-tint: #e8f4ee;
  --color-accent-ink: #0c5c41;
  --color-accent-text: #2f4a3e;
  --color-card-border: #eceee9;
  --color-dark: #1d2420;
  --color-dark-card: #262e29;
  --color-dark-rule: #36403a;
  --color-dark-muted: #9aa59f;
  --color-dark-text: #c5cdc8;
  --color-dark-accent: #6ee7b7;
  --color-device: #161816;
}

html {
  scroll-behavior: smooth;
}

/* Keeps section headings clear of the sticky header when jumped to. */
section[id] {
  scroll-margin-top: 88px;
}

a {
  color: #12875f;
}

a:hover {
  color: #0c6a4a;
}

.home-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #eef0eb;
  background: rgba(240, 240, 240, 0.86);
  backdrop-filter: blur(12px);
}

.site-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(14px, 1.8vw, 28px);
  font-size: clamp(14px, 1.2vw, 15px);
  font-weight: 500;
  white-space: nowrap;
}

.site-nav a {
  color: var(--color-subtle);
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--color-accent-strong);
}

/* The page script highlights the link of the section in view. The padding
   keeps the links on the line of "Sign in" despite the underline. */
.site-nav .nav-sec {
  padding-top: 6px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.site-nav .nav-sec.is-active {
  border-bottom-color: var(--color-accent);
  color: var(--color-accent);
  font-weight: 700;
}

.site-nav .nav-cta {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
}

.site-nav .nav-cta:hover {
  background: var(--color-accent-strong);
  color: #fff;
}

.site-nav .lang-switch > a {
  color: var(--color-subtle);
  font-weight: 700;
}

/* Hero */

.section {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 28px 140px;
}

.hero {
  padding: 120px 28px 80px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 32px;
  padding: 5px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  font-size: 14px;
  font-weight: 600;
}

.hero-badge-lead {
  padding: 6px 0 6px 14px;
  color: var(--color-muted);
}

.hero-badge-arrow {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-accent-tint);
  color: var(--color-accent);
}

.hero-badge-claim {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: #fff;
}

.hero-title {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
  text-wrap: balance;
}

.hero-title em {
  color: var(--color-accent);
  font-style: normal;
}

.hero-lead {
  max-width: 620px;
  margin: 32px auto 0;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.6;
  color: var(--color-muted-strong);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 44px;
}

.big-button {
  padding: 17px 32px;
  border-radius: var(--radius-pill);
  font-size: 17px;
  font-weight: 600;
}

.big-button-primary {
  background: var(--color-accent);
  box-shadow: 0 8px 24px -8px rgba(5, 150, 105, 0.55);
  color: #fff;
}

.big-button-primary:hover {
  background: var(--color-accent-strong);
  color: #fff;
}

.big-button-secondary {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-ink);
}

.big-button-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-strong);
}

/* Screenshot stage: a laptop and a phone, light or dark */

.stage {
  padding: clamp(32px, 6vw, 80px) clamp(16px, 5vw, 72px) clamp(40px, 6vw, 88px);
  border-radius: 36px;
  background: linear-gradient(180deg, #e3f1ea 0%, var(--color-bg) 100%);
}

.devices {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding-right: clamp(40px, 9vw, 110px);
}

.laptop {
  position: relative;
}

.laptop-lid {
  padding: clamp(6px, 1.1vw, 14px) clamp(6px, 1.1vw, 14px)
    clamp(10px, 1.6vw, 20px);
  border-radius: clamp(10px, 1.6vw, 20px) clamp(10px, 1.6vw, 20px) 0 0;
  background: var(--color-device);
  box-shadow: 0 40px 80px -40px rgba(10, 50, 30, 0.5);
}

.laptop-screen {
  position: relative;
  aspect-ratio: 1344 / 896;
  overflow: hidden;
  border-radius: 4px;
  background: var(--color-device);
  isolation: isolate;
}

.laptop-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.012);
}

.laptop-base {
  position: relative;
  height: clamp(8px, 1.4vw, 16px);
  margin: 0 -6%;
  border-radius: 0 0 clamp(10px, 1.6vw, 18px) clamp(10px, 1.6vw, 18px);
  background: linear-gradient(180deg, #d9dcd9 0%, #b9bdb9 100%);
  box-shadow: 0 24px 40px -20px rgba(10, 50, 30, 0.45);
}

.laptop-base::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 16%;
  height: 40%;
  border-radius: 0 0 8px 8px;
  background: #a9ada9;
  transform: translateX(-50%);
}

.phone {
  position: absolute;
  right: 0;
  bottom: calc(-1 * clamp(20px, 4vw, 48px));
  width: clamp(110px, 24%, 230px);
  padding: clamp(4px, 0.8vw, 9px);
  border-radius: clamp(18px, 3.4vw, 38px);
  background: var(--color-device);
  box-shadow:
    0 40px 70px -24px rgba(10, 50, 30, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.phone-screen {
  position: relative;
  aspect-ratio: 750 / 1624;
  overflow: hidden;
  border-radius: clamp(14px, 2.7vw, 30px);
  background: var(--color-device);
  isolation: isolate;
  container-type: inline-size;
}

.phone-screen img {
  position: absolute;
  top: 11.8cqw;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: calc(100% - 11.8cqw);
  object-fit: cover;
}

.status-bar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 11.8cqw;
  padding: 0 8cqw 0 9cqw;
  background: var(--color-bg);
  color: #1d1d1d;
  font-family:
    -apple-system, "SF Pro Text", "Helvetica Neue", Helvetica, sans-serif;
  font-size: 4.4cqw;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.status-bar.theme-dark-layer {
  background: #323232;
  color: #fff;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 1.6cqw;
}

.status-signal {
  display: flex;
  align-items: flex-end;
  gap: 0.5cqw;
  height: 2.8cqw;
}

.status-signal span {
  width: 0.8cqw;
  border-radius: 0.2cqw;
  background: currentColor;
}

.status-signal span:nth-child(1) {
  height: 35%;
}

.status-signal span:nth-child(2) {
  height: 55%;
}

.status-signal span:nth-child(3) {
  height: 78%;
}

.status-signal span:nth-child(4) {
  height: 100%;
}

.status-wifi {
  width: 3.8cqw;
  height: 2.9cqw;
}

.status-battery {
  display: flex;
  align-items: center;
  gap: 0.3cqw;
}

.status-battery-body {
  width: 5.6cqw;
  height: 2.7cqw;
  padding: 0.3cqw;
  border: 0.3cqw solid currentColor;
  border-radius: 0.8cqw;
  opacity: 0.9;
}

.status-battery-body::after {
  content: "";
  display: block;
  width: 75%;
  height: 100%;
  border-radius: 0.3cqw;
  background: currentColor;
}

.status-battery-tip {
  width: 0.4cqw;
  height: 1cqw;
  border-radius: 0 0.3cqw 0.3cqw 0;
  background: currentColor;
  opacity: 0.5;
}

.home-indicator {
  position: absolute;
  bottom: 2.4cqw;
  left: 50%;
  width: 36cqw;
  height: 1.4cqw;
  border-radius: 1cqw;
  background: #1d1d1d;
  transform: translateX(-50%);
}

.home-indicator.theme-dark-layer {
  background: #fff;
}

/* The page script toggles show-dark on the body. */
.theme-dark-layer {
  opacity: 0;
  transition: opacity 0.45s ease;
}

.show-dark .theme-dark-layer {
  opacity: 1;
}

.theme-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  margin: clamp(56px, 7vw, 88px) auto 0;
  padding: 5px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  font-size: 14px;
  font-weight: 600;
}

/* Without JavaScript the switch would do nothing, so the script shows it. */
.theme-switch[hidden] {
  display: none;
}

.theme-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-subtle);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}

.theme-btn.is-on {
  background: var(--color-accent);
  color: #fff;
}

.show-dark .theme-btn.is-on {
  background: #1f2320;
}

.theme-dot {
  width: 10px;
  height: 10px;
  border: 1px solid #c9cdc9;
  border-radius: 50%;
  background: var(--color-bg);
}

.theme-dot-dark {
  border-color: #555;
  background: #333;
}

/* Section heads */

.section-head {
  max-width: 640px;
  margin-bottom: 72px;
}

.section-head .eyebrow {
  margin-bottom: 16px;
}

.section-title {
  margin: 0;
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: balance;
}

.section-lead {
  margin: 24px 0 0;
  font-size: clamp(17px, 1.8vw, 19px);
  line-height: 1.6;
  color: var(--color-muted-strong);
  text-wrap: pretty;
}

.text {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-muted-strong);
  text-wrap: pretty;
}

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-input);
  background: var(--color-accent-tint);
  color: var(--color-accent);
  font-size: 15px;
  font-weight: 700;
}

.steps .step-number {
  margin-bottom: 28px;
}

.steps h3 {
  margin: 0 0 12px;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Benefits and open source cards */

.section-spaced {
  padding-top: 140px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 40px;
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.feature-card h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature-card-accent {
  border-color: transparent;
  background: var(--color-accent-tint);
}

.feature-card-accent h3 {
  color: var(--color-accent-ink);
}

.feature-card-accent .text {
  color: var(--color-accent-text);
}

.feature-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}

.feature-card-foot a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0c6a4a;
  font-size: 16px;
  font-weight: 700;
}

.feature-card-foot svg {
  flex-shrink: 0;
  color: var(--color-accent);
}

.chip {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-accent-tint);
  color: var(--color-accent-ink);
  font-size: 14px;
  font-weight: 600;
}

.chip-dark {
  background: var(--color-dark);
  color: #fff;
}

/* Call to action */

.cta-band {
  padding: clamp(56px, 8vw, 110px) 32px;
  border-radius: 36px;
  background: var(--color-accent);
  color: #fff;
  text-align: center;
}

.cta-band h2 {
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}

.cta-band p {
  max-width: 520px;
  margin: 24px auto 0;
  font-size: 19px;
  line-height: 1.6;
  color: #e6f6ef;
}

.cta-band a {
  display: inline-block;
  margin-top: 40px;
  padding: 18px 36px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: #0c6a4a;
  font-size: 17px;
  font-weight: 700;
}

.cta-band a:hover {
  background: var(--color-accent-tint);
  color: #0c6a4a;
}

/* Privacy */

.dark-band {
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px);
  border-radius: 36px;
  background: var(--color-dark);
  color: #fff;
}

.dark-band .section-head {
  max-width: 700px;
  margin-bottom: 56px;
}

.dark-band .eyebrow {
  color: var(--color-dark-accent);
}

.dark-band .section-lead,
.dark-band .text {
  color: var(--color-dark-text);
}

.dark-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}

.dark-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 36px;
  border-radius: var(--radius-panel);
  background: var(--color-dark-card);
}

.dark-card h3 {
  margin: 0;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dark-card-label {
  margin: 0;
  color: var(--color-dark-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data-table {
  display: flex;
  flex-direction: column;
  margin: 12px 0 0;
  border-top: 1px solid var(--color-dark-rule);
  font-size: 15px;
}

.data-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-dark-rule);
}

.data-row:last-child {
  border-bottom: none;
}

.data-row dt {
  font-weight: 600;
}

.data-row dd {
  margin: 0;
  color: var(--color-dark-muted);
  font-weight: 600;
}

.data-row dd.is-encrypted {
  color: var(--color-dark-accent);
  font-weight: 700;
}

/* Roadmap */

.roadmap .section-head {
  margin-bottom: 64px;
}

.roadmap-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  border-top: 1px solid #e6e9e4;
  list-style: none;
}

.roadmap-item {
  display: grid;
  grid-template-columns: minmax(0, 56px) minmax(0, 1fr);
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid #e6e9e4;
}

.roadmap-item h3 {
  margin: 8px 0 10px;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.roadmap-item .text {
  max-width: 640px;
}

.price-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 48px;
  margin-top: 40px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-card);
  background: var(--color-accent-tint);
}

.price-box .eyebrow {
  margin-bottom: 10px;
}

.price-tag {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  color: var(--color-accent-ink);
}

.price-amount {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-unit {
  font-size: 16px;
  font-weight: 600;
}

.price-box .text {
  flex: 1 1 320px;
  max-width: 560px;
  color: var(--color-accent-text);
}

@media (max-width: 1040px) {
  .site-nav .nav-sec {
    display: none;
  }
}

/* Phones: logo, sign-in, sign-up and language switch stay on one line. */
@media (max-width: 600px) {
  .hero-badge-arrow {
    display: none;
  }

  .home-header .site-head {
    flex-wrap: nowrap;
    gap: 12px;
    padding: 12px 16px;
  }

  .site-nav {
    gap: 10px;
    min-width: 0;
    font-size: 14px;
  }

  .site-nav .nav-cta {
    padding: 9px 14px;
  }

  .site-nav .lang-switch {
    font-size: 12px;
  }

  .site-nav .lang-switch > * {
    padding: 4px 8px;
  }

  .hero {
    padding: 72px 20px 64px;
  }

  .hero-title {
    font-size: clamp(34px, 10vw, 44px);
    hyphens: auto;
    overflow-wrap: break-word;
  }

  .price-tag {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 359px) {
  .site-nav {
    gap: 8px;
    font-size: 13px;
  }

  .site-nav .nav-cta {
    padding: 8px 12px;
  }
}

.section-cta {
  padding-bottom: 120px;
}
