/* PTuna site prototype 01 "Fish Finder".
   Brand: the blue band + tuna logo, black page, Oswald headings (all from the current site and app). */

:root {
  --blue: #0d6efd;
  --blue-text: #3b7ffd;
  --ink: #000;
  --panel: #101113;
  --line: #2b2d31;
  --text: #e9e9e9;
  --dim: #9a9da3;
  --head: Oswald, "Arial Narrow", Impact, sans-serif;
  --body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 16px/1.55 var(--body);
}

img, video { max-width: 100%; display: block; }

a { color: var(--blue-text); }
a:hover { color: #fff; }

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  text-transform: uppercase;
}

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

:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- blue band ---------- */

.band { background: var(--blue); color: #000; }

.band-in {
  display: flex;
  align-items: center;
  gap: 8px 22px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand img { height: 70px; width: auto; }

.tagline {
  margin: 0;
  font: italic 400 21px/1.2 var(--head);
  flex: 1 1 240px;
}

.band-nav { display: flex; align-items: center; gap: 20px; }

.band-nav a {
  color: #000;
  font: 500 16px var(--head);
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
  padding: 6px 0;
}

.band-nav a:hover { text-decoration: underline; color: #000; }

.lang {
  font: 500 15px var(--head);
  background: #000;
  color: #f5f5f5;
  border: 0;
  border-radius: 0;
  padding: 7px 8px;
}

/* ---------- finder ---------- */

/* ---------- intro: what this is, how it works ---------- */

.intro { padding-top: 26px; }

.intro-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; }
.intro-top .btn { flex: none; }

.intro h1 { font-size: clamp(28px, 3.6vw, 40px); max-width: 22em; }

.lede { margin: 8px 0 0; max-width: 46em; font-size: 17px; color: #cfd1d4; }

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 14px 30px;
  margin: 20px 0 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: baseline;
}

.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font: 500 34px/1 var(--head);
  color: var(--blue-text);
}

.steps b { font: 500 19px/1.2 var(--head); text-transform: uppercase; }
.steps span { color: #c4c6ca; font-size: 15px; }

/* ---------- finder ---------- */

.finder { padding-top: 28px; padding-bottom: 70px; }

.kicker {
  margin: 0 0 2px;
  font: 400 15px var(--head);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--dim);
}

.finder-head h2 { font-size: clamp(30px, 4vw, 42px); color: var(--blue-text); }

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 30px;
  margin-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.controls-label {
  font: 400 14px var(--head);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--dim);
}

