/* Wayhop – "postcards from far away" */

:root {
  --paper: #f3e8d0;      /* old postcard cream */
  --paper-light: #faf4e6;
  --ink: #1b1b1b;
  --ink-soft: #4a4338;
  --jungle: #1f6b45;
  --leaf: #2f8a4f;
  --lagoon: #1a9e9a;
  --tomato: #e4512b;
  --azure: #2b6fd6;
  --hibiscus: #c8346b;
  --sun: #f4a547;
  --radius: 6px;
  --display: "Fraunces", Georgia, serif;
  --body: "Work Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Faint paper grain over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.25'/%3E%3C/svg%3E");
}

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  line-height: 1.05;
  margin: 0;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-frog { width: 46px; height: 50px; transform: rotate(-12deg); }

.brand-text { display: flex; flex-direction: column; }

.brand-name {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 900;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.5px;
}

.brand-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--jungle);
}

.site-nav { display: flex; gap: 22px; font-weight: 600; font-size: 15px; }
.site-nav a { text-decoration: none; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-color: var(--tomato); }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 40px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}

.eyebrow {
  margin: 0 0 14px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--tomato);
}

.hero h1 {
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 900;
  letter-spacing: -1px;
}

.hero h1 em { font-style: italic; color: var(--jungle); }

.lead { font-size: 19px; max-width: 30em; color: var(--ink-soft); margin: 22px 0 28px; }

.hero-cta {
  display: inline-block;
  padding: 14px 26px;
  background: var(--ink);
  color: var(--paper-light);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--tomato);
  transition: transform .15s, box-shadow .15s;
}
.hero-cta:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--tomato); }

.hero-art { transform: rotate(2.5deg); }

.postcard {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 22px rgba(60, 40, 10, .25));
}

/* ---------- Deals ---------- */

.deals {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 20px 40px;
}

.deals-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.deals-head h2 { font-size: clamp(32px, 4vw, 46px); font-weight: 900; }

.updated { margin: 0; font-size: 14px; color: var(--ink-soft); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 34px; }

.chip {
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.chip:hover { background: var(--paper-light); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper-light); }

.group { margin-bottom: 46px; }

.group-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 18px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.group-title small {
  font-family: var(--body);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}

.stamps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px 24px;
}

/* A deal card that looks like a postage stamp: perforated paper edge */
.stamp {
  --c: var(--jungle);
  padding: 10px;
  background: radial-gradient(circle, transparent 0 5px, var(--paper-light) 5.5px);
  background-size: 16px 16px;
  background-position: -8px -8px;
  filter: drop-shadow(0 3px 4px rgba(60, 40, 10, .18));
  transform: rotate(var(--tilt, 0deg));
  transition: transform .2s;
}
.stamp:hover { transform: rotate(0deg) translateY(-4px); }

.stamp-body {
  background: var(--paper-light);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.stamp-art {
  position: relative;
  background: var(--c);
  color: var(--paper-light);
  padding: 12px 14px 14px;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* faint stamp-printing lines */
.stamp-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,.06) 0 2px, transparent 2px 7px);
  pointer-events: none;
}

.stamp-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 4px 8px; }

.stamp-country {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  opacity: .9;
}

.stamp-value {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 900;
  font-size: 34px;
  line-height: .9;
  white-space: nowrap;
}

.stamp-city {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-style: italic;
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
}

.stamp-value small { font-size: 14px; font-style: italic; font-weight: 700; margin-right: 2px; }

.stamp-when { font-weight: 600; }
.stamp-when::first-letter { text-transform: uppercase; }

