@import url("famiara-brand-tokens.css");

:root {
  --midnight: var(--famiara-midnight);
  --coral: var(--famiara-coral);
  --sun: var(--famiara-sun);
  --teal: var(--famiara-teal);
  --mist: var(--famiara-mist);
  --cloud: var(--famiara-cloud);
  --slate: var(--famiara-slate);
  --white: var(--famiara-white);
  --danger: #B54747;
  --success: #14785D;
  --whatsapp: #0F7A6B;
  --line: #D7E3DE;
  --text-soft: #4A5B68;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 6px 18px rgba(30, 50, 68, .06);
  --shadow-md: 0 16px 42px rgba(30, 50, 68, .09);
  --shadow-lg: 0 28px 74px rgba(30, 50, 68, .14);
  --header-h: 78px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--midnight);
  background: var(--white);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -5;
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 123, 107, .07), transparent 22%),
    radial-gradient(circle at 8% 58%, rgba(44, 183, 163, .06), transparent 24%);
}

a { color: inherit; }

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

img, svg { display: block; max-width: 100%; height: auto; }

.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--midnight);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--midnight);
  outline-offset: 3px;
}

:target,
:focus-visible {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--midnight);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(44, 183, 163, .14);
}

h1, h2, h3 {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 700;
}

h1 {
  font-size: clamp(32px, 5.4vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.045em;
  margin: 0 0 22px;
  overflow-wrap: break-word;
}

h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -.035em;
  margin: 8px 0 16px;
}

h3 { letter-spacing: -.025em; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 250, 249, .9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(215, 227, 222, .86);
}

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: 0 1 auto;
  min-width: 0;
}

.brand img {
  width: 148px;
  height: 34px;
  object-fit: contain;
  object-position: left center;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 600;
}

.navlinks > a:not(.btn) {
  text-decoration: none;
  color: var(--text-soft);
}

.navlinks > a:not(.btn):hover { color: var(--midnight); }

.btn {
  min-height: 48px;
  min-width: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--midnight);
  color: var(--white);
  box-shadow: 0 14px 28px rgba(30, 50, 68, .18);
}

