/* The Seventh District pages (product, privacy, terms and support): a 1965 district at dusk.
   Night indigo from the app icon, lamplight amber, case-file paper and typewritten records. */

body.sd-product {
  --sd-night: #0d0e1c;
  --sd-night-2: #15163a;
  --sd-indigo: #23215c;
  --sd-indigo-soft: #2e2b74;
  --sd-lavender: #c8cbf4;
  --sd-amber: #f2b33d;
  --sd-amber-deep: #e2852c;
  --sd-teal: #3db8a3;
  --sd-red: #e0524d;
  --sd-blue: #4d80e0;
  --sd-green: #5cb86b;
  --sd-paper: #efe7d5;
  --sd-paper-edge: #ddd1b6;
  --sd-ink: #24201a;
  --sd-text: #ecebf7;
  --sd-muted: #b4b5d6;
  --sd-line: rgba(200, 203, 244, 0.16);
  --sd-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sd-type: "Courier Prime", "Courier New", ui-monospace, monospace;
  --font-display: var(--sd-serif);
  background: var(--sd-night);
}

body.sd-product main {
  color: var(--sd-text);
  background:
    radial-gradient(circle at 78% 6%, rgba(242, 179, 61, 0.16), transparent 30rem),
    radial-gradient(circle at 6% 30%, rgba(77, 128, 224, 0.14), transparent 34rem),
    linear-gradient(180deg, var(--sd-night) 0%, var(--sd-night-2) 46%, var(--sd-night) 100%);
  overflow-x: clip;
}

.sd-wrap {
  width: min(100% - 32px, 1180px);
  margin-inline: auto;
}

/* Hero */

.sd-hero {
  position: relative;
  padding: clamp(40px, 7vw, 88px) 0 28px;
}

.sd-hero::before {
  /* Street grid seen from above, fading out towards the copy. */
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(60deg, transparent 0 46px, rgba(200, 203, 244, 0.05) 46px 47px),
    repeating-linear-gradient(-60deg, transparent 0 46px, rgba(200, 203, 244, 0.05) 46px 47px);
  mask-image: radial-gradient(ellipse at 75% 40%, #000 0%, transparent 70%);
  pointer-events: none;
}

.sd-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.sd-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: var(--sd-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.sd-kicker img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.sd-wordmark {
  margin: 0;
  font-family: var(--sd-serif);
  font-size: clamp(3rem, 8vw, 5.6rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--sd-text);
}

.sd-wordmark small {
  display: block;
  margin-bottom: 14px;
  color: var(--sd-amber);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.5em;
}

.sd-doc .sd-wordmark {
  font-size: clamp(2.6rem, 6.4vw, 4.4rem);
}

.sd-tagline {
  margin: 26px 0 10px;
  font-family: var(--sd-serif);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-style: italic;
  color: var(--sd-amber);
}

.sd-lead {
  max-width: 34rem;
  margin: 0;
  color: var(--sd-muted);
  font-size: 1.08rem;
}

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

.sd-pill,
.sd-button,
.sd-button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.sd-pill {
  color: var(--sd-night);
  background: var(--sd-amber);
  box-shadow: 0 10px 30px rgba(242, 179, 61, 0.25);
}

.sd-button {
  color: var(--sd-night);
  background: var(--sd-amber);
}

.sd-button-ghost {
  color: var(--sd-text);
  border: 1px solid var(--sd-line);
  background: rgba(255, 255, 255, 0.04);
}

.sd-button:hover,
.sd-button:focus-visible {
  background: #f7c766;
}

.sd-button-ghost:hover,
.sd-button-ghost:focus-visible {
  border-color: var(--sd-amber);
  color: var(--sd-amber);
}

.sd-hero-art {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.sd-glow {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 179, 61, 0.28), rgba(242, 179, 61, 0) 65%);
  filter: blur(8px);
}

.sd-phone {
  position: relative;
  margin: 0;
  width: min(300px, 70vw);
  padding: 10px;
  border-radius: 46px;
  background: linear-gradient(160deg, #3a3a52, #121220);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 30px 70px rgba(0, 0, 0, 0.55);
}

.sd-phone img {
  width: 100%;
  height: auto;
  border-radius: 37px;
}

.sd-hero-art .sd-phone {
  transform: rotate(3deg);
}

/* The case-file card that sits over the hero phone. */
.sd-casecard {
  position: absolute;
  left: max(-10px, 2%);
  bottom: 26px;
  width: min(270px, 62vw);
  padding: 18px 18px 16px;
  color: var(--sd-ink);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.03), transparent 30%),
    var(--sd-paper);
  border: 1px solid var(--sd-paper-edge);
  border-radius: 4px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  transform: rotate(-4deg);
  font-family: var(--sd-type);
  font-size: 0.86rem;
  line-height: 1.45;
}

.sd-casecard::before {
  /* A paperclip. */
  content: "";
  position: absolute;
  top: -14px;
  right: 30px;
  width: 16px;
  height: 40px;
  border: 3px solid #9aa0b0;
  border-radius: 10px;
}

