/* Smokr website. Colours follow the app's default "Colorful" theme;
   the chromatic gradient is used on strokes only, never on fills. */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/bricolage-grotesque.woff2') format('woff2');
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/instrument-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #1a1a2e;
  --deep: #10101d;
  --surface: #232340;
  --line: rgba(242, 240, 250, 0.1);
  --ink: #f2f0fa;
  --mist: #aeacc9;
  --cyan: #5fd3f3;
  --mint: #6ef0c2;
  --pink: #ff4fa3;
  --red: #ff1e56;
  --display: 'Bricolage Grotesque', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --page: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

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

body {
  margin: 0;
  background: var(--night);
  /* Very large, faint hex texture, like the app background. */
  background-image:
    radial-gradient(1200px 700px at 85% -10%, rgba(95, 211, 243, 0.07), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='168' height='291' viewBox='0 0 168 291'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.025' stroke-width='1'%3E%3Cpath d='M84 0l84 48.5v97L84 194 0 145.5v-97z'/%3E%3Cpath d='M84 194v97M0 145.5v0M168 145.5v0'/%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed, scroll;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--cyan);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--night);
  border-radius: 8px;
  z-index: 10;
}
.skip:focus {
  left: 8px;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.75rem, 6.6vw, 5rem);
  font-stretch: 88%;
  font-weight: 720;
  letter-spacing: -0.012em;
}
h2 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-stretch: 90%;
  letter-spacing: -0.012em;
}
h3 {
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
p {
  margin: 0;
  max-width: 62ch;
}
.lede {
  font-size: clamp(1.125rem, 1.8vw, 1.3rem);
  color: var(--mist);
  line-height: 1.55;
}

/* Header */

.site-head {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(26, 26, 46, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.nav {
  display: flex;
  gap: clamp(14px, 3vw, 28px);
  font-size: 0.95rem;
}
.nav a {
  color: var(--mist);
  text-decoration: none;
}
.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--ink);
}

/* Buttons */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px 11px 16px;
  border-radius: 14px;
  border: 1px solid rgba(242, 240, 250, 0.22);
  background: var(--deep);
  color: var(--ink);
  text-decoration: none;
  line-height: 1.15;
  transition: border-color 0.2s;
}
.store:hover {
  border-color: var(--cyan);
}
.store svg {
  width: 24px;
  height: 24px;
  flex: none;
}
.store small {
  display: block;
  font-size: 0.72rem;
  color: var(--mist);
}
.store strong {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 650;
}

/* Hero */

.hero {
  padding: clamp(40px, 8vw, 96px) 0 clamp(56px, 8vw, 104px);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
.hero-copy {
  display: grid;
  gap: 24px;
}
.hero-note {
  font-size: 0.92rem;
  color: var(--mist);
}

/* Phone frame. Holds the live demo or a screen image. */

.phone {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 390 / 844;
  margin: 0 auto;
  border-radius: 48px;
  padding: 11px;
  background: #07070d;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 40px 80px -30px rgba(0, 0, 0, 0.7);
}
.phone > .screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: var(--night);
}
.phone > .screen > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone::after {
  /* Dynamic Island */
  content: '';
  position: absolute;
  top: 22px;
  left: 50%;
  width: 30%;
  height: 26px;
  transform: translateX(-50%);
  background: #000;
  border-radius: 20px;
}

/* Live Home demo inside the hero phone */