.btn-primary:hover { background: #172838; }

.btn-whatsapp {
  background: var(--mist);
  border-color: #C5E4DC;
  color: var(--whatsapp);
}

.btn-whatsapp:hover { border-color: var(--teal); }

.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

.btn-short { display: none; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 72px;
  background: linear-gradient(180deg, var(--cloud) 0%, var(--white) 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-orb-coral {
  width: 220px;
  height: 72px;
  right: -40px;
  top: 64px;
  background: var(--coral);
  opacity: .18;
}

.hero-orb-sun {
  width: 160px;
  height: 56px;
  right: 80px;
  bottom: 48px;
  background: var(--sun);
  opacity: .2;
}

.hero-orb-teal {
  width: 56px;
  height: 56px;
  left: 6%;
  bottom: 12%;
  background: var(--teal);
  opacity: .16;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 58px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-grid > *,
.value-split > *,
.contact-grid > *,
.features > *,
.flow > *,
.problems > * {
  min-width: 0;
}

.hero-copy p {
  max-width: 690px;
  margin: 0 0 28px;
  font-size: 19px;
  color: var(--text-soft);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  max-width: 680px;
  color: var(--slate);
  font-size: 14px;
}

.info-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--mist);
  color: var(--midnight);
  font-weight: 700;
  font-size: 12px;
}

.hero-visual { position: relative; max-width: 100%; }

.dashboard-shell {
  position: relative;
  margin: 6px 12px 0 0;
  padding: 16px;
  background: var(--midnight);
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
}

.dashboard {
  overflow: hidden;
  border-radius: 18px;
  background: var(--cloud);
  border: 1px solid rgba(255, 255, 255, .18);
}

.dash-top {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.dash-brand { display: flex; align-items: center; }

.dash-brand img {
  width: 108px;
  height: 25px;
  object-fit: contain;
  object-position: left center;
}

.dash-school { font-size: 10px; font-weight: 700; color: var(--text-soft); }

.dash-layout {
  display: grid;
  grid-template-columns: 128px 1fr;
  min-height: 392px;
}

.dash-side {
  background: var(--white);
  border-right: 1px solid var(--line);
  padding: 12px 10px;
}

.side-label {
  height: 31px;
  margin-bottom: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  font-size: 9px;
  color: var(--slate);
}

.side-label:first-child {
  background: var(--mist);
  color: var(--midnight);
  font-weight: 700;
}

.side-ico {
  width: 15px;
  height: 15px;
  border-radius: 5px;
  background: #EEF3F1;
}

.side-label:first-child .side-ico { background: var(--teal); }

.dash-main { padding: 17px; }

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

.dash-headline strong {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
}

.dash-headline span { font-size: 8px; color: var(--slate); }

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

.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px;
  box-shadow: 0 4px 10px rgba(30, 50, 68, .03);
}

.stat-top {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 8px;
  color: var(--slate);
}

.stat-icon {
  width: 25px;
  height: 25px;
  border-radius: 8px;
  background: var(--mist);
  display: grid;
  place-items: center;
  color: var(--midnight);
  font-weight: 700;
}

.stat:nth-child(2) .stat-icon { background: #FFF1EE; color: #C45B4F; }
.stat:nth-child(3) .stat-icon { background: #FFF6DE; color: #A87A12; }

.stat b { display: block; margin-top: 5px; font-size: 20px; line-height: 1; }
.stat small { font-size: 8px; color: var(--teal); font-weight: 700; }

.dash-section-title {
  display: flex;
  justify-content: space-between;
  margin: 15px 0 8px;
  font-size: 9px;
  font-weight: 700;
}

.dash-section-title a { color: var(--midnight); text-decoration: none; }

.activity-list {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.activity-row {
  display: grid;
  grid-template-columns: 1.4fr .8fr .75fr;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #E7EFEC;
  font-size: 8px;
}

.activity-row:last-child { border-bottom: 0; }
.activity-row strong { font-size: 8px; }

.status {
  justify-self: start;
  border-radius: 999px;
  padding: 4px 7px;
  background: var(--mist);
  color: var(--success);
  font-weight: 700;
  white-space: nowrap;
}

.laptop-base {
  width: 100%;
  height: 18px;
  margin: 0;
  border-radius: 0 0 80% 80%;
  background: linear-gradient(#D5DDE2, #8A96A0 45%, #D0D6DC);
  box-shadow: 0 8px 12px rgba(30, 50, 68, .11);
}

.section { padding: 88px 0; }
.section-soft { background: var(--cloud); }
.section-intro { font-size: 18px; color: var(--slate); max-width: 800px; margin: 0; }

.problems {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 38px;
}

.problem-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.problem-card p {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--midnight);
}

.problem-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--slate);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

.flow-step {
  position: relative;
  min-height: 168px;
  padding: 22px;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.flow-step:not(:last-child):after {
  content: "→";
  position: absolute;
  right: -12px;
  top: 46%;
  z-index: 3;
  color: var(--slate);
  font-weight: 700;
}

.flow-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-bottom: 16px;
}

.flow-step:nth-child(1) .flow-dot { background: var(--coral); }
.flow-step:nth-child(2) .flow-dot { background: var(--sun); }
.flow-step:nth-child(3) .flow-dot { background: var(--teal); }
.flow-step:nth-child(4) .flow-dot { background: var(--midnight); }

.flow-step h3 { margin: 0 0 8px; font-size: 18px; }
.flow-step p { margin: 0; color: var(--slate); font-size: 14px; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 38px;
}

.feature-card {
  min-height: 190px;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: var(--mist);
  color: var(--midnight);
}

.feature-card:nth-child(2) .icon-box,
.feature-card:nth-child(5) .icon-box {
  background: #FFF1EE;
  color: #C45B4F;
}

.feature-card:nth-child(3) .icon-box,
.feature-card:nth-child(6) .icon-box {
  background: #FFF6DE;
  color: #A87A12;
}

.icon-box svg { width: 25px; height: 25px; }
.feature-card h3 { font-size: 19px; margin: 0 0 8px; }
.feature-card p { color: var(--slate); margin: 0; font-size: 14px; }

.value-split {
  display: grid;
  grid-template-columns: .96fr 1.04fr;
  gap: 46px;
  align-items: stretch;
}

.value-copy { padding: 12px 0; }
.checks { display: grid; gap: 18px; margin-top: 30px; }
.check-item { display: flex; gap: 12px; align-items: flex-start; }

.check-circle {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--mist);
  color: var(--whatsapp);
  font-weight: 700;
}

.check-item strong { display: block; margin-bottom: 3px; }
.check-item span { color: var(--slate); font-size: 14px; }

.idea-card {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  padding: 38px;
  border-radius: 30px;
  background: var(--midnight);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.idea-card:before,
.idea-card:after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.idea-card:before {
  width: 180px;
  height: 64px;
  right: -36px;
  top: 36px;
  background: var(--coral);
  opacity: .28;
}

.idea-card:after {
  width: 52px;
  height: 52px;
  right: 42px;
  bottom: 42px;
  background: var(--teal);
  opacity: .35;
}

.idea-label {
  position: relative;
  z-index: 2;
  font-size: 12px;
  color: #C9D6D2;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.idea-card h3 {
  position: relative;
  z-index: 2;
  font-size: 28px;
  line-height: 1.2;
  max-width: 560px;
  margin: 28px 0 16px;
}

.idea-card p {
  position: relative;
  z-index: 2;
  color: #D5DEE4;
  max-width: 570px;
}

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

.step {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.step:not(:last-child):after {
  content: "→";
  position: absolute;
  right: -13px;
  top: 48%;
  z-index: 3;
  color: var(--slate);
  font-weight: 700;
}

.step-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--mist);
  color: var(--midnight);
  margin-bottom: 18px;
}

.step:nth-child(2) .step-icon { background: #FFF1EE; color: #C45B4F; }
.step:nth-child(3) .step-icon { background: #FFF6DE; color: #A87A12; }

.step-label {
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--midnight);
  font-weight: 700;
  margin-bottom: 7px;
}

.step h3 { margin: 0 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--slate); font-size: 14px; }

.contact-section {
  position: relative;
  overflow: hidden;
  padding: 90px 0;
  background: linear-gradient(180deg, var(--cloud), #EEF5F2);
}

.contact-section:before {
  content: "";
  position: absolute;
  width: 220px;
  height: 72px;
  left: -70px;
  bottom: 80px;
  border-radius: 999px;
  background: var(--sun);
  opacity: .16;
}

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 54px;
  align-items: start;
  position: relative;
  z-index: 2;
}

.contact-copy p { font-size: 17px; color: var(--slate); }
.contact-points { display: grid; gap: 13px; margin: 24px 0 28px; }

.contact-point {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
}

.contact-point .check-circle {
  width: 25px;
  height: 25px;
  flex-basis: 25px;
  font-size: 12px;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow-md);
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 7px; }

input, textarea {
  width: 100%;
  border: 1px solid #C9D6D1;
  border-radius: 12px;
  background: var(--white);
  color: var(--midnight);
  padding: 13px 14px;
  outline: none;
  transition: .18s;
}

input:focus, textarea:focus {
  border-color: var(--midnight);
  box-shadow: 0 0 0 4px rgba(30, 50, 68, .10);
}

input:user-invalid, textarea:user-invalid { border-color: var(--danger); }

textarea { min-height: 128px; resize: vertical; }

.consent {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 4px 0 18px;
  font-size: 12px;
  color: var(--slate);
}

.consent input {
  width: auto;
  min-width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.notice {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 700;
}

.notice.ok { background: var(--mist); color: var(--success); }
.notice.err { background: #FFF0F0; color: var(--danger); }

.hp {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-foot { font-size: 11px; color: var(--slate); margin-top: 12px; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  background: var(--white);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.footer-brand { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.footer-brand .brand img {
  width: 128px;
  height: 29px;
}

.footer-copy, .footer-links { font-size: 12px; color: var(--slate); }

.footer-links {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--midnight); }

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--whatsapp);
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(15, 122, 107, .33);
}

.wa-float svg { width: 27px; height: 27px; }

@media (max-width: 1024px) {
  .hero-grid, .value-split, .contact-grid { gap: 36px; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow-step:not(:last-child):after { display: none; }
}

@media (max-width: 980px) {
  .hero-grid, .value-split, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 720px; margin: 12px auto 0; }
  .features, .problems { grid-template-columns: repeat(2, 1fr); }
  .navlinks { gap: 16px; }
}

@media (max-width: 768px) {
  :root { --header-h: 68px; }
  .wrap { width: min(100% - 28px, 1180px); }
  .navlinks > a:not(.btn) { display: none; }
  .navlinks { gap: 8px; }
  .navlinks .btn { min-height: 44px; padding: 0 13px; font-size: 13px; }
  .btn-full { display: none; }
  .btn-short { display: inline; }
  .brand img { width: 124px; height: 28px; }
  .hero { padding: 48px 0 52px; }
  .hero-actions { display: grid; }
  .hero-actions .btn { width: 100%; }
  .hero-copy p { font-size: 17px; }
  .dashboard-shell { margin-right: 0; padding: 10px; border-radius: 20px; }
  .dash-layout { grid-template-columns: 84px 1fr; min-height: 330px; }
  .dash-side { padding: 8px 6px; }
  .side-label { font-size: 0; padding: 0; justify-content: center; }
  .side-ico { width: 19px; height: 19px; }
  .dash-main { padding: 12px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { display: none; }
  .activity-row { grid-template-columns: 1.3fr .65fr; }
  .activity-row .status { display: none; }
  .section { padding: 66px 0; }
  .features, .steps, .problems, .flow { grid-template-columns: 1fr; }
  .flow { gap: 28px; }
  .flow-step:not(:last-child):after {
    display: block;
    content: "↓";
    right: auto;
    left: 50%;
    top: auto;
    bottom: -22px;
    transform: translateX(-50%);
  }
  .step:not(:last-child):after { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .form-card { padding: 22px; }
  .footer-row { align-items: flex-start; flex-direction: column; }
  .idea-card h3 { font-size: 24px; }
  .hero-orb-coral, .hero-orb-sun { opacity: .12; }
}

@media (max-width: 375px) {
  .brand img { width: 112px; height: 26px; }
  h1 { font-size: 32px; }
  .wa-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
