/* ================================================================
   Learn Georgian — Production Stylesheet
   Self-hosted utilities, replaces Tailwind CDN for zero render-block
   ================================================================ */

/* --- Preflight / Reset --------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}
html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
body  { margin: 0; line-height: inherit; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; margin: 0; }
p     { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a     { color: inherit; text-decoration: inherit; }
b, strong { font-weight: bolder; }
img, svg, video { display: block; vertical-align: middle; }
img   { max-width: 100%; }
blockquote, figure { margin: 0; }

/* --- Custom Properties -------------------------------------- */
:root {
  --geo-red: #CC2936;
  --geo-dark: #1a1a2e;
}

/* --- Backgrounds ------------------------------------------- */
.bg-white       { background-color: #ffffff; }
.bg-white\/95   { background-color: rgb(255 255 255 / 0.95); }
.bg-gray-50     { background-color: #f9fafb; }
.bg-gray-100    { background-color: #f3f4f6; }
.bg-gray-900    { background-color: #111827; }
.bg-red-50      { background-color: #fef2f2; }
.bg-geo-red     { background-color: var(--geo-red); }

.bg-gradient-to-b {
  background-image: linear-gradient(
    to bottom,
    var(--tw-gradient-from, transparent),
    var(--tw-gradient-to, transparent)
  );
}
.from-red-50 {
  --tw-gradient-from: #fef2f2;
  --tw-gradient-to: rgba(254,242,242,0);
}
.to-white { --tw-gradient-to: #ffffff; }

/* --- Text colours ------------------------------------------ */
.text-white   { color: #ffffff; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }
.text-red-200  { color: #fecaca; }
.text-geo-red  { color: var(--geo-red); }

/* --- Font families ----------------------------------------- */
.font-sans  {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.font-mono  {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}
.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Font sizes -------------------------------------------- */
.text-xs   { font-size: 0.75rem;  line-height: 1rem; }
.text-sm   { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem;     line-height: 1.5rem; }
.text-lg   { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl   { font-size: 1.25rem;  line-height: 1.75rem; }
.text-2xl  { font-size: 1.5rem;   line-height: 2rem; }
.text-3xl  { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl  { font-size: 2.25rem;  line-height: 2.5rem; }
.text-5xl  { font-size: 3rem;     line-height: 1; }

/* --- Font weights ------------------------------------------ */
.font-normal   { font-weight: 400; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }

/* --- Line heights ------------------------------------------ */
.leading-tight   { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.leading-loose   { line-height: 2; }

/* --- Letter spacing ---------------------------------------- */
.tracking-tight   { letter-spacing: -0.025em; }
.tracking-widest  { letter-spacing: 0.1em; }

/* --- Text transform / decoration / align ------------------- */
.uppercase   { text-transform: uppercase; }
.underline   { text-decoration-line: underline; }
.text-center { text-align: center; }
.text-left   { text-align: left; }

/* --- Display ----------------------------------------------- */
.block       { display: block; }
.inline-flex { display: inline-flex; }
.flex        { display: flex; }
.grid        { display: grid; }
.hidden      { display: none; }

/* --- Flex layout ------------------------------------------- */
.flex-col        { flex-direction: column; }
.flex-row        { flex-direction: row; }
.items-center    { align-items: center; }
.items-start     { align-items: flex-start; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.self-start      { align-self: flex-start; }

/* --- Grid layout ------------------------------------------- */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* --- Gap --------------------------------------------------- */
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* --- Position ---------------------------------------------- */
.sticky   { position: sticky; }
.relative { position: relative; }
.top-0    { top: 0; }
.z-50     { z-index: 50; }

/* --- Sizing ------------------------------------------------ */
.w-4    { width: 1rem; }
.h-4    { height: 1rem; }
.w-11   { width: 2.75rem; }
.h-11   { height: 2.75rem; }
.w-16   { width: 4rem; }
.h-16   { height: 4rem; }
.w-full { width: 100%; }
.max-w-none { max-width: none; }
.max-w-xl   { max-width: 36rem; }
.max-w-3xl  { max-width: 48rem; }
.max-w-4xl  { max-width: 56rem; }
.max-w-5xl  { max-width: 64rem; }
.max-w-6xl  { max-width: 72rem; }
.mx-auto    { margin-left: auto; margin-right: auto; }

/* --- Padding ----------------------------------------------- */
.p-7      { padding: 1.75rem; }
.px-2     { padding-left: 0.5rem;  padding-right: 0.5rem; }
.px-5     { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6     { padding-left: 1.5rem;  padding-right: 1.5rem; }
.px-7     { padding-left: 1.75rem; padding-right: 1.75rem; }
.px-8     { padding-left: 2rem;    padding-right: 2rem; }
.py-1     { padding-top: 0.25rem;  padding-bottom: 0.25rem; }
.py-2     { padding-top: 0.5rem;   padding-bottom: 0.5rem; }
.py-3\.5  { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4     { padding-top: 1rem;     padding-bottom: 1rem; }
.py-8     { padding-top: 2rem;     padding-bottom: 2rem; }
.py-10    { padding-top: 2.5rem;   padding-bottom: 2.5rem; }
.py-12    { padding-top: 3rem;     padding-bottom: 3rem; }
.py-16    { padding-top: 4rem;     padding-bottom: 4rem; }
.py-24    { padding-top: 6rem;     padding-bottom: 6rem; }
.pt-24    { padding-top: 6rem; }
.pb-20    { padding-bottom: 5rem; }

/* --- Margin ------------------------------------------------ */
.mb-2    { margin-bottom: 0.5rem; }
.mb-3    { margin-bottom: 0.75rem; }
.mb-4    { margin-bottom: 1rem; }
.mb-5    { margin-bottom: 1.25rem; }
.mb-6    { margin-bottom: 1.5rem; }
.mb-10   { margin-bottom: 2.5rem; }
.mb-12   { margin-bottom: 3rem; }
.mb-16   { margin-bottom: 4rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1    { margin-top: 0.25rem; }
.mt-3    { margin-top: 0.75rem; }
.mt-5    { margin-top: 1.25rem; }
.mt-16   { margin-top: 4rem; }

/* --- Stacked spacing --------------------------------------- */
.space-y-3  > * + * { margin-top: 0.75rem; }
.space-y-10 > * + * { margin-top: 2.5rem; }

/* --- Borders ----------------------------------------------- */
.border      { border-width: 1px; }
.border-b    { border-bottom-width: 1px; }
.border-t    { border-top-width: 1px; }
.border-gray-100 { border-color: #f3f4f6; }

/* --- Border radius ----------------------------------------- */
.rounded      { border-radius: 0.25rem; }
.rounded-xl   { border-radius: 0.75rem; }
.rounded-2xl  { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* --- Shadows ----------------------------------------------- */
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-lg {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1),
              0 4px 6px -4px rgb(0 0 0 / 0.1);
}
.shadow-xl {
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1),
              0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* --- Backdrop ---------------------------------------------- */
.backdrop-blur {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* --- Transitions ------------------------------------------- */
.transition-colors {
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-shadow {
  transition-property: box-shadow;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* --- Hover states ------------------------------------------ */
.hover\:text-geo-red:hover { color: var(--geo-red); }
.hover\:text-white:hover   { color: #ffffff; }
.hover\:bg-red-50:hover    { background-color: #fef2f2; }
.hover\:bg-red-700:hover   { background-color: #b91c1c; }
.hover\:bg-gray-700:hover  { background-color: #374151; }
.hover\:shadow-md:hover {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1),
              0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.hover\:underline:hover { text-decoration-line: underline; }

/* --- Screenshots section ----------------------------------- */
.screenshot-img {
  height: auto;
  display: block;
}

/* --- Prose (privacy page) ---------------------------------- */
.prose       { color: #374151; }
.prose-gray  { color: #374151; }

/* --- Responsive breakpoints -------------------------------- */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
}

@media (min-width: 768px) {
  .md\:flex     { display: flex; }
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