.stamp-info { padding: 12px 14px 14px; font-size: 14.5px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.stamp-info p { margin: 0; }
.stamp-route { font-weight: 700; font-size: 15.5px; }
.stamp-meta { color: var(--ink-soft); }
.stamp-seen { color: var(--ink-soft); font-size: 13px; margin-top: 4px !important; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.badge {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--tomato);
  color: var(--paper-light);
}
.badge.new { background: var(--lagoon); }

.stamp-btn {
  margin-top: 12px;
  align-self: flex-start;
  padding: 9px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.stamp-btn:hover { background: var(--ink); color: var(--paper-light); }

.missing { font-size: 14px; color: var(--ink-soft); margin: -6px 0 0; }
.no-deals { font-size: 17px; color: var(--ink-soft); padding: 20px 0 40px; }

/* "Via another city" details on a stamp */
.via {
  margin: 4px 0 4px;
  padding: 8px 10px;
  background: rgba(26, 158, 154, .1);
  border-left: 3px solid var(--lagoon);
  font-size: 13.5px;
}
.via p { margin: 0; }
.via p + p { color: var(--ink-soft); margin-top: 2px; }

.via-note {
  margin: -18px 0 30px;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ---------- Deal page ---------- */

.deal-page { max-width: 980px; margin: 0 auto; padding: 10px 20px 60px; }
.deal-page .back { margin: 0 0 22px; font-weight: 600; }
.deal-page .back a { text-decoration: none; border-bottom: 2px solid var(--tomato); }
.deal-hero { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: center; margin-bottom: 34px; }
.deal-stamp { --tilt: -2deg; }
.deal-stamp .stamp-art { min-height: 200px; }
.deal-stamp .stamp-top { flex-direction: column; align-items: flex-start; gap: 6px; }
.deal-page h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 900; }
.deal-page h1 em { font-style: italic; color: var(--jungle); }
.deal-page .lead { margin: 14px 0 6px; }
.deal-typical { margin: 0; color: var(--ink-soft); }
.deal-page h2 { font-size: 30px; font-weight: 900; margin-bottom: 6px; }
.hint { color: var(--ink-soft); font-size: 15px; margin: 0 0 18px; }

.dates { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.date-row {
  display: grid;
  grid-template-columns: 1.3fr 1.5fr auto auto;
  align-items: center;
  gap: 16px;
  background: var(--paper-light);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 12px 16px;
}
.date-when strong { display: block; }
.date-when span, .date-meta { color: var(--ink-soft); font-size: 14.5px; }
.date-price {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 900;
  font-size: 26px;
  white-space: nowrap;
}
.date-row .stamp-btn { margin-top: 0; }
.date-row[hidden], .stamp-info .long[hidden] { display: none; }
.date-time { display: block; font-size: 13.5px; }
.long {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  margin-left: 4px;
}
.length-chips { margin: 0 0 16px; }
.empty-filter { color: var(--ink-soft); }
.how-to-buy {
  background: var(--paper-light);
  border: 2px dashed rgba(27, 27, 27, .35);
  border-radius: var(--radius);
  padding: 4px 20px 8px;
  margin: 10px 0 22px;
}
.how-to-buy h3 { font-size: 22px; font-weight: 800; margin: 14px 0 6px; }
.how-to-buy p { margin: 0 0 10px; font-size: 15.5px; }
.deal-tip { background: rgba(26, 158, 154, .1); border-left: 3px solid var(--lagoon); padding: 10px 14px; }

@media (max-width: 700px) {
  .deal-hero { grid-template-columns: 1fr; gap: 20px; }
  .deal-stamp { max-width: 260px; }
  .date-row { grid-template-columns: 1fr auto; }
  .date-meta { grid-column: 1 / -1; grid-row: 2; }
  .date-row .stamp-btn { grid-column: 1 / -1; justify-self: start; }
}

/* "2 savaitės su viskuo" line on stamps */
.stamp-trip {
  margin: 6px 0 4px !important;
  padding: 7px 10px;
  background: rgba(244, 165, 71, .22);
  border-radius: 4px;
  font-size: 14px;
}
.stamp-trip span { display: block; font-size: 12px; color: var(--ink-soft); }

/* ---------- Trip cost calculator (deal pages) ---------- */

.calc {
  background: var(--paper-light);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--sun);
  padding: 6px 22px 16px;
  margin: 0 0 40px;
}
.calc h2 { margin-top: 18px; }
.calc-controls { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 10px 0 14px; }
.calc-controls .chips { margin: 6px 0 0; }
.calc-label { font-weight: 700; font-size: 14px; }
.calc-days-wrap { display: flex; flex-direction: column; min-width: 200px; }
.calc-days-wrap input { margin-top: 12px; accent-color: var(--jungle); }
.calc-table { width: 100%; max-width: 460px; border-collapse: collapse; font-size: 15.5px; }
.calc-table td { padding: 6px 0; border-bottom: 1px dashed rgba(27, 27, 27, .25); }
.calc-table td:last-child { text-align: right; font-weight: 600; }
.calc-total { font-size: 19px; margin: 14px 0 6px; }
.calc-total strong {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: 30px;
}
.calc-source { font-size: 12.5px; color: var(--ink-soft); }

/* ---------- Comparison page + homepage teaser ---------- */

.compare-page { max-width: 900px; }
.cmp-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--ink-soft); margin: 24px 0 10px; }
.cmp-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 4px; }
.cmp-list { list-style: none; padding: 0; margin: 0 0 30px; }
.cmp-row {
  display: grid;
  grid-template-columns: 150px 1fr 230px;
  align-items: center;
  gap: 6px 14px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(27, 27, 27, .25);
}
.cmp-name { font-weight: 700; text-decoration: none; }
.cmp-name:hover { text-decoration: underline; }
.cmp-bar { display: flex; height: 18px; background: rgba(27, 27, 27, .06); border-radius: 3px; overflow: hidden; }
.cmp-flight { background: var(--azure); display: block; }
.cmp-stay { background: var(--jungle); display: block; }
.cmp-europe .cmp-stay, .cmp-europe-swatch { background: var(--tomato) !important; }
.cmp-europe .cmp-name { color: var(--tomato); }
.cmp-total { text-align: right; }
.cmp-total strong {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: 22px;
  display: block;
}
.cmp-total span { font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; }
.cmp-note { grid-column: 1 / -1; margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.compare-page h2 { margin-top: 34px; }

.teaser { max-width: 1180px; margin: 0 auto; padding: 0 20px 40px; }
.teaser-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  background: var(--paper-light);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: 6px 6px 0 var(--tomato);
}
.teaser-card h2 { font-size: 32px; font-weight: 900; margin-bottom: 8px; }
.teaser-card p { margin: 0 0 18px; color: var(--ink-soft); }
.teaser-card .eyebrow { margin-bottom: 8px; }
.teaser-list { list-style: none; margin: 0; padding: 0; }
.teaser-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(27, 27, 27, .25);
  font-weight: 600;
}
.teaser-list strong { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 22px; color: var(--jungle); }
.teaser-list .cmp-europe strong, .teaser-list .cmp-europe span { color: var(--tomato); }

