/* Unstung site: the app's v2 design system. Tokens from design/landing-v3/unstung-landing.html. */

@font-face {
  font-family: "Familjen Grotesk";
  src: url("/fonts/FamiljenGrotesk-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Familjen Grotesk";
  src: url("/fonts/FamiljenGrotesk-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Familjen Grotesk";
  src: url("/fonts/FamiljenGrotesk-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Familjen Grotesk";
  src: url("/fonts/FamiljenGrotesk-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Familjen Grotesk";
  src: url("/fonts/FamiljenGrotesk-BoldItalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --surface: #f6f7f3;
  --raised: #ffffff;
  --sunken: #eef1ea;
  --ink: #0e2a22;
  --muted: #4c6a5a;
  --faint: #8a9a90;
  --hair: rgba(14, 42, 34, 0.1);
  --accent: #ffc84a;
  --on-accent: #0e2a22;
  --accent-text: #9a6b00;
  --tint: #dce8d6;
  --ink-surface: #0a1f19;
  --ink-raised: #182720;
  --ink-ink: #eef2ec;
  --ink-muted: rgba(238, 242, 236, 0.65);
  --ink-hair: rgba(255, 255, 255, 0.12);
  --sky: linear-gradient(180deg, #0a1f19 0%, #1e4a3a 55%, #4a7a62 100%);
  --display: "Familjen Grotesk", -apple-system, system-ui, sans-serif;
  --text: "Familjen Grotesk", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --r: 12px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #0f1613;
    --raised: #182720;
    --sunken: #0a1f19;
    --ink: #eef2ec;
    --muted: rgba(238, 242, 236, 0.72);
    --faint: rgba(238, 242, 236, 0.55);
    --hair: rgba(255, 255, 255, 0.12);
    --accent-text: #ffd67a;
    --tint: #223329;
  }
}

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

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: var(--r);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--on-accent);
}

.btn:hover {
  background: #ffd36b;
}

.num {
  font-family: var(--display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hidden {
  display: none;
}

/* Header. On the landing page it sits over the hero photo; elsewhere on the sky. */
.top {
  color: var(--ink-ink);
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.landing .top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.brand svg {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: block;
  flex: none;
}

.nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
}

.nav a {
  text-decoration: none;
  color: rgba(238, 242, 236, 0.8);
  padding: 8px 0;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: #fff;
}

/* Hero: the door photo, the scrim, the copy and the app screenshots */
.hero {
  position: relative;
  background: #0a1f19;
  color: var(--ink-ink);
  overflow: hidden;
}

.hero .photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(0.95);
}

.hero .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 31, 25, 0.45) 0%, rgba(10, 31, 25, 0.2) 35%, rgba(10, 31, 25, 0.85) 72%, #0a1f19 100%);
}

.hero .wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-top: 120px;
  padding-bottom: 56px;
  align-items: end;
}

.hero h1 {
  font-size: clamp(44px, 7vw, 84px);
  color: var(--ink-ink);
  max-width: 12ch;
}

.hero .sub {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.45;
  color: rgba(238, 242, 236, 0.85);
  max-width: 46ch;
  margin-top: 22px;
}

.hero .cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 30px;
}

.hero .fine {
  font-size: 14px;
  color: rgba(238, 242, 236, 0.75);
}

.hero .copy {
  padding-bottom: 64px;
}

@media (min-width: 880px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 48px;
    padding-top: 150px;
  }
  .hero .copy {
    padding-bottom: 110px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero .copy,
  .hero .shots {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero .shots {
    animation-delay: 0.15s;
  }
  @keyframes rise {
    from {
      opacity: 0.001;
      transform: translateY(18px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* App screenshots: real captures from stung-ios docs/screenshots, frame included, never retouched */
.shots {
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 560px;
}

.shots-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.shots-row::-webkit-scrollbar {
  display: none;
}

/* The two captures share one frame size but different margins; the clip hides each capture's white
   background without touching the pixels, and the widths keep the frames at the same scale. */
.shots-row picture {
  flex: 0 0 auto;
  scroll-snap-align: center;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.4));
}

.shots-row .shot-overview {
  width: min(78%, 326px);
}

.shots-row .shot-renewals {
  width: min(71.8%, 300px);
}

.shots-row img {
  width: 100%;
  height: auto;
}

.shot-overview img {
  clip-path: inset(0.13% 5.6% 0.86% 2.9% round 18% / 8.7%);
}

.shot-renewals img {
  clip-path: inset(0 0.55% 0.47% 0.14% round 18% / 8.7%);
}

.shots figcaption {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(238, 242, 236, 0.65);
  text-align: center;
}

@media (min-width: 880px) {
  .shots {
    justify-self: end;
    max-width: none;
  }
  .shots-row {
    overflow: visible;
    justify-content: flex-end;
  }
  .shots-row .shot-overview {
    width: 261px;
  }
  .shots-row .shot-renewals {
    width: 240px;
  }
}

/* Window chart */
.windows {
  padding: 88px 0 72px;
}

.windows .head {
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin-bottom: 44px;
}

.windows h2 {
  font-size: clamp(34px, 4.6vw, 56px);
}

.windows .lede {
  font-size: 19px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 52ch;
}

.chart {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--hair);
}

.chart .r {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 92px;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--hair);
}

.chart .t {
  font-weight: 600;
  font-size: 15px;
}

.chart .t small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
}

