

:root {
    --glass-bg: rgba(255, 255, 255, 0);
    --glass-border: rgba(255, 255, 255, 0.2);
    --card-radius: 20px;
    --shadow: 0 14px 40px rgba(3, 40, 40, 0.08);
    --glass-blur: 16px;
    --focus: 3px rgba(6, 182, 212, 0.18);
}

html,
body {
    height: auto;
    max-width: 100%;
	overflow-x: hidden;
    margin: 0;
    font-family: 'Mukta', sans-serif;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(135deg, #779f92 0%, #61889d 100%);
    color: rgba(255, 255, 255, 1);
    line-height: 1.45;
    text-wrap: balance;
    font-family: 'Mukta', sans-serif;
}

footer {
    margin: 8% 5% !important;
    height: auto;
    text-align: center;
}

#gradient-canvas {
	/* position:fixed with no offsets resolves to the static position, which is
	   wherever flow put it -- so the body background showed above the gradient.
	   The canvas is the page's backdrop; pin it to the viewport. */
	top: 0;
	left: 0;
    width: 100%;
    height: 100%;
    --gradient-color-1: #04f2da;
    --gradient-color-2: #0491ea;
    --gradient-color-3: #04b6e7;
    --gradient-color-4: #176bfc;
    z-index: -1;
    position: fixed;
    filter: brightness(85%) saturate(140%);
}


/* Download hero section layout */
.download-hero {
    /* width: 100vw; */
    /* margin-left: calc(50% - 50vw); */
    padding: calc(8vh + 48px + 100px) 6vw 48px;
    /* box-sizing: border-box; */
}

.download-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    /* flex-direction: row-reverse; */
}

.download-vauz {
    /* A flex item defaults to min-width:auto, i.e. it refuses to shrink below its
       own min-content width. The checksum pill holds a 64-character SHA256, so
       that floor is far wider than a phone. */
    min-width: 0;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 32px;
    padding: 20px;
    backdrop-filter: blur(var(--glass-blur));
    /* box-shadow: var(--shadow); */
    color: rgba(255, 255, 255, 1);
}

.download-vauz h2,
.download-vauz p {
    margin: 0;
}

 .download-vauz h2 {
    font-size: 26px;
}

.download-header-layout {
    display: flex;
    flex-wrap: wrap;
}

.download-header-right {
    text-align: right;
    width: 100%;
}

.release-info-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 4px;
}

.release-info-pills {
    display: flex;
    row-gap: 8px;
    column-gap: 6px;
    justify-content: flex-end;
    flex-wrap: wrap;
    font-size: 14px;
}

.pill {
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 8px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
    min-width: 0;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.downloads-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    align-items: center;
}

.downloads-meta {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

.download-btn,
.suggested-download-btn,
.box a.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    text-decoration: none;
    color: rgba(255, 255, 255, 1);
    font-weight: 700;
    font-size: 14px;
    /* box-shadow: 0 6px 18px rgba(3, 40, 40, 0.05); */
    transition: 0.3s ease;
    cursor: pointer;
}

.download-btn:hover,
.suggested-download-btn:hover,
.box a.button:hover {
    opacity: 1;
    border-radius: 18px;
    background: linear-gradient(200deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.2));
}

.download-btn.dim {
    opacity: 0.9;
    transform: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.download-btn .os-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    filter: brightness(0) invert(1);
}

.download-btn.primary,
.suggested-download-btn.primary,
.box a.button.primary {
    background: linear-gradient(200deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.9));
    color: black;
    border: 2px solid rgba(255, 255, 255, 0.12);
    /* box-shadow: 0 14px 36px rgba(6, 182, 212, 0.14); */
    transition: 0.4s ease;
    background-size: 100% 100%;
}

.download-btn.primary:hover,
.suggested-download-btn.primary:hover,
.box a.button.primary:hover {
    background-size: 400% 100%;
}

.download-btn.primary .os-icon {
    filter: brightness(0);
}


