/*fern-site-stylesheet*/:root {
  --header-height: 64px;
  --header-height-real: 64px;
  --mobile-header-height-real: 64px;
  --content-width: 850px;
  --sidebar-width: 300px;
  --page-width: 100vw;
  --logo-height: 20px;
  --font-body: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  --font-heading: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  --font-code: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

:root {
  --typography-body-font-family: var(--font-body);
  --typography-heading-font-family: var(--font-heading);
  --typography-code-font-family: var(--font-code);
}


:root {
  --accent-1: #fcfdff;
  --accent-2: #f5f9ff;
  --accent-3: #e9f3ff;
  --accent-4: #daebff;
  --accent-5: #c7e1ff;
  --accent-6: #b2d3ff;
  --accent-7: #98c1ff;
  --accent-8: #73a7ff;
  --accent-9: #06f;
  --accent-10: #0059e8;
  --accent-11: #005dec;
  --accent-12: #0a2e6b;

  --accent-a1: #0055ff03;
  --accent-a2: #0066ff0a;
  --accent-a3: #0074ff16;
  --accent-a4: #0076ff25;
  --accent-a5: #0077ff38;
  --accent-a6: #006eff4d;
  --accent-a7: #0066ff67;
  --accent-a8: #005fff8c;
  --accent-a9: #0066ff;
  --accent-a10: #0059e8;
  --accent-a11: #005dec;
  --accent-a12: #002565f5;

  --accent-contrast: #fff;
  --accent-surface: #f3f8ffcc;
  --accent-indicator: #06f;
  --accent-track: #06f;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    :root {
      --accent-1: oklch(99.4% 0.0027 260.8);
      --accent-2: oklch(98.2% 0.0108 260.8);
      --accent-3: oklch(96% 0.0226 260.8);
      --accent-4: oklch(93.6% 0.0436 260.8);
      --accent-5: oklch(90.4% 0.0649 260.8);
      --accent-6: oklch(86.3% 0.0871 260.8);
      --accent-7: oklch(80.8% 0.1087 260.8);
      --accent-8: oklch(73.2% 0.145 260.8);
      --accent-9: oklch(56.3% 0.2408 260.8);
      --accent-10: oklch(51.8% 0.2282 260.8);
      --accent-11: oklch(53.1% 0.2282 260.8);
      --accent-12: oklch(31.8% 0.1151 260.8);

      --accent-a1: color(display-p3 0.0235 0.349 1 / 0.012);
      --accent-a2: color(display-p3 0.0235 0.349 0.8941 / 0.036);
      --accent-a3: color(display-p3 0.0078 0.4078 0.9529 / 0.079);
      --accent-a4: color(display-p3 0.0078 0.3882 0.9451 / 0.134);
      --accent-a5: color(display-p3 0 0.3922 0.9412 / 0.2);
      --accent-a6: color(display-p3 0.0039 0.3686 0.9451 / 0.279);
      --accent-a7: color(display-p3 0.0039 0.3412 0.949 / 0.373);
      --accent-a8: color(display-p3 0 0.3137 0.949 / 0.506);
      --accent-a9: color(display-p3 0 0.2706 0.9569 / 0.836);
      --accent-a10: color(display-p3 0 0.2392 0.8588 / 0.859);
      --accent-a11: color(display-p3 0 0.251 0.8706 / 0.851);
      --accent-a12: color(display-p3 0 0.102 0.349 / 0.918);

      --accent-contrast: #fff;
      --accent-surface: color(display-p3 0.9569 0.9725 1 / 0.8);
      --accent-indicator: oklch(56.3% 0.2408 260.8);
      --accent-track: oklch(56.3% 0.2408 260.8);
    }
  }
}


