/* Flamma Media Design System
   Style: dreamy cloud hosting (Cloudddd-inspired) — sky canvas, floating dark nav,
   soft cyan CTAs, geometric sans + serif italic accent, frosted product cards */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --sky: #b8e0f5;
  --sky-soft: #d4eefb;
  --sky-deep: #8ecff0;
  --cloud: #ffffff;
  --cloud-soft: #f3f9fd;
  --ink: #1b2a3a;
  --ink-2: #2f4458;
  --muted: #5b7285;
  --muted-2: #8aa0b2;
  --line: #d7e6f0;
  --line-strong: #b7d2e4;
  --nav: #1c2b3a;
  --nav-2: #243647;
  --accent: #4ec3f0;
  --accent-deep: #2aa8e0;
  --accent-soft: #e7f6fd;
  --accent-glow: rgba(78, 195, 240, 0.45);
  --ok: #1a9e6c;
  --ok-soft: #e5f7ef;
  --warn: #d48415;
  --warn-soft: #fff6e8;
  --danger: #d64545;
  --danger-soft: #fdecec;
  --violet: #7c6cf0;
  --shadow-sm: 0 2px 8px rgba(27, 42, 58, 0.06);
  --shadow-md: 0 12px 32px rgba(27, 42, 58, 0.1);
  --shadow-lg: 0 28px 60px rgba(27, 42, 58, 0.14);
  --shadow-glow: 0 10px 36px var(--accent-glow);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --sidebar: 264px;
  --max: 1120px;
  --max-wide: 1280px;

  --wp: #2b7a9b;
  --wp-soft: #e6f4f9;
  --ai: #7c3aed;
  --ai-soft: #f1ebff;
  --n8n: #e11d5c;
  --n8n-soft: #ffe8ef;
  --mail: #0ea5e9;
  --mail-soft: #e0f4fe;
  --landing: #0d9488;
  --landing-soft: #e6f7f5;
  --newsletter: #d97706;
  --newsletter-soft: #fff4e5;
  --social: #db2777;
  --social-soft: #fce7f3;

  --font-display: Outfit, system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-body: Inter, system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--sky-soft);
  -webkit-font-smoothing: antialiased;
}

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

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

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

/* ——— Type ——— */
.h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink);
}

.h1-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-size: clamp(2.4rem, 5.5vw, 4.1rem);
  line-height: 1.1;
  color: var(--ink-2);
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.h2-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.02em;
}

.h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.lede {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.6;
}

.muted {
  color: var(--muted);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.875em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

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

.container-wide {
  width: min(100% - 40px, var(--max-wide));
  margin-inline: auto;
}

.section {
  padding: 96px 0;
}

.section-sm {
  padding: 64px 0;
}

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

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

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

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

@media (max-width: 1100px) {
  .grid-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

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

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }
}

/* ——— Surfaces ——— */
.card {
  background: var(--cloud);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}

.card-pad {
  padding: 24px;
}

.card-pad-lg {
  padding: 32px;
}

.card-hover {
  transition: 0.2s ease;
}

.card-hover:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ——— Packages ——— */
.pkg {
  --pkg: var(--accent-deep);
  --pkg-soft: var(--accent-soft);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), var(--pkg-soft) 55%, color-mix(in srgb, var(--pkg-soft) 70%, #fff));
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.pkg-mascot {
  position: absolute;
  right: -8px;
  top: 12px;
  width: 170px;
  height: 170px;
  object-fit: contain;
  pointer-events: none;
  opacity: 0.95;
  filter: drop-shadow(0 8px 14px rgba(27, 42, 58, 0.12));
  z-index: 1;
}

.pkg-top,
.pkg p,
.pkg-price,
.pkg-features,
.pkg .btn {
  position: relative;
  z-index: 2;
}

.pkg h3 {
  position: relative;
  z-index: 0;
}

.pkg h3 {
  max-width: none;
  white-space: nowrap;
  overflow: visible;
  position: relative;
  z-index: 0;
}

.pkg p {
  max-width: calc(100% - 150px);
}

.mascot-float {
  animation: mascotFloat 4.5s ease-in-out infinite;
  transform-origin: center;
  will-change: transform;
}

.mascot-float-2 {
  animation: mascotFloat2 5.2s ease-in-out infinite;
}

.mascot-float-3 {
  animation: mascotTilt 6s ease-in-out infinite;
}

@keyframes mascotFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}