/* Suggested download logo area */
.suggested-download {
    min-width: 260px;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    padding: 14px;
    border-radius: var(--card-radius);
    backdrop-filter: blur(var(--glass-blur));
    /* box-shadow: var(--shadow); */
    color: rgba(255, 255, 255, 1);
}

.suggested-download-logo {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.suggested-logo-image {
    /* width: auto as well as the height. The img carries width/height attributes for
       CLS, and those act as CSS dimensions of last resort -- with only a height set
       here, the attribute supplied a 160px width and stretched the logo sideways. */
    height: 48px;
    width: auto;
}

.suggested-logo-text div:first-child {
    font-weight: 800;
    font-size: 20px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.download-tip {
    margin-top: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.download-tip strong {
    font-weight: bold;
}


/* Extensions section */
.extensions {
    display: block;
}

.extensions-heading {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 6vw;
    color: rgba(255, 255, 255, 1);
}

.extensions-description {
    max-width: 1200px;
    margin: 0 auto 18px;
    padding: 0 6vw;
    color: rgba(255, 255, 255, 0.8);
}

.extensions-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 6vw;
}

.box {
    background: var(--glass-bg);
    border-radius: var(--card-radius);
    padding: 18px;
    border: 2px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    /* box-shadow: var(--shadow); */
    color: rgba(255, 255, 255, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

/* The browsers each card's extension works in, every one the same glass rounded square. The first,
   larger tile is the card's own browser, or the visitor's when the page can tell it is one of the
   card's (download/script.js moves "featured" and puts its name and requirement in the lines below).
   No tile covers another, so every logo shows whole: the small ones sit in two rows beside the large
   one, filling a column at a time, so the grid stays the same at every width and never falls under
   it. A small tile's name shows in the pricing page's tooltip pill on hover and on focus (each tile
   takes focus, so a tap or the Tab key shows it too), and its alt or label names it to a screen
   reader. */
.browser-logos {
    display: grid;
    grid-template-columns: 76px;
    grid-template-rows: 32px 32px;
    grid-auto-flow: column;
    grid-auto-columns: 30px;
    gap: 4px;
    align-items: center;
    justify-items: start;
    margin: 0;
    padding: 0;
    list-style: none;
}

.browser-logos li {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.browser-logos li.featured {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 68px;
    height: 68px;
    margin-right: 8px;
    border-radius: var(--card-radius);
}

/* Arc's file stretches to any box it is given (preserveAspectRatio="none"), and every logo is used
   unaltered, so each keeps its own shape inside its tile. */
.browser-logos img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.browser-logos li.featured img {
    width: 48px;
    height: 48px;
}

/* A tile is a picture with a name, not a control: nothing happens when it is pressed. So no tile takes
   keyboard focus or draws a focus ring -- Tab goes from the download button straight on, and never
   starts at Chrome while the visitor's own browser is drawn first -- and a screen reader reads each
   name from its logo's alt text. The name also shows above a small tile on hover. */
.browser-logos li:hover {
    z-index: 2;
}

.browser-logos li::before {
    content: attr(data-name);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 8;
    width: max-content;
    padding: 6px 10px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background-color: rgba(24, 26, 32, 0.72);
    color: #fff;
    font-family: 'Mukta', sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 140%;
    white-space: nowrap;
    pointer-events: none;
    display: none;
}

.browser-logos li::after {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9;
    border: 8px solid transparent;
    border-top-color: rgba(255, 255, 255, 0.85);
    pointer-events: none;
    display: none;
}

/* The large tile's name is the card's title, so only the small ones show it. */
.browser-logos li:not(.featured):hover::before,
.browser-logos li:not(.featured):hover::after {
    display: block;
}

/* The logos' owners and licences, in small print under the cards. */
.extensions-credits {
    max-width: 1200px;
    margin: 16px auto 0;
    padding: 0 6vw;
    font-size: 12px;
    line-height: 150%;
    color: rgba(255, 255, 255, 0.8);
}

.extensions-credits a {
    color: inherit;
    text-decoration: underline;
}

.box .title {
    margin: 0;
    font-size: 18px;
    color: rgba(255, 255, 255, 1);
    font-weight: 700;
}

/* A browser's minimum version, under its name. */
.box .note {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* The beta's notes, before installing and about the beta: the extensions' glass cards, with text
   where the extensions have a button. */
.beta-notes {
    display: block;
    margin-bottom: 48px;
}

.extensions + .beta-notes {
    margin-top: 48px;
}

.beta-notes .box p:not(.title) {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

.beta-notes .box a {
    color: #fff;
    font-weight: 600;
}

/* The beta's notes, in the homepage's own card: a line icon on the left that plays on hover, the
   title large beside it and the words under the title, two cards to a row.
   The homepage's rules from /style.css (.second_screen .cards, .cards .card), scoped here, with the
   words a little larger, since these say more. */
.beta-notes .cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    --cards-gap: 12px;
    gap: var(--cards-gap);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 6vw;
}

.beta-notes .cards > .card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - var(--cards-gap)) / 2);
    box-sizing: border-box;
}

.beta-notes .card {
    display: grid;
    grid-template-columns: 112px 1fr;
    min-height: 0;
    padding: 14px 18px 14px 0;
    text-align: left;
    color: #fff;
    border-radius: var(--card-radius);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(48px);
    -webkit-backdrop-filter: blur(48px);
    transition: 0.15s;
}

.beta-notes .card:hover {
    border-color: #fff;
    outline: 1px solid #fff;
    backdrop-filter: blur(48px) saturate(1.25);
    -webkit-backdrop-filter: blur(48px) saturate(1.25);
}

.beta-notes .card .icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.beta-notes .card lord-icon {
    width: 72px;
    height: 72px;
}

.beta-notes .card .text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.beta-notes .card .text h3 {
    margin: 0 0 6px;
    font-size: 26px;
    line-height: 105%;
    font-weight: 700;
}

.beta-notes .card .text p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.beta-notes .card .text a {
    color: #fff;
}

/* Room between a section's heading and its cards. */
.beta-notes .extensions-heading {
    margin-bottom: 20px;
}

/* Before you install: the three steps side by side, so the icon column and the title are a size
   smaller to fit a third of the width. */
#before-you-install .cards {
    grid-template-columns: repeat(3, 1fr);
}

#before-you-install .cards > .card:last-child:nth-child(odd) {
    grid-column: auto;
    width: auto;
    justify-self: stretch;
}

#before-you-install .card {
    grid-template-columns: 84px 1fr;
}

