/* ==========================================================================
   Software Hub (software.html) & DORI Converter landing (dori-converter.html)
   Caricato solo da queste pagine, dopo style.css
   ========================================================================== */

.sw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(181, 32, 34, 0.08);
  border: 1px solid rgba(181, 32, 34, 0.18);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.sw-hero {
  padding: calc(80px + 3rem) 0 2rem;
  background:
    radial-gradient(circle at 85% 0%, rgba(181, 32, 34, 0.08) 0%, transparent 45%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-color) 100%);
  text-align: center;
}

.sw-hero h1 {
  font-size: 2.9rem;
  max-width: 820px;
  margin: 0 auto 1rem;
}

.sw-hero h1 span {
  color: var(--primary);
}

.sw-hero .sw-lead {
  font-size: 1.15rem;
  max-width: 680px;
  margin: 0 auto;
}

.sw-section {
  padding: 2rem 0 4rem;
}

/* Quick access chips */
.sw-quick {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.sw-quick a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: white;
  border: 1px solid #e2e8f0;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: var(--shadow-sm);
}

.sw-quick a:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.sw-quick a em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #16a34a;
  color: white;
  border-radius: 999px;
  padding: 0.05rem 0.45rem;
}

.sw-quick a.sw-quick-main {
  background: linear-gradient(90deg, var(--primary), #ef4444);
  border-color: transparent;
  color: white;
  box-shadow: 0 10px 22px -8px rgba(239, 68, 68, 0.6);
}

.sw-quick a.sw-quick-main:hover {
  color: white;
}

/* ---------- Featured card (DORI) ---------- */
.sw-featured {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem;
  border-radius: 24px;
  color: white;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 55%, #7f1d1d 100%);
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.45);
  isolation: isolate;
}

.sw-featured::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -20%;
  width: 70%;
  height: 160%;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.22) 0%, transparent 65%);
  z-index: -1;
}

.sw-featured h2,
.sw-featured h3 {
  color: white;
}

.sw-featured h2 {
  font-size: 2.4rem;
  margin-bottom: 0.75rem;
}

.sw-featured p {
  color: #cbd5e1;
  font-size: 1.05rem;
}

.sw-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
}

.sw-flag-star {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  color: white;
  margin-bottom: 1rem;
}

.sw-flag-new {
  background: #16a34a;
  color: white;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
}

.sw-checks {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  margin: 1.25rem 0 2rem;
}

.sw-checks li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: #e2e8f0;
  font-size: 0.98rem;
}

.sw-checks li::before {
  content: "\2713";
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  margin-top: 0.15rem;
}

.sw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.btn-glow {
  background: linear-gradient(90deg, var(--primary), #ef4444);
  color: white;
  border: none;
  box-shadow: 0 12px 28px -8px rgba(239, 68, 68, 0.6);
}

.btn-glow:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -8px rgba(239, 68, 68, 0.7);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.06);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.14);
  color: white;
}

.sw-note-light {
  font-size: 0.85rem;
  color: #94a3b8 !important;
  margin: 0.9rem 0 0;
}

.sw-note-light a {
  color: #fca5a5;
  font-weight: 600;
}

/* Browser-like frame for screenshots */
.sw-browser {
  display: block;
  background: #1e293b;
  border-radius: 14px;
  padding: 0.6rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.sw-browser-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.4rem 0.55rem;
}

.sw-browser-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #475569;
  flex-shrink: 0;
}

.sw-browser-bar i:nth-child(1) { background: #ef4444; }
.sw-browser-bar i:nth-child(2) { background: #f59e0b; }
.sw-browser-bar i:nth-child(3) { background: #22c55e; }

.sw-browser-bar span {
  margin-left: 0.6rem;
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sw-browser img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ---------- Other software cards ---------- */
.sw-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 4.5rem 0 2rem;
}

.sw-heading h2 {
  margin: 0 0 0.25rem;
  font-size: 1.9rem;
}

.sw-heading p {
  margin: 0;
}

.sw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.sw-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface-color);
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  color: inherit;
}

.sw-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(181, 32, 34, 0.25);
  color: inherit;
}

.sw-card .sw-flag-new {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
}

.sw-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-md);
}