:root {
  --grayscale-1: #fdfcfd;
  --grayscale-2: #faf9fb;
  --grayscale-3: #f2eff3;
  --grayscale-4: #eae7ec;
  --grayscale-5: #e3dfe6;
  --grayscale-6: #dbd8e0;
  --grayscale-7: #d0cdd7;
  --grayscale-8: #bcbac7;
  --grayscale-9: #8e8c99;
  --grayscale-10: #84828e;
  --grayscale-11: #65636d;
  --grayscale-12: #211f26;

  --grayscale-a1: #55005503;
  --grayscale-a2: #2b005506;
  --grayscale-a3: #30004010;
  --grayscale-a4: #20003618;
  --grayscale-a5: #20003820;
  --grayscale-a6: #14003527;
  --grayscale-a7: #10003332;
  --grayscale-a8: #08003145;
  --grayscale-a9: #05001d73;
  --grayscale-a10: #0500197d;
  --grayscale-a11: #0400119c;
  --grayscale-a12: #020008e0;

  --grayscale-contrast: #000;
  --grayscale-surface: #ffffffcc;
  --grayscale-indicator: #8e8c99;
  --grayscale-track: #8e8c99;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    :root {
      --grayscale-1: color(display-p3 0.991 0.988 0.992);
      --grayscale-2: color(display-p3 0.98 0.976 0.984);
      --grayscale-3: color(display-p3 0.946 0.938 0.952);
      --grayscale-4: color(display-p3 0.915 0.906 0.925);
      --grayscale-5: color(display-p3 0.886 0.876 0.901);
      --grayscale-6: color(display-p3 0.856 0.846 0.875);
      --grayscale-7: color(display-p3 0.814 0.804 0.84);
      --grayscale-8: color(display-p3 0.735 0.728 0.777);
      --grayscale-9: color(display-p3 0.555 0.549 0.596);
      --grayscale-10: color(display-p3 0.514 0.508 0.552);
      --grayscale-11: color(display-p3 0.395 0.388 0.424);
      --grayscale-12: color(display-p3 0.128 0.122 0.147);

      --grayscale-a1: #55005503;
      --grayscale-a2: #2b005506;
      --grayscale-a3: #30004010;
      --grayscale-a4: #20003618;
      --grayscale-a5: #20003820;
      --grayscale-a6: #14003527;
      --grayscale-a7: #10003332;
      --grayscale-a8: #08003145;
      --grayscale-a9: #05001d73;
      --grayscale-a10: #0500197d;
      --grayscale-a11: #0400119c;
      --grayscale-a12: #020008e0;

      --grayscale-contrast: #000;
      --grayscale-surface: color(display-p3 1 1 1 / 80%);
      --grayscale-indicator: color(display-p3 0.555 0.549 0.596);
      --grayscale-track: color(display-p3 0.555 0.549 0.596);
    }
  }
}


.dark {
  --accent-1: #000;
  --accent-2: #121211;
  --accent-3: #1f1f1d;
  --accent-4: #282826;
  --accent-5: #30302e;
  --accent-6: #3a3a37;
  --accent-7: #484845;
  --accent-8: #60605e;
  --accent-9: #fff;
  --accent-10: #f6f6f4;
  --accent-11: #b3b3b0;
  --accent-12: #eeeeec;

  --accent-a1: #00000000;
  --accent-a2: #fffff112;
  --accent-a3: #ffffef1f;
  --accent-a4: #fffff328;
  --accent-a5: #fffff530;
  --accent-a6: #fffff23a;
  --accent-a7: #fffff548;
  --accent-a8: #fffffa60;
  --accent-a9: #ffffff;
  --accent-a10: #fffffdf6;
  --accent-a11: #fffffbb3;
  --accent-a12: #fffffdee;

  --accent-contrast: #311921;
  --accent-surface: #24242280;
  --accent-indicator: #fff;
  --accent-track: #fff;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .dark {
      --accent-1: oklch(0% 0.0023 106.5);
      --accent-2: oklch(18.3% 0.0022 106.5);
      --accent-3: oklch(23.9% 0.0032 106.5);
      --accent-4: oklch(27.5% 0.0036 106.5);
      --accent-5: oklch(30.8% 0.004 106.5);
      --accent-6: oklch(34.7% 0.004 106.5);
      --accent-7: oklch(40% 0.004 106.5);
      --accent-8: oklch(49% 0.004 106.5);
      --accent-9: oklch(100% 0 none);
      --accent-10: oklch(97.3% 0.0027 106.5);
      --accent-11: oklch(76.7% 0.004 106.5);
      --accent-12: oklch(94.8% 0.0027 106.5);

      --accent-a1: color(display-p3 0 0 0 / 0);
      --accent-a2: color(display-p3 0.9961 0.9961 0.9412 / 0.071);
      --accent-a3: color(display-p3 1 1 0.9333 / 0.122);
      --accent-a4: color(display-p3 1 1 0.9529 / 0.157);
      --accent-a5: color(display-p3 0.9961 0.9961 0.9569 / 0.189);
      --accent-a6: color(display-p3 1 1 0.949 / 0.228);
      --accent-a7: color(display-p3 1 1 0.9569 / 0.283);
      --accent-a8: color(display-p3 1 1 0.9804 / 0.377);
      --accent-a9: color(display-p3 1 1 1);
      --accent-a10: color(display-p3 1 1 0.9922 / 0.965);
      --accent-a11: color(display-p3 1 1 0.9843 / 0.702);
      --accent-a12: color(display-p3 1 1 0.9922 / 0.934);

      --accent-contrast: #311921;
      --accent-surface: color(display-p3 0.1412 0.1412 0.1333 / 0.5);
      --accent-indicator: oklch(100% 0 none);
      --accent-track: oklch(100% 0 none);
    }
  }
}