.sd-casecard p {
  margin: 0;
}

.sd-casecard .sd-stamp {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 8px;
  border: 2px solid var(--sd-red);
  color: var(--sd-red);
  font-weight: 700;
  letter-spacing: 0.12em;
  transform: rotate(-2deg);
}

.sd-casecard strong {
  display: block;
  margin: 6px 0;
  font-family: var(--sd-serif);
  font-size: 1.12rem;
}

/* Page tabs */

.sd-tabs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(32px, 5vw, 56px);
  padding: 8px;
  border: 1px solid var(--sd-line);
  border-radius: 999px;
  background: rgba(13, 14, 28, 0.6);
  backdrop-filter: blur(10px);
  width: fit-content;
  max-width: 100%;
}

.sd-tabs a {
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--sd-muted);
  font-weight: 700;
  text-decoration: none;
}

.sd-tabs a:hover,
.sd-tabs a:focus-visible {
  color: var(--sd-text);
}

.sd-tabs a[aria-current="page"] {
  color: var(--sd-night);
  background: var(--sd-amber);
}

/* Sections */

.sd-section {
  padding: clamp(56px, 8vw, 104px) 0;
}

.sd-band {
  background: linear-gradient(180deg, rgba(35, 33, 92, 0.35), rgba(35, 33, 92, 0.15));
  border-block: 1px solid var(--sd-line);
}

.sd-eyebrow {
  margin: 0 0 12px;
  color: var(--sd-amber);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.sd-section h2,
.sd-heading h2 {
  margin: 0 0 16px;
  font-family: var(--sd-serif);
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--sd-text);
}

.sd-section h3 {
  margin: 0 0 8px;
  font-family: var(--sd-serif);
  font-size: 1.35rem;
  color: var(--sd-text);
}

.sd-section p,
.sd-section li {
  color: var(--sd-muted);
}

.sd-heading {
  max-width: 46rem;
  margin-bottom: 40px;
}

.sd-heading p {
  font-size: 1.08rem;
}

.sd-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sd-steps li {
  padding: 24px;
  border: 1px solid var(--sd-line);
  border-radius: 18px;
  background: rgba(13, 14, 28, 0.55);
}

.sd-numeral {
  display: block;
  margin-bottom: 14px;
  color: var(--sd-amber);
  font-family: var(--sd-serif);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.sd-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.sd-feature-reverse .sd-feature-copy {
  order: 2;
}

.sd-points {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.sd-points li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 26px;
}

.sd-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--sd-amber);
  transform: rotate(45deg);
}

.sd-phones {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2.5vw, 24px);
}

.sd-phones .sd-phone {
  width: min(260px, 42vw);
  padding: 8px;
  border-radius: 40px;
}

.sd-phones .sd-phone img {
  border-radius: 32px;
}

.sd-phones .sd-phone:nth-child(2) {
  margin-top: 56px;
}

.sd-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 3px solid var(--sd-amber);
  border-radius: 0 10px 10px 0;
  background: rgba(242, 179, 61, 0.08);
  font-size: 0.95rem;
}

/* Who owns the Seventh: the grid shares bar. */
.sd-shares {
  margin: 26px 0 8px;
}

.sd-shares-bar {
  display: flex;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.sd-shares-bar span:nth-child(1) { width: 60%; background: var(--sd-blue); }
.sd-shares-bar span:nth-child(2) { width: 25%; background: var(--sd-amber-deep); }
.sd-shares-bar span:nth-child(3) { width: 15%; background: var(--sd-green); }

.sd-shares-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
}

.sd-shares-legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sd-text);
}

.sd-shares-legend li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot);
}

/* Hours and packs */

.sd-plans {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.sd-plan {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--sd-line);
  border-radius: 18px;
  background: rgba(13, 14, 28, 0.55);
}

.sd-plan-free {
  border-color: rgba(61, 184, 163, 0.45);
  background: linear-gradient(160deg, rgba(61, 184, 163, 0.16), rgba(13, 14, 28, 0.6));
}

.sd-plan .sd-price {
  margin: 4px 0 8px;
  color: var(--sd-text);
  font-family: var(--sd-serif);
  font-size: 2rem;
  font-weight: 800;
}

.sd-plan-free .sd-price {
  color: var(--sd-teal);
}

.sd-plan p {
  margin: 0;
}

.sd-fineprint {
  margin-top: 22px;
  color: var(--sd-muted);
  font-size: 0.92rem;
}

/* Privacy cards */

.sd-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.sd-cards article {
  padding: 24px;
  border: 1px solid var(--sd-line);
  border-radius: 18px;
  background: rgba(13, 14, 28, 0.55);
}

.sd-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 12px;
  color: var(--sd-night);
  background: var(--sd-amber);
  font-size: 1.3rem;
  font-weight: 800;
}

.sd-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* Closing card */

.sd-closing {
  padding: 0 0 clamp(64px, 9vw, 112px);
}

