/* TakeMyPack — stylesheet
 *
 * Tokens come from the Stitch design source the earlier build used, so the two
 * versions look like the same product. They are the only place a raw brand
 * colour appears; everything below refers to a variable.
 */

:root {
  --navy: #071a2b;
  --navy-deep: #0d2438;
  --navy-soft: #17324a;
  --green: #16a36a;
  --orange: #ff7a1a;
  --orange-deep: #e86a0d;

  --background: #f6f8fa;
  --surface: #ffffff;
  --surface-muted: #f2f4f6;

  --fg: #10202f;
  --fg-muted: #667085;
  --fg-subtle: #98a2b3;
  --fg-inverse: #f5f7fa;
  --fg-inverse-muted: #a7b4c2;

  --border: #e4e7ec;
  --border-strong: #d0d5dd;
  --border-inverse: #1f3a52;

  --success: #12b76a;
  --success-surface: #ecfdf3;
  --success-border: #a6f4c5;
  --warning: #f79009;
  --warning-surface: #fffaeb;
  --warning-border: #fedf89;
  --error: #d92d20;
  --error-surface: #fef3f2;
  --error-border: #fecdca;
  --info: #2e90fa;
  --info-surface: #eff8ff;
  --info-border: #b2ddff;

  --radius-sm: 0.5rem;
  --radius: 0.875rem;
  --radius-lg: 1.25rem;

  /* Two shadows rather than one: the resting state is barely there, and the
     raised state is what makes a hover feel like the card lifted. */
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 1px 3px rgba(16, 24, 40, 0.06);
  --shadow-lifted: 0 8px 24px rgba(16, 24, 40, 0.1), 0 2px 6px rgba(16, 24, 40, 0.06);

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);

  /* Two families, as in the design source: a tighter grotesk carries the
     headings, Inter carries everything that has to be read at length. */
  --font-display: "Hanken Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  font-weight: 800;
}
/* The hero heading is the loudest thing on the site by design; it scales with
   the viewport so it stays that way on a phone without overflowing it. */
h1 { font-size: clamp(2.25rem, 1.2rem + 4.2vw, 4rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.35rem); }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 2px; }

.container { width: 100%; max-width: 74rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 30rem; margin: 0 auto; }
.muted { color: var(--fg-muted); }
.lead { font-size: 1.125rem; color: var(--fg-muted); max-width: 42rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* The skip link is invisible until it has focus, then it must be visible. */
.sr-only:focus {
  position: fixed; top: 1rem; left: 1rem;
  width: auto; height: auto; clip: auto;
  padding: 0.6rem 1rem; background: var(--navy); color: #fff;
  border-radius: var(--radius-sm); z-index: 50;
}

/* ------------------------------------------------------------------ motion */

/*
 * Sections rise into place once. Movement here is a hint that content has
 * arrived, not decoration — so it is short, happens once, and is turned off
 * entirely for anyone who has asked their system for less of it.
 */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.rise { animation: rise 0.5s var(--ease) both; }
.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.12s; }
.rise-3 { animation-delay: 0.19s; }

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

/* ------------------------------------------------------------------ header */

.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 30;
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.5rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.625rem;
  font-weight: 750; font-size: 1.2rem; letter-spacing: -0.02em;
  color: var(--navy); text-decoration: none;
}
.brand img { height: 2rem; width: auto; }

.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav a {
  color: var(--fg-muted); text-decoration: none;
  font-size: 0.95rem; font-weight: 550;
  padding: 0.5rem 0.75rem; border-radius: var(--radius-sm);
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.nav a:hover { color: var(--fg); background: var(--surface-muted); }
.nav a[aria-current="page"] { color: var(--navy); background: var(--surface-muted); }

@media (max-width: 52rem) { .nav.primary { display: none; } }

/* ------------------------------------------------------------------ layout */

main { flex: 1; padding: 3rem 0 4.5rem; }
.section { margin-top: 4.5rem; }
.section-head { max-width: 44rem; margin-bottom: 2rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 0.6rem;
}

/* ------------------------------------------------------------------- cards */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
}
.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }

/* Only cards that lead somewhere lift on hover. A card that rises under the
   cursor but cannot be clicked is a promise the page does not keep. */
a.card,
.card-interactive {
  text-decoration: none; color: inherit; display: block;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
              border-color 0.2s var(--ease);
}
a.card:hover,
.card-interactive:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lifted);
  border-color: var(--border-strong);
}

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); }

/* --------------------------------------------------------------- home hero */

.hero {
  display: grid; gap: 3rem; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 64rem) {
  .hero { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; }
}
.hero h1 { margin-bottom: 1rem; }
.hero .highlight { color: var(--orange); }

.hero-panel {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--navy-deep), var(--navy));
  border-radius: var(--radius-lg);
  padding: 2rem;
  min-height: 22rem;
  display: flex; flex-direction: column; justify-content: space-between;
  color: var(--fg-inverse);
}
/* A faint grid, so the panel reads as a map rather than a coloured rectangle. */
.hero-panel::before {
  content: ""; position: absolute; inset: 0; opacity: 0.35;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 2.5rem 2.5rem;
}
.hero-panel > * { position: relative; }

