/*
 * aqua.css — resume-tailor UI skin, matched to eventually-consistent.io.
 * Mac-Aqua / Frutiger-Aero pastiche: pinstriped pale-blue page, glossy
 * header, white-gradient cards, pill buttons. Light-only, system fonts.
 */

:root {
  --aqua-blue: #2f7fd6;
  --aqua-blue-dk: #1a5fb4;
  --aqua-line: #9fb6cc;
  --border: #b9c9d8;
  --card-border: #c3d3e2;
  --content: #1f2d3a;
  --secondary: #4a5b6b;
  --heading: #14304b;
  --nav-text: #16324f;
  --entry: #ffffff;
  --radius: 8px;
  --main-width: 720px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: lucida grande, helvetica neue, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--content);
  -webkit-font-smoothing: antialiased;
  background:
    repeating-linear-gradient(0deg,
      rgba(255, 255, 255, 0.55) 0 1px,
      rgba(210, 224, 238, 0.55) 1px 3px),
    linear-gradient(#eaf1f8, #dce8f3);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Glossy header bar — hard 50/51% stop is the gloss seam */
header {
  height: 60px;
  background: linear-gradient(#fdfeff, #eaf1f8 50%, #d4e2f0 51%, #e3eef8);
  border-bottom: 1px solid var(--aqua-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
}

header {
  padding: 0 28px;
  gap: 24px;
}

#clerk-user-button {
  display: flex;
  align-items: center;
  margin-left: 22px;
}

header .wordmark {
  padding: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--nav-text);
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

main {
  max-width: calc(var(--main-width) + 48px);
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px;
  flex: 1;
}

h1, h2, h3 {
  color: var(--heading);
  line-height: 1.2;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

h1 { font-size: 40px; margin-bottom: 24px; }
h2 { font-size: 32px; margin: 32px auto 24px; }

a {
  color: var(--aqua-blue);
  text-underline-offset: 0.25rem;
}

a:hover { color: var(--aqua-blue-dk); }

/* White-gradient card with gloss inset and blue hover ring */
.card {
  background: linear-gradient(var(--entry), #eef4fb);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow:
    0 2px 6px rgba(31, 45, 58, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 24px;
  margin-bottom: 24px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: var(--aqua-blue);
  box-shadow:
    0 0 0 3px rgba(47, 127, 214, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

label {
  display: block;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 8px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.button-row {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

textarea, input[type="url"], input[type="text"] {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--content);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 20px;
  box-shadow: inset 0 1px 3px rgba(31, 45, 58, 0.08);
}

textarea { min-height: 220px; resize: vertical; }

textarea:focus, input[type="url"]:focus, input[type="text"]:focus {
  outline: none;
  border-color: var(--aqua-blue);
  box-shadow: 0 0 0 3px rgba(47, 127, 214, 0.3);
}

textarea:disabled, input[type="url"]:disabled {
  background: #eef3f9;
  color: var(--secondary);
}

.divider {
  text-align: center;
  color: var(--secondary);
  font-size: 16px;
  margin: 4px 0 20px;
}

/* Buttons — aqua glass, everywhere. Glossy blue gradient with a sheen
   highlight riding the top half, deeper blue on hover, pressed inset on
   active. The old flat-grey defaults are gone. */
button:not([class*="cl-"]),
button.pill {
  position: relative;
  overflow: hidden;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  /* Gel body: bright center bulge, deep rim top and bottom, and a
     bottom-edge glow like light passing through the gel */
  background:
    radial-gradient(120% 160% at 50% 118%,
      rgba(140, 220, 255, 0.75) 0%, rgba(140, 220, 255, 0) 45%),
    linear-gradient(#8cc2f5 0%, #4a94e4 45%, #1e6fd0 50%,
                    #1a5fb4 82%, #3d87dd 100%);
  border: 1px solid rgba(10, 55, 110, 0.85);
  border-radius: 999px;
  padding: 10px 28px;
  cursor: pointer;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.65),
    inset 0 -1px 2px rgba(120, 200, 255, 0.5),
    0 2px 5px rgba(20, 60, 110, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.7);
  text-shadow: 0 -1px 1px rgba(0, 30, 70, 0.55);
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}

/* The gloss cap — a floating white reflection hugging the top curve,
   the thing that makes gel read as glass instead of gradient */
button:not([class*="cl-"])::before,
button.pill::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 2px;
  height: 46%;
  border-radius: 999px 999px 40% 40% / 999px 999px 60% 60%;
  background: linear-gradient(rgba(255, 255, 255, 0.95),
                              rgba(255, 255, 255, 0.35) 70%,
                              rgba(255, 255, 255, 0.05));
  opacity: 0.85;
  pointer-events: none;
}

button:not([class*="cl-"]):hover,
button.pill:hover {
  filter: brightness(1.1) saturate(1.2);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.65),
    inset 0 -1px 2px rgba(120, 200, 255, 0.5),
    0 3px 8px rgba(20, 60, 110, 0.5),
    0 1px 0 rgba(255, 255, 255, 0.7),
    0 0 10px rgba(80, 160, 240, 0.55);
}

button:not([class*="cl-"]):active,
button.pill:active {
  filter: brightness(0.9);
  box-shadow:
    inset 0 3px 6px rgba(0, 30, 70, 0.5),
    0 1px 0 rgba(255, 255, 255, 0.7);
}

button:not([class*="cl-"]):active::before,
button.pill:active::before {
  opacity: 0.45;
}

button:not([class*="cl-"]):disabled {
  filter: grayscale(0.5) opacity(0.6);
  cursor: default;
}

/* Aqua progress bar — indeterminate barber-pole shimmer for the 30-60s
   engine calls, so nobody wonders whether the thing is alive */
.progress-aqua {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}

.progress-aqua .progress-track {
  flex: 1 1 auto;
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(#dbe6f2, #eef4fb);
  border: 1px solid var(--aqua-line);
  box-shadow: inset 0 1px 3px rgba(60, 90, 130, 0.25);
  overflow: hidden;
}

.progress-aqua .progress-fill {
  height: 100%;
  width: 100%;
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 50%),
    repeating-linear-gradient(-55deg,
      #6fb2f0 0 12px,
      var(--aqua-blue) 12px 24px);
  background-size: auto, 34px 100%;
  animation: aqua-barber 0.9s linear infinite;
}

@keyframes aqua-barber {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 0 0, 34px 0; }
}

.progress-aqua .progress-label {
  color: var(--secondary);
  font-size: 15px;
  white-space: nowrap;
}

/* Header nav — aqua links beside the wordmark */
.site-nav {
  display: inline-flex;
  gap: 18px;
  margin-left: auto;
}

.site-nav a {
  font-weight: 700;
  font-size: 15px;
  color: var(--nav-text);
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.site-nav a:hover { color: var(--aqua-blue-dk); }

/* Color pass — headings pick up the aqua, cards get a top accent */
h1 { color: var(--aqua-blue-dk); }

h2, h3 { color: #24567e; }

.card {
  border-top: 3px solid var(--aqua-blue);
}

/* Stub-response box — code-block styling from the site */
#result {
  display: none;
  background: #f3f6fb;
  border: 1px solid #c7d6e4;
  border-radius: var(--radius);
  box-shadow: inset 0 1px 3px rgba(31, 45, 58, 0.06);
  padding: 16px;
  margin-top: 20px;
  font-family: monospace;
  font-size: 0.78em;
  white-space: pre-wrap;
  word-break: break-word;
}

#result.show { display: block; }
#result.error { border-color: #d68a2f; }

/* Preview card */
#preview h2.preview-headline { font-size: 24px; margin-bottom: 8px; }
#preview h3 { font-size: 20px; margin: 16px 0 8px; }
#preview ul { margin: 0 0 8px 24px; }
#preview li { margin-bottom: 4px; }
#preview .preview-role { margin: 12px 0 4px; }
#preview .preview-summary { margin-bottom: 8px; }
#preview .preview-file { color: var(--secondary); font-size: 16px; margin: 12px 0 16px; }

/* UPDATED-style teal badge for reworded bullets */
.badge {
  display: inline-block;
  background: #35c9a6;
  color: #06352b;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 6px;
  padding: 1px 6px;
  vertical-align: middle;
  text-shadow: none;
}

#export-result {
  margin-top: 12px;
  color: var(--secondary);
  font-size: 16px;
}

footer {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5a6b7b;
  font-size: 16px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* Onboarding review editor */
.hidden { display: none; }

.status-line {
  color: var(--secondary);
  font-size: 15px;
  min-height: 1.2em;
}

.field-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0;
}

.field-row input,
.bullet-row input,
.bullet-row textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 8px;
  font: inherit;
  font-size: 15px;
  flex: 1 1 140px;
}

.role-box {
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin: 10px 0;
}

.bullet-row {
  display: flex;
  gap: 8px;
  margin: 6px 0;
}

.bullet-row textarea {
  flex: 3 1 320px;
  min-height: 44px;
  resize: vertical;
}

.bullet-row .f-tags { flex: 1 1 120px; }

/* ---------- Landing page ---------- */

/* Frutiger Aero bubbles — glossy orbs drifting up behind the content */
.aero-bubbles {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.aero-bubbles span {
  position: absolute;
  bottom: -140px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95) 0 6%,
      rgba(255, 255, 255, 0.35) 18%, rgba(255, 255, 255, 0) 40%),
    radial-gradient(circle at 50% 50%, rgba(140, 200, 245, 0.28),
      rgba(80, 150, 220, 0.16) 60%, rgba(60, 130, 210, 0.3));
  border: 1px solid rgba(160, 200, 240, 0.5);
  box-shadow: inset 0 -6px 12px rgba(255, 255, 255, 0.4);
  animation: bubble-rise linear infinite;
}

.aero-bubbles span:nth-child(1) { left: 6%;  width: 90px;  height: 90px;  animation-duration: 21s; }
.aero-bubbles span:nth-child(2) { left: 18%; width: 42px;  height: 42px;  animation-duration: 14s; animation-delay: 3s; }
.aero-bubbles span:nth-child(3) { left: 33%; width: 66px;  height: 66px;  animation-duration: 18s; animation-delay: 7s; }
.aero-bubbles span:nth-child(4) { left: 55%; width: 34px;  height: 34px;  animation-duration: 12s; animation-delay: 1s; }
.aero-bubbles span:nth-child(5) { left: 70%; width: 110px; height: 110px; animation-duration: 24s; animation-delay: 5s; }
.aero-bubbles span:nth-child(6) { left: 84%; width: 52px;  height: 52px;  animation-duration: 15s; animation-delay: 9s; }
.aero-bubbles span:nth-child(7) { left: 93%; width: 28px;  height: 28px;  animation-duration: 11s; animation-delay: 2s; }

@keyframes bubble-rise {
  from { transform: translateY(0) translateX(0); opacity: 0; }
  8%   { opacity: 0.9; }
  92%  { opacity: 0.9; }
  to   { transform: translateY(-115vh) translateX(24px); opacity: 0; }
}

/* Staggered rise-in for landing sections */
.rise {
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: rise-in 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

.rise-1 { animation-delay: 0.15s; }
.rise-2 { animation-delay: 0.3s; }
.rise-3 { animation-delay: 0.45s; }
.rise-4 { animation-delay: 0.6s; }
.rise-5 { animation-delay: 0.75s; }
.rise-6 { animation-delay: 0.9s; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; }
  .aero-bubbles span { animation: none; display: none; }
}

.hero {
  text-align: center;
  padding: 36px 0 18px;
}

.hero-title {
  font-size: 46px;
  margin-bottom: 18px;
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(#5aa2e8, var(--aqua-blue-dk));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.hero-sub {
  font-size: 20px;
  color: var(--secondary);
  max-width: 560px;
  margin: 0 auto 26px;
}

.hero-cta {
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.hero-secondary {
  font-size: 15px;
  color: var(--secondary);
}

button.cta-big {
  font-size: 19px;
  padding: 14px 40px;
  animation: cta-breathe 2.6s ease-in-out infinite;
}

@keyframes cta-breathe {
  0%, 100% { box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.65),
    inset 0 -1px 2px rgba(120, 200, 255, 0.5),
    0 2px 5px rgba(20, 60, 110, 0.45); }
  50% { box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.65),
    inset 0 -1px 2px rgba(120, 200, 255, 0.5),
    0 2px 5px rgba(20, 60, 110, 0.45),
    0 0 18px rgba(80, 160, 240, 0.65); }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin: 26px 0;
}

.feature-grid .card { margin-bottom: 0; }

.feature-grid h3 { margin-bottom: 8px; }

.feature-grid p { font-size: 16px; }

.steps-list {
  margin: 0 0 4px 22px;
  font-size: 17px;
}

.steps-list li { margin-bottom: 10px; }

.pricing-teaser p { margin-bottom: 16px; }

.landing-foot {
  text-align: center;
  color: var(--secondary);
  font-size: 15px;
  margin: 8px 0 24px;
}

/* Sign-in page — centered title + centered Clerk widget */
.sign-in-card h1 { text-align: center; }

.sign-in-card #clerk-sign-in {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}
