:root {
  --green-deep: #093f43;
  --green-mid: #0c4f54;
  --teal: #078f8b;
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #14b8a6;
  --primary-pale: #ccfbf1;
  --accent: #f97316;
  --open: #22c55e;
  --closing: #f59e0b;
  --closed: #ef4444;
  --ink: #12343b;
  --ink-soft: #1e293b;
  --muted: #64748b;
  --paper: #f1f6f7;
  --white: #ffffff;
  --phone-w: 320px;
  --phone-ratio: 1220 / 2712;
  --radius: 22px;
  --shadow: 0 28px 70px rgba(0, 16, 18, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--white);
  background: var(--green-deep);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 20;
  background: var(--white);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(20, 184, 166, 0.22), transparent 55%),
    radial-gradient(700px 420px at 100% 8%, rgba(249, 115, 22, 0.12), transparent 50%),
    linear-gradient(180deg, #072f32 0%, var(--green-deep) 38%, #06282b 100%);
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

/* ——— Header ——— */
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 0 8px;
}

.topbar img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.brand-tag {
  margin-top: 3px;
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}

/* ——— Hero ——— */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 620px);
  gap: 48px;
  align-items: center;
  padding: 0px 0 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--open);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(2.15rem, 3vw + 1.1rem, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.hero h1 em {
  font-style: normal;
  color: var(--primary-light);
}

.lead {
  margin-top: 18px;
  max-width: 38rem;
  font-size: 1.12rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
}

.when {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 0.95rem;
}

.chip-fill {
  background: var(--accent);
  color: var(--white);
}

.chip-ghost {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-note {
  margin-top: 16px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.68);
}

.news-form {
  position: relative;
  margin-top: 22px;
  max-width: 28rem;
}

.news-label {
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.news-hint {
  margin-bottom: 10px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.68);
}

.news-row {
  display: flex;
  gap: 8px;
}

.news-row input[type="email"] {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 999px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 600;
}

.news-row input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.news-btn {
  border: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.news-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.news-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 10px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
}

.news-consent input {
  margin-top: 3px;
}

.news-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}

.news-status {
  margin-top: 10px;
  font-size: 0.88rem;
  font-weight: 700;
}

.news-status.is-ok {
  color: #86efac;
}

.news-status.is-err {
  color: #fda4af;
}

.news-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 12px auto 28px;
  padding: 22px 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.news-band h2 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.news-band p {
  margin-top: 4px;
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.75);
}

body.news-modal-open {
  overflow: hidden;
}

.news-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.news-modal[hidden] {
  display: none;
}

.news-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 18, 20, 0.72);
  backdrop-filter: blur(12px);
}

.news-modal-card {
  position: relative;
  width: min(420px, 100%);
  padding: 36px 28px 28px;
  border-radius: 28px;
  text-align: center;
  background:
    radial-gradient(420px 180px at 50% -10%, rgba(249, 115, 22, 0.22), transparent 55%),
    linear-gradient(180deg, #10565b 0%, #0a4246 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(0, 8, 10, 0.5);
  animation: newsModalIn 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.news-modal-card:focus {
  outline: none;
}

.news-modal-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.news-modal-x:hover {
  background: rgba(255, 255, 255, 0.16);
}

.news-modal-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 8px rgba(249, 115, 22, 0.18);
}

.news-modal-mark svg {
  width: 30px;
  height: 30px;
}

.news-modal-kicker {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-light);
}

.news-modal-card h2 {
  margin-top: 8px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.news-modal-card p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.news-modal-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 22px;
}

.news-modal-points li {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  font-weight: 700;
}

.news-modal-ok {
  width: 100%;
}

.news-unsub-open {
  display: inline-block;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.62);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.news-unsub-open:hover {
  color: #fff;
}

.news-modal-card--form {
  text-align: left;
  width: min(440px, 100%);
}

.news-modal-card--form .news-modal-kicker,
.news-modal-card--form h2,
.news-unsub-lead,
.news-modal-card--form .news-modal-mark {
  text-align: center;
}

.news-modal-card--form .news-modal-mark {
  margin-left: auto;
  margin-right: auto;
}

.news-unsub-lead {
  margin-bottom: 18px;
}

.news-unsub-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.84rem;
  font-weight: 800;
}

#news-unsub-form input[type="email"] {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 999px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 600;
}

#news-unsub-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.news-unsub-confirm {
  margin-top: 14px;
  margin-bottom: 6px;
}

.news-unsub-submit {
  width: 100%;
  margin-top: 14px;
}

.news-unsub-submit:disabled {
  opacity: 0.34;
  filter: grayscale(0.55);
  cursor: not-allowed;
}

.news-unsub-submit.is-wait:disabled {
  opacity: 0.6;
  filter: none;
  cursor: wait;
}

.news-modal-card--form .news-modal-ok {
  margin-top: 18px;
}