.hero-chip {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--surface); color: var(--fg);
  border-radius: var(--radius);
  padding: 0.7rem 0.95rem;
  box-shadow: var(--shadow-lifted);
  font-size: 0.9rem; width: fit-content;
}
.hero-chip strong { display: block; font-size: 0.95rem; }
.hero-chip span { color: var(--fg-muted); font-size: 0.82rem; }

.route-line {
  display: flex; align-items: center; gap: 0.75rem;
  font-weight: 650; letter-spacing: 0.02em;
}
.route-line .dot { width: 0.7rem; height: 0.7rem; border-radius: 999px; }
.route-line .dot.from { background: var(--orange); }
.route-line .dot.to { background: var(--success); }
.route-line .track {
  flex: 1; height: 2px;
  background: repeating-linear-gradient(90deg,
    rgba(255,255,255,0.45) 0 6px, transparent 6px 12px);
}

.trust-row {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem;
  margin-top: 1.75rem; color: var(--fg-muted); font-size: 0.92rem;
}
.trust-row span { display: inline-flex; align-items: center; gap: 0.45rem; }
.trust-row .tick { color: var(--success); font-weight: 700; }

/* ------------------------------------------------------------------- steps */

.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 999px;
  background: var(--navy); color: #fff;
  font-weight: 700; font-size: 0.95rem;
  margin-bottom: 0.9rem;
}

/* ------------------------------------------------------------------- forms */

.field { margin-bottom: 1.125rem; }
.field label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.4rem; }
.field input,
.field select,
.field textarea {
  width: 100%; padding: 0.75rem 0.9rem; font: inherit; color: var(--fg);
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(7, 26, 43, 0.12);
}
.field .error { color: var(--error); font-size: 0.85rem; margin-top: 0.35rem; }
.field input[aria-invalid="true"] { border-color: var(--error); }
.hint { color: var(--fg-muted); font-size: 0.85rem; margin-top: 0.35rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.35rem; font: inherit; font-weight: 650;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  cursor: pointer; text-decoration: none;
  transition: transform 0.15s var(--ease), background-color 0.15s var(--ease),
              box-shadow 0.15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 1px 2px rgba(232,106,13,.35); }
.btn-primary:hover { background: var(--orange-deep); }
.btn-secondary { background: var(--navy); color: #fff; }
.btn-secondary:hover { background: var(--navy-deep); }
.btn-ghost { background: var(--surface); color: var(--fg); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-muted); }
.btn-block { width: 100%; }
.btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ------------------------------------------------------------------ alerts */