@media (max-width: 700px) {
  .cmp-row { grid-template-columns: 1fr auto; }
  .cmp-bar { grid-column: 1 / -1; grid-row: 2; }
  .teaser-card { grid-template-columns: 1fr; }
}

/* eSIM box on deal pages */
.esim-box {
  background: rgba(26, 158, 154, .1);
  border-left: 4px solid var(--lagoon);
  border-radius: var(--radius);
  padding: 4px 20px 12px;
  margin: -16px 0 40px;
}
.esim-box h3 { font-size: 22px; font-weight: 800; margin: 14px 0 6px; }
.esim-box p { margin: 0 0 12px; }
.esim-box .stamp-btn { display: inline-block; margin: 0 0 12px; }

/* Connections table on the guide page */
.table-wrap { overflow-x: auto; }
.conn-table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--paper-light); }
.conn-table th, .conn-table td { text-align: left; padding: 9px 12px; border-bottom: 1px dashed rgba(27, 27, 27, .25); vertical-align: top; }
.conn-table thead th { border-bottom: 2px solid var(--ink); font-size: 14px; }
.conn-table tbody th { font-weight: 700; white-space: nowrap; }
.conn-table a { font-weight: 600; }
.muted { color: var(--ink-soft); }

/* ---------- Guide page ---------- */

.guide { max-width: 760px; margin: 0 auto; padding: 30px 20px 70px; }
.guide h1 { font-size: clamp(38px, 5.5vw, 60px); font-weight: 900; letter-spacing: -0.5px; }
.guide h1 em { font-style: italic; color: var(--jungle); }
.guide h2 { font-size: 28px; font-weight: 800; margin: 38px 0 12px; }
.guide li { margin-bottom: 8px; }
.guide .example {
  background: var(--paper-light);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: 5px 5px 0 var(--lagoon);
}
.warning {
  margin-top: 38px;
  background: var(--tomato);
  color: var(--paper-light);
  padding: 4px 24px 18px;
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
}
.warning h2 { margin-top: 18px; }
.guide-back { margin-top: 40px; }
.site-nav a[aria-current="page"] { border-color: var(--tomato); }

.fine-print {
  font-size: 13.5px;
  color: var(--ink-soft);
  max-width: 52em;
  border-top: 1.5px dashed rgba(27, 27, 27, .3);
  padding-top: 16px;
}

/* ---------- Hand-picked (coming soon) ---------- */

.picked { max-width: 1180px; margin: 0 auto; padding: 10px 20px 50px; }

.picked-card {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--jungle);
  color: var(--paper-light);
  padding: 26px 28px;
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
}
.picked-card h2 { font-size: 30px; font-weight: 900; margin-bottom: 6px; }
.picked-card p { margin: 0; max-width: 40em; }
.picked-frog { width: 70px; height: 77px; flex: none; transform: rotate(14deg); }

/* ---------- How it works ---------- */

.how { max-width: 1180px; margin: 0 auto; padding: 20px 20px 60px; }
.how h2 { font-size: clamp(32px, 4vw, 46px); font-weight: 900; margin-bottom: 24px; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.steps li {
  background: var(--paper-light);
  padding: 22px;
  border-radius: var(--radius);
  border: 2px solid var(--ink);
}
.steps h3 { font-size: 22px; font-weight: 800; margin: 10px 0 8px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.step-no {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--tomato);
  color: var(--paper-light);
  font-family: var(--display);
  font-weight: 900;
  font-size: 20px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #d9d0bd;
  padding: 34px 20px 40px;
  font-size: 14.5px;
}
.site-footer > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.site-footer strong { color: var(--paper-light); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; }
.footer-links a { color: var(--paper-light); }
.copy { opacity: .6; margin-top: 18px; }

/* ---------- Phones ---------- */

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 10px; gap: 30px; }
  .hero-art { transform: rotate(1.5deg); }
  .steps { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .picked-card { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .site-header, .hero, .deals, .picked, .how { padding-left: 16px; padding-right: 16px; }
  .stamps { grid-template-columns: 1fr; }
}