.dark {
  --grayscale-1: #111110;
  --grayscale-2: #191918;
  --grayscale-3: #222221;
  --grayscale-4: #2a2a28;
  --grayscale-5: #31312e;
  --grayscale-6: #3b3a37;
  --grayscale-7: #494844;
  --grayscale-8: #62605b;
  --grayscale-9: #6f6d66;
  --grayscale-10: #7c7b74;
  --grayscale-11: #b5b3ad;
  --grayscale-12: #eeeeec;

  --grayscale-a1: #00000000;
  --grayscale-a2: #f4f4f309;
  --grayscale-a3: #f6f6f513;
  --grayscale-a4: #fefef31b;
  --grayscale-a5: #fbfbeb23;
  --grayscale-a6: #fffaed2d;
  --grayscale-a7: #fffbed3c;
  --grayscale-a8: #fff9eb57;
  --grayscale-a9: #fffae965;
  --grayscale-a10: #fffdee73;
  --grayscale-a11: #fffcf4b0;
  --grayscale-a12: #fffffded;

  --grayscale-contrast: #fff;
  --grayscale-surface: rgba(0, 0, 0, 0.05);
  --grayscale-indicator: #6f6d66;
  --grayscale-track: #6f6d66;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .dark {
      --grayscale-1: color(display-p3 0.067 0.067 0.063);
      --grayscale-2: color(display-p3 0.098 0.098 0.094);
      --grayscale-3: color(display-p3 0.135 0.135 0.129);
      --grayscale-4: color(display-p3 0.164 0.163 0.156);
      --grayscale-5: color(display-p3 0.193 0.192 0.183);
      --grayscale-6: color(display-p3 0.23 0.229 0.217);
      --grayscale-7: color(display-p3 0.285 0.282 0.267);
      --grayscale-8: color(display-p3 0.384 0.378 0.357);
      --grayscale-9: color(display-p3 0.434 0.428 0.403);
      --grayscale-10: color(display-p3 0.487 0.481 0.456);
      --grayscale-11: color(display-p3 0.707 0.703 0.68);
      --grayscale-12: color(display-p3 0.933 0.933 0.926);

      --grayscale-a1: #00000000;
      --grayscale-a2: #f4f4f309;
      --grayscale-a3: #f6f6f513;
      --grayscale-a4: #fefef31b;
      --grayscale-a5: #fbfbeb23;
      --grayscale-a6: #fffaed2d;
      --grayscale-a7: #fffbed3c;
      --grayscale-a8: #fff9eb57;
      --grayscale-a9: #fffae965;
      --grayscale-a10: #fffdee73;
      --grayscale-a11: #fffcf4b0;
      --grayscale-a12: #fffffded;

      --grayscale-contrast: #fff;
      --grayscale-surface: color(display-p3 0 0 0 / 5%);
      --grayscale-indicator: color(display-p3 0.434 0.428 0.403);
      --grayscale-track: color(display-p3 0.434 0.428 0.403);
    }
  }
}

:root {
  color-scheme: light;
  --accent: rgba(0, 102, 255, 1);
  --background: #fff;
  --border: initial;
  --sidebar-background: initial;
  --header-background: color-mix(in srgb, var(--background), transparent 30%);
  --card-background: initial;
  --theme-color: #06f;
}

.dark {
  color-scheme: light;
  --background: #000000;
  --accent: #ffffff;
}

.fern-background-image {
  background-image: linear-gradient(to bottom, color-mix(in srgb, var(--accent), var(--background) 90%) 0, var(--background) 100%);
}

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

@keyframes glow {
    0% {
        text-shadow: 0 0 20px rgba(0, 113, 235, 0);
    }
    50% { 
        text-shadow: 0 0 20px rgba(0, 113, 235, 0.2);
    }
    100% {
        text-shadow: 0 0 20px rgba(0, 113, 235, 0);
    }
}

:root {
    --primary-color: #0066FF; /* TaxCloud's primary blue */
    --accent-color: #0066FF; /* Lighter blue for accents */
    --background-dark: #FFFFFF;
    --background-light: #F8FAFC;
    --text-color: #1E293B; /* Darker blue for text */
    --text-secondary: #64748B; /* Softer secondary text */
    --border-color: #E2E8F0;
    --border-radius: 8px; /* Slightly smaller radius to match TaxCloud */
    --max-width: 1200px;
    --transition: all 0.3s ease;
}

body {
    margin: 0;
    padding: 0;
    background: var(--background-dark);
    color: var(--text-color);
    font-family: 'Inter', sans-serif; /* Matching Koywe's font */
}

