/* Koronis Software — modern layout */

:root {
  --bg: #f6f7fb;
  --bg-elevated: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-soft: rgba(29, 78, 216, 0.08);
  --border: #e2e8f0;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 12px 32px rgba(15, 23, 42, 0.06);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --header-h: 4rem;
  --max: 72rem;
  /* Vertical rhythm between major blocks */
  --space-section: clamp(2.75rem, 5.5vw, 4rem);
  --space-section-tight: clamp(1.5rem, 4vw, 2.25rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
}

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

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.site-header__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
  flex-shrink: 0;
}

.site-logo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

.site-logo img {
  display: block;
  height: 2.75rem;
  width: auto;
  max-width: min(58vw, 340px);
  object-fit: contain;
}

@media (min-width: 880px) {
  .site-logo img {
    height: 3rem;
    max-width: 360px;
  }
}

.site-nav-desktop {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.site-nav-desktop a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
}

.site-nav-desktop a:hover {
  color: var(--text);
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
  cursor: pointer;
}

.menu-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

@media (min-width: 880px) {
  .site-nav-desktop {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
}

/* Mobile drawer */
.site-nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  visibility: hidden;
}

.site-nav-mobile.is-open {
  pointer-events: auto;
  visibility: visible;
}

.site-nav-mobile__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.site-nav-mobile.is-open .site-nav-mobile__backdrop {
  opacity: 1;
}

.site-nav-mobile__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(18rem, 100%);
  height: 100%;
  background: var(--bg-elevated);
  box-shadow: -8px 0 32px rgba(15, 23, 42, 0.12);
  padding: 1.25rem;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-nav-mobile.is-open .site-nav-mobile__panel {
  transform: translateX(0);
}

.site-nav-mobile__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.site-nav-mobile__head span {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.menu-close {
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: var(--bg);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-nav-mobile ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav-mobile li + li {
  margin-top: 0.25rem;
}

.site-nav-mobile a {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.site-nav-mobile a:hover {
  background: var(--accent-soft);
}

/* Layout */
.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.section {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}

/* Pull first content block slightly closer to hero */
.section--tight-top {
  padding-top: var(--space-section-tight);
}

/* Tighter seam between stacked sections (one band, not double padding) */
main > .section + .section {
  padding-top: var(--space-section-tight);
}

main > .hero + .section {
  padding-top: var(--space-section-tight);
}

main > .section:not(:last-child) {
  padding-bottom: var(--space-section-tight);
}

/* Extra air before the contact footer */
#more.section {
  padding-bottom: var(--space-section);
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

.section__lead {
  margin: 0 0 2rem;
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* Hero */
.hero {
  padding-top: clamp(2.75rem, 10vw, 5.5rem);
  padding-bottom: clamp(2.75rem, 8vw, 5rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% -10%, rgba(29, 78, 216, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 30%, rgba(13, 148, 136, 0.08), transparent 50%);
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 1rem;
  max-width: 18ch;
}

.hero__sub {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 0 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

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

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

.btn--ghost {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.btn--block {
  width: 100%;
}

/* Cards grid */
.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

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

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card__brand {
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0 0.25rem;
}

.card__brand img {
  display: block;
  width: 100%;
  max-width: min(100%, 320px);
  height: auto;
  max-height: 5.75rem;
  object-fit: contain;
}

@media (min-width: 720px) {
  .card__brand img {
    max-height: 6.25rem;
    max-width: min(100%, 340px);
  }
}

.card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.card__icon--spell {
  background: linear-gradient(135deg, #dbeafe, #e0f2fe);
  color: #1d4ed8;
}

.card__icon--vocab {
  background: linear-gradient(135deg, #ccfbf1, #d1fae5);
  color: #0f766e;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  flex-grow: 1;
  font-size: 0.9875rem;
}

.card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Product detail */
.product {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.product:last-child {
  margin-bottom: 0;
}

.product__head {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .product__head {
    flex-direction: row;
    align-items: flex-start;
  }
}

.product__brand {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.product__brand img {
  display: block;
  width: auto;
  max-width: min(100%, 200px);
  height: auto;
  max-height: 2.75rem;
  object-fit: contain;
}

@media (min-width: 768px) {
  .product__brand {
    flex: 0 0 auto;
    width: 9.5rem;
    max-width: 9.5rem;
    justify-content: flex-start;
    align-self: flex-start;
  }

  .product__brand img {
    max-height: 3rem;
    max-width: 100%;
  }
}

.product__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.product__tagline {
  margin: 0 0 0.75rem;
  font-weight: 600;
  color: var(--text);
}

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

.flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.flow-grid li {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.125rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.flow-grid strong {
  flex-shrink: 0;
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
  line-height: 1.3;
}

.product .faq-block {
  margin-top: 2rem;
}

.faq-block h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 1.25rem 0 0.35rem;
}

.faq-block h4:first-child {
  margin-top: 0;
}

.faq-block p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9875rem;
}

.method-list {
  margin: 1rem 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.method-list li {
  margin-bottom: 0.5rem;
}

.product__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Prose block */
.prose-block {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.prose-block p {
  margin: 0;
  color: var(--text-muted);
}

.prose-block p + p {
  margin-top: 1rem;
}

/* CTA strip */
.cta-strip {
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem);
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.cta-strip h2 {
  margin: 0 0 0.75rem;
  font-size: 1.375rem;
  font-weight: 700;
}

.cta-strip p {
  margin: 0 auto 1.25rem;
  max-width: 36rem;
  color: var(--text-muted);
}

.cta-strip .hero__actions {
  justify-content: center;
}

/* Footer / contact */
.site-footer {
  padding-top: var(--space-section);
  padding-bottom: clamp(2.5rem, 6vw, 3.5rem);
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.site-footer > .container {
  display: flow-root;
}

.site-footer h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.site-footer > .container > p {
  color: var(--text-muted);
  margin: 0 0 1.75rem;
}

.contact-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 0;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.form input,
.form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: var(--font);
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  margin-bottom: 1rem;
}

.form input:focus,
.form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}

.form textarea {
  resize: vertical;
  min-height: 8rem;
  margin-bottom: 0;
}

.form .btn {
  margin-top: 1rem;
  margin-bottom: 0;
  align-self: flex-start;
}

.form {
  display: flex;
  flex-direction: column;
}

.contact-meta {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.contact-meta p {
  margin: 0 0 1.25rem;
  line-height: 1.55;
}

.contact-meta p:last-child {
  margin-bottom: 0;
}

/* Company block: label on its own line */
.contact-meta p:first-child strong {
  display: block;
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

/* Email row: keep “Email” and link on one line when space allows */
.contact-meta p:last-child strong {
  display: inline;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-right: 0.5rem;
}

.site-footer__legal {
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  clear: both;
}

.footer-copy {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.text-default {
  color: var(--text);
}

.product-method-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.paragraph-muted {
  color: var(--text-muted);
  margin: 1rem 0 0;
}

.about-page-cards {
  margin-top: 2rem;
}

/* About page */
.page-hero {
  padding-block: clamp(2.5rem, 8vw, 4rem);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0 0 0.5rem;
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.prose {
  max-width: 46rem;
}

.prose h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.prose a {
  font-weight: 500;
}
