:root {
  --ea-navy: #0f3850;
  --ea-navy-dark: #0a2a3d;
  --ea-navy-soft: #164d68;
  --ea-gold: #f2a900;
  --ea-gold-soft: #f7c957;
  --ea-green: #1f8f55;
  --ea-ink: #17212b;
  --ea-muted: #667789;
  --ea-line: #d7e0e7;
  --ea-panel: #ffffff;
  --ea-bg: #f4f7fa;
  --ea-soft-blue: #eaf2f7;
  --ea-shadow: 0 18px 42px rgba(15, 56, 80, .14);
  --ea-shadow-soft: 0 8px 22px rgba(15, 56, 80, .10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ea-ink);
  background:
    linear-gradient(180deg, rgba(15, 56, 80, .07), rgba(15, 56, 80, 0) 260px),
    var(--ea-bg);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(15, 56, 80, .1);
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 8px 28px rgba(15, 56, 80, .08);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 218px;
}

.brand img,
.site-footer img {
  display: block;
  width: 100%;
  height: auto;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
  color: #304b5d;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a {
  padding: 10px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  border-color: var(--ea-gold);
}

.header-action,
.primary-button,
.secondary-button,
form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 6px;
  font-weight: 800;
}

.header-action,
.primary-button,
form button {
  border: 1px solid var(--ea-navy-dark);
  color: #fff;
  background: linear-gradient(180deg, var(--ea-navy-soft), var(--ea-navy-dark));
  box-shadow: 0 8px 18px rgba(15, 56, 80, .18);
}

.header-action {
  padding: 0 18px;
  font-size: 14px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, .95fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(34px, 5vw, 72px) clamp(18px, 5vw, 72px) clamp(28px, 4vw, 58px);
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--ea-green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  color: var(--ea-navy-dark);
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  color: var(--ea-navy-dark);
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  color: var(--ea-navy-dark);
  font-size: 20px;
  line-height: 1.25;
}

.lead,
.section-heading p,
.support-copy p,
.design-preview p {
  color: var(--ea-muted);
  font-size: 18px;
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 22px;
}

.primary-button,
.secondary-button {
  padding: 0 22px;
}

.secondary-button {
  border: 1px solid #b8ccd8;
  color: var(--ea-navy-dark);
  background: #fff;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-metrics span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid #c8d7df;
  border-radius: 6px;
  color: #304b5d;
  background: rgba(255, 255, 255, .72);
}

.hero-metrics strong {
  color: var(--ea-navy-dark);
}

.hero-visual {
  position: relative;
}

.dashboard-shell {
  overflow: hidden;
  border: 1px solid #b8ccd8;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--ea-shadow);
}

.dash-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  color: #dfe9f1;
  background: var(--ea-navy-dark);
}

.dash-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ea-gold);
}

.dash-top span:nth-child(2) {
  background: var(--ea-green);
}

.dash-top span:nth-child(3) {
  background: #d44848;
}