.hero-section {
    padding: 6rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #F8FAFC 0%, #FFFFFF 100%);
    margin: -2rem -2rem 4rem -2rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/grid-pattern.svg') center/cover;
    opacity: 0.1;
    pointer-events: none;
}

.hero-section h1 {
    font-size: 3.5rem; /* Slightly smaller for better readability */
    font-weight: 700; /* Less bold to match TaxCloud */
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    animation: fadeUpIn 1s ease-out;
}

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

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.5;
    animation: fadeUpIn 1s ease-out 0.2s backwards;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap; 
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
    animation: fadeUpIn 1s ease-out 0.4s backwards;
}

.primary-button, .secondary-button {
    padding: 6px 24px !important; 
    width: 185px;
    height: 55px;
    justify-content: center;
    border-radius: var(--border-radius);
    font-weight: 900;
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.primary-button {
    background: var(--primary-color);
    color: white; /* White text on blue background */
    padding: 0.875rem 1.75rem;
    border-radius: 6px;
    font-weight: 500;
}

.primary-button:hover {
    background: #0062cc; /* Darker blue on hover */
    transform: translateY(-2px);
}
.primary-button:focus-visible {
    background: #0062cc; /* Darker blue on hover */
    transform: translateY(-2px);
}

.secondary-button {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.875rem 1.75rem;
    border-radius: 6px;
}

.external-link-icon {
    color: var(--primary-color) !important; 
}

.truncate.font-medium:hover {
    background: transparent; /* Darker blue on hover */
    color: #0066FF;
    transform: translateY(-2px);
}
.truncate.font-medium:focus-visible {
    background: transparent; /* Darker blue on hover */
    color: #0066FF;
    transform: translateY(-2px);
}

.secondary-button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}
.secondary-button:focus-visible {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.fern-button.outlined.normal:hover {
    background: #cee2ff; /* Darker blue on hover */
    color: #0066FF;
    transform: translateY(-2px);
}
.fern-button.outlined.normal:focus-visible {
    background: #cee2ff; /* Darker blue on hover */
    color: #0066FF;
    transform: translateY(-2px);
}

.github-icon {
    width: 16px;
    height: 16px;
    filter: invert(1);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 6rem auto;
    max-width: var(--max-width);
    padding: 0 2rem;
}

.feature-card {
    padding: 1.75rem;
    background: var(--background-dark);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--text-color);
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
}
.feature-card:focus-visible {
    transform: translateY(-4px);
    border-color: var(--accent-color);
}

.code-preview {
    max-width: var(--max-width);
    margin: 4rem auto;
    background: #1E293B; /* Dark background for code */
    border-radius: var(--border-radius);
    overflow: hidden;
    border: none;
}

.code-header {
    background: #2D3748; /* Slightly lighter than code background */
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid #4A5568;
}

.code-title {
    font-size: 0.875rem;
    color: #E2E8F0;
    font-weight: 500;
}

pre {
    margin: 0;
    padding: 1.25rem !important;
    font-size: 0.875rem;
    line-height: 1.6;
    overflow-x: auto;
    background: #1E293B;
    color: #E2E8F0;
}

.getting-started {
    max-width: var(--max-width);
    margin: 8rem auto;
    padding: 0 2rem;
    text-align: center;
}

.getting-started h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    font-weight: 700;
}

.getting-started-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.getting-started-card {
    padding: 2rem;
    background: var(--background-light);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    text-align: left;
}

.getting-started-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 113, 235, 0.1);
}
.getting-started-card:focus-visible {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 113, 235, 0.1);
}

.community-section {
    background: var(--background-light);
    padding: 6rem 2rem;
    margin: 4rem -2rem;
    text-align: center;
}

.community-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 3rem;
}

.community-button {
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.community-button.discord {
    background: var(--accent-color);
    color: var(--primary-color);
}

.community-button.github {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.community-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}
.community-button:focus-visible {
    transform: translateY(-2px);
    opacity: 0.9;
}

@media (max-width: 1200px) {

    :root {
        --max-width: 90vw;
    }
    
    .hero-section h1 {
        font-size: 4rem;
    }

}

@media (max-width: 768px) {

    .hero-section {
        padding: 6rem 1rem;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
        padding: 0 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        padding: 0 2rem;
    }
    
    .features-grid, 
    .getting-started-grid {
        grid-template-columns: 1fr;
    }
    
    .community-links {
        flex-direction: column;
        align-items: stretch;
    }

}

@media (max-width: 480px) {

    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .getting-started h2 {
        font-size: 2rem;
    }

}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 113, 235, 0.05) 0%, transparent 50%);
    opacity: 0.5;
    z-index: 0;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 0.3;
    }
}

.hero-section > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {

  .btn-wrapper {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
  }

}