@keyframes mascotFloat2 {
  0%, 100% { transform: translateY(0) rotate(3deg) scale(1); }
  50% { transform: translateY(-10px) rotate(-3deg) scale(1.03); }
}

@keyframes mascotTilt {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-12px) rotate(4deg); }
}

.hero-mascot-wrap {
  position: relative;
  width: min(280px, 55vw);
  margin: 8px auto 0;
  filter: drop-shadow(0 18px 28px rgba(27, 42, 58, 0.16));
}

.hero-mascot-wrap img {
  width: 100%;
  height: auto;
}

.detail-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  padding: 48px 0 24px;
}

@media (max-width: 800px) {
  .detail-hero {
    grid-template-columns: 1fr;
  }
}

.plan-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border-radius: var(--r-lg);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.plan-card.featured {
  border-color: var(--pkg, var(--accent));
  box-shadow: 0 14px 36px color-mix(in srgb, var(--pkg, var(--accent)) 22%, transparent);
  transform: translateY(-4px);
}

.plan-card .ribbon {
  position: absolute;
  top: 14px;
  right: 14px;
}


.pkg:hover {
  box-shadow: var(--shadow-md);
}

.pkg.selected {
  border-color: var(--pkg);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pkg) 20%, transparent), var(--shadow-md);
}

.pkg-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pkg-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--pkg-soft);
  color: var(--pkg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
}

.pkg-price {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.pkg-price span {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.pkg-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pkg-features li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.pkg-features li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--pkg);
}

.pkg-wp {
  --pkg: var(--wp);
  --pkg-soft: var(--wp-soft);
}

.pkg-ai {
  --pkg: var(--ai);
  --pkg-soft: var(--ai-soft);
}

.pkg-n8n {
  --pkg: var(--n8n);
  --pkg-soft: var(--n8n-soft);
}

.pkg-mail {
  --pkg: var(--mail);
  --pkg-soft: var(--mail-soft);
}

.pkg-landing {
  --pkg: var(--landing);
  --pkg-soft: var(--landing-soft);
}

.pkg-newsletter {
  --pkg: var(--newsletter);
  --pkg-soft: var(--newsletter-soft);
}

.pkg-social {
  --pkg: var(--social);
  --pkg-soft: var(--social-soft);
}

.badge-pkg {
  background: var(--pkg-soft);
  color: var(--pkg);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  transition: 0.18s ease;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(180deg, #6ed0f5, var(--accent));
  color: var(--cloud);
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px var(--accent-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--cloud);
}

.btn-ghost {
  color: var(--ink-2);
  height: 40px;
  padding: 0 14px;
}

.btn-ghost:hover {
  background: rgba(27, 42, 58, 0.05);
}

.btn-dark {
  background: var(--nav-2);
  color: var(--cloud);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-dark:hover:not(:disabled) {
  background: #2d4256;
}

.btn-white {
  background: var(--cloud);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

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

.btn-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.btn-lg {
  height: 56px;
  padding: 0 32px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.btn-pkg {
  background: var(--pkg);
  color: var(--cloud);
}

.btn-pkg:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* ——— Badges ——— */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--cloud);
  border: 1px solid var(--line);
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge-ok {
  background: var(--ok-soft);
  color: var(--ok);
  border-color: transparent;
}

.badge-warn {
  background: var(--warn-soft);
  color: var(--warn);
  border-color: transparent;
}

.badge-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: transparent;
}

.badge-info {
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-color: transparent;
}

.badge-neutral {
  background: var(--cloud-soft);
  color: var(--muted);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-2);
}

.chip-btn:hover,
.chip.active {
  border-color: var(--accent);
  color: var(--accent-deep);
  background: var(--accent-soft);
}

/* ——— Forms ——— */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-2);
}

.input,
.select,
.textarea {
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--cloud);
  outline: none;
  transition: 0.15s ease;
  width: 100%;
}

.textarea {
  height: auto;
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(78, 195, 240, 0.22);
}