.dash-top b {
  margin-left: auto;
  font-size: 13px;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(to top, #e8eff4 1px, transparent 1px) 0 0 / 100% 52px #fff;
}

.dash-panel,
.phone-preview {
  min-height: 136px;
  padding: 18px;
  border: 1px solid #d7e3ea;
  border-radius: 7px;
  background: rgba(255, 255, 255, .97);
  box-shadow: var(--ea-shadow-soft);
}

.dash-panel.wide {
  grid-column: 1 / -1;
}

.dash-panel p,
.phone-preview p {
  margin-bottom: 8px;
  color: var(--ea-muted);
  font-weight: 700;
}

.dash-panel strong,
.phone-preview strong {
  display: block;
  color: var(--ea-navy-dark);
  font-size: 30px;
}

.dash-panel small,
.phone-preview span {
  color: var(--ea-muted);
}

.dash-panel.accent {
  background: #f6fbf3;
  border-color: #9bd1ad;
}

.invoice-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.invoice-flow span {
  padding: 10px 6px;
  border-radius: 5px;
  color: var(--ea-navy-dark);
  background: #eaf2f7;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.phone-preview {
  position: relative;
  padding-top: 42px;
  background: linear-gradient(180deg, #fff, #eef7fb);
}

.phone-bar {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 74px;
  height: 7px;
  border-radius: 20px;
  background: #c8d7df;
  transform: translateX(-50%);
}

.section {
  padding: clamp(54px, 7vw, 92px) clamp(18px, 5vw, 72px);
}

.band,
.support-band {
  background: #fff;
  border-block: 1px solid #e1eaf0;
}

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

.section-heading.compact {
  margin-bottom: 26px;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.process article,
.module-card,
.ticket-detail,
.design-option,
.design-preview,
form {
  border: 1px solid #d7e3ea;
  border-radius: 8px;
  background: var(--ea-panel);
  box-shadow: var(--ea-shadow-soft);
}

.process article {
  padding: 22px;
}

.process span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 50%;
  color: var(--ea-navy-dark);
  background: var(--ea-gold-soft);
  font-weight: 900;
}

.process p,
.module-card p,
.ticket-detail li,
.ticket-column span {
  color: var(--ea-muted);
  line-height: 1.5;
}

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

.module-card {
  min-height: 250px;
  padding: 24px;
}

.module-card img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin-bottom: 18px;
}

.module-card.featured {
  grid-column: span 3;
  min-height: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 20px;
  background: linear-gradient(90deg, #fff9eb, #eef7fb);
  border-color: #e4c46d;
}

.module-card.featured img {
  margin: 0;
}

.module-card.featured h3,
.module-card.featured p {
  grid-column: 2;
}

.ticket-section {
  background: #eef4f8;
}

.faq-reminder {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 16px;
  border: 1px solid #e4c46d;
  border-left: 5px solid var(--ea-gold);
  border-radius: 8px;
  color: #304b5d !important;
  background: #fff9eb;
  font-size: 16px !important;
  line-height: 1.45 !important;
}

.faq-reminder a {
  color: var(--ea-navy-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.why-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(22px, 4vw, 54px);
  align-items: start;
  background:
    linear-gradient(180deg, rgba(255, 249, 235, .72), rgba(234, 242, 247, .7)),
    #fff;
  border-block: 1px solid #e1eaf0;
}

.why-copy {
  max-width: 820px;
}

.why-copy > p {
  color: var(--ea-muted);
  font-size: 18px;
  line-height: 1.62;
}

.why-points {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.why-points article {
  padding: 18px 20px;
  border: 1px solid #d7e3ea;
  border-left: 5px solid var(--ea-gold);
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--ea-shadow-soft);
}

.why-points strong,
.why-points span {
  display: block;
}

.why-points strong {
  margin-bottom: 6px;
  color: var(--ea-navy-dark);
}

.why-points span,
.newsletter-form p {
  color: var(--ea-muted);
  line-height: 1.5;
}

.newsletter-form {
  position: sticky;
  top: 98px;
  border-color: #e4c46d;
  background: #fff;
}

.newsletter-form h3 {
  margin-bottom: 10px;
}

.checkbox-label {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--ea-muted);
  font-weight: 700;
  line-height: 1.4;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
}

.ticket-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
}

.ticket-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
}

.ticket-column {
  min-height: 260px;
  padding: 14px;
  border: 1px solid #c8d7df;
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
}

.ticket-column h3 {
  min-height: 44px;
  margin-bottom: 12px;
  font-size: 16px;
}

.ticket-column article {
  padding: 12px;
  border-left: 4px solid var(--ea-navy);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(15, 56, 80, .08);
}

.ticket-column article + article {
  margin-top: 10px;
}

.ticket-column b,
.ticket-column span {
  display: block;
}

.ticket-column.waiting article {
  border-left-color: #d49410;
}

.ticket-column.answered article {
  border-left-color: #0f6b92;
}

.ticket-column.handled article {
  border-left-color: var(--ea-green);
}

.ticket-column.closed article {
  border-left-color: #667789;
}

.ticket-detail {
  padding: 24px;
}

.ticket-detail ul {
  margin: 0;
  padding-left: 20px;
}

.ticket-detail li + li {
  margin-top: 12px;
}

.support-band {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: clamp(22px, 4vw, 52px);
  align-items: start;
}

.faq-section {
  background: #fff;
  border-bottom: 1px solid #e1eaf0;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 980px;
  margin: 0 auto;
}

.faq-list details,
.faq-admin-form {
  border: 1px solid #d7e3ea;
  border-radius: 8px;
  background: var(--ea-panel);
  box-shadow: var(--ea-shadow-soft);
}

.faq-list details {
  overflow: hidden;
}

.faq-list summary {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 16px 20px;
  color: var(--ea-navy-dark);
  font-weight: 900;
  cursor: pointer;
}

.faq-list summary::marker {
  color: var(--ea-gold);
}

.faq-list details[open] summary {
  border-bottom: 1px solid #e7eef2;
  background: #fff9eb;
}

.faq-list p {
  margin: 0;
  padding: 18px 20px 20px;
  color: var(--ea-muted);
  line-height: 1.58;
}

.faq-admin-form {
  background: linear-gradient(180deg, #eef7fb, #fff);
}

.admin-lock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.admin-lock span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--ea-navy-dark);
  font-size: 12px;
  font-weight: 900;
}

.admin-lock strong {
  color: var(--ea-navy-dark);
  font-size: 20px;
}

input[type="file"] {
  height: auto;
  padding: 10px;
  background: #fff;
}

.answer-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.answer-mode label {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 10px;
  border: 1px solid #c8d7df;
  border-radius: 6px;
  background: #fff;
  color: #304b5d;
  line-height: 1.25;
}

.answer-mode input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.forms-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.attachment-box {
  position: relative;
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 16px;
  border: 2px dashed #b8ccd8;
  border-radius: 8px;
  background: #f7fafb;
  transition: border-color .18s ease, background .18s ease;
}