.chart .track {
  position: relative;
  height: 34px;
  background: linear-gradient(90deg, transparent 0 calc(100% - 1px), var(--ink) calc(100% - 1px));
}

.chart .track::before {
  content: "";
  position: absolute;
  inset: 16px 0 auto 0;
  height: 1px;
  background: var(--hair);
}

.chart .bar {
  position: absolute;
  top: 5px;
  bottom: 5px;
  right: 0;
  border-radius: 6px 0 0 6px;
  background: var(--accent);
}

.chart .bar.mid {
  background: var(--tint);
}

/* Bar widths: days before renewal over the 180-day axis */
.chart .d-180 { width: 100%; }
.chart .d-49 { width: 27.2%; }
.chart .d-30 { width: 16.7%; }
.chart .d-24 { width: 13.3%; }
.chart .d-21 { width: 11.7%; }

.chart .d {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.chart .d small {
  display: block;
  font-family: var(--text);
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
}

.windows .axis {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 92px;
  gap: 14px;
  padding-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.windows .axis .ticks {
  display: flex;
  justify-content: space-between;
  white-space: nowrap;
}

.windows .axis .ticks span:last-child {
  font-weight: 600;
  color: var(--ink);
}

.fn {
  font-size: 13px;
  color: var(--muted);
  margin-top: 22px;
  max-width: 70ch;
}

@media (max-width: 640px) {
  .chart .r,
  .windows .axis {
    grid-template-columns: 104px minmax(0, 1fr) 64px;
    gap: 10px;
  }
  .chart .t {
    font-size: 14px;
  }
  .chart .d {
    font-size: 17px;
  }
  .windows .axis .ticks span:nth-child(2) {
    display: none;
  }
}

/* Pillars */
.pillars {
  padding: 24px 0 96px;
}

.pillars .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 880px) {
  .pillars .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pillar {
  border: 1px solid var(--hair);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--raised);
  display: flex;
  flex-direction: column;
}

.pillar .img {
  aspect-ratio: 4 / 3;
  background: #6a5f54;
  position: relative;
  overflow: hidden;
}

.pillar .img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pillar .frag {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: #0e2a22;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.35;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.pillar .frag .k {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4c6a5a;
  margin-bottom: 4px;
}

.pillar .frag q {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  quotes: "\201C" "\201D";
}

.pillar .frag .tally {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.pillar .frag .tally .k {
  margin: 0;
}

.pillar .frag .tally b {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  color: #9a6b00;
}

.pillar .frag .bars {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 22px;
  margin-top: 8px;
}

.pillar .frag .bars i {
  flex: 1;
  background: #eef1ea;
  border-radius: 2px 2px 0 0;
}

.pillar .frag .bars i.on {
  background: #ffc84a;
}

.pillar .frag .bars i:nth-child(1) { height: 30%; }
.pillar .frag .bars i:nth-child(2) { height: 45%; }
.pillar .frag .bars i:nth-child(3) { height: 100%; }
.pillar .frag .bars i:nth-child(4) { height: 20%; }
.pillar .frag .bars i:nth-child(5) { height: 38%; }
.pillar .frag .bars i:nth-child(6) { height: 70%; }
.pillar .frag .bars i:nth-child(7) { height: 15%; }
.pillar .frag .bars i:nth-child(8) { height: 25%; }
.pillar .frag .bars i:nth-child(9) { height: 40%; }
.pillar .frag .bars i:nth-child(10) { height: 85%; }
.pillar .frag .bars i:nth-child(11) { height: 22%; }
.pillar .frag .bars i:nth-child(12) { height: 30%; }

.pillar .txt {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pillar h3 {
  font-size: 30px;
}

.pillar p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

/* Privacy band: the app's sky, the same in both themes */
.trust {
  background: var(--sky);
  color: var(--ink-ink);
  padding: 96px 0;
}

.trust .wrap {
  display: grid;
  gap: 40px;
}

@media (min-width: 880px) {
  .trust .wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
  }
}

.trust .eyebrow {
  color: var(--ink-muted);
}

.trust h2 {
  font-size: clamp(38px, 5vw, 64px);
  color: var(--ink-ink);
  margin-top: 14px;
}

.trust .lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-muted);
  margin-top: 22px;
  max-width: 46ch;
}