.input.is-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.12);
}

.input-mono {
  font-family: var(--font-mono);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .form-row,
  .form-row-3 {
    grid-template-columns: 1fr;
  }
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
}

.checkbox-row input {
  margin-top: 3px;
  accent-color: var(--accent-deep);
}

/* ——— Tables ——— */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--cloud);
  box-shadow: var(--shadow-sm);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--cloud-soft);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.table tr:last-child td {
  border-bottom: none;
}

.table tbody tr:hover {
  background: #f7fbfe;
}

/* ——— Floating nav (signature) ——— */
.site-nav {
  position: sticky;
  top: 16px;
  z-index: 50;
  width: min(100% - 32px, 1120px);
  margin: 16px auto 0;
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 64px;
  padding: 0 10px 0 12px;
  background: rgba(28, 43, 58, 0.94);
  backdrop-filter: blur(12px);
  border-radius: var(--r-pill);
  box-shadow: 0 16px 40px rgba(27, 42, 58, 0.22);
  color: var(--cloud);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: var(--r-pill);
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

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

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .site-nav {
    width: min(100% - 32px, 1120px);
  }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  margin-top: -80px;
  padding: 140px 0 80px;
  min-height: 720px;
  background:
    linear-gradient(180deg, rgba(184, 224, 245, 0.18) 0%, rgba(212, 238, 251, 0.55) 70%, var(--sky-soft) 100%),
    url('sky-hero.png') center top / cover no-repeat;
  overflow: hidden;
}

/* ——— Painterly cloud layers (match sky-hero) ——— */
.hero-skylayer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

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

.cloud-img {
  position: absolute;
  pointer-events: none;
  user-select: none;
  will-change: transform;
  filter: drop-shadow(0 12px 24px rgba(140, 180, 210, 0.15));
}

/* Left / right framing banks like the reference sky */
.cloud-img.c1 {
  width: min(42vw, 520px);
  left: -6%;
  top: 8%;
  opacity: 0.92;
  animation: cloudSlideRight 70s ease-in-out infinite;
}

.cloud-img.c2 {
  width: min(48vw, 620px);
  right: -8%;
  top: 4%;
  opacity: 0.9;
  transform: scaleX(-1);
  animation: cloudSlideLeft 85s ease-in-out infinite;
}

.cloud-img.c3 {
  width: min(22vw, 260px);
  left: 58%;
  top: 12%;
  opacity: 0.55;
  animation: cloudSlideRight 55s ease-in-out infinite 2s;
}

.cloud-img.c4 {
  width: min(36vw, 420px);
  left: -4%;
  bottom: 8%;
  opacity: 0.75;
  animation: cloudSlideRight 95s ease-in-out infinite;
}

.cloud-img.c5 {
  width: min(40vw, 480px);
  right: -6%;
  bottom: 2%;
  opacity: 0.8;
  transform: scaleX(-1);
  animation: cloudSlideLeft 80s ease-in-out infinite;
}

.cloud-img.c6 {
  width: min(16vw, 180px);
  left: 30%;
  top: 55%;
  opacity: 0.45;
  animation: cloudSlideLeft 65s ease-in-out infinite 4s;
}

/* Tiny stepped drift so clouds feel alive but calm */
@keyframes cloudSlideRight {
  0%   { transform: translate3d(0, 0, 0); }
  25%  { transform: translate3d(10px, 4px, 0); }
  50%  { transform: translate3d(24px, -3px, 0); }
  75%  { transform: translate3d(38px, 2px, 0); }
  100% { transform: translate3d(52px, 0, 0); }
}

@keyframes cloudSlideLeft {
  0%   { transform: translate3d(0, 0, 0) scaleX(-1); }
  25%  { transform: translate3d(-12px, 3px, 0) scaleX(-1); }
  50%  { transform: translate3d(-26px, -2px, 0) scaleX(-1); }
  75%  { transform: translate3d(-40px, 2px, 0) scaleX(-1); }
  100% { transform: translate3d(-56px, 0, 0) scaleX(-1); }
}

@media (prefers-reduced-motion: reduce) {
  .cloud-img {
    animation: none !important;
  }
}

