:root {
  --color-primary: #1564c0;
  --color-primary-dark: #104b90;
  --color-accent: #3f9c6d;
  --color-bg: #f7f9fc;
  --color-surface: #ffffff;
  --color-text: #1f2733;
  --color-text-muted: #5b6675;
  --color-border: #e3e8f0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 63, 130, 0.08);
  --max-width: 1140px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-primary-dark);
}

/* kotiyo-logo.png is a 512x512 image with white padding around the artwork;
   the tile clips that padding so the logo fills the space. */
.brand__logo {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand__logo img {
  width: 150%;
  height: 150%;
  max-width: none;
  object-fit: contain;
}

.brand__logo--footer {
  width: 64px;
  height: 64px;
  border: none;
}

.brand__tagline {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  display: block;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--color-primary-dark);
}

.header-cta {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

.header-cta:hover {
  background: var(--color-primary-dark);
  color: #fff;
  text-decoration: none;
}

@media (max-width: 860px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px 24px;
    border-bottom: 1px solid var(--color-border);
    display: none;
    gap: 16px;
  }

  .nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}

/* Hero */
.hero {
  padding: 72px 0 56px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__stores,
  .hero__badges {
    justify-content: center;
  }
}

.eyebrow {
  display: inline-block;
  background: rgba(21, 100, 192, 0.1);
  color: var(--color-primary-dark);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin: 0 0 18px;
  color: var(--color-primary-dark);
}

.hero p.lead {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin: 0 0 30px;
  max-width: 46ch;
}

@media (max-width: 900px) {
  .hero p.lead {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }
}

.hero__stores {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #111827;
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  min-width: 168px;
}

.store-badge:hover {
  background: #000;
  color: #fff;
  text-decoration: none;
}

.store-badge small {
  display: block;
  font-weight: 400;
  font-size: 0.68rem;
  opacity: 0.8;
}

.store-badge .glyph {
  font-size: 1.4rem;
  line-height: 1;
}

.hero__badges {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.hero__badges span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Phone mockup placeholder */
.phone-frame {
  width: 240px;
  height: 490px;
  margin: 0 auto;
  border-radius: 36px;
  background: #111827;
  padding: 12px;
  box-shadow: var(--shadow);
}

.phone-frame__screen {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.phone-frame__screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 40%),
    radial-gradient(circle at 80% 75%, rgba(255, 255, 255, 0.12), transparent 45%);
}

.phone-frame__label {
  position: relative;
  z-index: 1;
}

.phone-frame__label strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.phone-stack {
  display: flex;
  gap: -40px;
  justify-content: center;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section--alt {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.section-heading h2 {
  font-size: 2rem;
  color: var(--color-primary-dark);
  margin: 0 0 12px;
}

.section-heading p {
  color: var(--color-text-muted);
  margin: 0;
}

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

@media (max-width: 860px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px;
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(21, 100, 192, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.93rem;
}

/* Screenshot strip */
.screenshot-strip {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 4px 20px;
}

.screenshot-strip .phone-frame {
  flex: 0 0 auto;
  width: 190px;
  height: 390px;
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius);
  color: #fff;
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-banner h2 {
  margin: 0 0 8px;
}

.cta-banner p {
  margin: 0;
  opacity: 0.92;
}

.cta-banner .hero__stores {
  margin-bottom: 0;
}

.cta-banner .store-badge {
  background: rgba(0, 0, 0, 0.28);
}

/* Legal / content pages */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  padding: 54px 0;
}

.page-hero h1 {
  margin: 0 0 8px;
}

.page-hero p {
  margin: 0;
  opacity: 0.85;
}

.doc {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.doc h2 {
  color: var(--color-primary-dark);
  margin-top: 40px;
  font-size: 1.3rem;
}

.doc h2:first-of-type {
  margin-top: 8px;
}

.doc ul {
  padding-left: 22px;
}

.doc li {
  margin-bottom: 8px;
}

.doc .note {
  background: #fff7e6;
  border: 1px solid #f2d38a;
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 0.9rem;
  margin: 24px 0;
}

.doc .placeholder {
  background: #fde7e7;
  color: #9c2b2b;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.92em;
}

.toc {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 8px 0 32px;
}

.toc h2 {
  margin-top: 0 !important;
  font-size: 1rem !important;
}

.toc ol {
  columns: 2;
  padding-left: 20px;
  margin: 0;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .toc ol {
    columns: 1;
  }
}

/* FAQ */
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 20px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--color-primary);
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item .faq-answer {
  padding: 0 20px 18px;
  color: var(--color-text-muted);
}

/* Pricing */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 900px) {
  .plan-grid {
    grid-template-columns: 1fr;
  }
}

.plan-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
}

.plan-card--highlight {
  border-color: var(--color-primary);
  box-shadow: var(--shadow);
  position: relative;
}

.plan-card--highlight::before {
  content: "Most popular";
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.plan-grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 780px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .plan-grid--two {
    grid-template-columns: 1fr;
  }
}

.plan-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 16px;
}

.plan-price span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.plan-price-row {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.plan-card h3 {
  margin: 0 0 6px;
  color: var(--color-primary-dark);
}

.plan-card .plan-note {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.plan-card ul {
  padding-left: 20px;
  margin: 0;
  flex: 1;
  font-size: 0.92rem;
}

.plan-card li {
  margin-bottom: 8px;
}

/* Footer */
.site-footer {
  background: #111827;
  color: #cbd5e1;
  padding: 56px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

@media (max-width: 780px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-grid h4 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 14px;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.footer-grid a {
  color: #cbd5e1;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #8b95a5;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  background: var(--color-primary);
  color: #fff;
}

.btn:hover {
  background: var(--color-primary-dark);
  color: #fff;
  text-decoration: none;
}

.btn--outline {
  background: transparent;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
}