.sd-closing-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: clamp(36px, 6vw, 64px) 24px;
  border: 1px solid var(--sd-line);
  border-radius: 28px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(242, 179, 61, 0.22), transparent 70%),
    linear-gradient(180deg, var(--sd-indigo), var(--sd-night-2));
}

.sd-closing-card img {
  width: 96px;
  height: 96px;
  margin-bottom: 10px;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.sd-closing-card h2 {
  margin: 0;
}

.sd-closing-card p {
  margin: 0;
}

/* Policy pages */

.sd-doc-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.sd-toc {
  position: sticky;
  top: calc(var(--site-header-height, 76px) + 16px);
  padding: 18px;
  border: 1px solid var(--sd-line);
  border-radius: 18px;
  background: rgba(13, 14, 28, 0.7);
}

.sd-toc summary {
  color: var(--sd-amber);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}

.sd-toc ol {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.sd-toc a {
  display: flex;
  gap: 10px;
  padding: 6px 4px;
  color: var(--sd-muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.sd-toc a span {
  min-width: 1.6em;
  color: var(--sd-amber);
  font-weight: 700;
}

.sd-toc a:hover,
.sd-toc a:focus-visible {
  color: var(--sd-text);
}

/* The policy text itself is set on case-file paper. */
.sd-sheet {
  padding: clamp(24px, 4.5vw, 56px);
  color: var(--sd-ink);
  background: var(--sd-paper);
  border: 1px solid var(--sd-paper-edge);
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.sd-sheet h2 {
  margin: 0 0 12px;
  color: var(--sd-ink);
  font-family: var(--sd-serif);
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  line-height: 1.15;
}

.sd-sheet .sd-meta {
  margin: 0 0 24px;
  color: #6a604f;
  font-family: var(--sd-type);
  font-size: 0.92rem;
}

.sd-sheet h3 {
  margin: 34px 0 10px;
  padding-top: 18px;
  border-top: 1px dashed #c4b799;
  color: var(--sd-ink);
  font-family: var(--sd-serif);
  font-size: 1.3rem;
  scroll-margin-top: calc(var(--site-header-height, 76px) + 16px);
}

.sd-sheet h4 {
  margin: 20px 0 6px;
  color: var(--sd-ink);
  font-size: 1.02rem;
}

.sd-sheet p,
.sd-sheet li,
.sd-sheet td,
.sd-sheet th {
  color: #3a342a;
}

.sd-sheet a {
  color: #8a4a06;
  font-weight: 600;
}

.sd-sheet ul {
  padding-left: 1.2em;
}

.sd-sheet li {
  margin-bottom: 6px;
}

.sd-table-wrap {
  overflow-x: auto;
  margin: 14px 0;
}

.sd-sheet table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.sd-sheet th,
.sd-sheet td {
  padding: 10px 12px;
  border-bottom: 1px solid #d3c6a8;
  text-align: left;
  vertical-align: top;
}

.sd-sheet th {
  color: var(--sd-ink);
  font-family: var(--sd-type);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sd-faq details {
  border-bottom: 1px dashed #c4b799;
}

.sd-faq summary {
  padding: 16px 0;
  color: var(--sd-ink);
  font-family: var(--sd-serif);
  font-size: 1.12rem;
  font-weight: 700;
  cursor: pointer;
}

.sd-faq details > div {
  padding-bottom: 14px;
}

.sd-contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.sd-contact div {
  padding: 16px;
  border: 1px solid #d3c6a8;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.35);
}

.sd-contact strong {
  display: block;
  color: var(--sd-ink);
}

/* Header and footer on these pages */

body.sd-product .site-header {
  background: rgba(13, 14, 28, 0.85);
}

body.sd-product .site-footer {
  background: var(--sd-night);
}

body.sd-product .footer-grid a {
  color: var(--sd-amber);
}

@media (max-width: 960px) {
  .sd-hero-grid,
  .sd-feature,
  .sd-doc-layout {
    grid-template-columns: 1fr;
  }

  .sd-feature-reverse .sd-feature-copy {
    order: 0;
  }

  .sd-hero-art {
    min-height: 520px;
  }

  .sd-steps,
  .sd-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sd-plans {
    grid-template-columns: 1fr 1fr;
  }

  .sd-plan-free {
    grid-column: 1 / -1;
  }

  .sd-toc {
    position: static;
  }

  .sd-contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .sd-steps,
  .sd-cards,
  .sd-plans {
    grid-template-columns: 1fr;
  }

  .sd-hero-art {
    min-height: 470px;
  }

  .sd-casecard {
    left: 0;
    bottom: 8px;
    width: 220px;
    font-size: 0.78rem;
  }

  .sd-phones .sd-phone:nth-child(2) {
    margin-top: 32px;
  }

  .sd-tabs {
    border-radius: 18px;
  }

  .sd-tabs a {
    padding: 8px 12px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .sd-hero-art .sd-phone {
    animation: sd-float 7s ease-in-out infinite;
  }

  @keyframes sd-float {
    0%, 100% { transform: rotate(3deg) translateY(0); }
    50% { transform: rotate(3deg) translateY(-10px); }
  }
}