.attachment-box.is-dragging,
.attachment-box:focus-within {
  border-color: var(--ea-gold);
  background: #fff9eb;
}

.attachment-box strong {
  color: var(--ea-navy-dark);
  font-size: 16px;
}

.attachment-box p {
  margin: 0;
  color: var(--ea-muted);
  font-size: 13px;
  line-height: 1.45;
}

.attachment-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.attachment-browse {
  width: fit-content;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #b8ccd8;
  border-radius: 6px;
  color: var(--ea-navy-dark);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.attachment-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.attachment-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid #d7e3ea;
  border-radius: 6px;
  color: #304b5d;
  background: #fff;
  font-size: 13px;
}

.attachment-list button {
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid #d7e3ea;
  border-radius: 5px;
  color: #9b1c1c;
  background: #fff;
  cursor: pointer;
}

.attachment-message {
  margin: 0;
  color: #9b1c1c;
  font-size: 13px;
  font-weight: 800;
}

.ticket-form-message {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--ea-muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.ticket-form-message.is-success {
  color: #17663a;
}

.ticket-form-message.is-error {
  color: #9b1c1c;
}

form {
  padding: 22px;
}

label {
  display: block;
  color: #304b5d;
  font-size: 13px;
  font-weight: 800;
}

label + label {
  margin-top: 14px;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid #b8ccd8;
  border-radius: 6px;
  color: var(--ea-ink);
  background: #fff;
}

input,
select {
  height: 42px;
  padding: 0 12px;
}

textarea {
  min-height: 92px;
  padding: 12px;
  resize: vertical;
}

form button {
  width: 100%;
  margin-top: 18px;
  cursor: pointer;
}

form .attachment-browse {
  width: fit-content;
  margin-top: 0;
  color: var(--ea-navy-dark);
  background: #fff;
  box-shadow: none;
}

.design-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.design-option {
  min-height: 132px;
  padding: 20px;
  text-align: left;
  cursor: pointer;
}

.design-option strong,
.design-option span {
  display: block;
}

.design-option strong {
  margin-bottom: 10px;
  color: var(--ea-navy-dark);
  font-size: 18px;
}

.design-option span {
  color: var(--ea-muted);
  line-height: 1.45;
}

.design-option.active {
  border-color: var(--ea-gold);
  box-shadow: 0 0 0 3px rgba(242, 169, 0, .2), var(--ea-shadow-soft);
}

.design-preview {
  margin-top: 16px;
  padding: 28px;
  background:
    linear-gradient(90deg, rgba(242, 169, 0, .16), rgba(31, 143, 85, .10)),
    #fff;
}

.design-preview h3 {
  margin-bottom: 8px;
  font-size: clamp(24px, 2.5vw, 34px);
}

.site-footer {
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: center;
  gap: 20px;
  padding: 26px clamp(18px, 5vw, 72px);
  color: #dceaf1;
  background: var(--ea-navy-dark);
}

.admin-page {
  background: var(--ea-bg);
}

.is-hidden {
  display: none !important;
}

.admin-shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.admin-shell > .brand {
  margin-bottom: 20px;
}

.admin-faq-panel {
  padding-left: 0;
  padding-right: 0;
}

.admin-faq-panel h1 {
  font-size: clamp(34px, 4vw, 54px);
}

.admin-faq-panel .faq-admin-form {
  max-width: 640px;
  margin: 0 auto;
}

.admin-login {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 150px);
}

.admin-login-form {
  width: min(440px, 100%);
  padding: 28px;
  border: 1px solid #d7e3ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--ea-shadow);
}

.admin-login-form h1 {
  margin-bottom: 12px;
  color: var(--ea-navy-dark);
  font-size: clamp(32px, 4vw, 46px);
}

.admin-login-form p {
  color: var(--ea-muted);
  line-height: 1.5;
}

.login-error {
  min-height: 20px;
  margin: 10px 0 0;
  color: #9b1c1c !important;
  font-size: 13px;
  font-weight: 900;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1050px) {
  .hero,
  .support-band,
  .why-section,
  .faq-layout,
  .ticket-layout {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    position: static;
  }

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

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

  .module-card.featured {
    grid-column: span 2;
  }
}

@media (max-width: 780px) {
  .site-header {
    position: static;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .brand {
    width: min(230px, 100%);
  }

  .main-nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .header-action {
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .dash-grid,
  .process,
  .module-grid,
  .ticket-board,
  .forms-preview,
  .answer-mode,
  .design-options,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .module-card.featured {
    grid-column: auto;
    display: block;
  }

  .module-card.featured img {
    margin-bottom: 18px;
  }

  .module-card.featured h3,
  .module-card.featured p {
    grid-column: auto;
  }

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

@media (max-width: 440px) {
  h1 {
    font-size: 34px;
  }

  .hero-actions a {
    width: 100%;
  }

  .section,
  .hero {
    padding-left: 14px;
    padding-right: 14px;
  }
}