.sw-card-icon.geo { background: linear-gradient(135deg, #059669, #0d9488); }
.sw-card-icon.estimo { background: linear-gradient(135deg, #7c3aed, #4f46e5); }
.sw-card-icon.beam { background: linear-gradient(135deg, #ea580c, #b45309); }

.sw-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.sw-card-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.sw-card p {
  font-size: 0.97rem;
  margin-bottom: 1rem;
}

.sw-card ul {
  list-style: none;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.92rem;
  color: #334155;
}

.sw-card ul li::before {
  content: "\2192";
  color: var(--primary);
  font-weight: 700;
  margin-right: 0.5rem;
}

.sw-card-link {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid #f1f5f9;
  font-weight: 600;
  color: var(--primary);
}

.sw-card-link small {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--text-light);
  overflow-wrap: anywhere;
}

.sw-card-link span {
  flex-shrink: 0;
}

.sw-card:hover .sw-card-link span {
  text-decoration: underline;
}

.sw-custom {
  margin-top: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: white;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  padding: 1.75rem 2rem;
}

.sw-custom h3 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}

.sw-custom p {
  margin: 0;
}

/* ==========================================================================
   DORI page
   ========================================================================== */
.dori-hero {
  position: relative;
  padding: calc(80px + 4rem) 0 5rem;
  color: white;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 55%, #7f1d1d 100%);
  isolation: isolate;
}

.dori-hero::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -15%;
  width: 60%;
  height: 160%;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.2) 0%, transparent 65%);
  z-index: -1;
}

.dori-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, black 0%, transparent 90%);
  mask-image: linear-gradient(180deg, black 0%, transparent 90%);
  z-index: -1;
}

.dori-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.dori-hero h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.dori-hero h1 span {
  background: linear-gradient(90deg, #fca5a5, #fdba74);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dori-hero .dori-lead {
  color: #cbd5e1;
  font-size: 1.18rem;
  margin-bottom: 1.75rem;
}

.dori-version-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.95rem 0.35rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e2e8f0;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  transition: var(--transition-smooth);
}

.dori-version-pill:hover {
  background: rgba(255, 255, 255, 0.14);
  color: white;
}

.dori-version-pill b {
  background: #22c55e;
  color: #052e16;
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

.dori-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: #94a3b8;
}

.dori-trust span::before {
  content: "\2713\00a0";
  color: #4ade80;
  font-weight: 700;
}

.dori-hero-visual {
  position: relative;
}

.dori-hero-visual .sw-browser {
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.6s ease;
}

.dori-hero-visual:hover .sw-browser {
  transform: perspective(1400px) rotateY(0) rotateX(0);
}

.dori-float-card {
  position: absolute;
  left: -1.5rem;
  bottom: -1.5rem;
  background: white;
  color: var(--text-dark);
  border-radius: 14px;
  padding: 0.85rem 1.1rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.35;
  animation: float 6s ease-in-out infinite;
}

.dori-float-card strong {
  display: block;
  font-size: 0.95rem;
}

.dori-float-card .ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* sub navigation */
.dori-subnav {
  position: sticky;
  top: 80px;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
}

.dori-subnav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 56px;
}

.dori-subnav nav {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
}

.dori-subnav nav::-webkit-scrollbar {
  display: none;
}

.dori-subnav nav a {
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.92rem;
  white-space: nowrap;
}

.dori-subnav nav a:hover {
  color: var(--primary);
}

.dori-subnav .btn {
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.dori-section {
  padding: 5rem 0;
  scroll-margin-top: 140px;
}

.dori-section.alt {
  background: white;
}

.dori-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.dori-section-head h2 {
  margin-bottom: 0.75rem;
}

.dori-section-head p {
  font-size: 1.08rem;
  margin: 0;
}

/* steps */
.dori-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  counter-reset: step;
}

.dori-step {
  position: relative;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: var(--shadow-sm);
}

.dori-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -18px;
  left: 1.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(181, 32, 34, 0.35);
}

.dori-step h3 {
  font-size: 1.15rem;
  margin: 0.5rem 0;
}

.dori-step p {
  margin: 0;
  font-size: 0.96rem;
}

.dori-step code,
.dori-feature code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: #f1f5f9;
  border-radius: 4px;
  padding: 0.05rem 0.35rem;
  color: var(--primary);
}

/* features */
.dori-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.dori-feature {
  background: var(--bg-color);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.6rem;
  transition: var(--transition-smooth);
}

