:root {
  --purple: #5f3edc;
  --purple-2: #9654ee;
  --blue: #315fcf;
  --teal: #12a89d;
  --ink: #151844;
  --body: #1f2433;
  --muted: #5f6676;
  --line: #dedff0;
  --paper: #ffffff;
  --shadow: 0 18px 45px rgba(36, 32, 91, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: Inter, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  align-items: center;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 26px;
  margin: 0 auto;
  max-width: 1120px;
  padding: 28px 16px 30px;
  position: relative;
  z-index: 5;
}

.menu-button {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: none;
  gap: 7px;
  height: 38px;
  justify-content: center;
  padding: 0;
  width: 38px;
}

.menu-button span {
  background: #222430;
  border-radius: 999px;
  display: block;
  height: 3px;
  width: 30px;
}

.brand {
  align-items: center;
  display: inline-flex;
  position: relative;
}

.brand img {
  height: auto;
  width: 184px;
}

.main-nav {
  align-items: center;
  display: flex;
  gap: 32px;
  justify-content: center;
}

.main-nav a {
  color: #1f2230;
  font-size: 13px;
  font-weight: 500;
}

.auth-actions,
.hero-actions,
.store-buttons {
  align-items: center;
  display: flex;
  gap: 22px;
}

.mobile-nav-actions {
  display: none;
}

.button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  height: 48px;
  justify-content: center;
  min-width: 104px;
  padding: 0 28px;
  white-space: nowrap;
}

.button-outline {
  background: var(--paper);
  border: 1.5px solid var(--purple);
  color: var(--purple);
}

.button-solid {
  background: linear-gradient(135deg, var(--blue), var(--purple-2));
  box-shadow: 0 12px 23px rgba(95, 62, 220, 0.24);
  color: var(--paper);
}

.button-large {
  height: 57px;
  min-width: 147px;
}

.button-white {
  background: var(--paper);
  color: var(--purple);
  height: 60px;
  min-width: 228px;
}

.hero {
  align-items: center;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(330px, 420px) minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1120px;
  padding: 22px 16px 82px;
}

.hero-copy {
  padding-left: 0;
}

.hero h1 {
  color: var(--ink);
  font-size: 49px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.23;
  margin: 0 0 18px;
}

.hero h1 span,
.features h2 {
  color: var(--purple);
}

.hero p {
  font-size: 20px;
  line-height: 1.55;
  margin: 0 0 36px;
  max-width: 385px;
}

.hero-media {
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-height: 430px;
  overflow: hidden;
  position: relative;
}

.hero-media img {
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.features {
  margin: 0 auto;
  max-width: 1120px;
  padding: 0 16px 104px;
  text-align: center;
}

.features h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 55px;
}

.feature-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(5, 1fr);
}

.feature {
  background: #ffffff;
  border: 1px solid #ececf4;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(36, 32, 91, 0.08);
  min-height: 268px;
  overflow: hidden;
  padding: 0 0 24px;
  position: relative;
  text-align: left;
}

.feature img {
  height: 128px;
  margin: 0 0 22px;
  object-fit: cover;
  object-position: center 24%;
  width: 100%;
}

.feature:nth-child(even) img {
  object-position: center 46%;
}

.feature:nth-child(2) img {
  object-position: center 36%;
}

.feature:nth-child(3) img {
  object-position: center 50%;
}

.feature:nth-child(4) img {
  object-position: center 46%;
}

.feature:nth-child(5) img {
  object-position: center 50%;
}

.tile-icon {
  align-items: center;
  background: #ffffff;
  border: 1px solid #ececf4;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(36, 32, 91, 0.12);
  color: var(--purple);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  margin: -44px 0 14px 18px;
  position: relative;
  width: 42px;
}

.tile-icon svg {
  fill: none;
  height: 23px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 23px;
}

.feature h3 {
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  margin: 0 22px 10px;
}

