:root {
  --ink: #111827;
  --muted: #667085;
  --line: #e7eaf3;
  --paper: #ffffff;
  --soft: #f6f8ff;
  --blue: #0757f8;
  --blue-dark: #0044d8;
  --violet: #7657ff;
  --orange: #ff8a3d;
  --cyan: #31c2ff;
  --navy: #07122f;
  --shadow: 0 26px 70px rgba(30, 41, 59, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
}

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

button,
input,
textarea {
  font: inherit;
}

svg {
  display: block;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  padding: 0 42px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(231, 234, 243, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.ipatente-logo {
  display: block;
  width: 170px;
  height: auto;
  object-fit: contain;
}

.main-nav,
.header-actions,
.hero-actions,
.available,
.tool-tabs {
  display: flex;
  align-items: center;
}

.main-nav {
  gap: 30px;
  color: #263248;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a:hover,
.nav-link:hover,
.tool-copy a:hover,
.suite-card a:hover,
.footer-grid a:hover {
  color: var(--blue);
}

.header-actions {
  gap: 18px;
}

.nav-link {
  color: #263248;
  font-size: 14px;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 18px 36px rgba(7, 87, 248, 0.28);
}

.button-dark {
  color: #ffffff;
  background: #111827;
}

.button-light {
  color: var(--blue);
  background: linear-gradient(135deg, #f7faff 0%, #ffffff 100%);
  border-color: rgba(255, 255, 255, 0.55);
}

.button-xl {
  min-height: 58px;
  padding: 0 30px;
  font-size: 15px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 52px;
  background:
    radial-gradient(circle at 16% 16%, rgba(255, 138, 61, 0.2), transparent 22%),
    radial-gradient(circle at 84% 10%, rgba(118, 87, 255, 0.23), transparent 26%),
    linear-gradient(180deg, #fff7f1 0%, #f5f8ff 52%, #ffffff 100%);
}

.hero-shape {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 44% 56% 60% 40%;
  filter: blur(4px);
  opacity: 0.4;
}

.hero-shape-left {
  left: -120px;
  top: 150px;
  background: linear-gradient(135deg, #ffb084, #fff0e7);
}

.hero-shape-right {
  right: -120px;
  top: 74px;
  background: linear-gradient(135deg, #b9a7ff, #dff5ff);
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.release-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin: 0 0 18px;
  padding: 0 16px;
  color: #5b38d6;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(118, 87, 255, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.release-badge.dark {
  color: #c9d7ff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.hero h1 {
  max-width: 960px;
  margin: 0 auto;
  color: var(--navy);
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero h1 span {
  background: linear-gradient(120deg, var(--blue), var(--violet), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 780px;
  margin: 26px auto 30px;
  color: #38445d;
  font-size: 19px;
}

.hero-actions {
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.available {
  justify-content: center;
  gap: 10px;
  margin: 24px 0 34px;
  color: #566176;
  font-size: 13px;
  font-weight: 800;
  flex-wrap: wrap;
}

.available b {
  padding: 7px 12px;
  color: #1e293b;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid #e4e8f2;
  border-radius: 999px;
}

.hero-stage {
  position: relative;
  max-width: 1050px;
  min-height: 560px;
  margin: 0 auto;
}

.hero-window {
  width: min(930px, 100%);
  margin: 0 auto;
  overflow: hidden;
  text-align: left;
  background: #ffffff;
  border: 1px solid rgba(208, 216, 232, 0.9);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 22px;
  background: #f8faff;
  border-bottom: 1px solid #e9edf6;
}

.window-bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.window-bar span:nth-child(1) {
  background: #ff6b6b;
}

.window-bar span:nth-child(2) {
  background: #ffb84d;
}

.window-bar span:nth-child(3) {
  background: #40d283;
}

.window-bar strong {
  margin-left: 10px;
  color: #344054;
  font-size: 13px;
}

.workspace {
  display: grid;
  grid-template-columns: 112px 1fr;
  min-height: 470px;
}

.workspace aside {
  padding: 22px 15px;
  background: #fbfcff;
  border-right: 1px solid #e9edf6;
}

.side-logo {
  width: 58px;
  height: 24px;
  margin: 0 auto 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.workspace aside i {
  display: block;
  height: 17px;
  margin: 12px 0;
  border-radius: 999px;
  background: #edf2fb;
}

.workspace aside i.active {
  background: linear-gradient(135deg, rgba(7, 87, 248, 0.18), rgba(118, 87, 255, 0.18));
}

.workspace-main {
  padding: 30px;
}

.toolbar,
.table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.toolbar h2 {
  margin: 0;
  color: var(--navy);
  font-size: 24px;
  letter-spacing: 0;
}

.toolbar button,
.table-head button {
  min-height: 34px;
  padding: 0 13px;
  color: #ffffff;
  background: var(--blue);
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 24px 0;
}

.insight-grid article {
  padding: 17px;
  background: #ffffff;
  border: 1px solid #edf1f8;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(30, 41, 59, 0.06);
}

.insight-grid small {
  display: block;
  color: #7b8495;
  font-size: 12px;
  font-weight: 800;
}

.insight-grid strong {
  display: block;
  margin: 6px 0 2px;
  color: var(--navy);
  font-size: 28px;
  line-height: 1;
}

.insight-grid em {
  color: #029b62;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.work-panels {
  display: grid;
  grid-template-columns: 1.45fr 0.75fr;
  gap: 18px;
}

.calendar-panel,
.ai-panel {
  min-height: 210px;
  padding: 20px;
  border-radius: 22px;
}

.calendar-panel {
  background: linear-gradient(180deg, #f8fbff, #ffffff);
  border: 1px solid #e7edf8;
}

.panel-title {
  margin-bottom: 18px;
  color: var(--navy);
  font-weight: 900;
}

.calendar-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.calendar-strip span {
  color: #7b8495;
  font-size: 12px;
  font-weight: 900;
}

.calendar-strip b {
  min-height: 72px;
  padding: 12px;
  color: #344054;
  background: #eef5ff;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.35;
}

.calendar-strip b:nth-of-type(2),
.calendar-strip b:nth-of-type(5) {
  background: #fff2e6;
}

.ai-panel {
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 10%, rgba(255, 255, 255, 0.24), transparent 26%),
    linear-gradient(145deg, #171d47, #5736dc 58%, #ff7f45);
}

.spark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  color: #20133f;
  background: #ffffff;
  border-radius: 16px;
  font-weight: 900;
}

.ai-panel h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: 0;
}

.ai-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.phone-card {
  position: absolute;
  right: 22px;
  bottom: 8px;
  width: 178px;
  min-height: 310px;
  padding: 31px 16px 16px;
  text-align: left;
  background: #ffffff;
  border: 8px solid #111827;
  border-radius: 34px;
  box-shadow: 0 24px 54px rgba(17, 24, 39, 0.26);
}

.phone-notch {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 48px;
  height: 6px;
  transform: translateX(-50%);
  background: #111827;
  border-radius: 999px;
}

.phone-card strong {
  display: block;
  color: var(--navy);
  font-size: 16px;
}

.phone-card p {
  margin: 4px 0 12px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.ring {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin: 12px auto 18px;
  border-radius: 50%;
  background: conic-gradient(var(--blue) 79%, #e9eef9 0);
}

.ring span {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  color: var(--blue);
  background: #ffffff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
}

.phone-card i {
  display: block;
  height: 30px;
  margin: 9px 0;
  background: #f2f5fb;
  border-radius: 12px;
}

.trust-strip {
  padding: 26px 0;
  background: #ffffff;
}

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

.trust-grid article {
  padding: 18px 20px;
  text-align: center;
  background: #f7f9fe;
  border: 1px solid #edf1f8;
  border-radius: 18px;
}

.trust-grid strong {
  display: block;
  color: var(--navy);
  font-size: 30px;
  line-height: 1;
}

.trust-grid span {
  display: block;
  margin-top: 6px;
  color: #596579;
  font-size: 13px;
  font-weight: 800;
}

.tools-section {
  padding: 76px 0;
  background: #ffffff;
}

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

.section-heading p {
  margin: 8px 0 0;
  color: #344054;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 31px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 0;
  text-wrap: balance;
}

.business-panel h2,
.demo-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: 0;
  text-wrap: balance;
}

.tool-tabs {
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.tool-tab {
  min-height: 44px;
  padding: 0 20px;
  color: #354258;
  background: #f3f6fc;
  border: 1px solid #e4e9f3;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.tool-tab.active {
  color: #ffffff;
  background: #111827;
  border-color: #111827;
}

.tool-showcase {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 34px;
  align-items: stretch;
  padding: 28px;
  background: linear-gradient(135deg, #f8faff, #fff7f1);
  border: 1px solid #e7ebf4;
  border-radius: 30px;
}

.tool-copy {
  padding: 28px;
}

.tool-kicker {
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.tool-copy h3 {
  margin: 14px 0 16px;
  color: var(--navy);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}

.tool-copy p {
  color: #4c586f;
}

.tool-copy ul {
  display: grid;
  gap: 12px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.tool-copy li {
  position: relative;
  padding-left: 28px;
  color: #263248;
  font-weight: 800;
}

.tool-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 15px;
  height: 8px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

.tool-copy a,
.suite-card a {
  color: var(--blue);
  font-weight: 900;
}

.tool-visual {
  position: relative;
  min-height: 430px;
}

.floating-menu,
.table-card {
  position: absolute;
  background: #ffffff;
  border: 1px solid #e8edf6;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(30, 41, 59, 0.12);
}

.floating-menu {
  left: 0;
  top: 52px;
  z-index: 2;
  width: 215px;
  padding: 20px;
}

.floating-menu b {
  display: block;
  margin-bottom: 12px;
}

.floating-menu span {
  display: block;
  margin-top: 10px;
  padding: 10px 12px;
  color: #475467;
  background: #f6f8fc;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
}

.table-card {
  right: 0;
  top: 0;
  width: calc(100% - 120px);
  min-height: 355px;
  padding: 26px;
}

.table-head {
  margin-bottom: 18px;
}

.table-head strong {
  color: var(--navy);
  font-size: 22px;
}

.rows {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
}

.rows span,
.rows em {
  min-height: 44px;
  padding: 12px 14px;
  background: #f7f9fe;
  border-radius: 14px;
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
}

.rows em {
  min-width: 92px;
  text-align: center;
}

.ok {
  color: #027a48;
}

.wait {
  color: #a15c00;
}

.late {
  color: #b42318;
}

.suite-section {
  padding: 30px 0 90px;
  background: #ffffff;
}

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

.suite-card {
  min-height: 340px;
  padding: 30px;
  background: linear-gradient(180deg, #f8f6ff, #ffffff);
  border: 1px solid #ebe7ff;
  border-radius: 28px;
}

.suite-card.orange {
  background: linear-gradient(180deg, #fff4eb, #ffffff);
  border-color: #ffeadb;
}

.suite-card.blue {
  background: linear-gradient(180deg, #ecf7ff, #ffffff);
  border-color: #ddf0ff;
}

.icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 34px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  border-radius: 18px;
  font-weight: 900;
}

.suite-card.orange .icon {
  background: linear-gradient(135deg, #ff7d37, #ffb25f);
}

.suite-card.blue .icon {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.suite-card h3 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: 0;
}

.suite-card p {
  color: #4c586f;
}

.business-section {
  padding: 70px 0;
  background: #0b1228;
}

.business-panel {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 60px;
  align-items: center;
  color: #ffffff;
}

.business-panel h2 {
  color: #ffffff;
}

.business-panel p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.benefits {
  display: grid;
  gap: 14px;
}

.benefits article {
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
}

.benefits strong,
.benefits span {
  display: block;
}

.benefits strong {
  color: #ffffff;
  font-size: 19px;
}

.benefits span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
}

.demo-section {
  padding: 72px 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 138, 61, 0.18), transparent 24%),
    radial-gradient(circle at 80% 10%, rgba(118, 87, 255, 0.18), transparent 26%),
    #f7f9ff;
}

.demo-card {
  padding: 58px;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #29316f 58%, #6a4cff);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.demo-card h2 {
  max-width: 850px;
  margin: 0 auto;
  color: #ffffff;
}

.demo-card p {
  max-width: 640px;
  margin: 18px auto 30px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.site-footer {
  padding: 42px 0;
  background: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 42px;
}

.footer-grid h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 14px;
}

.footer-grid a:not(.brand) {
  display: block;
  margin: 7px 0;
  color: #4c586f;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 1060px) {
  .site-header {
    padding: 0 24px 0 40px;
  }

  .main-nav {
    display: none;
  }

  .hero-stage {
    min-height: 510px;
  }

  .phone-card {
    right: 0;
  }

  .tool-showcase,
  .business-panel {
    grid-template-columns: 1fr;
  }

  .suite-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    height: 68px;
  }

  .ipatente-logo {
    width: 145px;
    height: auto;
  }

  .nav-link {
    display: none;
  }

  .header-actions .button {
    min-height: 40px;
    padding: 0 14px;
    font-size: 12px;
  }

  .hero {
    padding-top: 44px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .button-xl {
    width: 100%;
  }

  .hero-stage {
    min-height: 470px;
  }

  .hero-window {
    border-radius: 22px;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .workspace aside,
  .phone-card,
  .calendar-strip span:nth-of-type(n+4),
  .calendar-strip b:nth-of-type(n+4) {
    display: none;
  }

  .workspace-main {
    padding: 20px;
  }

  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .insight-grid,
  .work-panels,
  .trust-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .calendar-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .tools-section {
    padding-top: 54px;
  }

  .tool-showcase {
    padding: 16px;
    border-radius: 24px;
  }

  .tool-copy {
    padding: 12px;
  }

  .tool-visual {
    min-height: 410px;
  }

  .floating-menu {
    left: 0;
    top: 0;
    width: 190px;
  }

  .table-card {
    top: 96px;
    width: 100%;
  }

  .demo-card {
    padding: 36px 20px;
    border-radius: 26px;
  }
}

.hero-copy .hero-actions {
  display: grid;
  grid-template-columns: max-content max-content;
  align-items: center;
  justify-content: start;
  gap: 16px;
}

.hero-copy .hero-actions .button-xl {
  width: auto !important;
  flex: none;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .hero-copy .hero-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
  }

  .hero-copy .hero-actions .button-xl {
    min-height: 56px;
    padding-inline: 10px;
    font-size: 13px;
    white-space: normal;
  }
}

/* Final fluid header/logo override. */
.site-header {
  padding-left: max(24px, calc((100vw - 1180px) / 2)) !important;
  padding-right: max(24px, calc((100vw - 1180px) / 2)) !important;
}

.site-header .ipatente-logo {
  width: clamp(145px, 14vw, 185px) !important;
  height: auto !important;
}

@media (max-width: 760px) {
  .site-header {
    padding-left: clamp(18px, 5vw, 32px) !important;
    padding-right: 18px !important;
  }

  .site-header .ipatente-logo {
    width: clamp(128px, 34vw, 150px) !important;
  }
}

/* Fluid header/logo: adapts while resizing the window. */
.site-header {
  padding-left: clamp(24px, 7vw, 92px);
  padding-right: clamp(18px, 4vw, 72px);
}

.site-header .ipatente-logo {
  width: clamp(145px, 14vw, 185px);
  height: auto;
}

@media (max-width: 760px) {
  .site-header {
    padding-left: clamp(18px, 5vw, 32px);
    padding-right: 18px;
  }

  .site-header .ipatente-logo {
    width: clamp(128px, 34vw, 150px);
  }
}


/* Feature grid section aligned to the requested reference. */
.tools-section {
  padding: 34px 0 58px;
  background: #ffffff;
}

.tools-section .section-heading {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
}

.tools-section .section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 31px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 0;
}

.tools-section .section-heading p {
  margin: 8px 0 0;
  color: #344054;
  font-size: 15px;
  font-weight: 600;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  min-height: 148px;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid #dfe7f3;
  border-radius: 14px;
  box-shadow: none;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #2f7cff;
  background: #ffffff;
  border: 0;
  border-radius: 12px;
}

.feature-card:nth-child(2) .feature-icon {
  color: #0074ff;
  background: #ffffff;
}

.feature-card:nth-child(3) .feature-icon {
  color: #0aa15b;
  background: #ffffff;
}

.feature-card:nth-child(4) .feature-icon {
  color: #ff8a3d;
  background: #ffffff;
}

.feature-card:nth-child(5) .feature-icon {
  color: #4c5cff;
  background: #ffffff;
}

.feature-card:nth-child(6) .feature-icon {
  color: #19a7ff;
  background: #ffffff;
}

.feature-card:nth-child(7) .feature-icon {
  color: #7c3aed;
  background: #ffffff;
}

.feature-card:nth-child(8) .feature-icon {
  color: #12b7a6;
  background: #ffffff;
}

.feature-card:nth-child(9) .feature-icon {
  color: #f04438;
  background: #ffffff;
}

.feature-card:nth-child(10) .feature-icon {
  color: #2563eb;
  background: #ffffff;
}

.feature-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-icon text {
  fill: currentColor;
  stroke: none;
  font-size: 7px;
  font-weight: 900;
}

.feature-card h3 {
  margin: 14px 0 7px;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 900;
}

.feature-card p {
  margin: 0;
  color: #344054;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 600;
}

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

@media (max-width: 640px) {
  .tools-section .section-heading h2 {
    font-size: 26px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}


.tools-section .tool-tabs {
  margin: 56px 0 30px;
}

.tools-section .tool-tab {
  min-width: 116px;
  min-height: 44px;
  color: var(--navy);
  background: #f4f7fd;
  border: 1px solid #dde5f3;
  border-radius: 999px;
  font-size: 15px;
}

.tools-section .tool-tab.active {
  color: #ffffff;
  background: #0b1328;
  border-color: #0b1328;
}

.tools-section .tool-showcase {
  margin-top: 0;
  border-radius: 28px;
}

/* Requested order: tabs/showcase first, feature grid after it, suite cards below. */
.tools-section > .container {
  display: flex;
  flex-direction: column;
}

.tools-section .tool-tabs {
  order: 1;
  margin: 0 0 30px;
}

.tools-section .tool-showcase {
  order: 2;
}

.tools-section .section-heading {
  order: 3;
  margin-top: 64px;
}

.tools-section .feature-grid {
  order: 4;
}

/* Hero aligned to the requested reference */
.site-header {
  height: 80px;
  padding: 0 72px 0 92px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(231, 234, 243, 0.95);
}

.site-header .ipatente-logo {
  width: 185px;
}

.site-footer .ipatente-logo {
  width: 170px;
}

.site-footer {
  margin-top: 72px;
  padding: 0;
  background: #ffffff;
}

.footer-simple {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 104px;
  padding-top: 30px;
  padding-bottom: 24px;
  border-top: 1px dotted #d5dbe6;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.footer-logo {
  display: inline-flex;
  flex: 0 0 auto;
}

.footer-logo img {
  width: 170px;
  height: auto;
  display: block;
}

.footer-simple p {
  margin: 0;
  color: #7a8494;
  font-size: 14px;
  font-weight: 500;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-social a {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: #7a8494;
  transition: color 0.18s ease, transform 0.18s ease;
}

.footer-social a:hover {
  color: var(--blue);
  transform: translateY(-1px);
}

.footer-social svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-social a[aria-label*="Facebook"] svg {
  fill: currentColor;
  stroke: none;
}

.main-nav {
  gap: 30px;
  color: #0c1730;
  font-size: 14px;
}

.header-actions {
  gap: 22px;
}

.header-actions .button {
  min-height: 43px;
  padding: 0 22px;
  border-radius: 6px;
  background: var(--blue);
  box-shadow: 0 12px 24px rgba(7, 87, 248, 0.18);
}

.login-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #101828;
  font-size: 14px;
  font-weight: 800;
}

.login-link svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  min-height: 520px;
  padding: 50px 0 34px;
  background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
}

.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background: rgba(7, 87, 248, 0.08);
  border-radius: 50%;
}

.hero-bg::before {
  left: -220px;
  bottom: -105px;
  width: 560px;
  height: 260px;
}

.hero-bg::after {
  right: -170px;
  top: -88px;
  width: 520px;
  height: 240px;
  transform: rotate(-18deg);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  align-items: center;
  gap: 54px;
}

.hero-copy {
  text-align: left;
}

.hero h1 {
  max-width: 610px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(43px, 4.4vw, 60px);
  line-height: 1.1;
  font-weight: 900;
}

.hero h1 span {
  display: block;
  color: var(--blue);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.hero-lead {
  max-width: 520px;
  margin: 25px 0 36px;
  color: #1d2939;
  font-size: 18px;
}

.hero-actions {
  justify-content: flex-start;
  gap: 16px;
}

.hero-actions .button {
  border-radius: 6px;
}

.button-outline {
  color: var(--blue);
  background: #ffffff;
  border-color: var(--blue);
  box-shadow: none;
}

.button-outline:hover {
  background: #f7fbff;
}

.trust-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  color: #667085;
  font-size: 14px;
  font-weight: 700;
}

.trust-note svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #0b1b3d;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-device {
  position: relative;
  min-height: 420px;
}

.laptop {
  position: absolute;
  right: 22px;
  top: 0;
  width: min(650px, 100%);
}

.laptop-screen {
  overflow: hidden;
  padding: 15px;
  aspect-ratio: 16 / 10;
  background: #090d17;
  border-radius: 18px 18px 10px 10px;
  box-shadow: 0 24px 54px rgba(10, 22, 49, 0.22);
}

.pc-screen-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  border-radius: 6px;
}

.laptop-base {
  width: 82%;
  height: 18px;
  margin: 0 auto;
  background: linear-gradient(180deg, #1b2230, #070b12);
  border-radius: 0 0 40px 40px;
}

.app-preview {
  display: grid;
  grid-template-columns: 86px 1fr;
  height: 100%;
  overflow: hidden;
  background: #f8faff;
  border-radius: 6px;
}

.preview-sidebar {
  padding: 16px 10px;
  background: #ffffff;
  border-right: 1px solid #e8edf6;
}

.preview-logo {
  width: 52px;
  height: 22px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), #72a8ff);
}

.preview-sidebar span {
  display: block;
  height: 13px;
  margin: 10px 0;
  border-radius: 5px;
  background: #e9eef8;
}

.preview-sidebar .selected {
  background: #dfeaff;
}

.preview-main {
  padding: 18px;
}

.preview-top,
.preview-top div,
.preview-metrics,
.preview-bottom {
  display: flex;
}

.preview-top {
  align-items: center;
  justify-content: space-between;
}

.preview-top div {
  gap: 10px;
}

.preview-top span {
  width: 9px;
  height: 9px;
  background: #d7deed;
  border-radius: 50%;
}

.preview-metrics {
  gap: 12px;
  margin: 18px 0;
}

.preview-metrics article {
  flex: 1;
  min-width: 0;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #eef2f8;
  border-radius: 7px;
}

.preview-metrics small {
  display: block;
  color: #7b8495;
  font-size: 10px;
  font-weight: 800;
}

.preview-metrics b {
  display: block;
  margin-top: 5px;
  color: #101828;
  font-size: 23px;
  line-height: 1;
}

.preview-metrics em {
  color: #049664;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.preview-metrics .red {
  color: #e03d35;
}

.preview-calendar {
  padding: 15px;
  background: #ffffff;
  border: 1px solid #eef2f8;
  border-radius: 7px;
}

.preview-title {
  margin-bottom: 12px;
  color: #101828;
  font-size: 13px;
  font-weight: 900;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  font-size: 10px;
}

.preview-grid span {
  color: #98a2b3;
  font-weight: 900;
}

.preview-grid b {
  min-height: 46px;
  padding: 7px;
  color: #344054;
  background: #edf4ff;
  border-radius: 5px;
  line-height: 1.35;
}

.preview-grid .green {
  background: #e8f8ef;
}

.preview-grid .yellow {
  background: #fff3d4;
}

.preview-bottom {
  gap: 14px;
  margin-top: 14px;
}

.preview-bottom div {
  flex: 1;
  height: 54px;
  background: #ffffff;
  border: 1px solid #eef2f8;
  border-radius: 7px;
}

.hero-device .phone-card {
  right: 0;
  bottom: 18px;
  width: 146px;
  min-height: 292px;
  padding: 30px 12px 13px;
  border-width: 7px;
  border-radius: 27px;
}

.hero-device .phone-card strong {
  font-size: 12px;
}

.hero-device .phone-card p {
  font-size: 10px;
}

.hero-device .ring {
  width: 62px;
  height: 62px;
  margin: 8px auto 12px;
}

.hero-device .ring span {
  width: 47px;
  height: 47px;
  font-size: 11px;
}

.hero-device .phone-card i {
  height: 22px;
  margin: 7px 0;
  border-radius: 6px;
}

.phone-mockup-image {
  position: absolute;
  right: 0;
  bottom: 18px;
  width: 154px;
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 48px rgba(10, 22, 49, 0.24));
}




@media (max-width: 1060px) {
  .site-header {
    padding: 0 24px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-device {
    min-height: 430px;
  }

  .laptop {
    left: 0;
    right: auto;
  }
}

@media (max-width: 760px) {
  .site-header {
    height: 68px;
  }

  .login-link {
    display: none;
  }

  .hero {
    padding-top: 36px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions .button {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 12px;
    white-space: normal;
  }

  .hero-device {
    min-height: 330px;
  }

  .laptop {
    width: 100%;
  }

  .app-preview {
    grid-template-columns: 52px 1fr;
  }

  .preview-sidebar {
    padding: 12px 7px;
  }

  .preview-main {
    padding: 12px;
  }

  .preview-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .preview-grid span:nth-of-type(n+4),
  .preview-grid b:nth-of-type(n+4),
  .preview-bottom,
  .hero-device .phone-card,
  .phone-mockup-image {
    display: none;
  }
}

/* Final CTA override: keep the two hero buttons side by side. */
.hero-copy .hero-actions {
  display: grid;
  grid-template-columns: max-content max-content;
  align-items: center;
  justify-content: start;
  gap: 16px;
}

.hero-copy .hero-actions .button-xl {
  width: auto !important;
  flex: none !important;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .hero-copy .hero-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
  }

  .hero-copy .hero-actions .button-xl {
    min-height: 56px;
    padding-inline: 10px;
    font-size: 13px;
    white-space: normal;
  }
}

/* Final fluid header/logo override. */
.site-header {
  padding-left: max(24px, calc((100vw - 1180px) / 2)) !important;
  padding-right: max(24px, calc((100vw - 1180px) / 2)) !important;
}

.site-header .ipatente-logo {
  width: clamp(145px, 14vw, 185px) !important;
  height: auto !important;
}

@media (max-width: 760px) {
  .site-header {
    padding-left: clamp(18px, 5vw, 32px) !important;
    padding-right: 18px !important;
  }

  .site-header .ipatente-logo {
    width: clamp(128px, 34vw, 150px) !important;
  }
}

.site-header .brand {
  transform: translateX(-8px);
}

@media (max-width: 760px) {
  .site-header .brand {
    transform: none;
  }
}

/* Plans page */
.plans-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 58px;
  text-align: center;
  background:
    radial-gradient(ellipse 560px 260px at -7% 105%, rgba(7, 87, 248, 0.09) 0 54%, transparent 55%),
    radial-gradient(ellipse 520px 240px at 108% -12%, rgba(7, 87, 248, 0.11) 0 54%, transparent 55%),
    linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
}

.plans-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  color: var(--navy);
  font-size: clamp(42px, 5.2vw, 70px);
  line-height: 1.02;
  letter-spacing: 0;
}

.plans-hero p:not(.release-badge) {
  max-width: 720px;
  margin: 20px auto 0;
  color: #38445d;
  font-size: 18px;
}

.plans-section {
  padding: 34px 0 82px;
  background: #ffffff;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  padding: 34px;
  background: linear-gradient(180deg, #f8fbff, #ffffff);
  border: 1px solid #e5ebf5;
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(30, 41, 59, 0.08);
}

.plan-card-featured {
  background: linear-gradient(180deg, #f3f0ff, #ffffff);
  border-color: rgba(118, 87, 255, 0.28);
  transform: translateY(-10px);
}

.plan-label {
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 7px 12px;
  color: #ffffff;
  background: #111827;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.plan-label.alt {
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.plan-top h2 {
  margin: 0;
  color: var(--navy);
  font-size: 34px;
  line-height: 1;
}

.plan-top p {
  min-height: 82px;
  margin: 14px 0 24px;
  color: #4c586f;
  font-size: 16px;
}

.plan-card ul {
  display: grid;
  gap: 13px;
  padding: 0;
  margin: 0 0 28px;
  list-style: none;
}

.plan-card li {
  position: relative;
  padding-left: 28px;
  color: #263248;
  font-weight: 700;
}

.plan-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

.plan-card .button {
  margin-top: auto;
  border-radius: 6px;
}

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

  .plan-card-featured {
    transform: none;
  }

  .plan-top p {
    min-height: 0;
  }
}

/* Exact package list layout. */
.plans-section .plans-grid {
  align-items: stretch;
  gap: 24px;
}

.plans-section .plan-card {
  overflow: hidden;
  min-height: 0;
  padding: 0 0 30px;
  background: #f7f7ff;
  border: 1px solid #e2e7ff;
  border-radius: 26px;
  box-shadow: none;
}

.plans-section .plan-card-featured {
  background: #fff8f3;
  border: 1px solid #ffe3d0;
  transform: none;
}

.plan-header {
  position: relative;
  min-height: 86px;
  padding: 22px 18px 18px;
  text-align: center;
  color: #ffffff;
  border-radius: 24px 24px 0 0;
}

.plan-header-blue {
  background: #2f86e8;
}

.plan-header-red {
  background: #a00043;
}

.plan-header h2 {
  margin: 0;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0;
}

.plan-header p {
  margin: 5px 0 0;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.plan-header span {
  position: absolute;
  top: 9px;
  right: -34px;
  width: 116px;
  transform: rotate(45deg);
  color: #ffffff;
  background: #2f86e8;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.plans-section .plan-features {
  display: grid;
  gap: 0;
  padding: 46px 40px 36px;
  margin: 0;
  list-style: none;
}

.plans-section .plan-features li {
  position: relative;
  min-height: 44px;
  padding: 13px 0 12px 28px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  color: #000000;
  font-size: 13px;
  font-weight: 600;
}

.plans-section .plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  font-size: 10px;
  line-height: 11px;
  text-align: center;
  font-weight: 900;
}

.plans-section .plan-features li.yes::before {
  content: "✓";
  color: #0062ff;
  border: 2px solid #0062ff;
}

.plans-section .plan-features li.no::before {
  content: "×";
  color: #ff1717;
  border: 2px solid #ff1717;
}

.plans-section .plan-card .button {
  width: 146px;
  min-height: 42px;
  margin: auto auto 14px;
  border-radius: 8px;
  box-shadow: none;
}

.plans-section .plan-card-featured .button {
  background: #a00043;
}

.plan-note {
  max-width: 250px;
  margin: 0 auto;
  color: #000000;
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
  font-weight: 600;
}


/* Final demo CTA styling. */
.demo-section {
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 138, 61, 0.12), transparent 24%),
    radial-gradient(circle at 88% 8%, rgba(118, 87, 255, 0.12), transparent 26%),
    #f8fbff;
}

.demo-card {
  background: linear-gradient(135deg, #1f2a56 0%, #3c42a5 58%, #6a4cff 100%);
}

.demo-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.demo-actions .button {
  min-width: 220px;
  border-radius: 6px;
}

.demo-actions .button-light {
  color: var(--blue);
  background: #ffffff;
  border-color: #ffffff;
}

/* Home marketing sections. */
.benefit-section {
  padding: 58px 0 28px;
  background: #ffffff;
}

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

.benefit-card {
  min-height: 300px;
  padding: 30px;
  background: #f8f6ff;
  border: 1px solid #e9e5ff;
  border-radius: 28px;
}

.benefit-card-warm {
  background: #fff7f0;
  border-color: #ffe5d2;
}

.benefit-card-blue {
  background: #eef8ff;
  border-color: #dcefff;
}

.benefit-icon {
  display: inline-grid;
  width: 54px;
  height: 54px;
  margin-bottom: 34px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #1d6dff, #6a4cff);
  border-radius: 16px;
}

.benefit-card-warm .benefit-icon {
  background: linear-gradient(135deg, #ff7d37, #ffb25f);
}

.benefit-card-blue .benefit-icon {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.benefit-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit-card h2 {
  max-width: 320px;
  margin: 0 0 16px;
  color: var(--navy);
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: 0;
}

.benefit-card p {
  margin: 0;
  color: #38445d;
  font-size: 17px;
  line-height: 1.48;
}

.daily-section {
  padding: 12px 0 54px;
  background: #ffffff;
}

.daily-panel {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 42px;
  align-items: center;
  padding: 42px;
  background: linear-gradient(135deg, #f7faff 0%, #ffffff 100%);
  border: 1px solid #e0e8f7;
  border-radius: 28px;
}

.daily-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-weight: 900;
}

.daily-panel h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.daily-panel p {
  margin: 0;
  color: #344054;
  font-size: 19px;
  line-height: 1.55;
  font-weight: 600;
}

@media (max-width: 640px) {
  .demo-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .demo-actions .button {
    width: 100%;
  }
}

@media (max-width: 980px) {
  .benefit-grid,
  .daily-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .benefit-section {
    padding: 42px 0 18px;
  }

  .benefit-card {
    min-height: 0;
    padding: 24px;
    border-radius: 22px;
  }

  .benefit-icon {
    margin-bottom: 24px;
  }

  .daily-panel {
    padding: 28px 22px;
    border-radius: 22px;
  }

  .daily-panel p {
    font-size: 16px;
  }
}

/* Demo request page. */
.request-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 58px;
  text-align: center;
  background:
    radial-gradient(ellipse 560px 260px at -7% 105%, rgba(7, 87, 248, 0.09) 0 54%, transparent 55%),
    radial-gradient(ellipse 520px 240px at 108% -12%, rgba(7, 87, 248, 0.11) 0 54%, transparent 55%),
    linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
}

.request-hero h1 {
  max-width: 920px;
  margin: 0 auto;
  color: var(--navy);
  font-size: clamp(42px, 5.2vw, 70px);
  line-height: 1.02;
  letter-spacing: 0;
}

.request-hero p {
  max-width: 640px;
  margin: 18px auto 0;
  color: #344054;
  font-size: 19px;
  font-weight: 600;
}

.request-section {
  padding: 34px 0 82px;
  background: #ffffff;
}

.request-layout {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 28px;
  align-items: start;
}

.request-copy,
.request-form {
  border: 1px solid #e0e8f7;
  border-radius: 28px;
}

.request-copy {
  position: sticky;
  top: 104px;
  padding: 34px;
  background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
}

.request-copy span {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 8px 13px;
  color: var(--blue);
  background: #edf4ff;
  border: 1px solid #dbe8ff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.request-copy h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: 0;
}

.request-copy p {
  margin: 18px 0 0;
  color: #38445d;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 600;
}

.request-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 34px;
  background: #fbfcff;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field-full,
.request-form .button {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
}

.form-field label span {
  color: #667085;
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  color: #101828;
  background: #ffffff;
  border: 1px solid #d9e2f1;
  border-radius: 12px;
  font: inherit;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-field textarea {
  min-height: 132px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(7, 87, 248, 0.12);
}

.request-form .button {
  justify-self: start;
  margin-top: 6px;
  border: 0;
  cursor: pointer;
}

.form-submit-target {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 15, 35, 0.48);
  backdrop-filter: blur(8px);
}

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

.success-modal-card {
  width: min(460px, 100%);
  padding: 34px;
  text-align: center;
  background: #ffffff;
  border: 1px solid #e0e8f7;
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

.success-icon {
  display: inline-grid;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 50%;
  font-size: 30px;
  font-weight: 900;
}

.success-modal-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: 0;
}

.success-modal-card p {
  margin: 12px 0 24px;
  color: #38445d;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
}

.success-modal-card .button {
  border: 0;
  cursor: pointer;
}

@media (max-width: 640px) {
  .footer-simple {
    flex-direction: column;
    align-items: flex-start;
    min-height: 0;
  }

  .footer-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-logo img {
    width: 150px;
  }
}

@media (max-width: 980px) {
  .request-layout {
    grid-template-columns: 1fr;
  }

  .request-copy {
    position: static;
  }
}

@media (max-width: 640px) {
  .request-hero {
    padding: 52px 0 38px;
  }

  .request-hero h1 {
    font-size: 40px;
  }

  .request-form {
    grid-template-columns: 1fr;
    padding: 24px;
    border-radius: 22px;
  }

  .request-copy {
    padding: 24px;
    border-radius: 22px;
  }

  .request-form .button {
    width: 100%;
  }
}

/* Contact page. */
.contact-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 58px;
  text-align: center;
  background:
    radial-gradient(ellipse 560px 260px at -7% 105%, rgba(7, 87, 248, 0.09) 0 54%, transparent 55%),
    radial-gradient(ellipse 520px 240px at 108% -12%, rgba(7, 87, 248, 0.11) 0 54%, transparent 55%),
    linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
}

.contact-hero h1 {
  max-width: 860px;
  margin: 0 auto;
  color: var(--navy);
  font-size: clamp(46px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
}

.contact-hero p {
  max-width: 700px;
  margin: 18px auto 0;
  color: #344054;
  font-size: 19px;
  line-height: 1.5;
  font-weight: 600;
}

.contact-section {
  padding: 34px 0 82px;
  background: #ffffff;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: stretch;
}

.contact-card {
  padding: 30px;
  background: #fbfcff;
  border: 1px solid #e0e8f7;
  border-radius: 28px;
}

.contact-card-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
}

.contact-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 20px;
  padding: 10px 16px;
  color: var(--blue);
  background: #edf4ff;
  border: 1px solid #dbe8ff;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
}

.contact-card h2,
.contact-card h3 {
  margin: 0;
  color: var(--navy);
  letter-spacing: 0;
}

.contact-card h2 {
  max-width: 460px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.05;
}

.contact-card h3 {
  margin-top: 18px;
  font-size: 22px;
}

.contact-card p {
  margin: 16px 0 0;
  color: #38445d;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 600;
}

.contact-card a {
  color: var(--blue);
  font-weight: 900;
}

.maps-link {
  display: inline-grid;
  width: 22px;
  height: 22px;
  margin-left: 6px;
  vertical-align: -5px;
  place-items: center;
  color: var(--blue);
}

.maps-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.contact-phone-button {
  color: var(--blue);
  background: #ffffff;
  border: 1px solid var(--blue);
  box-shadow: none;
}

.contact-phone-button:hover {
  color: #ffffff;
  background: var(--blue);
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-icon {
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 16px;
}

.contact-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-icon-facebook svg {
  fill: currentColor;
  stroke: none;
}

@media (max-width: 980px) {
  .contact-layout,
  .contact-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .contact-hero {
    padding: 52px 0 38px;
  }

  .contact-card {
    padding: 24px;
    border-radius: 22px;
  }

  .contact-actions .button {
    width: 100%;
  }
}

/* App allievi page. */
.app-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 66px;
  background:
    radial-gradient(ellipse 560px 260px at -7% 105%, rgba(7, 87, 248, 0.09) 0 54%, transparent 55%),
    radial-gradient(ellipse 520px 240px at 108% -12%, rgba(7, 87, 248, 0.11) 0 54%, transparent 55%),
    linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
}

.app-hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 0.75fr;
  gap: 52px;
  align-items: center;
}

.app-kicker {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 9px 14px;
  color: var(--blue);
  background: #edf4ff;
  border: 1px solid #dbe8ff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
}

.app-hero h1 {
  max-width: 720px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(46px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
}

.app-hero p {
  max-width: 650px;
  margin: 24px 0 0;
  color: #344054;
  font-size: 19px;
  line-height: 1.55;
  font-weight: 600;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.app-phone-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

.app-phone-frame {
  position: relative;
  width: min(360px, 100%);
  min-height: 665px;
  margin: -100px 0;
  overflow: hidden;
  padding: 62px 18px 92px;
  background: linear-gradient(180deg, #438fe1 0 96px, #f7f8fb 96px 100%);
  border: 10px solid #101827;
  border-radius: 46px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
  transform: scale(0.7);
  transform-origin: center;
}

.app-phone-top {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 134px;
  height: 9px;
  background: #07101f;
  border-radius: 999px;
  transform: translateX(-50%);
}

.app-profile,
.app-progress {
  background: #ffffff;
  border-radius: 13px;
  box-shadow: 0 9px 20px rgba(15, 23, 42, 0.22);
}

.app-profile {
  display: flex;
  align-items: center;
  min-height: 78px;
  gap: 15px;
  padding: 10px 14px;
}

.app-avatar {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  background: #4597e8;
  border-radius: 50%;
}

.app-avatar i {
  display: block;
  width: 40px;
  height: 40px;
  background:
    radial-gradient(circle at 54% 32%, #e7b58e 0 7px, transparent 8px),
    radial-gradient(circle at 44% 27%, #2d221d 0 10px, transparent 11px),
    linear-gradient(140deg, #eef6ff 0 35%, #798d6a 36% 72%, #2f5b85 73% 100%);
  border-radius: 50%;
}

.app-profile strong {
  color: #263142;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0;
}

.app-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 13px;
  margin: 24px 0 18px;
}

.app-card-grid article {
  min-height: 94px;
  padding: 11px 10px 10px;
  color: #263142;
  border-radius: 12px;
  box-shadow: 0 7px 15px rgba(15, 23, 42, 0.22);
}

.app-card-grid svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: #303946;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-card-grid strong {
  display: block;
  margin-top: 8px;
  color: #253040;
  font-size: 10px;
  line-height: 1.12;
  font-weight: 900;
}

.app-card-grid small {
  display: block;
  margin-top: 3px;
  color: #263142;
  font-size: 9px;
  line-height: 1.15;
  font-weight: 600;
}

.app-card-yellow {
  background: #fff0b8;
}

.app-card-lavender {
  background: #c8c9e9;
}

.app-card-peach {
  background: #facabd;
}

.app-card-sage {
  background: #d2dddd;
}

.app-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 7px;
  min-height: 126px;
  padding: 12px 8px 10px;
  text-align: center;
}

.app-progress small {
  display: block;
  margin-top: 7px;
  color: #268ee9;
  font-size: 10px;
  line-height: 1.26;
  font-weight: 800;
}

.app-ring {
  display: grid;
  width: 66px;
  height: 66px;
  margin: 0 auto;
  place-items: center;
  color: #268ee9;
  border: 13px solid #d7d7d7;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
}

.app-chart,
.app-star-map {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto;
}

.app-chart path {
  fill: none;
  stroke: #b8c2cb;
  stroke-width: 1.5;
}

.app-chart polyline {
  fill: none;
  stroke: #d9463e;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-star-map path {
  fill: none;
  stroke: #d4d8dd;
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.app-preview-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  height: 84px;
  margin-top: 18px;
  overflow: hidden;
}

.app-preview-row span {
  min-height: 84px;
  border-radius: 12px;
  background: #cfe9cf;
  box-shadow: 0 7px 15px rgba(15, 23, 42, 0.2);
}

.app-preview-row span:nth-child(2) {
  background: #f5bfd0;
}

.app-superquiz {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 60px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 9px 12px 10px;
  color: #ffffff;
  background: #4597e8;
  border-radius: 13px 13px 2px 2px;
  box-shadow: 0 -3px 12px rgba(15, 23, 42, 0.12);
}

.app-superquiz strong {
  display: block;
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
}

.app-superquiz small {
  display: block;
  margin-top: 7px;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 600;
}

.app-superquiz img {
  display: block;
  width: 54px;
  height: auto;
  flex: 0 0 54px;
}

.app-bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  min-height: 62px;
  padding: 8px 8px 9px;
  color: #ffffff;
  background: #4597e8;
  border-radius: 0 0 33px 33px;
  text-align: center;
}

.app-bottom-nav span {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 15px;
  font-weight: 500;
}

.app-bottom-nav span.active,
.app-bottom-nav span:last-child {
  color: #ffffff;
}

.app-bottom-nav span:last-child::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 18px;
  width: 11px;
  height: 11px;
  background: #f34438;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.app-bottom-nav svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-bottom-nav small {
  font-size: 13px;
  font-weight: 500;
}

.app-intro,
.app-benefits,
.app-learning,
.app-language {
  background: #ffffff;
}

.app-intro {
  padding: 54px 0 24px;
}

.app-intro-panel {
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  gap: 36px;
  align-items: center;
  padding: 38px;
  background: #fbfcff;
  border: 1px solid #e0e8f7;
  border-radius: 28px;
}

.app-intro-panel h2,
.learning-card h2,
.app-language-panel h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.app-intro-panel p,
.learning-card p,
.app-language-panel p {
  margin: 0;
  color: #344054;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 600;
}

.app-benefits {
  padding: 58px 0;
}

.app-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.app-benefit-grid article {
  min-height: 260px;
  padding: 28px;
  background: #f8f6ff;
  border: 1px solid #e9e5ff;
  border-radius: 26px;
}

.app-benefit-grid article:nth-child(2n) {
  background: #eef8ff;
  border-color: #dcefff;
}

.app-benefit-grid article:nth-child(3n) {
  background: #fff7f0;
  border-color: #ffe5d2;
}

.app-benefit-icon {
  display: inline-grid;
  width: 54px;
  height: 54px;
  margin-bottom: 28px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 16px;
}

.app-benefit-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-benefit-grid h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: 0;
}

.app-benefit-grid p {
  margin: 0;
  color: #38445d;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
}

.app-learning {
  padding: 0 0 58px;
}

.learning-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.learning-card {
  padding: 34px;
  background: #fff7f0;
  border: 1px solid #ffe5d2;
  border-radius: 28px;
}

.learning-card-blue {
  background: #eef8ff;
  border-color: #dcefff;
}

.learning-card p {
  margin-top: 18px;
}

.app-language {
  padding: 0 0 82px;
}

.app-language-panel {
  padding: 46px;
  text-align: center;
  background: linear-gradient(135deg, #1f2a56 0%, #3c42a5 58%, #6a4cff 100%);
  border-radius: 34px;
  box-shadow: 0 22px 60px rgba(59, 66, 165, 0.24);
}

.app-language-panel span {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 900;
}

.app-language-panel h2,
.app-language-panel p {
  color: #ffffff;
}

.app-language-panel p {
  max-width: 760px;
  margin: 18px auto 28px;
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 980px) {
  .app-hero-grid,
  .app-intro-panel,
  .app-benefit-grid,
  .learning-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .app-hero {
    padding: 52px 0 44px;
  }

  .app-actions .button {
    width: 100%;
  }

  .app-phone-frame {
    min-height: 640px;
    padding-inline: 14px;
    border-radius: 34px;
  }

  .app-intro-panel,
  .learning-card,
  .app-language-panel {
    padding: 26px;
    border-radius: 22px;
  }

  .app-benefit-grid article {
    min-height: 0;
    padding: 24px;
    border-radius: 22px;
  }
}

/* Didattica and automazioni pages. */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 66px;
  background:
    radial-gradient(ellipse 560px 260px at -7% 105%, rgba(7, 87, 248, 0.09) 0 54%, transparent 55%),
    radial-gradient(ellipse 520px 240px at 108% -12%, rgba(7, 87, 248, 0.11) 0 54%, transparent 55%),
    linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 0.98fr 0.72fr;
  gap: 52px;
  align-items: center;
}

.page-kicker {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 9px 14px;
  color: var(--blue);
  background: #edf4ff;
  border: 1px solid #dbe8ff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
}

.page-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(46px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
}

.page-hero p {
  max-width: 650px;
  margin: 24px 0 0;
  color: #344054;
  font-size: 19px;
  line-height: 1.55;
  font-weight: 600;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.page-visual-card {
  padding: 28px;
  background: #ffffff;
  border: 1px solid #dfe7f5;
  border-radius: 30px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.lesson-board {
  padding: 24px;
  background: #f7faff;
  border-radius: 22px;
}

.lesson-board strong,
.lesson-board span {
  display: block;
}

.lesson-board strong {
  color: var(--navy);
  font-size: 26px;
  line-height: 1.1;
}

.lesson-board span {
  margin-top: 8px;
  color: #38445d;
  font-weight: 800;
}

.lesson-bars {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}

.lesson-bars i {
  height: 16px;
  background: #dce8ff;
  border-radius: 999px;
}

.lesson-bars i:nth-child(2) {
  width: 72%;
}

.lesson-bars i:nth-child(3) {
  width: 86%;
}

.lesson-bars i:nth-child(4) {
  width: 58%;
}

.lesson-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.lesson-stats b,
.lesson-stats small {
  display: block;
}

.lesson-stats b {
  color: var(--blue);
  font-size: 34px;
}

.lesson-stats small {
  color: #667085;
  font-weight: 800;
}

.automation-flow {
  display: grid;
  gap: 14px;
}

.automation-flow span {
  display: block;
  padding: 18px 20px;
  color: var(--navy);
  background: #f7faff;
  border: 1px solid #e0e8f7;
  border-radius: 16px;
  font-size: 20px;
  font-weight: 900;
}

.automation-flow i {
  width: 2px;
  height: 22px;
  margin-left: 28px;
  background: var(--blue);
}

.page-feature-section,
.page-split-section,
.page-cta-section {
  background: #ffffff;
}

.page-feature-section {
  padding: 58px 0;
}

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

.page-feature-grid article {
  min-height: 285px;
  padding: 28px;
  background: #f8f6ff;
  border: 1px solid #e9e5ff;
  border-radius: 26px;
}

.page-feature-grid article:nth-child(2n) {
  background: #eef8ff;
  border-color: #dcefff;
}

.page-feature-grid article:nth-child(3n) {
  background: #fff7f0;
  border-color: #ffe5d2;
}

.page-feature-icon {
  display: inline-grid;
  width: 54px;
  height: 54px;
  margin-bottom: 28px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 16px;
}

.page-feature-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-feature-grid h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: 0;
}

.page-feature-grid p {
  margin: 0;
  color: #38445d;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
}

.lesson-carousel-section {
  padding: 8px 0 58px;
  background: #ffffff;
}

.lesson-carousel {
  position: relative;
  display: grid;
  align-items: stretch;
}

.lesson-carousel.is-ready {
  display: grid;
}

.lesson-gallery {
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: start;
  gap: 50px;
  padding: 26px;
  background: #f8fbff;
  border: 1px solid #dbe7ff;
  border-radius: 22px;
}

.lesson-carousel-thumbs {
  display: grid;
  width: 190px;
  max-height: 478px;
  gap: 14px;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}

.lesson-carousel-thumb {
  position: relative;
  width: 100%;
  height: 106px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  padding: 0;
  background: #ffffff;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
}

.lesson-carousel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.lesson-carousel-thumb.active {
  border-color: var(--blue);
}

.lesson-carousel-frame {
  position: relative;
  flex: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dfe7f5;
  border-radius: 20px;
}

.lesson-carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 420ms ease;
}

.lesson-carousel-slide.active {
  opacity: 1;
}

.page-split-section {
  padding: 0 0 58px;
}

.page-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.page-split-card {
  padding: 34px;
  background: #fff7f0;
  border: 1px solid #ffe5d2;
  border-radius: 28px;
}

.page-split-card-blue {
  background: #eef8ff;
  border-color: #dcefff;
}

.page-split-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.page-split-card p {
  margin: 18px 0 0;
  color: #344054;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 600;
}

.page-cta-section {
  padding: 0 0 82px;
}

.page-cta-panel {
  padding: 46px;
  text-align: center;
  background: linear-gradient(135deg, #1f2a56 0%, #3c42a5 58%, #6a4cff 100%);
  border-radius: 34px;
  box-shadow: 0 22px 60px rgba(59, 66, 165, 0.24);
}

.page-cta-panel h2 {
  max-width: 860px;
  margin: 0 auto;
  color: #ffffff;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

.page-cta-panel p {
  max-width: 720px;
  margin: 18px auto 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 600;
}

@media (max-width: 980px) {
  .page-hero-grid,
  .page-feature-grid,
  .page-split-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-hero {
    padding: 52px 0 44px;
  }

  .page-actions .button {
    width: 100%;
  }

  .page-feature-grid article {
    min-height: 0;
    padding: 24px;
    border-radius: 22px;
  }

  .lesson-carousel-section {
    padding-bottom: 42px;
  }

  .lesson-gallery {
    grid-template-columns: 1fr;
    flex-direction: column-reverse;
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
  }

  .lesson-carousel-thumbs {
    display: flex;
    width: 100%;
    max-height: none;
    overflow-x: auto;
    padding: 0 0 4px;
  }

  .lesson-carousel-thumb {
    flex: 0 0 128px;
  }

  .lesson-carousel-frame {
    border-radius: 14px;
  }

  .page-split-card,
  .page-cta-panel {
    padding: 26px;
    border-radius: 22px;
  }
}

/* Suite page. */
.suite-device-stack {
  display: grid;
  gap: 14px;
}

.suite-device-stack .suite-platform-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  color: var(--navy);
  background: #f7faff;
  border: 1px solid #e0e8f7;
  border-radius: 16px;
  font-size: 20px;
  font-weight: 900;
}

.suite-platform-card svg {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  color: var(--blue);
  fill: currentColor;
}

.suite-platform-card:nth-child(2) svg {
  color: #111827;
}

.suite-platform-card:nth-child(3) svg {
  color: #37b24d;
}

.suite-platform-card:nth-child(4) svg {
  color: #0ea5e9;
}

.suite-products-section,
.suite-download-section {
  background: #ffffff;
}

.suite-products-section {
  padding: 58px 0 24px;
}

.suite-products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.suite-product-card {
  padding: 34px;
  background: #fff7f0;
  border: 1px solid #ffe5d2;
  border-radius: 28px;
}

.suite-product-card-blue {
  background: #eef8ff;
  border-color: #dcefff;
}

.suite-product-icon {
  display: inline-grid;
  min-width: 64px;
  height: 44px;
  margin-bottom: 26px;
  padding: 0 13px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 14px;
  font-size: 14px;
  font-weight: 900;
}

.suite-product-card h2,
.download-group-heading h3 {
  margin: 0;
  color: var(--navy);
  letter-spacing: 0;
}

.suite-product-card h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
}

.suite-product-card p,
.suite-product-card li,
.download-group-heading p,
.download-card small {
  color: #344054;
  font-weight: 600;
  line-height: 1.55;
}

.suite-product-card p {
  margin: 16px 0 20px;
  font-size: 18px;
}

.suite-product-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.suite-product-card li {
  position: relative;
  padding-left: 28px;
  font-size: 16px;
}

.suite-product-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue);
  font-weight: 900;
}

/* Why iPatente page. */
.why-visual-card {
  display: grid;
  gap: 18px;
  background:
    radial-gradient(circle at 90% 12%, rgba(37, 99, 235, 0.16), transparent 30%),
    #ffffff;
}

.why-main-metric {
  padding: 30px;
  border: 1px solid #dfe7f5;
  border-radius: 24px;
  background: #f8fbff;
}

.why-main-metric span {
  display: inline-flex;
  padding: 8px 12px;
  color: var(--blue);
  background: #ffffff;
  border: 1px solid #dbe7ff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.why-main-metric strong {
  display: block;
  margin: 36px 0 60px;
  color: var(--blue);
  font-size: clamp(68px, 8vw, 112px);
  line-height: 0.9;
  letter-spacing: 0;
  white-space: nowrap;
}

.why-main-metric p {
  margin: 0;
  color: #344054;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
}

.why-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.why-mini-grid span {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 16px;
  color: var(--navy);
  background: #ffffff;
  border: 1px solid #dfe7f5;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 900;
}

.suite-download-section {
  padding: 34px 0 58px;
}

.download-groups {
  display: grid;
  gap: 26px;
}

.download-group {
  padding: 30px;
  background: #fbfcff;
  border: 1px solid #e0e8f7;
  border-radius: 28px;
}

.download-group-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.download-group-heading h3 {
  font-size: 28px;
  line-height: 1.1;
}

.download-group-heading p {
  max-width: 520px;
  margin: 0;
  text-align: right;
}

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

.download-card {
  display: block;
  min-height: 156px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid #dfe7f3;
  border-radius: 18px;
}

.download-card span {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 10px;
  color: var(--blue);
  background: #edf4ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.download-card strong,
.download-card small {
  display: block;
}

.download-card strong {
  color: var(--navy);
  font-size: 18px;
  line-height: 1.2;
}

.download-card small {
  margin-top: 8px;
  font-size: 14px;
}

@media (max-width: 980px) {
  .suite-products-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .download-group-heading {
    display: block;
  }

  .download-group-heading p {
    max-width: none;
    margin-top: 8px;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .suite-product-card,
  .download-group {
    padding: 24px;
    border-radius: 22px;
  }
}

/* Typography normalization: align secondary pages to the home page scale. */
.plans-hero h1,
.request-hero h1,
.contact-hero h1,
.app-hero h1,
.page-hero h1 {
  font-size: clamp(43px, 4.4vw, 60px);
  line-height: 1.1;
}

.plans-hero p,
.request-hero p,
.contact-hero p,
.app-hero p,
.page-hero p {
  font-size: 18px;
  line-height: 1.55;
}

.request-copy h2,
.contact-card h2,
.app-intro-panel h2,
.learning-card h2,
.app-language-panel h2,
.page-split-card h2,
.page-cta-panel h2,
.suite-product-card h2 {
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.1;
}

.page-feature-grid h3,
.app-benefit-grid h3,
.download-card strong,
.contact-card h3 {
  font-size: 20px;
  line-height: 1.18;
}

.download-group-heading h3 {
  font-size: 26px;
  line-height: 1.15;
}

.request-copy p,
.contact-card p,
.app-intro-panel p,
.learning-card p,
.app-language-panel p,
.page-split-card p,
.page-cta-panel p,
.suite-product-card p,
.download-group-heading p {
  font-size: 17px;
  line-height: 1.55;
}

.page-feature-grid p,
.app-benefit-grid p,
.download-card small,
.suite-product-card li {
  font-size: 15px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .plans-hero h1,
  .request-hero h1,
  .contact-hero h1,
  .app-hero h1,
  .page-hero h1 {
    font-size: 40px;
  }
}

/* Home composition motion. */
.home-page {
  overflow-x: hidden;
}

.home-page .site-header {
  animation: composeHeader 640ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.home-page .hero-bg::before {
  animation: composeShape 1200ms 180ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.home-page .hero-bg::after {
  animation: composeShape 1300ms 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.home-page .hero-copy h1,
.home-page .hero-lead,
.home-page .hero-actions,
.home-page .trust-note {
  animation: composeUp 760ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.home-page .hero-copy h1 {
  animation-delay: 120ms;
}

.home-page .hero-lead {
  animation-delay: 240ms;
}

.home-page .hero-actions {
  animation-delay: 360ms;
}

.home-page .trust-note {
  animation-delay: 480ms;
}

.home-page .hero-device {
  animation: composeDevice 980ms 260ms cubic-bezier(0.18, 0.9, 0.24, 1) both;
}

.home-page .laptop-screen,
.home-page .phone-mockup-image {
  animation: composeScreenGlow 1400ms 800ms ease-out both;
}

.compose-item {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  transition:
    opacity 720ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 720ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--compose-delay, 0ms);
}

.compose-item.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.home-page .benefit-card.compose-item {
  transform: translateY(28px) rotateX(6deg);
  transform-origin: 50% 100%;
}

.home-page .benefit-card.compose-item.is-visible {
  transform: translateY(0) rotateX(0);
}

@keyframes composeHeader {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes composeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes composeDevice {
  0% {
    opacity: 0;
    transform: translateX(42px) translateY(18px) scale(0.94);
  }
  70% {
    opacity: 1;
    transform: translateX(-2px) translateY(0) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
  }
}

@keyframes composeShape {
  from {
    opacity: 0;
    transform: scale(0.72) translateY(28px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes composeScreenGlow {
  0% {
    filter: brightness(1.08) saturate(1.12);
  }
  100% {
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .site-header,
  .home-page .hero-bg::before,
  .home-page .hero-bg::after,
  .home-page .hero-copy h1,
  .home-page .hero-lead,
  .home-page .hero-actions,
  .home-page .trust-note,
  .home-page .hero-device,
  .home-page .laptop-screen,
  .home-page .phone-mockup-image {
    animation: none;
  }

  .compose-item,
  .compose-item.is-visible,
  .home-page .benefit-card.compose-item,
  .home-page .benefit-card.compose-item.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Piani page: align package cards with the current iPatente price-table style. */
.plans-page {
  font-family: Inter, Arial, sans-serif;
}

.plans-page .plan-card {
  font-family: "Poppins", Inter, Arial, sans-serif;
}

.plans-page .plans-section .plan-card {
  overflow: hidden;
  background: #f7f7ff;
  border: 1px solid #e2e7ff;
  border-radius: 26px;
}

.plans-page .plans-section .plan-card-featured {
  background: #fff8f3;
  border-color: #ffe3d0;
}

.plans-page .plan-header-blue {
  background: #2f86e8;
}

.plans-page .plan-header-red,
.plans-page .plans-section .plan-card-featured .button {
  background: #a00043;
}

.plans-page .plan-header {
  min-height: 86px;
  padding: 20px 18px 17px;
  border-radius: 24px 24px 0 0;
}

.plans-page .plan-header > span {
  display: none;
}

.plans-page .plan-header h2 {
  font-family: "Poppins", Inter, Arial, sans-serif;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.15;
}

.plans-page .plan-header p {
  font-family: "Poppins", Inter, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.plans-page .plans-section .plan-features {
  padding: 54px 38px 36px;
  background: transparent;
}

.plans-page .plans-section .plan-features li {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 44px;
  padding: 12px 0;
  color: #000000;
  font-family: "Poppins", Inter, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}

.plans-page .plans-section .plan-features li::before {
  content: none;
}

.plans-page .plan-features i {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  color: transparent;
  background: url("../Imgs/Check_V.png") center / contain no-repeat;
  border: 0;
  border-radius: 0;
  font-size: 0;
  line-height: 1;
}

.plans-page .plan-features i::before {
  content: none;
}

.plans-page .plan-features li.no i {
  background-image: url("../Imgs/Check_X.png");
}

.plans-page .plan-features li.no i::before,
.plans-page .plan-features li.no i::after {
  content: none;
}

.plans-page .plan-features li.no i::after {
  content: none;
}

.plans-page .plans-section .plan-card .button {
  background: #2f86e8;
  font-family: "Poppins", Inter, Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.plans-page .plan-note {
  color: #000000;
  font-family: "Poppins", Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
}

.plan-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 4;
  width: 140px;
  height: 140px;
  overflow: hidden;
  pointer-events: none;
}

.plan-ribbon span {
  position: absolute;
  top: 24px;
  right: -42px;
  display: block;
  width: 178px;
  padding: 7px 0;
  transform: rotate(45deg);
  color: #ffffff;
  background: #195ada;
  font-family: "Poppins", Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0;
}

/* Mobile header menu. */
.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  background: #ffffff;
  border: 1px solid #dbe4f2;
  border-radius: 10px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 4px;
  margin: 2px auto;
  background: var(--navy);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 980px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand toggle"
      "nav nav"
      "actions actions";
    align-items: center;
    height: auto !important;
    min-height: 74px;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  .site-header.menu-open {
    align-items: center;
    padding-bottom: 12px !important;
  }

  .site-header .brand {
    grid-area: brand;
    align-self: center;
  }

  .mobile-menu-toggle {
    display: grid;
    grid-area: toggle;
    align-self: center;
    justify-self: end;
  }

  .site-header .main-nav {
    grid-area: nav;
    display: none;
    width: 100%;
    margin-top: 20px;
    padding: 22px 0 0;
    border-top: 1px solid #e5ebf5;
    text-align: center;
  }

  .site-header .main-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 4px 2px;
    border-bottom: 1px solid #e5ebf5;
    color: #202226;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.15;
  }

  .site-header .main-nav a::before,
  .site-header .main-nav a::after {
    content: "--";
    margin: 0 12px;
    color: currentColor;
    font-weight: 500;
    letter-spacing: 0;
  }

  .site-header .header-actions {
    grid-area: actions;
    display: none;
    width: 100%;
    margin-top: 28px;
    padding-bottom: 2px;
    justify-content: center;
  }

  .site-header .header-actions .button {
    width: min(430px, 72vw);
    min-height: 74px;
    justify-content: center;
    border-radius: 12px;
    font-size: 24px;
    font-weight: 900;
  }

  .site-header.menu-open .header-actions .button {
    justify-content: center;
  }

  .site-header.menu-open .main-nav {
    display: grid;
    gap: 0;
  }

  .site-header.menu-open .header-actions {
    display: flex;
  }

  .site-header.menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .site-header.menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 68px;
  }

  .site-header.menu-open .main-nav a {
    font-size: clamp(20px, 5vw, 26px);
    min-height: 45px;
  }

  .site-header.menu-open .header-actions .button {
    min-height: 66px;
    font-size: clamp(19px, 5vw, 28px);
  }
}

/* Final hero typography sync: every page matches the home hero. */
.hero h1,
.plans-hero h1,
.request-hero h1,
.contact-hero h1,
.app-hero h1,
.page-hero h1 {
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(43px, 4.4vw, 60px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0;
}

@media (max-width: 760px) {
  .hero h1,
  .plans-hero h1,
  .request-hero h1,
  .contact-hero h1,
  .app-hero h1,
  .page-hero h1 {
    font-size: 40px;
  }
}