.demo {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 58px 20px 18px;
  background: linear-gradient(#1a1a2e, #0a0a14);
  font-family: var(--body);
}
.demo-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.78rem;
  color: var(--mist);
}
.demo-top b {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.05rem;
}
.demo-rings {
  position: relative;
  margin: 18px auto 0;
  width: 86%;
}
.demo-rings svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
}
.ring {
  fill: none;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.demo-count {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.demo-count strong {
  font-family: var(--display);
  font-size: clamp(2.6rem, 9vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.demo-count span {
  font-size: 0.72rem;
  color: var(--mist);
}
.demo-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 16px;
  text-align: center;
  font-size: 0.7rem;
  color: var(--mist);
}
.demo-legend b {
  display: block;
  font-family: var(--display);
  font-size: 1rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.demo-legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: 1px;
}
.demo-week {
  margin-top: auto;
  padding-top: 14px;
}
.demo-week p {
  font-size: 0.7rem;
  color: var(--mist);
  margin-bottom: 8px;
}
.demo-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 7px;
  height: 64px;
}
.demo-bars span {
  height: var(--h);
  border-radius: 6px 6px 3px 3px;
  border: 1.5px solid rgba(95, 211, 243, 0.45);
  border-bottom-width: 0;
}
.demo-bars span.today {
  border-color: var(--cyan);
  box-shadow: 0 0 8px -2px var(--cyan);
  transition: height 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.demo-log {
  margin-top: 16px;
  appearance: none;
  border: 0;
  width: 100%;
  padding: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  cursor: pointer;
  font: inherit;
}
.demo-log span {
  display: block;
  padding: 14px;
  border-radius: 999px;
  background: #15152a;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: background 0.2s;
}
.demo-log:hover span {
  background: #1d1d38;
}
.demo-log:active span {
  background: #24244a;
}
.demo-since {
  margin-top: 10px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--mist);
  min-height: 1.2em;
}
.demo-hint {
  margin-top: 16px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--mist);
}

/* Sections */

.section {
  padding: clamp(64px, 9vw, 120px) 0;
  border-top: 1px solid var(--line);
}
.section-head {
  display: grid;
  gap: 16px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

/* How it works: a real sequence, so it is numbered. */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
  counter-reset: step;
}
.steps li {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: 22px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: -14px;
  left: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--cyan);
  background: var(--night);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--cyan);
}
.steps-line {
  position: relative;
}
.steps-line::before {
  content: '';
  position: absolute;
  left: 14px;
  right: 0;
  top: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--cyan), var(--mint), #8b5cf6, var(--pink));
  opacity: 0.7;
}
.steps p {
  color: var(--mist);
  font-size: 0.98rem;
}

/* Feature rows: text beside a screen */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}
.feature + .feature {
  margin-top: clamp(72px, 10vw, 128px);
}
.feature.flip .feature-media {
  order: -1;
}
.feature-copy {
  display: grid;
  gap: 18px;
}
.feature-copy h3 {
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
  font-stretch: 92%;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.feature-copy ul {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  max-width: 54ch;
}
.feature-copy li {
  position: relative;
  padding-left: 22px;
  color: var(--mist);
}
.feature-copy li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--cyan);
}
.feature-copy li strong {
  color: var(--ink);
  font-weight: 600;
}
.feature-media .phone {
  width: min(100%, 300px);
}
.watch-img {
  width: min(100%, 300px);
  margin: 0 auto;
}

/* Themes strip */

.themes {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 10px;
}
.theme {
  display: grid;
  gap: 8px;
  justify-items: center;
  font-size: 0.82rem;
  color: var(--mist);
  text-align: center;
}
.theme span {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  border: 1.5px solid var(--c);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.theme span::after {
  /* Small ring, stroke only */
  content: '';
  position: absolute;
  left: 50%;
  top: 44%;
  width: 46%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid var(--c);
  box-shadow: 0 0 10px -2px var(--c);
}

/* Pricing */

.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.plan {
  padding: 26px 22px;
  display: grid;
  gap: 4px;
  align-content: start;
}
.plan + .plan {
  border-left: 1px solid var(--line);
}
.plan h3 {
  font-size: 1.05rem;
  color: var(--mist);
  font-weight: 600;
}
.plan .price {
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 700;
  font-stretch: 86%;
  letter-spacing: -0.02em;
}
.plan .per {
  font-size: 0.9rem;
  color: var(--mist);
}
.plan.best {
  background: rgba(95, 211, 243, 0.05);
}
.plan .tag {
  justify-self: start;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--cyan);
}
.fine {
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--mist);
  max-width: 80ch;
}