@keyframes newsModalIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.unsub-page,
.admin-page {
  padding: 72px 0 80px;
  max-width: 720px;
}

.unsub-page img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  margin-bottom: 16px;
}

.admin-page .eyebrow {
  margin-bottom: 16px;
}

.unsub-page h1,
.admin-page h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.unsub-page p,
.admin-page p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.admin-card {
  margin-top: 22px;
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-card h2 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.admin-card label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 700;
  font-size: 0.88rem;
}

.admin-card input,
.admin-card textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  padding: 10px 12px;
  font: inherit;
}

.admin-card .news-btn {
  margin-top: 14px;
}

.admin-meta {
  margin-top: 10px;
}

.admin-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.admin-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-alert {
  color: #fda4af;
}

.admin-ok {
  color: #86efac;
}

/* ——— Marquee ——— */
.ticker {
  overflow: hidden;
  margin: 10px 0 6px;
  border-block: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.16);
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 42s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-track span {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 28px 12px 0;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.88);
}

.ticker-track i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-light);
  display: inline-block;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ——— Phones ——— */
.phones {
  position: relative;
  height: 720px;
}

.phone {
  position: absolute;
  width: var(--phone-w);
  height: auto;
  border-radius: 36px;
  background: #04191b;
  padding: 8px;
  box-shadow: var(--shadow);
  border: 2px solid #1a3d41;
}

.phone--home {
  left: 0;
  top: 40px;
  rotate: -6deg;
  z-index: 1;
}

.phone--search {
  right: 0;
  top: 0;
  rotate: 5deg;
  z-index: 2;
}

.phone-screen {
  overflow: hidden;
  border-radius: 26px;
  background: #06282b;
  aspect-ratio: var(--phone-ratio);
}

.phone-screen img {
  display: block;
  max-width: none;
  width: 100%;
  height: auto;
  object-fit: unset;
}

.phone-label {
  position: absolute;
  left: 50%;
  bottom: -34px;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

.phone-tabs {
  display: none;
  gap: 8px;
  margin-bottom: 16px;
}

.phone-tabs button {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
}

.phone-tabs button.on {
  background: #fff;
  color: var(--primary-dark);
}

/* ——— Features bento ——— */
.features {
  padding: 64px 0 36px;
}

.features-head {
  max-width: 40rem;
}

.features-head .eyebrow {
  margin-bottom: 12px;
}

.features h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.features-lead {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

.bento {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 100%;
}

.card--wide {
  grid-column: span 8;
}

.card--span {
  grid-column: span 12;
}

.card--accent {
  border-color: rgba(249, 115, 22, 0.45);
  background:
    linear-gradient(165deg, rgba(249, 115, 22, 0.16), rgba(255, 255, 255, 0.05) 55%);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.num {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.4);
}

.card-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(13, 148, 136, 0.22);
  color: var(--primary-light);
}

.card-ico svg {
  width: 20px;
  height: 20px;
}

.card--accent .card-ico {
  background: rgba(249, 115, 22, 0.22);
  color: #fdba74;
}

.card h3 {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

.status-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.status-row li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.8rem;
  font-weight: 700;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot.open {
  background: var(--open);
}

.dot.closing {
  background: var(--closing);
}

.dot.closed {
  background: var(--closed);
}

.territory {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.village {
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  font-weight: 700;
}

.pro-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.pro-col {
  padding: 16px 16px 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.18);
}

.pro-col h4 {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 6px;
}

.pro-col--plus {
  background: rgba(249, 115, 22, 0.16);
}

.pro-col--plus h4 {
  color: #fdba74;
}

.pro-col p {
  margin: 0;
}

/* ——— Footer ——— */
.footer {
  padding: 36px 0 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.footer a {
  text-decoration: none;
  font-weight: 700;
  color: #fff;
}

.footer a:hover {
  color: var(--primary-light);
}

.footer .copy {
  width: 100%;
  margin-top: 8px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 921px) {
  .phone.is-hidden {
    display: block;
  }
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .phone-tabs {
    display: flex;
  }

  .phones {
    height: auto;
    min-height: 620px;
    display: flex;
    justify-content: center;
    padding-bottom: 28px;
  }

  .phone {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    rotate: none;
  }

  .phone.is-hidden {
    display: none;
  }

  .card,
  .card--wide,
  .card--span {
    grid-column: span 12;
  }

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

  .news-row {
    flex-direction: column;
  }
}

@media (min-width: 640px) and (max-width: 920px) {
  .card,
  .card--wide {
    grid-column: span 6;
  }

  .card--span {
    grid-column: span 12;
  }
}

@media (max-width: 420px) {
  .wrap {
    width: min(1120px, calc(100% - 20px));
  }

  .phone,
  .phone--home,
  .phone--search {
    width: min(320px, 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track,
  .pulse,
  .news-modal-card {
    animation: none;
  }
}