/* ——— Section / footer cloud decor (small + medium) ——— */
.cloud-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.has-clouds {
  position: relative;
  overflow: hidden;
}

.has-clouds > *:not(.cloud-decor) {
  position: relative;
  z-index: 1;
}

.cloud-decor img {
  position: absolute;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

/* medium side banks */
.cloud-decor .cm-l {
  width: min(28vw, 300px);
  left: -4%;
  opacity: 0.55;
  animation: cloudSlideRight 80s ease-in-out infinite;
}

.cloud-decor .cm-r {
  width: min(26vw, 280px);
  right: -5%;
  opacity: 0.5;
  transform: scaleX(-1);
  animation: cloudSlideLeft 90s ease-in-out infinite;
}

.cloud-decor .cm-b {
  width: min(32vw, 340px);
  left: 18%;
  bottom: -4%;
  opacity: 0.4;
  animation: cloudSlideRight 100s ease-in-out infinite;
}

.cloud-decor .cm-br {
  width: min(30vw, 320px);
  right: 8%;
  bottom: -6%;
  opacity: 0.38;
  transform: scaleX(-1);
  animation: cloudSlideLeft 110s ease-in-out infinite;
}

/* small accents */
.cloud-decor .cs-1 {
  width: min(14vw, 140px);
  top: 12%;
  right: 14%;
  opacity: 0.4;
  animation: cloudSlideRight 55s ease-in-out infinite;
}

.cloud-decor .cs-2 {
  width: min(12vw, 120px);
  top: 20%;
  left: 12%;
  opacity: 0.35;
  animation: cloudSlideLeft 60s ease-in-out infinite;
}

.cloud-decor .cs-3 {
  width: min(16vw, 160px);
  bottom: 18%;
  right: 22%;
  opacity: 0.32;
  animation: cloudSlideRight 70s ease-in-out infinite 3s;
}

/* Footer sky wash */
.site-footer {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(244, 250, 254, 0.92), rgba(212, 238, 251, 0.95));
}

.site-footer .footer-grid,
.site-footer > .container {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .cloud-decor img {
    animation: none !important;
  }
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}

.hero .h1,
.hero .h1-italic {
  max-width: 16ch;
}

.hero-copy {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.domain-search {
  width: min(100%, 560px);
  display: flex;
  gap: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-md);
}

.domain-search .input {
  border: none;
  box-shadow: none;
  height: 48px;
  border-radius: var(--r-pill);
  background: transparent;
  font-family: var(--font-mono);
}

.domain-search .btn {
  height: 48px;
  flex-shrink: 0;
}

.domain-results {
  width: min(100%, 560px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.domain-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.domain-result .name {
  font-family: var(--font-mono);
  font-weight: 500;
}

.hero-panel {
  width: min(100%, 860px);
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  text-align: left;
}

@media (max-width: 720px) {
  .hero-panel {
    grid-template-columns: 1fr;
  }
}

.hero-panel .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
}

.hero-panel .row + .row {
  margin-top: 10px;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 36px;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-2);
}

/* ——— CTA / footer ——— */
.cta-band {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  color: var(--ink);
  border-radius: var(--r-lg);
  padding: 52px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: var(--shadow-md);
}

@media (max-width: 800px) {
  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 28px;
  }
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  padding: 56px 0 32px;
  margin-top: 32px;
}

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

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

.footer-col h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.footer-col a:hover {
  color: var(--accent-deep);
}

/* ——— Dashboards (light / frost) ——— */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  min-height: 100vh;
  background: var(--sky-soft);
}

.sidebar {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-right: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: inset -1px 0 0 var(--line);
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  color: var(--ink);
}

.sidebar .brand {
  padding: 8px 12px 20px;
}

.sidebar .brand-mark {
  background: var(--nav);
}

.side-section {
  margin-top: 18px;
}

.side-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 0 12px 8px;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.side-nav a:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

.side-nav a.active {
  background: linear-gradient(180deg, #dff3fc, var(--accent-soft));
  color: var(--accent-deep);
  box-shadow: inset 0 0 0 1px rgba(78, 195, 240, 0.35);
  font-weight: 600;
}

.side-nav .count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  background: var(--cloud-soft);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 999px;
}