#before-you-install .card lord-icon {
    width: 56px;
    height: 56px;
}

#before-you-install .card .text h3 {
    font-size: 22px;
}

@media screen and (max-width: 1100px) {
    #before-you-install .cards {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 760px) {
    .beta-notes .cards {
        grid-template-columns: 1fr;
    }

    .beta-notes .cards > .card:last-child:nth-child(odd) {
        width: auto;
        justify-self: stretch;
    }

    .beta-notes .card {
        grid-template-columns: 80px 1fr;
        padding: 12px 16px 12px 0;
    }

    .beta-notes .card lord-icon {
        width: 52px;
        height: 52px;
    }

    .beta-notes .card .text h3 {
        font-size: 22px;
    }
}

/* Under the download button: how the Mac app is signed. Two classes, to outrank
   `.download-vauz p`'s zero margin. */
.download-vauz .download-signed {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}


@media (max-width: 820px) {
    .download-inner {
        flex-direction: column;
        /* Turning the row into a column moves the main axis to vertical, which
           leaves align-items governing width -- and flex-start means "size to
           content", with nothing holding the item to the container. The card
           therefore grew to the checksum's max-content width, roughly 720px,
           inside a 330px column. html{overflow-x:hidden} hid the scrollbar, so
           what a phone actually showed was a card cut off at the screen edge.
           Stretch puts it back to the container width. */
        align-items: stretch;
    }

    .suggested-download {
        order: 1;
        display: none;
    }

    .download-vauz {
        order: 2;
    }
}
/* ---------------------------------------------------------------------------
   Download verification: "How do I verify?" pill, hover tooltip, and panel.
   The tooltip mirrors the #vKeyExplanation pattern used in the Vauz app: an
   empty title="" attribute makes the [title] selector match without the native
   browser tooltip appearing, and the copy lives in CSS content.
   --------------------------------------------------------------------------- */