.screens { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.screens .controls-label { align-self: center; margin-right: 4px; }

/* Screen buttons are drawn to the real shape of each PowerTune screen (about 8px per inch). */
.scr {
  font: 500 14px var(--head);
  color: var(--text);
  background: #000;
  border: 2px solid #5a5d63;
  border-radius: 3px;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
}

.scr-all { min-width: 46px; height: 34px; padding: 0 6px; border-style: dashed; }
.scr-mini { width: 38px; height: 24px; font-size: 12px; }
.scr-standard { width: 50px; height: 30px; }
.scr-widescreen { width: 76px; height: 34px; }
.scr-custom { min-width: 116px; height: 32px; padding: 0 8px; }

.scr:hover { border-color: #fff; }
.scr[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); border-style: solid; color: #000; }

.controls-right { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; }

.sort { display: flex; align-items: center; gap: 10px; }

.search {
  font: 400 16px var(--body);
  color: var(--text);
  background: #000;
  border: 2px solid #5a5d63;
  border-radius: 3px;
  padding: 6px 10px;
  width: 220px;
  max-width: 100%;
}
.search::placeholder { color: #7d8087; }
.search:focus { outline: none; border-color: var(--blue); }

/* ---------- style / price / colour filters ---------- */

.filters { padding: 14px 0 4px; border-bottom: 1px solid var(--line); }

.frow { display: flex; align-items: baseline; gap: 6px 14px; margin-bottom: 10px; }
.frow > .controls-label { flex: 0 0 104px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 400 15px var(--head);
  color: var(--text);
  background: #000;
  border: 2px solid #3a3d42;
  border-radius: 3px;
  padding: 3px 9px;
  cursor: pointer;
  white-space: nowrap;
}
.chip small { font: 400 12px var(--body); color: #7d8087; }
.chip:hover { border-color: #fff; }
.chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #000; }
.chip[aria-pressed="true"] small { color: #000; }
.chip:disabled { color: #4a4d53; border-color: #222428; cursor: default; }
.chip:disabled small { color: #3a3d42; }

/* Colour swatch: a little lit lamp of that colour; "black & white" is split in two. */
.sw { width: 11px; height: 11px; border-radius: 50%; background: var(--c); }
.sw.mono { background: linear-gradient(90deg, #fff 50%, #000 50%); box-shadow: 0 0 0 1px #70737a; }
.chip:disabled .sw { opacity: .3; }

.more-btn, .clear {
  font: 400 15px var(--head);
  color: var(--blue-text);
  background: none;
  border: 0;
  padding: 2px 0;
  margin: 0 0 10px;
  cursor: pointer;
}
.more-btn::before { content: "+ "; }
.more-btn[aria-expanded="true"]::before { content: "\2212  "; }
.more-btn:hover, .clear:hover { color: #fff; }

.filter-toggle {
  font: 500 15px var(--head);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text);
  background: #000;
  border: 2px solid #5a5d63;
  border-radius: 3px;
  padding: 6px 12px;
  margin-top: 14px;
  cursor: pointer;
}
.filter-toggle b { color: var(--blue-text); font-weight: 500; }
.filter-toggle[aria-expanded="true"] { border-color: var(--blue); }

/* Phones: rows stack under their label and fold away behind the Filters button. */
@media (max-width: 759px) {
  .filters { display: none; }
  .filters.open { display: block; }
  .frow { display: block; }
  .frow > .controls-label { display: block; margin-bottom: 6px; }
  .controls-right { width: 100%; }
  .search { flex: 1 1 100%; width: auto; }
}
@media (min-width: 760px) {
  .filter-toggle { display: none; }
}

.count-row { display: flex; align-items: baseline; gap: 18px; }
.count-row .clear { margin: 0; }
.failed.none p { margin: 0; }

.tag-links a { color: var(--blue-text); }

.sort select {
  font: 400 16px var(--head);
  color: var(--text);
  background: #000;
  border: 0;
  border-bottom: 2px solid #5a5d63;
  padding: 4px 4px 4px 0;
}

.count { margin: 14px 0 16px; color: var(--dim); font-size: 15px; }

.grid { display: grid; grid-template-columns: 1fr; gap: 46px 34px; --shot: 20 / 9; }

@media (min-width: 760px) {
  .grid { grid-template-columns: 1fr 1fr; }
  /* The 14" screen is 3.5 times wider than tall; give it the whole row. */
  .grid[data-size="custom"] { grid-template-columns: 1fr; }
}

.grid[data-size="mini"], .grid[data-size="standard"] { --shot: 5 / 3; }
.grid[data-size="custom"] { --shot: 7 / 2; }

.dash { display: block; color: inherit; text-decoration: none; }
.dash:hover { color: inherit; }

.shot {
  position: relative;
  aspect-ratio: var(--shot);
  background: #000;
  border: 1px solid var(--line);
  overflow: hidden;
}

.shot img, .shot video { width: 100%; height: 100%; object-fit: contain; }
.shot video { position: absolute; inset: 0; background: #000; transition: opacity .25s; }

.dash:hover .shot, .dash:focus-visible .shot { border-color: var(--blue); }

.dash-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 12px;
}

.dash-top h3 { font-size: 27px; }
.dash:hover h3 { color: var(--blue-text); }

.price { font: 500 22px var(--head); white-space: nowrap; }
.price.free { color: #49c774; text-transform: uppercase; }

.fits { display: flex; align-items: flex-end; gap: 6px; margin: 9px 0 8px; padding: 0; list-style: none; }

.fits li {
  font: 500 12px/1 var(--head);
  border: 1px solid #70737a;
  border-radius: 2px;
  display: grid;
  place-items: center;
  color: #f0f0f0;
}

.fits .mini { width: 30px; height: 19px; font-size: 11px; }
.fits .standard { width: 38px; height: 23px; }
.fits .widescreen { width: 54px; height: 25px; }
.fits .custom { width: 78px; height: 23px; }
.fits .no { border-color: #2a2c30; color: #44474d; }
.fits li:not(.no) { cursor: pointer; }
@media (hover: hover) {
  .fits li:not(.no):hover { border-color: #f0f0f0; background: rgba(255, 255, 255, .12); }
}

.blurb {
  margin: 0;
  color: #c4c6ca;
  font-size: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.by { margin: 7px 0 0; font-size: 14px; color: var(--dim); }

.failed { border: 1px solid var(--line); padding: 22px; max-width: 520px; }

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

.btn {
  display: inline-block;
  font: 500 17px var(--head);
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
  background: var(--blue);
  color: #000;
  border: 0;
  padding: 11px 20px;
  cursor: pointer;
}

.btn:hover { background: #fff; color: #000; }

/* ---------- the app ---------- */

.app { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.app-in { display: grid; gap: 40px; padding-top: 56px; padding-bottom: 56px; }

@media (min-width: 900px) {
  .app-in { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 60px; }
}

.app h2 { font-size: 40px; color: var(--blue-text); }

.features { margin: 20px 0 0; padding-left: 20px; }
.features li { margin-bottom: 9px; }
.features li::marker { color: var(--blue); }

.guide-link { margin: 18px 0 0; font-size: 17px; }
.guide-link a { font-weight: 500; }

.fishy { font-size: 13px; color: var(--dim); margin: 18px 0 0; }

.soon { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.soon h3 { font-size: 26px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.badges img { width: 155px; height: auto; }

.app-media { min-width: 0; align-self: start; }

.film { margin: 0 0 22px; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); }
.film iframe { width: 100%; height: 100%; border: 0; display: block; }

.film-btn {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  overflow: hidden;
  display: block;
}

.film-btn img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.film-btn:hover img { opacity: 1; }

.film-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 74px;
  height: 52px;
  background: var(--blue);
}

.film-play::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-left: 18px solid #000;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}

.film-label {
  position: absolute;
  left: 0;
  bottom: 0;
  background: #000;
  color: #fff;
  font: 500 16px var(--head);
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 7px 12px;
}

.phones {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
  align-self: start;
}

.phones figure { margin: 0; flex: 0 0 210px; scroll-snap-align: start; }
.phones img { width: 210px; height: auto; border: 1px solid var(--line); }
.phones figcaption { font-size: 13px; color: var(--dim); margin-top: 8px; }

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

.foot { padding: 30px 0 0; font-size: 15px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.foot-text { padding-bottom: 26px; }
.foot-text p { margin: 0 0 10px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-car { width: 300px; height: auto; margin-top: -90px; }

@media (max-width: 899px) { .foot-car { width: 180px; margin-top: 0; margin-left: auto; } }

/* ---------- one dash ---------- */

.sheet {
  width: 100vw; max-width: none;
  height: 100dvh; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--ink);
  color: var(--text);
  overflow-y: auto;
}

.sheet-bar { position: sticky; top: 0; z-index: 2; background: var(--blue); }

.sheet-close {
  font: 500 16px var(--head);
  text-transform: uppercase;
  letter-spacing: .04em;
  background: none;
  border: 0;
  color: #000;
  padding: 12px 20px;
  cursor: pointer;
}

.sheet-close:hover { text-decoration: underline; }

.sheet-body { padding-top: 26px; padding-bottom: 70px; }

.sheet-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.sheet-head h2 { font-size: clamp(34px, 5vw, 54px); }
.sheet-head .price { font-size: 30px; }

.tabs { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 20px 0 12px; border-bottom: 1px solid var(--line); }

.tab {
  font: 500 16px var(--head);
  text-transform: uppercase;
  letter-spacing: .04em;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--dim);
  padding: 6px 0 8px;
  margin-bottom: -1px;
  cursor: pointer;
}

.tab:hover { color: #fff; }
.tab[aria-selected="true"] { color: #fff; border-bottom-color: var(--blue); }

.stage {
  background: #000;
  border: 1px solid var(--line);
  aspect-ratio: 20 / 9;
  max-height: 72vh;
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.stage[data-group="std"] { aspect-ratio: 5 / 3; max-width: 900px; margin: 0 auto; }
.stage[data-group="custom"] { aspect-ratio: 7 / 2; }
.stage[data-group="other"] { aspect-ratio: 16 / 10; max-width: 900px; margin: 0 auto; }

.stage img, .stage video { width: 100%; height: 100%; object-fit: contain; }

.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; min-height: 58px; }

.thumb {
  height: 58px;
  padding: 0;
  background: #000;
  border: 2px solid var(--line);
  cursor: pointer;
  color: var(--text);
  font: 500 13px var(--head);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.thumb img { height: 54px; width: auto; }
.thumb.video { padding: 0 14px; }
.thumb.video::before { content: "\25B6\00a0\00a0"; font-size: 11px; color: var(--blue-text); }
.thumb:hover { border-color: #888; }
.thumb[aria-current="true"] { border-color: var(--blue); }

.sheet-cols { display: grid; gap: 34px; margin-top: 34px; }

@media (min-width: 860px) { .sheet-cols { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 60px; } }

.about p { margin: 0 0 14px; font-size: 17px; white-space: pre-line; }
.about .note { font-size: 14px; color: var(--dim); }
.swap { font: inherit; color: var(--blue-text); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.swap:hover { color: #fff; }

.get { margin-top: 26px; padding: 20px; border: 1px solid var(--line); background: var(--panel); }
.get h3 { font-size: 22px; }
.get p { margin: 8px 0 14px; color: #c4c6ca; font-size: 15px; }

.facts { margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 400 14px var(--head); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.facts dd { margin: 0; text-align: right; }

.channels { margin-top: 26px; }
.channels h3 { font-size: 16px; font-weight: 400; letter-spacing: .08em; color: var(--dim); }
.channels p { margin: 8px 0 0; font: 14px/1.7 ui-monospace, Menlo, Consolas, monospace; color: #c4c6ca; }
.channels small { display: block; margin-top: 8px; color: var(--dim); font-size: 13px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- right-to-left (Arabic) ---------- */

[dir="rtl"] .features { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .facts dd { text-align: left; }
[dir="rtl"] .film-label { left: auto; right: 0; }
[dir="rtl"] .sort select { padding: 4px 0 4px 4px; }
[dir="rtl"] .screens .controls-label { margin-right: 0; margin-left: 4px; }
[dir="rtl"] .foot-car { transform: scaleX(-1); }

/* Phones: keep the three steps to their headings so the dashes come sooner. */
@media (max-width: 759px) {
  .steps { gap: 8px; padding: 12px 0; }
  .steps span { display: none; }
  .steps li::before { font-size: 24px; }
}