.trust ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  border-top: 1px solid var(--ink-hair);
}

.trust li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--ink-hair);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.trust li span {
  font-family: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  min-width: 64px;
}

.trust .label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding: 8px 12px;
  border: 1px solid var(--ink-hair);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-muted);
}

.trust .label b {
  color: #ffc84a;
  font-weight: 700;
}

.trust .founder {
  margin-top: 28px;
  font-size: 16px;
  color: var(--ink-muted);
  max-width: 44ch;
  line-height: 1.5;
}

/* Pricing. Hidden until the lifetime price is confirmed: remove .hidden from the section. */
.pricing {
  padding: 96px 0 80px;
}

.pricing .head {
  max-width: 700px;
  margin-bottom: 40px;
  display: grid;
  gap: 16px;
}

.pricing h2 {
  font-size: clamp(34px, 4.6vw, 56px);
}

.pricing .lede {
  font-size: 19px;
  color: var(--muted);
  line-height: 1.45;
}

.tiers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 720px) {
  .tiers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tier {
  border: 1px solid var(--hair);
  border-radius: var(--r);
  padding: 28px;
  background: var(--raised);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tier.pro {
  background: var(--ink-surface);
  color: var(--ink-ink);
  border-color: transparent;
}

.tier .name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.015em;
}

.tier .price {
  font-family: var(--display);
  font-weight: 700;
  font-size: 46px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.tier .price small {
  font-family: var(--text);
  font-weight: 400;
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 6px;
}

.tier .price .or {
  display: block;
  font-family: var(--text);
  font-weight: 400;
  font-size: 15px;
  color: var(--muted);
  margin-top: 8px;
}

.tier.pro .price small,
.tier.pro .price .or {
  color: var(--ink-muted);
}

.tier ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
  font-size: 16px;
}

.tier li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.tier li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
  margin-top: 9px;
  opacity: 0.6;
}

.tier.pro li::before {
  background: var(--accent);
  opacity: 1;
}

.pricing .note {
  margin-top: 22px;
  font-size: 15px;
  color: var(--muted);
}

/* Legal and support pages: the sky as a short masthead, then a contents rail and prose */
.masthead {
  background: var(--sky);
  color: var(--ink-ink);
  padding-bottom: 56px;
}

.masthead h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin-top: 40px;
  max-width: 20ch;
}

.masthead .lede {
  margin-top: 18px;
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink-muted);
  max-width: 52ch;
}

.masthead .updated {
  margin-top: 14px;
  font-size: 15px;
  color: var(--ink-muted);
}

.page {
  padding: 40px 0 24px;
}

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

.rail {
  display: none;
}

@media (min-width: 900px) {
  .page {
    padding-top: 56px;
  }
  .page .wrap {
    grid-template-columns: 220px minmax(0, 66ch);
    gap: 72px;
    align-items: start;
  }
  .rail {
    display: block;
    position: sticky;
    top: 24px;
  }
  .rail ol {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    border-top: 1px solid var(--hair);
  }
  .rail li {
    border-bottom: 1px solid var(--hair);
  }
  .rail a {
    display: block;
    padding: 10px 0;
    font-size: 14px;
    line-height: 1.3;
    color: var(--muted);
    text-decoration: none;
  }
  .rail a:hover {
    color: var(--ink);
  }
}

.prose {
  min-width: 0;
  max-width: 66ch;
}

.prose section {
  scroll-margin-top: 24px;
}

.prose section + section {
  margin-top: 34px;
}

.prose h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
  padding-top: 26px;
  border-top: 1px solid var(--hair);
}

.prose h2 .n {
  display: block;
  font-family: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 10px;
}

.prose h3 {
  font-size: 19px;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 26px 0 0;
}

.prose p {
  margin: 12px 0 0;
  line-height: 1.55;
}

.prose a {
  color: var(--accent-text);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--hair);
  padding: 36px 0 48px;
  font-size: 14px;
  color: var(--muted);
}

.site-footer .wrap {
  display: grid;
  gap: 14px;
}

.site-footer .links {
  display: flex;
  gap: 20px;
  font-weight: 600;
  color: var(--ink);
}

.site-footer .links a {
  text-decoration: none;
  padding: 6px 0;
}

.site-footer .links a:hover {
  text-decoration: underline;
}

.site-footer p {
  max-width: 80ch;
  line-height: 1.5;
}