.verify-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: inherit;
    line-height: inherit;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    word-break: normal;
    white-space: nowrap;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.verify-pill:hover,
.verify-pill[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
}

.verify-pill:focus-visible {
    outline: 3px solid rgba(6, 182, 212, 0.55);
    outline-offset: 2px;
}

#verifyExplanation[title]::before {
    content: "Every Vauz release is signed with our key. Click to check that your download is genuine and complete";
    position: absolute;
    bottom: 36px;
    left: 50%;
    width: 160px;
    padding: 6px 10px;
    border-radius: 8px;
    transform: translateX(-50%);
    color: #fff;
    background-color: #333;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    white-space: normal;
    text-align: left;
    z-index: 8;
}

#verifyExplanation[title]::after {
    content: "";
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #333;
    z-index: 8;
}

#verifyExplanation[title]::before,
#verifyExplanation[title]::after {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

#verifyExplanation[title]:hover::before,
#verifyExplanation[title]:hover::after,
#verifyExplanation[title]:focus-visible::before,
#verifyExplanation[title]:focus-visible::after {
    opacity: 1;
    visibility: visible;
}

/* Once the panel is open the tooltip is redundant and would cover it. */
#verifyExplanation[aria-expanded="true"]::before,
#verifyExplanation[aria-expanded="true"]::after {
    display: none;
}

.verify-panel {
    margin-top: 16px;
    padding: 18px 20px;
    border-radius: var(--card-radius);
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(var(--glass-blur));
    backdrop-filter: blur(var(--glass-blur));
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    text-align: left;
}

.verify-panel[hidden] {
    display: none;
}

.verify-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.verify-panel-head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.verify-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    line-height: 1;
    padding: 0 4px;
    cursor: pointer;
}

.verify-close:hover {
    color: #fff;
}

.verify-intro {
    margin: 8px 0 4px;
    color: rgba(255, 255, 255, 0.8);
}

.verify-steps {
    margin: 0;
    padding-left: 20px;
}

.verify-steps li {
    margin-bottom: 14px;
}

.verify-step-label {
    margin-bottom: 6px;
    font-weight: 600;
}

.verify-code {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 6px 6px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
	backdrop-filter: contrast(400%);
}

.verify-code code {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    white-space: pre;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    color: #fff;
}

.verify-copy {
    flex: none;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.verify-copy:hover {
    background: rgba(255, 255, 255, 0.22);
}

.verify-note {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

.verify-note code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.92);
}

.verify-key {
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.verify-panel a {
    color: #fff;
    font-weight: 600;
}

@media (max-width: 640px) {
    #verifyExplanation[title]::before {
        width: 200px;
    }

    .verify-code {
        flex-wrap: wrap;
    }
}

::-moz-selection { /* Code for Firefox */
  color: black;
  background: #04f2da;
}

::selection {
  color: black;
  background: #04f2da;
}

/* Back-to-top glyph.
   The shared stylesheet on cdn.sealzi.com positions this button's arrow through
   ".progress-wrap .fa-chevron-up" -- a selector that only existed to hook a Font
   Awesome glyph. Our own icon gets the same 50x50 box, colour, transition and
   hover nudge here, so the button behaves exactly as before without that class. */
.progress-wrap .vauz_icon_totop {
	position: absolute;
	left: 0;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	color: white;
	font-size: 24px;
	transition: transform 180ms ease;
}

.progress-wrap:hover .vauz_icon_totop {
	transform: translateY(-4px);
}