.alert {
  border: 1px solid; border-radius: var(--radius-sm);
  padding: 0.9rem 1.05rem; margin-bottom: 1.25rem; font-size: 0.93rem;
}
.alert-error { background: var(--error-surface); border-color: var(--error-border); color: #7a1d15; }
.alert-success { background: var(--success-surface); border-color: var(--success-border); color: #05603a; }
.alert-warning { background: var(--warning-surface); border-color: var(--warning-border); color: #7a4b06; }
.alert-info { background: var(--info-surface); border-color: var(--info-border); color: #0b4a7d; }

/* ------------------------------------------------------------------ badges */

.badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  border-radius: 999px; padding: 0.22rem 0.7rem;
  font-size: 0.8rem; font-weight: 650; border: 1px solid;
}
.badge-success { background: var(--success-surface); border-color: var(--success-border); color: #05603a; }
.badge-info { background: var(--info-surface); border-color: var(--info-border); color: #0b4a7d; }
.badge-warning { background: var(--warning-surface); border-color: var(--warning-border); color: #7a4b06; }

/* "TakeMyPack Onaylı Taşıyıcı". Never shown without the wording: a coloured
   pill on its own tells a reader nothing about who vouched for whom. */
.badge-approved { background: var(--success-surface); border-color: var(--success-border); color: #05603a; }

/* ------------------------------------------------------------------- panel */

/* The dark summary block from the design: figures on navy, so they read as a
   single considered answer rather than four loose numbers. */
.panel-dark {
  background: linear-gradient(160deg, var(--navy-deep), var(--navy));
  color: var(--fg-inverse);
  border-radius: var(--radius); padding: 1.75rem;
}
.panel-dark h3 { color: #fff; }
.stat-tile {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm); padding: 1rem;
}
.stat-tile .label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--fg-inverse-muted);
}
.stat-tile .value { font-size: 1.75rem; font-weight: 700; line-height: 1.2; }

/* -------------------------------------------------------------------- prose */

.prose { max-width: 44rem; }
.prose h2 { margin-top: 2.5rem; }
.prose ul { padding-left: 1.15rem; color: var(--fg-muted); }
.prose li { margin-bottom: 0.5rem; }

/* Question and answer, opened one at a time. <details> because it works with
   JavaScript switched off and is announced correctly by a screen reader. */
.qa {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 0.75rem;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.qa[open] { border-color: var(--border-strong); box-shadow: var(--shadow); }
.qa summary {
  cursor: pointer; list-style: none;
  padding: 1.05rem 1.25rem; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; color: var(--fg-muted); font-size: 1.25rem; line-height: 1;
  transition: transform 0.2s var(--ease);
}
.qa[open] summary::after { content: "−"; }
.qa .answer { padding: 0 1.25rem 1.25rem; color: var(--fg-muted); }

/* -------------------------------------------------------------------- CTA */

.cta {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 3rem 2rem; text-align: center;
}
.cta .actions { justify-content: center; }

/* ------------------------------------------------------------------ footer */

.site-footer { background: var(--navy); color: var(--fg-inverse); margin-top: auto; }
.site-footer .accent {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,122,26,0.5), transparent);
}
.site-footer .inner { padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); } }
.site-footer h2 {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: #fff; margin-bottom: 0.5rem;
}
.site-footer .rule {
  display: block; width: 1.75rem; height: 2px; border-radius: 999px;
  background: rgba(255,122,26,0.7); margin-bottom: 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.site-footer a { color: var(--fg-inverse-muted); text-decoration: none; transition: color 0.15s var(--ease); }
.site-footer a:hover { color: #fff; }
.site-footer .about { color: var(--fg-inverse-muted); max-width: 26rem; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border-inverse);
  color: var(--fg-inverse-muted); font-size: 0.85rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
}


/* ------------------------------------------------------------------- icons */

/*
 * Material Symbols, as the design uses. `font-display: block` on the webfont
 * means the ligature never flashes as the word "search" before the font
 * arrives — a detail that looks like a bug for the second it lasts.
 */
.icon {
  font-family: "Material Symbols Outlined";
  font-weight: normal; font-style: normal;
  font-size: 1.25rem; line-height: 1;
  display: inline-block; vertical-align: middle;
  letter-spacing: normal; text-transform: none; white-space: nowrap;
  -webkit-font-feature-settings: "liga"; font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}
.icon-lg { font-size: 1.75rem; }

/* ----------------------------------------------------------- search widget */

/* The route search from the design: three fields and one clear action. It does
   not pretend to search anything yet — it hands the visitor to registration,
   which is the only thing that can actually happen today. */
.search-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(7, 26, 43, 0.09);
  padding: 1.25rem;
  margin-top: 2rem;
  max-width: 34rem;
}
.search-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 34rem) { .search-grid { grid-template-columns: repeat(3, 1fr); } }
.search-field label {
  display: block; font-size: 0.78rem; font-weight: 600;
  color: var(--fg-muted); margin-bottom: 0.35rem;
}
.search-field .control {
  display: flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 0.15rem 0.8rem; color: var(--fg); background: var(--surface);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.search-field .control .icon { color: var(--fg-subtle); flex-shrink: 0; }
/* The input carries no border of its own: the wrapper is the visible field,
   which is what lets the icon sit inside it. */
.search-field .control input {
  flex: 1; min-width: 0;
  border: 0; outline: none; background: transparent;
  font: inherit; color: inherit; padding: 0.62rem 0;
}
/* Focus is shown on the wrapper, so the ring surrounds the icon too. */
.search-field .control:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(7, 26, 43, 0.12);
}
.search-card .btn { margin-top: 1rem; }

/* -------------------------------------------------------------- hero visual */

.hero-visual {
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(7, 26, 43, 0.28);
  position: relative;
  background: var(--navy);
}
.hero-visual img { display: block; width: 100%; height: auto; }

/* The floating "match found" card, sitting over the artwork as in the design. */
.float-card {
  position: absolute; left: 8%; top: 26%;
  display: flex; align-items: center; gap: 0.7rem;
  background: var(--surface); color: var(--fg);
  border-radius: var(--radius); padding: 0.8rem 1rem;
  box-shadow: var(--shadow-lifted);
  max-width: 15rem;
}
.float-card .icon { color: var(--success); }
.float-card strong { display: block; font-size: 0.92rem; }
.float-card span { color: var(--fg-muted); font-size: 0.82rem; }

@media (max-width: 64rem) { .float-card { display: none; } }

/* ---------------------------------------------------------- larger buttons */

/* The hero pair is deliberately bigger than buttons elsewhere, with the glow
   the design gives the primary action. */
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; border-radius: var(--radius); }
.btn-lg.btn-primary { box-shadow: 0 6px 22px rgba(255, 122, 26, 0.35); }
.btn-lg.btn-ghost { border-width: 2px; border-color: var(--navy); color: var(--navy); }


/* ------------------------------------------------------------ google button */

/*
 * Google's own mark on a white button, as their branding requires. Placed
 * above the e-mail form because it is the faster route for most people, and
 * separated by a rule so the form below still reads as a real alternative
 * rather than an afterthought.
 */
.btn-google {
  background: var(--surface);
  color: var(--fg);
  border-color: var(--border-strong);
  font-weight: 600;
}
.btn-google:hover { background: var(--surface-muted); }
.btn-google svg { flex-shrink: 0; }

.divider {
  display: flex; align-items: center; gap: 0.85rem;
  margin: 1.5rem 0; color: var(--fg-subtle); font-size: 0.85rem;
}
.divider::before,
.divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