.dori-feature:hover {
  background: white;
  border-color: rgba(181, 32, 34, 0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.dori-feature.highlight {
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 70%);
  border-color: #fed7aa;
}

.dori-feature-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(181, 32, 34, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.dori-feature h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.dori-feature p {
  font-size: 0.93rem;
  margin: 0;
}

/* gallery */
.dori-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.25rem;
}

.dori-gallery a {
  display: block;
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid #e2e8f0;
  background: #0f172a;
  cursor: zoom-in;
}

.dori-gallery a:first-child {
  grid-row: span 2;
}

.dori-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.dori-gallery a:hover img {
  transform: scale(1.03);
}

.dori-gallery span {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  background: rgba(15, 23, 42, 0.8);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

/* pricing */
.dori-billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  margin-top: 1.5rem;
}

.dori-billing-toggle input {
  appearance: none;
  -webkit-appearance: none;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  cursor: pointer;
  transition: background 0.25s;
  flex-shrink: 0;
  margin: 0;
}

.dori-billing-toggle input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s;
}

.dori-billing-toggle input:checked {
  background: #16a34a;
}

.dori-billing-toggle input:checked::after {
  transform: translateX(20px);
}

.dori-billing-toggle input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.dori-save {
  background: #dcfce7;
  color: #15803d;
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  font-size: 0.78rem;
}

.dori-plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  align-items: stretch;
}

.dori-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.dori-plan.pro {
  border: 2px solid var(--primary);
  box-shadow: 0 25px 50px -15px rgba(181, 32, 34, 0.3);
}

.dori-plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--primary), #ef4444);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}

.dori-plan h3 {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.dori-plan-sub {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.dori-price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}

.dori-price strong {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--text-dark);
}

.dori-price span {
  color: var(--text-light);
  font-weight: 500;
}

.dori-price-note {
  font-size: 0.85rem;
  color: var(--text-light);
  min-height: 1.4em;
  margin-bottom: 1.25rem;
}

.dori-plan ul {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  margin-bottom: 2rem;
  font-size: 0.97rem;
  color: #1e293b;
}

.dori-plan li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.dori-plan li::before {
  content: "\2713";
  color: #16a34a;
  font-weight: 800;
  flex-shrink: 0;
}

.dori-plan li.no {
  color: #94a3b8;
}

.dori-plan li.no::before {
  content: "\2013";
  color: #94a3b8;
}

.dori-plan .btn {
  margin-top: auto;
  width: 100%;
}

.dori-guarantee {
  text-align: center;
  margin: 1.75rem 0 0;
  font-size: 0.92rem;
}

/* release notes */
.rn-box {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.rn-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.75rem;
  background: #0f172a;
  color: white;
}

.rn-header h3 {
  color: white;
  margin: 0;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.rn-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: #94a3b8;
  font-family: var(--font-mono);
}

.rn-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: rn-pulse 2s infinite;
}

.rn-live.off::before {
  background: #94a3b8;
  animation: none;
}

@keyframes rn-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.rn-body {
  max-height: 600px;
  overflow-y: auto;
  padding: 0.5rem 1.75rem 1.5rem;
}

.rn-version {
  border-bottom: 1px solid #f1f5f9;
}

.rn-version:last-of-type {
  border-bottom: none;
}

.rn-version summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem 0.75rem;
  flex-wrap: wrap;
  padding: 1.1rem 0;
}

.rn-version summary::-webkit-details-marker {
  display: none;
}

.rn-version summary::after {
  content: "";
  margin-left: auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.rn-version[open] summary::after {
  transform: rotate(-135deg);
}

.rn-ver {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.9rem;
  background: rgba(181, 32, 34, 0.08);
  color: var(--primary);
  border-radius: 6px;
  padding: 0.15rem 0.55rem;
}

.rn-date {
  color: var(--text-light);
  font-size: 0.9rem;
}

.rn-latest {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #dcfce7;
  color: #15803d;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}

.rn-content {
  padding: 0 0 1.25rem;
  font-size: 0.94rem;
  color: #334155;
}

.rn-content h4 {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
  color: var(--text-dark);
}

.rn-content h4:first-child {
  margin-top: 0;
}

.rn-content ul {
  margin: 0 0 0.5rem 1.15rem;
  display: grid;
  gap: 0.35rem;
}

.rn-content ul ul {
  margin-top: 0.35rem;
  list-style: circle;
}

.rn-content code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: #f1f5f9;
  border-radius: 4px;
  padding: 0.05rem 0.35rem;
  color: var(--primary);
}

.rn-content p {
  margin: 0 0 0.5rem;
  color: #334155;
}

.rn-more {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.7rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.92rem;
}

.rn-more:hover {
  background: #f1f5f9;
}

.rn-state {
  padding: 2rem 0 1rem;
  text-align: center;
  color: var(--text-light);
}

.rn-state p {
  margin-bottom: 1rem;
}

/* FAQ */
.dori-faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 0.85rem;
}

