/* PADDI LTD - Official Stylesheet */
:root {
  color-scheme: light;
  --brand: #3730A3;
  --brand-dark: #28237A;
  --brand-light: #EEF2FF;
  --accent: #FF6B4A;
  --accent-hover: #E85535;
  --ink: #14142B;
  --muted: #5A5A78;
  --bg: #FFFFFF;
  --surface: #F5F6FF;
  --border: #E0E2F5;
  --card-bg: #FFFFFF;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(20, 20, 43, 0.05);
  --shadow-md: 0 4px 16px rgba(55, 48, 163, 0.08);
  --shadow-lg: 0 10px 30px rgba(55, 48, 163, 0.12);
  --focus-ring: 0 0 0 3px rgba(255, 107, 74, 0.45);
  --max-width: 1100px;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition: all 0.2s ease;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --brand: #818CF8;
    --brand-dark: #6366F1;
    --brand-light: #1E1B4B;
    --accent: #FF7E61;
    --accent-hover: #FF6B4A;
    --ink: #F8FAFC;
    --muted: #CBD5E1;
    --bg: #0B0F19;
    --surface: #131A2B;
    --border: #232D42;
    --card-bg: #131A2B;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.6);
    --focus-ring: 0 0 0 3px rgba(255, 126, 97, 0.5);
  }
}

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg);
  color: var(--ink);
}

/* Accessibility: Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--brand);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  z-index: 10000;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s ease;
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background-color: rgba(11, 15, 25, 0.96);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--brand);
}

.logo-icon {
  width: 40px;
  height: 40px;
  display: block;
  flex-shrink: 0;
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand);
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.75rem;
}

.nav-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 0.25rem;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--brand);
}

.nav-link[aria-current="page"] {
  color: var(--brand);
  font-weight: 600;
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  cursor: pointer;
  color: var(--ink);
  line-height: 1;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  display: block;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    display: none;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 0.5rem 0;
  }
}

/* Main Layout */
main {
  flex: 1 0 auto;
}

.section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.section-surface {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 1rem;
}

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

/* Hero Section */
.hero {
  padding: 5rem 0 4.5rem;
  text-align: center;
}

.hero-content {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.hero .hero-subheading {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.25rem;
  line-height: 1.35;
}

.hero .hero-paragraph {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.85rem;
  line-height: 1.65;
}

.hero .hero-status {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.25rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  line-height: 1.2;
}

.btn-primary {
  background-color: #3730A3;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #28237A;
  color: #ffffff;
  border-bottom: 1px solid var(--accent);
}

.btn-secondary {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn-secondary:hover {
  background-color: var(--surface);
  border-color: var(--brand);
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  height: auto;
  max-height: none;
  overflow: visible;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  height: auto;
  max-height: none;
  overflow: visible;
}

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

@media (max-width: 640px) {
  .hero h1 {
    font-size: 2.25rem;
  }
  .hero .hero-subheading {
    font-size: 1.25rem;
  }
  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
  .section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

/* Feature & Info Cards */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: auto;
  max-height: none;
  overflow: visible;
  margin: 0;
  box-sizing: border-box;
}

.grid-2 .card,
.grid-3 .card {
  height: auto;
  min-height: auto;
  max-height: none;
  overflow: visible;
  padding: 1.75rem;
}

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

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
  overflow: visible;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 0;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  overflow: visible;
  height: auto;
  max-height: none;
}

.card-text {
  font-size: 0.975rem;
  color: var(--muted);
  line-height: 1.6;
  flex-grow: 1;
  margin-top: 0;
  margin-bottom: 0;
  overflow: visible;
  height: auto;
  max-height: none;
}

/* Steps (How it works) */
.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

@media (max-width: 768px) {
  .steps-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.step-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--brand);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 0.975rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Privacy & Trust Banner */
.privacy-banner {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.privacy-banner h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1rem;
}

.privacy-banner p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--card-bg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--brand);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}

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

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--brand);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem 1.5rem;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

/* Call to Action Section */
.cta-box {
  background-color: #3730A3;
  color: #ffffff;
  border-radius: var(--radius);
  padding: 3.5rem 2rem;
  text-align: center;
}

.cta-box h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.cta-box p {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 2rem;
}

.cta-box .btn {
  background-color: #ffffff;
  color: #3730A3;
  font-size: 1.05rem;
}

.cta-box .btn:hover {
  background-color: #EEF2FF;
  color: #3730A3;
  border-bottom: 1px solid var(--accent);
}

/* Content Pages (About, Legal, Contact) */
.page-header {
  padding: 3.5rem 0 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background-color: var(--surface);
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.page-header .page-intro {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
}

.last-updated {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* Legal & Longform Articles */
.article-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.legal-section h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.legal-section p {
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.legal-section ul, .legal-section ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--ink);
  line-height: 1.7;
}

.legal-section li {
  margin-bottom: 0.5rem;
}

/* Definition List (CAC & Company Details) */
.details-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.detail-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

@media (max-width: 600px) {
  .detail-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

.detail-item dt {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.95rem;
}

.detail-item dd {
  color: var(--ink);
  font-size: 0.95rem;
}

/* Contact Cards & Form */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 992px) {
  .contact-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.contact-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.contact-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.contact-card-icon svg {
  width: 20px;
  height: 20px;
}

.contact-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.contact-card p, .contact-card a {
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.5;
}

.contact-card a:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* Contact Form */
.form-wrapper {
  max-width: 680px;
  margin: 0 auto;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 600px) {
  .form-wrapper {
    padding: 1.5rem;
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.form-label .optional {
  font-weight: normal;
  color: var(--muted);
  font-size: 0.85rem;
}

.form-input,
.form-textarea,
select.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select.form-input {
  cursor: pointer;
}

.form-input:focus,
.form-textarea:focus,
select.form-input:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: var(--focus-ring);
}

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

.form-error {
  display: none;
  color: #DC2626;
  font-size: 0.85rem;
  margin-top: 0.35rem;
  font-weight: 500;
}

.has-error .form-input,
.has-error .form-textarea {
  border-color: #DC2626;
}

.has-error .form-error {
  display: block;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  accent-color: var(--brand);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-label {
  font-size: 0.925rem;
  color: var(--ink);
  line-height: 1.5;
  cursor: pointer;
}

.checkbox-label a {
  color: var(--brand);
  text-decoration: underline;
}

.success-banner {
  background-color: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  margin-bottom: 2rem;
}

@media (prefers-color-scheme: dark) {
  .success-banner {
    background-color: #064E3B;
    border-color: #047857;
    color: #ECFDF5;
  }
}

.success-banner h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.success-banner p {
  font-size: 1rem;
  line-height: 1.5;
}

.form-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 1.5rem;
  text-align: center;
  line-height: 1.5;
}

.form-note a {
  color: var(--brand);
  text-decoration: underline;
}

.sms-disclosure {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* 404 Page */
.error-page {
  padding: 6rem 1.5rem;
  text-align: center;
}

.error-code {
  font-size: 5rem;
  font-weight: 900;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1rem;
}

.error-desc {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  padding: 4.5rem 0 2.5rem;
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand .brand-logo {
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 320px;
  line-height: 1.5;
}

.footer-contact-item {
  font-size: 0.925rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact-item a {
  color: var(--ink);
  text-decoration: none;
}

.footer-contact-item a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--brand);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-registration {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-copyright {
  color: var(--muted);
  font-size: 0.875rem;
}

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

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