.feature p {
  color: #384057;
  font-size: 15px;
  line-height: 1.75;
  margin: 0 22px;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.mission {
  border-top: 1px solid #f1f1f5;
  min-height: 313px;
}

.split-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.split-copy {
  align-content: center;
  justify-self: start;
  max-width: 475px;
  padding: 52px 34px 52px 112px;
}

.eyebrow {
  color: var(--purple);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.4px;
  margin: 0 0 20px;
  text-transform: uppercase;
}

.split-copy h2,
.download h2 {
  color: var(--ink);
  font-size: 35px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.18;
  margin: 0;
}

.short-line {
  background: var(--teal);
  display: block;
  height: 3px;
  margin: 28px 0 26px;
  width: 56px;
}

.split-copy p:last-child,
.download-copy p:not(.eyebrow) {
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
}

.download {
  background: #fbfaf8;
  min-height: 302px;
  overflow: hidden;
}

.download-copy {
  align-content: center;
  padding: 58px 28px 54px max(88px, calc((100vw - 1120px) / 2 + 16px));
}

.download h2 {
  font-size: 31px;
  margin-bottom: 23px;
}

.store-buttons {
  gap: 25px;
  margin-top: 29px;
}

.store-badge {
  align-items: center;
  background: #050505;
  border-radius: 8px;
  color: var(--paper);
  display: inline-flex;
  font-size: 17px;
  font-weight: 700;
  gap: 9px;
  height: 42px;
  justify-content: center;
  min-width: 131px;
  padding: 5px 10px;
}

.store-badge small {
  display: block;
  font-size: 8px;
  font-weight: 600;
  line-height: 1.1;
  text-transform: none;
}

.store-icon {
  color: var(--paper);
  display: block;
  height: 25px;
  position: relative;
  width: 24px;
}

.store-icon path {
  fill: currentColor;
}

.store-icon.play {
  background: conic-gradient(from 0.12turn, #00e0ff, #1ec85a, #ffd338, #ff4438, #00e0ff);
  clip-path: polygon(6% 0, 100% 50%, 6% 100%);
}

.support-portrait {
  align-self: stretch;
  display: flex;
  justify-content: flex-start;
}

.support-portrait img {
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  width: 100%;
}

.cta {
  align-items: center;
  background: linear-gradient(135deg, #315fcf 0%, #8d54dc 66%, #12a89d 100%);
  border-radius: 8px;
  color: var(--paper);
  display: grid;
  grid-template-columns: 1fr auto;
  margin: 24px auto 26px;
  max-width: 1040px;
  min-height: 141px;
  overflow: hidden;
  padding: 31px 53px;
  position: relative;
}

.cta h2 {
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 13px;
}

.cta p {
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
  max-width: 405px;
}

.updates-section {
  align-items: start;
  display: grid;
  gap: 46px;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  margin: 0 auto 46px;
  max-width: 1040px;
  padding: 42px 0 18px;
}

.updates-section h2 {
  color: var(--ink);
  font-size: 34px;
  line-height: 1.18;
  margin: 0 0 18px;
}

.updates-section p:not(.eyebrow) {
  color: #384057;
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
  max-width: 420px;
}

.updates-form,
.login-card {
  background: var(--paper);
  border: 1px solid #ececf4;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  padding: 28px;
}

.updates-form label,
.login-card label {
  color: #303341;
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
}

.updates-form input,
.updates-form select,
.login-card input:not([type="checkbox"]) {
  background: #fbfbfe;
  border: 1px solid #dddfee;
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  height: 48px;
  outline: 0;
  padding: 0 14px;
  width: 100%;
}

.updates-form input:focus,
.updates-form select:focus,
.login-card input:not([type="checkbox"]):focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(95, 62, 220, 0.12);
}

.form-message {
  color: var(--purple);
  font-size: 14px;
  font-weight: 800;
  margin: 0;
}

.form-message[hidden] {
  display: none;
}

.login-page {
  background: #f8f9ff;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(520px, 42vw) minmax(460px, 1fr);
  min-height: 100vh;
}

.login-visual {
  background:
    linear-gradient(90deg, rgba(17, 20, 68, 0.84), rgba(17, 20, 68, 0.42)),
    url("./assets/tile-community-coffee.jpg") center / cover;
  color: var(--paper);
  display: grid;
  padding: 42px 40px;
}

.login-visual .brand img {
  filter: brightness(0) invert(1);
  width: 190px;
}

.login-copy {
  align-self: end;
  max-width: 540px;
}

.login-copy h1 {
  font-size: clamp(38px, 4.4vw, 52px);
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0 0 18px;
}

.login-copy p {
  font-size: 20px;
  line-height: 1.55;
  margin: 0;
}

.login-panel {
  align-content: center;
  display: grid;
  justify-items: center;
  padding: 42px clamp(34px, 6vw, 92px);
}

.login-card {
  max-width: 480px;
  width: 100%;
}

.login-card .brand {
  justify-self: center;
  margin-bottom: 8px;
}

.login-card h1 {
  color: var(--ink);
  font-size: 31px;
  line-height: 1.15;
  margin: 0;
  text-align: center;
}

.login-card > p {
  color: #687087;
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 8px;
  text-align: center;
}

.login-links {
  align-items: center;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: space-between;
}

.login-links label {
  align-items: center;
  color: #687087;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 7px;
}

.login-links input {
  accent-color: var(--purple);
}

.login-card .button {
  width: 100%;
}

.login-links a,
.signup-prompt a {
  color: var(--purple);
}

.signup-prompt {
  color: #687087;
  font-size: 14px;
  margin: 0;
  text-align: center;
}

.site-footer {
  border-top: 1px solid #e7e8ef;
  margin: 0 auto;
  max-width: 1040px;
  padding: 46px 0 51px;
}

.footer-grid {
  align-items: start;
  display: grid;
  grid-template-columns: 232px 1fr 160px 170px;
  gap: 50px;
}

.nickelsense {
  align-items: center;
  color: #4b4c58;
  display: inline-flex;
  font-size: 28px;
  font-weight: 500;
  gap: 9px;
}

.nickelsense-logo-image {
  display: block;
  height: auto;
  width: 150px;
}

.nickel-mark {
  background:
    radial-gradient(circle at center, transparent 0 31%, var(--purple) 32% 45%, transparent 46%),
    repeating-conic-gradient(from 0deg, var(--purple) 0 9deg, transparent 9deg 22deg);
  display: block;
  height: 51px;
  width: 51px;
}

.footer-grid p,
.footer-grid a {
  color: #696d79;
  display: block;
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
}

.footer-grid h2 {
  color: #303341;
  font-size: 13px;
  line-height: 1;
  margin: 0 0 14px;
}

.social-links {
  align-items: center;
  display: flex;
  gap: 25px;
}

.social-links a {
  color: #555861;
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
}

.copyright {
  color: #9a9da8;
  font-size: 12px;
  margin: 55px 0 0;
  text-align: center;
}

@media (max-width: 860px) {
  .site-header {
    gap: 18px;
  }

  .brand img {
    width: 166px;
  }

  .main-nav {
    gap: 18px;
  }

  .button {
    min-width: 90px;
    padding: 0 20px;
  }

  .hero {
    grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 18px;
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 38px 1fr auto;
    padding-bottom: 18px;
  }

  .menu-button {
    display: grid;
  }

  .main-nav {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 0;
    left: 16px;
    opacity: 0;
    padding: 8px;
    pointer-events: none;
    position: absolute;
    right: 16px;
    top: calc(100% - 8px);
    transform: translateY(-6px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .site-header.nav-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav > a {
    border-radius: 7px;
    font-size: 15px;
    padding: 13px 14px;
  }

  .main-nav > a:hover,
  .main-nav > a:focus-visible {
    background: #f4f2ff;
    outline: 0;
  }

  .auth-actions {
    display: none;
  }

  .mobile-nav-actions {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 10px;
    margin-top: 8px;
    padding: 16px 6px 6px;
  }

  .mobile-nav-actions .button-outline {
    color: var(--purple);
  }

  .mobile-nav-actions .button-solid {
    color: var(--paper);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 8px;
    padding-bottom: 56px;
  }

  .hero-copy {
    padding-left: 0;
  }

  .hero-media,
  .hero-media img {
    min-height: 360px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 44px;
  }

  .feature:nth-child(3) {
    border-left: 0;
  }

  .split-copy {
    padding-left: 52px;
  }

  .cta,
  .site-footer {
    margin-left: 16px;
    margin-right: 16px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .updates-section {
    grid-template-columns: 1fr;
    margin-left: 16px;
    margin-right: 16px;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 420px;
  }
}

@media (max-width: 680px) {
  .site-header {
    gap: 14px;
    padding-bottom: 24px;
  }

  .brand img {
    width: 158px;
  }

  .hero h1 {
    font-size: clamp(34px, 9.5vw, 39px);
  }

  .hero p {
    font-size: 17px;
  }

  .hero-actions,
  .store-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .button-large,
  .button-white {
    width: 100%;
  }

  .hero-actions {
    gap: 14px;
  }

  .feature-grid,
  .split-section,
  .cta,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    gap: 22px;
  }

  .feature {
    padding: 0 0 24px;
  }

  .split-copy,
  .download-copy {
    padding: 44px 24px;
  }

  .cta {
    gap: 28px;
    padding: 30px 28px;
  }

  .site-footer {
    padding-left: 4px;
    padding-right: 4px;
  }

  .nickelsense-logo-image {
    width: 124px;
  }

  .updates-form,
  .login-card {
    padding: 22px;
  }

  .updates-section h2,
  .login-copy h1 {
    font-size: 34px;
  }

  .login-visual,
  .login-panel {
    padding: 26px 20px;
  }
}