/* Privacy in short */

.short {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.short ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}
.short li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.short li:first-child {
  padding-top: 0;
}

/* Documents: privacy policy and support */

.doc {
  padding: clamp(40px, 7vw, 80px) 0 clamp(64px, 9vw, 112px);
}
.doc .wrap {
  max-width: 820px;
}
.doc header {
  display: grid;
  gap: 14px;
  margin-bottom: 40px;
}
.doc .updated {
  color: var(--mist);
  font-size: 0.95rem;
}
.doc h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  margin: 48px 0 14px;
  font-stretch: 90%;
}
.doc h3 {
  font-size: 1.15rem;
  margin: 28px 0 10px;
}
.doc p + p,
.doc p + ul,
.doc ul + p {
  margin-top: 14px;
}
.doc ul {
  padding-left: 1.2em;
  margin: 10px 0 0;
  max-width: 68ch;
}
.doc li + li {
  margin-top: 8px;
}
.doc li::marker {
  color: var(--cyan);
}
.summary {
  padding: 24px 26px;
  border-radius: 18px;
  border: 1px solid rgba(95, 211, 243, 0.35);
  background: rgba(95, 211, 243, 0.04);
}
.summary h2 {
  margin-top: 0;
  font-size: 1.25rem;
}
.toc {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 32px;
  font-size: 0.95rem;
}
.toc li {
  break-inside: avoid;
  padding: 3px 0;
}
.toc li + li {
  margin-top: 0;
}
.toc a {
  color: var(--mist);
  text-decoration: none;
}
.toc a:hover {
  color: var(--ink);
}
.table-wrap {
  overflow-x: auto;
  margin-top: 14px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--line);
}
th {
  font-weight: 600;
  color: var(--ink);
}
td {
  color: var(--mist);
}

/* Support */

.contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.contact a {
  display: grid;
  gap: 6px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(16, 16, 29, 0.6);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s;
}
.contact a:hover {
  border-color: var(--cyan);
}
.contact strong {
  font-family: var(--display);
  font-size: 1.1rem;
}
.contact span {
  font-size: 0.9rem;
  color: var(--mist);
}
.email-line {
  margin-top: 18px;
  color: var(--mist);
}
.email-line a {
  font-weight: 600;
}

.faq {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  font-size: 1.04rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
  background:
    linear-gradient(var(--cyan), var(--cyan)) center / 12px 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) center / 2px 12px no-repeat;
  transition: transform 0.25s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details > div {
  padding: 0 0 20px;
  color: var(--mist);
}
.faq details > div p + p {
  margin-top: 10px;
}
.callout {
  margin-top: 48px;
  padding: 22px 24px;
  border-left: 2px solid var(--pink);
  background: rgba(255, 79, 163, 0.05);
  border-radius: 0 14px 14px 0;
}
.callout h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

/* Footer */

.site-foot {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  font-size: 0.92rem;
  color: var(--mist);
}
.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 40px;
}
.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}
.site-foot a {
  color: var(--mist);
  text-decoration: none;
}
.site-foot a:hover {
  color: var(--ink);
}

/* Responsive */

@media (max-width: 900px) {
  .hero .wrap,
  .feature,
  .short {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature.flip .feature-media {
    order: 0;
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 44px;
  }
  .steps-line::before {
    display: none;
  }
  .themes {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .plan:nth-child(3) {
    border-left: 0;
  }
  .plan:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 600px) {
  .nav a.hide-sm {
    display: none;
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .themes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }
  .toc {
    columns: 1;
  }
  .phone {
    width: min(100%, 300px);
  }
}

@media (max-width: 420px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
  .plan + .plan {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