.side-footer {
  margin-top: auto;
  padding: 14px 12px 4px;
  border-top: 1px solid var(--line);
}

.app-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 0 var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  width: min(320px, 36vw);
  padding: 0 14px;
  background: var(--cloud);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 0.875rem;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), var(--violet));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.content-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.metric-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--r-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.metric-card .label {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 500;
}

.metric-card .value {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.metric-card .delta {
  font-size: 0.75rem;
  font-weight: 600;
}

.delta-up {
  color: var(--ok);
}

.delta-down {
  color: var(--danger);
}

.chart-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--r-md);
  padding: 20px 20px 12px;
  box-shadow: var(--shadow-sm);
}

.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.chart-svg {
  width: 100%;
  height: 180px;
}

.activity-item {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
}

.bar-track {
  height: 10px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #8ed8f7);
}

/* ——— Checkout ——— */
.checkout-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(184, 224, 245, 0.35), var(--sky-soft) 40%);
}

.checkout-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
}

.checkout-top-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  padding: 40px 0 72px;
  align-items: start;
}

@media (max-width: 960px) {
  .checkout-body {
    grid-template-columns: 1fr;
  }
}

.steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.step .num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cloud-soft);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
}

.step.active {
  border-color: var(--accent);
  color: var(--accent-deep);
  background: var(--accent-soft);
}

.step.active .num,
.step.done .num {
  background: var(--accent);
  color: #fff;
}

.step.done {
  color: var(--ok);
  border-color: #b7e6cf;
  background: var(--ok-soft);
}

.step.done .num {
  background: var(--ok);
}

.order-rail {
  position: sticky;
  top: 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.875rem;
}

.order-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
  font-weight: 700;
}

.order-total .amount {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.option-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: 0.15s ease;
}

.option-card:hover {
  border-color: var(--line-strong);
}

.option-card.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(78, 195, 240, 0.15);
}

.option-card input {
  margin-top: 4px;
  accent-color: var(--accent-deep);
}

.panel-step {
  display: none;
  flex-direction: column;
  gap: 20px;
}

.panel-step.active {
  display: flex;
}

.panel-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
}

.success-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ok-soft);
  color: var(--ok);
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}

/* ——— Auth ——— */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.auth-brand {
  background:
    linear-gradient(180deg, rgba(28, 43, 58, 0.15), rgba(28, 43, 58, 0.35)),
    url('sky-hero.png') center / cover no-repeat;
  color: var(--ink);
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.auth-brand .brand {
  color: #fff;
}

.auth-brand .brand-mark {
  background: rgba(28, 43, 58, 0.75);
}

.auth-form-wrap {
  display: grid;
  place-items: center;
  padding: 40px 24px;
  background: var(--sky-soft);
}

.auth-card {
  width: min(100%, 420px);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-logo-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.divider-or {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.divider-or::before,
.divider-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.social-btn {
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--cloud);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.social-btn:hover {
  background: var(--cloud-soft);
}

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

  .auth-brand {
    min-height: 220px;
    padding: 28px;
  }

  .auth-brand .auth-hide-sm {
    display: none;
  }
}

/* ——— Contact ——— */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

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

.contact-tile {
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.icon-tile {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-deep);
  flex-shrink: 0;
}

/* ——— Utilities ——— */
.flex {
  display: flex;
}

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

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

.stack-8 {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stack-12 {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stack-16 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stack-24 {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

.mt-8 {
  margin-top: 8px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.pill-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.8125rem;
  font-weight: 600;
}

@media (max-width: 960px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
  }

  .grid-4.metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* ——— Hero panel left column: center CTA on X and Y ——— */
#idx-container-hero-panel-stack-12 {
  min-height: 100%;
  min-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

#idx-container-hero-panel-stack-12 > #idx-hero-panel-stack-12-div {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
}

.hero-cta {
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow:
    0 12px 32px rgba(78, 195, 240, 0.45),
    0 0 0 4px rgba(78, 195, 240, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: scale(1.04);
}

.hero-cta:hover {
  transform: scale(1.06);
  box-shadow:
    0 16px 40px rgba(78, 195, 240, 0.55),
    0 0 0 6px rgba(78, 195, 240, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