.dori-faq details {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0 1.4rem;
}

.dori-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 0;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.dori-faq summary::-webkit-details-marker {
  display: none;
}

.dori-faq summary::after {
  content: "+";
  font-size: 1.35rem;
  line-height: 1;
  color: var(--primary);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.dori-faq details[open] summary::after {
  transform: rotate(45deg);
}

.dori-faq details p {
  margin: 0 0 1.2rem;
}

/* final CTA */
.dori-cta {
  border-radius: 24px;
  padding: 3.5rem 2rem;
  text-align: center;
  color: white;
  background: linear-gradient(135deg, var(--primary) 0%, #7f1d1d 100%);
  box-shadow: 0 30px 60px -25px rgba(181, 32, 34, 0.6);
}

.dori-cta h2 {
  color: white;
  margin-bottom: 0.75rem;
}

.dori-cta p {
  color: #fecaca;
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto 2rem;
}

.dori-cta .sw-actions {
  justify-content: center;
}

.btn-white {
  background: white;
  color: var(--primary);
  border: none;
  box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.35);
}

.btn-white:hover {
  color: var(--primary-hover);
  transform: translateY(-2px);
}

/* sticky mobile CTA */
.dori-mobile-cta {
  display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .sw-featured,
  .dori-hero-grid {
    grid-template-columns: 1fr;
  }

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

  .dori-hero-visual .sw-browser {
    transform: none;
  }
}

@media (max-width: 768px) {
  .sw-hero {
    padding: calc(80px + 2rem) 0 1.5rem;
  }

  .sw-hero .sw-lead {
    font-size: 1rem;
  }

  .sw-quick {
    gap: 0.5rem;
    margin-top: 1.25rem;
  }

  .sw-quick a {
    padding: 0.45rem 0.8rem;
    font-size: 0.82rem;
  }

  .sw-quick a.sw-quick-main {
    flex: 1 1 100%;
    justify-content: center;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
  }

  .sw-hero h1,
  .dori-hero h1 {
    font-size: 2.05rem !important;
  }

  .sw-featured {
    padding: 2rem 1.35rem;
    border-radius: 18px;
    gap: 2rem;
  }

  .sw-featured h2 {
    font-size: 1.9rem;
  }

  .sw-grid,
  .dori-features,
  .dori-steps,
  .dori-plans {
    grid-template-columns: 1fr;
  }

  .dori-steps {
    gap: 2.25rem;
  }

  .dori-plans {
    gap: 2.5rem;
  }

  .sw-actions .btn {
    flex: 1 1 100%;
  }

  .dori-hero {
    padding: calc(80px + 2.5rem) 0 3.5rem;
  }

  .dori-float-card {
    left: 0.5rem;
    bottom: -1.25rem;
  }

  .dori-section {
    padding: 3.5rem 0;
  }

  .dori-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .dori-gallery a:first-child {
    grid-row: auto;
  }

  .dori-subnav .btn {
    display: none;
  }

  .dori-plan {
    padding: 2rem 1.5rem;
  }

  .rn-body {
    padding: 0.25rem 1.1rem 1.25rem;
  }

  .rn-header {
    padding: 1rem 1.1rem;
  }

  .sw-custom {
    padding: 1.5rem;
  }

  .sw-custom .btn {
    width: 100%;
  }

  .dori-cta {
    padding: 2.5rem 1.35rem;
  }

  .dori-mobile-cta {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 998;
    gap: 0.6rem;
    padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -8px 20px rgba(15, 23, 42, 0.08);
    transform: translateY(110%);
    transition: transform 0.3s ease;
  }

  .dori-mobile-cta.show {
    transform: translateY(0);
  }

  .dori-mobile-cta .btn {
    flex: 1;
    padding: 0.75rem 0.5rem;
    font-size: 0.92rem;
  }

  .has-mobile-cta .back-to-top {
    bottom: 90px;
  }

  .has-mobile-cta footer {
    padding-bottom: 6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dori-float-card,
  .rn-live::before {
    animation: none;
  }

  .dori-hero-visual .sw-browser {
    transform: none;
  }
}
